Merge pull request #24827 from altairisfr/nocreditnote
NEW : TakePOS - add constant to forbid credit note
This commit is contained in:
commit
5ebe7fb69f
1 changed files with 1 additions and 1 deletions
|
|
@ -1684,7 +1684,7 @@ if ($placeid > 0) {
|
|||
|
||||
print '</table>';
|
||||
|
||||
if (($action == "valid" || $action == "history") && $invoice->type != Facture::TYPE_CREDIT_NOTE) {
|
||||
if (($action == "valid" || $action == "history") && $invoice->type != Facture::TYPE_CREDIT_NOTE && empty($conf->global->TAKEPOS_NO_CREDITNOTE)) {
|
||||
print '<button id="buttonprint" type="button" onclick="ModalBox(\'ModalCreditNote\')">'.$langs->trans('CreateCreditNote').'</button>';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue