FIX : when we create deposit with multi tva, we mustn't add line if amount = 0 (example when we have a 100% reduc on one of origin invoice line)

This commit is contained in:
gauthier 2019-03-13 15:58:58 +01:00
parent 520387c03d
commit a524bbc5c6

View File

@ -1218,6 +1218,9 @@ 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]);