@@ -1615,7 +1615,9 @@ |
||
1615 | 1615 | global $conf, $langs; |
1616 | 1616 | |
1617 | 1617 | $ltrdirection = 'L'; |
1618 | - if ($outputlangs->trans("DIRECTION") == 'rtl') $ltrdirection = 'R'; |
|
1618 | + if ($outputlangs->trans("DIRECTION") == 'rtl') { |
|
1619 | + $ltrdirection = 'R'; |
|
1620 | + } |
|
1619 | 1621 | |
1620 | 1622 | // Load traductions files required by page |
1621 | 1623 | $outputlangs->loadLangs(array("main", "bills", "propal", "companies")); |
@@ -3385,11 +3385,15 @@ |
||
3385 | 3385 | if ($bookkeeping->fetch($id)) { |
3386 | 3386 | if ( !getDolGlobalString('ACCOUNTING_ACCOUNT_CUSTOMER')) { |
3387 | 3387 | $accountcustcode = '411'; |
3388 | - } else $accountcustcode = getDolGlobalString('ACCOUNTING_ACCOUNT_CUSTOMER'); |
|
3388 | + } else { |
|
3389 | + $accountcustcode = getDolGlobalString('ACCOUNTING_ACCOUNT_CUSTOMER'); |
|
3390 | + } |
|
3389 | 3391 | |
3390 | 3392 | if ( !getDolGlobalString('ACCOUNTING_ACCOUNT_SUPPLIER')) { |
3391 | 3393 | $accountsuppcode = '401'; |
3392 | - } else $accountsuppcode = getDolGlobalString('ACCOUNTING_ACCOUNT_SUPPLIER'); |
|
3394 | + } else { |
|
3395 | + $accountsuppcode = getDolGlobalString('ACCOUNTING_ACCOUNT_SUPPLIER'); |
|
3396 | + } |
|
3393 | 3397 | |
3394 | 3398 | if (strpos($bookkeeping->numero_compte, $accountcustcode) === 0 || strpos($bookkeeping->numero_compte, $accountsuppcode) === 0) { |
3395 | 3399 | $echecT[]=$bookkeeping->numero_compte; |