Merge pull request #17705 from rohitwaghchaure/not_able_to_submit_sales_invoice

fix: not able to submit sales invoice
This commit is contained in:
rohitwaghchaure
2019-05-22 22:31:37 +05:30
committed by GitHub

View File

@@ -80,8 +80,7 @@ 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
and item.charge_type != 'Actual' and tax_data.get("0.0")):
if item.tax_rate == 0.0 and item.tax_amount == 0.0 and tax_data.get("0.0"):
item.tax_exemption_reason = tax_data["0.0"]["tax_exemption_reason"]
customer_po_data = {}