From 47f1fbaad6bdfee2ecd6d886b5d70d9847eec097 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 28 Apr 2024 02:02:01 +0200 Subject: [PATCH] Fix type of vat rate var --- htdocs/societe/class/societe.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 87ab1767829..cc21964b1bc 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -2482,7 +2482,7 @@ class Societe extends CommonObject $discount->amount_ttc = $discount->multicurrency_amount_ttc = price2num((float) $discount->amount_ht + (float) $discount->amount_tva, 'MT'); } - $discount->tva_tx = price2num($vatrate); + $discount->tva_tx = (float) price2num($vatrate); $discount->vat_src_code = $vat_src_code; $discount->description = $desc;