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:
commit
4bb45ad1c1
@ -1218,6 +1218,8 @@ if (empty($reshook))
|
|||||||
|
|
||||||
foreach ($amountdeposit as $tva => $amount)
|
foreach ($amountdeposit as $tva => $amount)
|
||||||
{
|
{
|
||||||
|
if (empty($amount)) continue;
|
||||||
|
|
||||||
$arraylist = array('amount' => 'FixAmount','variable' => 'VarAmount');
|
$arraylist = array('amount' => 'FixAmount','variable' => 'VarAmount');
|
||||||
$descline = $langs->trans('Deposit');
|
$descline = $langs->trans('Deposit');
|
||||||
$descline.= ' - '.$langs->trans($arraylist[$typeamount]);
|
$descline.= ' - '.$langs->trans($arraylist[$typeamount]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user