noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 02/46: Bug solde is rounded and doesn't have


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/46: Bug solde is rounded and doesn't have decimal
Date: Mon, 4 May 2020 13:38:41 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 3e30658de8d8ac6cab3a066892ff5d06974b6ba0
Author: Dany De Bontridder <address@hidden>
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 3cc7575..18c58e1 100644
--- a/include/class/acc_account_ledger.class.php
+++ b/include/class/acc_account_ledger.class.php
@@ -325,7 +325,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]