Skip to content

Commit

Permalink
fix: Handle missing HSN Codes
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed May 25, 2022
1 parent 22aeacb commit ce3a21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/regional/report/gstr_1/gstr_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def get_items_based_on_tax_rate(self):
hsn_code = self.item_hsn_map.get(item_code)
tax_rate = 0
taxable_value = items.get(item_code)
for rates in hsn_wise_tax_rate.get(hsn_code):
for rates in hsn_wise_tax_rate.get(hsn_code, []):
if taxable_value > rates.get("minimum_taxable_value"):
tax_rate = rates.get("tax_rate")

Expand Down

0 comments on commit ce3a21e

Please sign in to comment.