fix: check for tax_rate (#24348)

This commit is contained in:
Jannat Patel
2021-01-13 20:57:15 +05:30
committed by GitHub
parent 7e01cacf8c
commit 4d83564188

View File

@@ -255,6 +255,7 @@ class Gstr1Report(object):
for item_code, tax_amounts in item_wise_tax_detail.items(): for item_code, tax_amounts in item_wise_tax_detail.items():
tax_rate = tax_amounts[0] tax_rate = tax_amounts[0]
if tax_rate:
if cgst_or_sgst: if cgst_or_sgst:
tax_rate *= 2 tax_rate *= 2
if parent not in self.cgst_sgst_invoices: if parent not in self.cgst_sgst_invoices: