Merge pull request #23407 from daraelmin/daraelmin-patch-2

Fix v14 fatal error undefined fct lenght_accounta
This commit is contained in:
Laurent Destailleur 2023-01-04 17:48:08 +01:00 committed by GitHub
commit 25eac607eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 '<td>'.$accountingaccount->getNomUrl(0, 1, 1, '', 1).'</td>';