From a524bbc5c692523fe6fcfdb1ab609b21adbf5ef2 Mon Sep 17 00:00:00 2001 From: gauthier Date: Wed, 13 Mar 2019 15:58:58 +0100 Subject: [PATCH] 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) --- htdocs/compta/facture/card.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index b379bf31602..dcf167da515 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -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]);