From f63b7c4bd54867dd59e7e7774fdfde65b23a9677 Mon Sep 17 00:00:00 2001 From: Christophe Battarel Date: Sun, 21 May 2023 10:31:55 +0200 Subject: [PATCH] fix php8 --- htdocs/takepos/invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); } }