Bug for reversed operation when currency are used
This commit is contained in:
parent
b85ea649c3
commit
97a13b02f6
1 changed files with 1 additions and 1 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue