noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 34/218: Task #448 : Currency : purchase, fix


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 34/218: Task #448 : Currency : purchase, fix bug for autoreverse VAT
Date: Thu, 12 Sep 2019 15:58:35 -0400 (EDT)

sparkyx pushed a commit to branch entreprise
in repository noalyss.

commit 82a14366be65dc8bd2bb0f14fde9d4af632b4a4f
Author: Dany De Bontridder <address@hidden>
Date:   Sat May 12 11:32:19 2018 +0200

    Task #448 : Currency : purchase, fix bug for autoreverse VAT
---
 include/class/acc_ledger_purchase.class.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/class/acc_ledger_purchase.class.php 
b/include/class/acc_ledger_purchase.class.php
index 3bfa1de..f1202ea 100644
--- a/include/class/acc_ledger_purchase.class.php
+++ b/include/class/acc_ledger_purchase.class.php
@@ -596,7 +596,7 @@ class  Acc_Ledger_Purchase extends Acc_Ledger
                     
$acc_amount->set_parameter('amount_vat_rate',$oTva->get_parameter('rate'));
                     if ( strlen(trim(${'e_march'.$i.'_tva_amount'})) ==0 || 
${'e_march'.$i.'_tva_amount'} == 0)
                     {
-                        // vat is in euro 
+                        // vat must computed and the amount is already 
converted to EUR
                         $acc_amount->compute_vat();
 
                     }
@@ -752,7 +752,9 @@ class  Acc_Ledger_Purchase extends Acc_Ledger
                 $operation_currency->oc_price_unit=${'e_march'.$i.'_price'};
                 $operation_currency->j_id=$j_id;
                 $operation_currency->insert();
-                
+                if (DEBUG ) {
+                    echo __LINE__." insert into operation currency 
oc_amount:{$acc_amount->amount_currency} oc_vat_amount 
{$acc_amount->amount_vat_currency} <br>";
+                }
             }       // end loop : save all items
             /*  save total customer */
             if ( DEBUG ) { 



reply via email to

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