i am sometimes a little dumb
This commit is contained in:
parent
39fff532c2
commit
342144d790
1 changed files with 1 additions and 1 deletions
|
|
@ -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>';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue