浏览代码

Use getDolGlobalString

Alexandre SPANGARO 2 年之前
父节点
当前提交
cca1839ab8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      htdocs/accountancy/class/accountingaccount.class.php

+ 1 - 1
htdocs/accountancy/class/accountingaccount.class.php

@@ -868,7 +868,7 @@ class AccountingAccount extends CommonObject
 			}
 
 			// Manage Deposit
-			if (!empty($conf->global->{'ACCOUNTING_ACCOUNT_' . strtoupper($type) . '_DEPOSIT'})) {
+			if (getDolGlobalString('ACCOUNTING_ACCOUNT_' . strtoupper($type) . '_DEPOSIT')) {
 				if ($factureDet->desc == "(DEPOSIT)" || $facture->type == $facture::TYPE_DEPOSIT) {
 					$accountdeposittoventilated = new self($this->db);
 					if ($type == 'customer') {