noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 97/238: Fin : currency , add missing info int


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 97/238: Fin : currency , add missing info into Operation_Currency
Date: Sat, 26 Oct 2019 04:40:42 -0400 (EDT)

sparkyx pushed a commit to annotated tag rel7110
in repository noalyss.

commit 7b8daebd3f453d7e3e7ca055fc507a22e8c8b95e
Author: Dany De Bontridder <address@hidden>
Date:   Tue Nov 27 17:52:46 2018 +0100

    Fin : currency , add missing info into Operation_Currency
---
 include/class/acc_ledger_fin.class.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/class/acc_ledger_fin.class.php 
b/include/class/acc_ledger_fin.class.php
index 74a0427..4668b28 100644
--- a/include/class/acc_ledger_fin.class.php
+++ b/include/class/acc_ledger_fin.class.php
@@ -838,6 +838,7 @@ class Acc_Ledger_Fin extends Acc_Ledger
                                 // -- Insert into Operation Currency 
                                 $operation_currency = new 
Operation_currency_SQL($this->db);
                                 $operation_currency->oc_amount=$amount_input;
+                                $operation_currency->oc_vat_amount=0;
                                 
$operation_currency->oc_price_unit=$amount_input;
                                 $operation_currency->j_id=$j_id;
                                 $operation_currency->insert();
@@ -892,6 +893,10 @@ class Acc_Ledger_Fin extends Acc_Ledger
                                $acc_operation->mt = $mt;
                                $idx_operation++;
                                $acc_operation->pj = '';
+                                $acc_operation->currency_id=$this->currency_id;
+                                $acc_operation->currency_rate=$currency_rate;
+                                
$acc_operation->currency_rate_ref=$currency_rate;
+                                
 
                                if (trim($e_pj) != '' && 
$this->numb_operation() == true)
                                        $acc_operation->pj = $e_pj . 
str_pad($idx_operation, 3, 0, STR_PAD_LEFT);



reply via email to

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