noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 22/73: Fix bug : not TVA asked


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 22/73: Fix bug : not TVA asked
Date: Fri, 28 May 2021 05:26:25 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit abcaa12313c0e588634dd71e4903f82e83d0ae46
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Fri Apr 16 14:54:40 2021 +0200

    Fix bug : not TVA asked
---
 include/class/acc_ledger_sold.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class/acc_ledger_sold.class.php 
b/include/class/acc_ledger_sold.class.php
index ae42b10..ad362e7 100644
--- a/include/class/acc_ledger_sold.class.php
+++ b/include/class/acc_ledger_sold.class.php
@@ -364,7 +364,7 @@ class Acc_Ledger_Sold extends Acc_Ledger {
                         $l = new Acc_Tva($this->db, $idx_tva);
                         $l->load();
                         $tva_item_currency = bcmul($amount, 
$l->get_parameter('rate'));
-                       $tva_item=round($tva_item,2);
+                       $tva_item=round($tva_item_currency,2);
                     }
                     $tva_item=bcdiv($tva_item_currency,$p_currency_rate);
                     $tva_item=round($tva_item,2);



reply via email to

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