[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 34/162: Task #448 : Currency : purchase, fix
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 34/162: Task #448 : Currency : purchase, fix bug for autoreverse VAT |
Date: |
Sat, 11 Jul 2020 13:23:27 -0400 (EDT) |
sparkyx pushed a commit to annotated tag E-4
in repository noalyss.
commit 82a14366be65dc8bd2bb0f14fde9d4af632b4a4f
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: 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 ) {
- [Noalyss-commit] [noalyss] 35/162: Task #448 : correct bug when saving into quant_purchase, (continued)
- [Noalyss-commit] [noalyss] 35/162: Task #448 : correct bug when saving into quant_purchase, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 36/162: Bug in QUANT_PURCHASE , dp_dep_priv is not saved, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 21/162: Task #448 : issue with reconciliation amount, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 33/162: Task #448 : correct bug if VAT Rate = 0 , amount was reset, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 41/162: Fix bug quant_purchase , private fee not saved, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 42/162: remove debug, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 43/162: Missing ob_start, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 45/162: typo, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 39/162: integrate fix for bug in insert_quant_purchase which cannot save private fee, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 48/162: Protect function nb , return the string if the parameter is not a float, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 34/162: Task #448 : Currency : purchase, fix bug for autoreverse VAT,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 37/162: comment, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 46/162: Task #448 : add currency to card -> history + export CSV, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 50/162: Create invoice : New version of libreoffice use the numeric in another way, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 55/162: Security : direct injection, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 52/162: Bug 1600 : alphanumeric accounting must be case insensitive, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 56/162: Fix : security fixes see rapport exakat (Damien Seguy), Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 57/162: Security fix : f_id is a number, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 62/162: Merge master, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 38/162: Task #448 : currency improve detail of operation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 40/162: Fix bug quant_purchase , private fee not saved, Dany De Bontridder, 2020/07/11