From 579d3505998ce3a651d3d7647ff7c5c9442b14f9 Mon Sep 17 00:00:00 2001 From: phf Date: Thu, 9 Feb 2017 17:41:06 +0100 Subject: [PATCH] Fix keep the standard behaviour --- htdocs/compta/facture.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index f431b1bf344..d4ce37ce408 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1063,7 +1063,9 @@ if (empty($reshook)) } if ($totalamount != 0) { - $amountdeposit[] = ($totalamount * $valuedeposit) / 100; + $amountdeposit[$lines[$i]->tva] = ($totalamount * $valuedeposit) / 100; + } else { + $amountdeposit[] = 0; } } else { setEventMessages($srcobject->error, $srcobject->errors, 'errors');