From 752d3f9161007b32f3faec6dcb9845b3c93e23ee Mon Sep 17 00:00:00 2001 From: eLBati Date: Wed, 31 Jan 2024 16:59:37 +0100 Subject: [PATCH] FIX l10n_it_fatturapa_out and l10n_it_fatturapa_out_rc avoiding to convert to EUR tax_base_amount as it is already in company currency (currency_field='company_currency_id') Note: tests are not using tax_base_amount to compute ImponibileImporto (they use line.price_subtotal) because it is empty, while it sould not Steps: - Configure reverse charge for extra UE suppliers - Create an USD invoice, with 1 line, with fiscal position for extra UE suppliers - Confirm - Generate XML from self invocie Observed: "Totale imponibile" is different from "Prezzo unitario" FIX l10n_it_fatturapa_out_rc in multi currency: use the supplier invoice date REF fpa_to_eur using move line currency_rate when available --- .../data/invoice_it_template.xml | 29 +++---------------- l10n_it_fatturapa_out/wizard/efattura.py | 20 ++++++++----- .../wizard/wizard_export_fatturapa.py | 23 +++++++++++---- .../data/invoice_it_template.xml | 2 +- .../views/invoice_it_template.xml | 4 +-- 5 files changed, 36 insertions(+), 42 deletions(-) diff --git a/l10n_it_fatturapa_out/data/invoice_it_template.xml b/l10n_it_fatturapa_out/data/invoice_it_template.xml index c287439a9e5e..b0fe256a25c4 100644 --- a/l10n_it_fatturapa_out/data/invoice_it_template.xml +++ b/l10n_it_fatturapa_out/data/invoice_it_template.xml @@ -170,7 +170,7 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati) t-call="l10n_it_fatturapa_out.account_invoice_line_it_sconto_maggiorazione" /> -