fix php8
This commit is contained in:
parent
800bff7145
commit
f63b7c4bd5
1 changed files with 1 additions and 1 deletions
|
|
@ -285,7 +285,7 @@ if (empty($reshook)) {
|
|||
$payment->create($user);
|
||||
$payment->addPaymentToBank($user, 'payment', '(CustomerInvoicePayment)', $bankaccount, '', '');
|
||||
$remaintopay = $invoice->getRemainToPay(); // Recalculate remain to pay after the payment is recorded
|
||||
} elseif (!empty($conf->global->TAKEPOS_DELAYED_TERMS)) {
|
||||
} elseif (!empty(getDolGlobalInt("TAKEPOS_DELAYED_TERMS"))) {
|
||||
$invoice->setPaymentTerms(getDolGlobalInt("TAKEPOS_DELAYED_TERMS"));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue