diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index c6ad0582bcc..1124c863bec 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -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")); } }