noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 132/173: Bug solde is rounded and doesn't hav


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 132/173: Bug solde is rounded and doesn't have decimal
Date: Mon, 22 Mar 2021 12:59:10 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 4165b1c0725605e7ac633c5ae2a71ec8e22f768a
Author: Dany De Bontridder <dany@alchimerys.be>
AuthorDate: Sun Jan 19 21:34:10 2020 +0100

    Bug solde is rounded and doesn't have decimal
---
 include/class/acc_account_ledger.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class/acc_account_ledger.class.php 
b/include/class/acc_account_ledger.class.php
index e02e188..020e18d 100644
--- a/include/class/acc_account_ledger.class.php
+++ b/include/class/acc_account_ledger.class.php
@@ -335,7 +335,7 @@ class Acc_Account_Ledger
 
         return array('debit'=>$r['sum_deb'],
                      'credit'=>$r['sum_cred'],
-                     'solde'=>abs(bcsub($r['sum_deb'],$r['sum_cred'])));
+                     'solde'=>abs(bcsub($r['sum_deb'],$r['sum_cred'],2)));
     }
     /*!
      * \brief isTva tell is a poste is used for VAT



reply via email to

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