From 29578a38bde4897353b7bfe37f3d6ccaa718c6df Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 24 Feb 2017 16:19:00 +0100 Subject: [PATCH] Keep previous behaviour if new option not set --- htdocs/compta/facture.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 51a3efa40eb..66ed06e53e2 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1139,7 +1139,7 @@ if (empty($reshook)) $diff = $object->total_ttc - $amount_ttc_diff; - if ($diff != 0) + if (!empty($conf->global->MAIN_DEPOSIT_MULTI_TVA) && $diff != 0) { $object->fetch_lines(); $subprice_diff = $object->lines[0]->subprice - $diff / (1 + $object->lines[0]->tva_tx);