i am sometimes a little dumb

This commit is contained in:
Christophe Battarel 2023-05-24 14:36:29 +02:00
parent 39fff532c2
commit 342144d790

View file

@ -1688,7 +1688,7 @@ print '</table>';
if (($action == "valid" || $action == "history") && $invoice->type != Facture::TYPE_CREDIT_NOTE) {
print '<button id="buttonprint" type="button" onclick="ModalBox(\'ModalCreditNote\')">'.$langs->trans('CreateCreditNote').'</button>';
if (getDolGlobalInt('TAKEPOS_PRINT_INVOICE')) {
if (getDolGlobalInt('TAKEPOS_PRINT_INVOICE_DOC_INSTEAD_OF_RECEIPT')) {
print ' <a target="_blank" class="button" href="' . DOL_URL_ROOT . '/document.php?token=' . newToken() . '&modulepart=facture&file=' . $invoice->ref . '/' . $invoice->ref . '.pdf">Invoice</a>';
}
}