This commit is contained in:
Christophe Battarel 2023-05-21 10:31:55 +02:00
parent 800bff7145
commit f63b7c4bd5

View file

@ -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"));
}
}