From 08f709c2a2912c789798e1544189d147b587c3f0 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Wed, 22 May 2019 15:28:47 +0530 Subject: [PATCH] fix: italy localization, not able to submit sales invoice --- erpnext/regional/italy/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/regional/italy/utils.py b/erpnext/regional/italy/utils.py index 65fba4723b9..8818935e39e 100644 --- a/erpnext/regional/italy/utils.py +++ b/erpnext/regional/italy/utils.py @@ -80,7 +80,8 @@ def prepare_invoice(invoice, progressive_number): invoice.stamp_duty = stamp_duty_charge_row.tax_amount for item in invoice.e_invoice_items: - if item.tax_rate == 0.0 and item.tax_amount == 0.0: + if (item.tax_rate == 0.0 and item.tax_amount == 0.0 + and item.charge_type != 'Actual' and tax_data.get("0.0")): item.tax_exemption_reason = tax_data["0.0"]["tax_exemption_reason"] customer_po_data = {}