noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 103/218: reverse for quant_fin


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 103/218: reverse for quant_fin
Date: Thu, 12 Sep 2019 15:58:49 -0400 (EDT)

sparkyx pushed a commit to branch entreprise
in repository noalyss.

commit 36823c171a81a35cb189c9ffb54bc34ef23f0465
Author: Dany De Bontridder <address@hidden>
Date:   Wed Nov 28 21:28:25 2018 +0100

    reverse for quant_fin
---
 include/class/acc_ledger.class.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/class/acc_ledger.class.php 
b/include/class/acc_ledger.class.php
index b0dbeba..dcc1ab0 100644
--- a/include/class/acc_ledger.class.php
+++ b/include/class/acc_ledger.class.php
@@ -335,10 +335,10 @@ class Acc_Ledger extends jrn_def_sql
                 throw (new Exception(__FILE__.__LINE__."SQL ERROR [ $sql ]"));
             // reverse in QUANT_FIN table
             $Res=$this->db->exec_sql("  INSERT INTO quant_fin(
-                                 qf_bank,  qf_other, qf_amount,jr_id)
-                                 SELECT  qf_bank,  qf_other, qf_amount*(-1),$1
+                                 qf_bank,  qf_other, qf_amount,jr_id,j_id)
+                                 SELECT  qf_bank,  qf_other, 
qf_amount*(-1),$1,$3
                                  FROM quant_fin where jr_id=$2",
-                    array($seq, $this->jr_id));
+                    array($seq, $this->jr_id,$j_id));
             if ($Res==false)
                 throw (new Exception(__FILE__.__LINE__."SQL ERROR[ $sql ]"));
 



reply via email to

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