Merge pull request #10824 from atm-gauthier/7.0_fix_nocreateline_deposit_if_amount_zero

FIX : when we create deposit with multi tva, we mustn't add line if a…
This commit is contained in:
Laurent Destailleur 2019-03-15 19:16:56 +01:00 committed by GitHub
commit 4bb45ad1c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1218,6 +1218,8 @@ if (empty($reshook))
foreach ($amountdeposit as $tva => $amount)
{
if (empty($amount)) continue;
$arraylist = array('amount' => 'FixAmount','variable' => 'VarAmount');
$descline = $langs->trans('Deposit');
$descline.= ' - '.$langs->trans($arraylist[$typeamount]);