noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 10/17: Fix : bug when of rounding number TOTA


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 10/17: Fix : bug when of rounding number TOTAL_VEN_TVAC when generating an invoice
Date: Mon, 31 Oct 2022 12:53:39 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit e5e726b31072bcf1376cb7eda11fd57edb5bdfbb
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Oct 29 10:46:17 2022 +0200

    Fix : bug when of rounding number TOTAL_VEN_TVAC when generating an invoice
---
 include/class/document.class.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/class/document.class.php b/include/class/document.class.php
index 65b903ca9..ffa42fcc7 100644
--- a/include/class/document.class.php
+++ b/include/class/document.class.php
@@ -1282,6 +1282,8 @@ class Document
                     $sell=$p_array['e_march'.$i.'_price'];
                     $qt=$p_array['e_quant'.$i];
                     $tot=bcmul($sell, $qt);
+                    $tva_amount=round($tva_amount,2);
+                    $tot=round($tot,2);
                     $tot=bcadd($tot, $tva_amount);
                     $sum=bcadd($sum, $tot);
                 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]