Skip to content

Commit 08f709c

Browse files
fix: italy localization, not able to submit sales invoice
1 parent a849f6e commit 08f709c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

erpnext/regional/italy/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ def prepare_invoice(invoice, progressive_number):
8080
invoice.stamp_duty = stamp_duty_charge_row.tax_amount
8181

8282
for item in invoice.e_invoice_items:
83-
if item.tax_rate == 0.0 and item.tax_amount == 0.0:
83+
if (item.tax_rate == 0.0 and item.tax_amount == 0.0
84+
and item.charge_type != 'Actual' and tax_data.get("0.0")):
8485
item.tax_exemption_reason = tax_data["0.0"]["tax_exemption_reason"]
8586

8687
customer_po_data = {}

0 commit comments

Comments
 (0)