From b1a3c77a8ffe9e6872d48ae4d97aaea480fd947f Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sat, 7 Dec 2024 10:02:01 +0100 Subject: [PATCH] FIX : Tax_Summary->check fails when there is no data, check was not correct --- include/class/tax_summary.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/class/tax_summary.class.php b/include/class/tax_summary.class.php index aae844bcd..dffb954ac 100644 --- a/include/class/tax_summary.class.php +++ b/include/class/tax_summary.class.php @@ -145,7 +145,9 @@ class Tax_Summary ", [$this->date_start, $this->date_end]); if ($cnt==0 && $cnt_ledger !=0) { - throw new Exception('TX148:'_("Données manquantes"),100); + + throw new Exception('TX148:'._("Données manquantes"),100); + } /* -------------Purchase --------------------------------- */