From 73c379ed34d76aed8ac18172358a75e4faed86da Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Tue, 23 Dec 2014 18:11:07 +0100 Subject: [PATCH] Great Ledger Analytic : credit is positif and debit is negatif --- include/class_anc_grandlivre.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class_anc_grandlivre.php b/include/class_anc_grandlivre.php index 0fc0bb402..e079249bf 100644 --- a/include/class_anc_grandlivre.php +++ b/include/class_anc_grandlivre.php @@ -212,7 +212,7 @@ class Anc_GrandLivre extends Anc_Print $amount_cred = ($row['oa_debit'] == 'f') ? $row['oa_amount'] : 0; $tot_deb = bcadd($tot_deb, $amount_deb); $tot_cred = bcadd($tot_cred, $amount_cred); - $tot_solde=bcsub($tot_deb,$tot_cred); + $tot_solde=bcsub($tot_cred,$tot_deb); /* * Checked button