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
This commit is contained in:
parent
6950e2be20
commit
23d535197d
@ -650,6 +650,7 @@ if ($result) {
|
|||||||
|
|
||||||
// Accounting account
|
// Accounting account
|
||||||
if ($arrayfields['account']['checked']) {
|
if ($arrayfields['account']['checked']) {
|
||||||
|
require_once(DOL_DOCUMENT_ROOT.'/core/lib/accounting.lib.php');
|
||||||
$accountingaccount->fetch('', $obj->accountancy_code, 1);
|
$accountingaccount->fetch('', $obj->accountancy_code, 1);
|
||||||
|
|
||||||
print '<td>'.$accountingaccount->getNomUrl(0, 1, 1, '', 1).'</td>';
|
print '<td>'.$accountingaccount->getNomUrl(0, 1, 1, '', 1).'</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user