Merge pull request #19656 from grandoc/new_branch_20_12_2021

fix: Fatal error: Uncaught Error: Class 'AccountingAccount' not found…
This commit is contained in:
Laurent Destailleur 2021-12-21 15:52:01 +01:00 committed by GitHub
commit 0cf460ced2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2096,6 +2096,7 @@ if ($action == 'create') {
$titlealt = '';
if (!empty($conf->accounting->enabled)) {
require_once DOL_DOCUMENT_ROOT.'/accountancy/class/accountingaccount.class.php';
$accountingaccount = new AccountingAccount($db);
$resaccountingaccount = $accountingaccount->fetch(0, $line->type_fees_accountancy_code, 1);
//$titlealt .= '<span class="opacitymedium">';