[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);
}
- [Noalyss-commit] [noalyss] branch master updated (75d59f1b5 -> 7749f97eb), Dany De Bontridder, 2022/10/31
- [Noalyss-commit] [noalyss] 03/17: Bug : Impression achat TVAC mode ligne TVAC toujours null, Dany De Bontridder, 2022/10/31
- [Noalyss-commit] [noalyss] 06/17: Documentation & code cleaning Javascript, Dany De Bontridder, 2022/10/31
- [Noalyss-commit] [noalyss] 09/17: Improve doc, Dany De Bontridder, 2022/10/31
- [Noalyss-commit] [noalyss] 01/17: Improve debug mode, Dany De Bontridder, 2022/10/31
- [Noalyss-commit] [noalyss] 02/17: Cosmetic, Dany De Bontridder, 2022/10/31
- [Noalyss-commit] [noalyss] 10/17: Fix : bug when of rounding number TOTAL_VEN_TVAC when generating an invoice,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 13/17: Improve Output_Html : row , tab and accordean, Dany De Bontridder, 2022/10/31
- [Noalyss-commit] [noalyss] 12/17: correct patch, Dany De Bontridder, 2022/10/31
- [Noalyss-commit] [noalyss] 04/17: Task 0002212: Réconciliation : numéro de pièce doit être vide, Dany De Bontridder, 2022/10/31
- [Noalyss-commit] [noalyss] 08/17: Bug : toggleHideShow doesn't work with search_form and rotating button, Dany De Bontridder, 2022/10/31
- [Noalyss-commit] [noalyss] 07/17: rename user.class.php and User by noalyss_user.class.php and Noalyss_User, Dany De Bontridder, 2022/10/31
- [Noalyss-commit] [noalyss] 17/17: Bug : 840cd82f3b7f has introduced a bug when searching an accounting, Dany De Bontridder, 2022/10/31
- [Noalyss-commit] [noalyss] 15/17: Fix : type in debug info, Dany De Bontridder, 2022/10/31
- [Noalyss-commit] [noalyss] 16/17: info debug, Dany De Bontridder, 2022/10/31
- [Noalyss-commit] [noalyss] 05/17: esthetic, Dany De Bontridder, 2022/10/31
- [Noalyss-commit] [noalyss] 11/17: Fix bug : if TVA code contain space, it was considered as another tva_code, Dany De Bontridder, 2022/10/31