Merge pull request #24827 from altairisfr/nocreditnote

NEW : TakePOS - add constant to forbid credit note
This commit is contained in:
Laurent Destailleur 2023-05-20 11:47:52 +02:00 committed by GitHub
commit 5ebe7fb69f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>';
}