[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 14/17: Bug#2271: Banque : totaux non vérifié,
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 14/17: Bug#2271: Banque : totaux non vérifié,arrondi |
Date: |
Tue, 16 May 2023 14:50:13 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 59b18a0398986624da017eb836126af1bcc33ae7
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon May 1 16:06:04 2023 +0200
Bug#2271: Banque : totaux non vérifié,arrondi
---
include/class/acc_ledger_fin.class.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/class/acc_ledger_fin.class.php
b/include/class/acc_ledger_fin.class.php
index 30dd05b08..5ad81d64e 100644
--- a/include/class/acc_ledger_fin.class.php
+++ b/include/class/acc_ledger_fin.class.php
@@ -217,9 +217,9 @@ class Acc_Ledger_Fin extends Acc_Ledger
if
(noalyss_strlentrim($last_sold)!=0&&isNumber($last_sold)&&noalyss_strlentrim($first_sold)!=0&&isNumber($first_sold)
)
{
- $diff=bcsub($last_sold,$first_sold);
- $diff=round($diff, 2)-round($tot_amount, 2);
- $calc=bcadd($first_sold, $tot_amount, 4);
+ $diff=bcsub($last_sold,$first_sold,2);
+ $diff=bcsub($diff,$tot_amount,2);
+ $calc=bcadd($first_sold, $tot_amount, 2);
if ($first_sold!=0||$last_sold!=0)
{
if ($diff!=0)
- [Noalyss-commit] [noalyss] 05/17: Merge branch 'devel' into dev9101, (continued)
- [Noalyss-commit] [noalyss] 05/17: Merge branch 'devel' into dev9101, Dany De Bontridder, 2023/05/16
- [Noalyss-commit] [noalyss] 15/17: Fix bug : background color not set for head on small screens, Dany De Bontridder, 2023/05/16
- [Noalyss-commit] [noalyss] 01/17: Cosmetic, Dany De Bontridder, 2023/05/16
- [Noalyss-commit] [noalyss] 13/17: missing file, Dany De Bontridder, 2023/05/16
- [Noalyss-commit] [noalyss] 03/17: Task #2257:improve Détail Action dans le tableau de bord , mise à jour, Dany De Bontridder, 2023/05/16
- [Noalyss-commit] [noalyss] 07/17: remove dead code, Dany De Bontridder, 2023/05/16
- [Noalyss-commit] [noalyss] 06/17: Document Template, Dany De Bontridder, 2023/05/16
- [Noalyss-commit] [noalyss] 11/17: remove dead code, Dany De Bontridder, 2023/05/16
- [Noalyss-commit] [noalyss] 10/17: Bug#2271: Banque : totaux non vérifié, Dany De Bontridder, 2023/05/16
- [Noalyss-commit] [noalyss] 02/17: Code Documentation, Dany De Bontridder, 2023/05/16
- [Noalyss-commit] [noalyss] 14/17: Bug#2271: Banque : totaux non vérifié,arrondi,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 04/17: Compatibility 8.1, Dany De Bontridder, 2023/05/16
- [Noalyss-commit] [noalyss] 09/17: FInal : add SQL upgrade script + test, Dany De Bontridder, 2023/05/16
- [Noalyss-commit] [noalyss] 17/17: Merge branch 'devel-venus2', Dany De Bontridder, 2023/05/16
- [Noalyss-commit] [noalyss] 16/17: Fix bug : background color not set for head on small screens, Dany De Bontridder, 2023/05/16