Merge pull request #14427 from asolslk/patch-2

FIX Visible 0 on accounting account
This commit is contained in:
Laurent Destailleur 2020-08-17 01:34:57 +02:00 committed by GitHub
commit 75f8fe8276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ function length_accountg($account)
if ($account < 0 || is_empty($account)) return '';
if (!is_empty($conf->global->ACCOUNTING_MANAGE_ZERO)) return $account;
if (is_empty($conf->global->ACCOUNTING_MANAGE_ZERO)) return $account;
$g = $conf->global->ACCOUNTING_LENGTH_GACCOUNT;
if (!is_empty($g)) {
@ -131,7 +131,7 @@ function length_accounta($accounta)
if ($accounta < 0 || is_empty($accounta)) return '';
if (!is_empty($conf->global->ACCOUNTING_MANAGE_ZERO)) return $accounta;
if (is_empty($conf->global->ACCOUNTING_MANAGE_ZERO)) return $accounta;
$a = $conf->global->ACCOUNTING_LENGTH_AACCOUNT;
if (!is_empty($a)) {