From 23d535197d4cffcec44d763bc5ad21c39bf2c02a Mon Sep 17 00:00:00 2001 From: daraelmin Date: Wed, 4 Jan 2023 09:13:40 +0100 Subject: [PATCH 1/2] Fix v14 fatal error undefined fct lenght_accounta Following #23403 See https://www.dolibarr.fr/forum/t/erreur-fatal-paiements-divers-v15-0-3/41914 --- htdocs/compta/bank/various_payment/list.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/compta/bank/various_payment/list.php b/htdocs/compta/bank/various_payment/list.php index dda68a096a1..3863cde1ab9 100644 --- a/htdocs/compta/bank/various_payment/list.php +++ b/htdocs/compta/bank/various_payment/list.php @@ -650,6 +650,7 @@ if ($result) { // Accounting account if ($arrayfields['account']['checked']) { + require_once(DOL_DOCUMENT_ROOT.'/core/lib/accounting.lib.php'); $accountingaccount->fetch('', $obj->accountancy_code, 1); print ''.$accountingaccount->getNomUrl(0, 1, 1, '', 1).''; From 1d29400cdfa9b8883af73734de97d0d35c7248c1 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Wed, 4 Jan 2023 08:15:39 +0000 Subject: [PATCH 2/2] Fixing style errors. --- htdocs/compta/bank/various_payment/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/bank/various_payment/list.php b/htdocs/compta/bank/various_payment/list.php index 3863cde1ab9..cf19962489d 100644 --- a/htdocs/compta/bank/various_payment/list.php +++ b/htdocs/compta/bank/various_payment/list.php @@ -650,7 +650,7 @@ if ($result) { // Accounting account if ($arrayfields['account']['checked']) { - require_once(DOL_DOCUMENT_ROOT.'/core/lib/accounting.lib.php'); + require_once DOL_DOCUMENT_ROOT.'/core/lib/accounting.lib.php'; $accountingaccount->fetch('', $obj->accountancy_code, 1); print ''.$accountingaccount->getNomUrl(0, 1, 1, '', 1).'';