From 00c70f335db126c41210a938adfa3910a3cef31e 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" --- .../data/invoice_it_template.xml | 27 ++----------------- l10n_it_fatturapa_out/wizard/efattura.py | 18 ++++++++----- .../wizard/wizard_export_fatturapa.py | 19 +++++++++---- .../data/invoice_it_template.xml | 2 +- .../views/invoice_it_template.xml | 2 +- 5 files changed, 29 insertions(+), 39 deletions(-) diff --git a/l10n_it_fatturapa_out/data/invoice_it_template.xml b/l10n_it_fatturapa_out/data/invoice_it_template.xml index 3144e3786a91..17d6ffe1526e 100644 --- a/l10n_it_fatturapa_out/data/invoice_it_template.xml +++ b/l10n_it_fatturapa_out/data/invoice_it_template.xml @@ -222,29 +222,6 @@ e 'line' per riga di fattura (a seconda del livello in cui sono chiamati) -