noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 11/33: Bug for reversed operation when curren


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 11/33: Bug for reversed operation when currency are used
Date: Thu, 11 Nov 2021 06:02:45 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 97a13b02f6a9800f07c8236a3bf6ab6cfc240448
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Fri Oct 1 17:54:00 2021 +0200

    Bug for reversed operation when currency are used
---
 include/class/acc_ledger.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class/acc_ledger.class.php 
b/include/class/acc_ledger.class.php
index bd60303..778eba8 100644
--- a/include/class/acc_ledger.class.php
+++ b/include/class/acc_ledger.class.php
@@ -343,7 +343,7 @@ class Acc_Ledger  extends jrn_def_sql
                 }
                 // Reverse also in the currency table
                 $this->db->exec_sql("insert into operation_currency 
(oc_amount,oc_vat_amount,oc_price_unit,j_id) "
-                        . " select 
0-oc_amount,0-oc_vat_amount,oc_price_unit,$j_id from operation_currency where 
j_id=$1",
+                        . " select oc_amount,oc_vat_amount,oc_price_unit,$j_id 
from operation_currency where j_id=$1",
                         [$row]);
             }
             $sql="insert into jrn (



reply via email to

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