Skip to content

Commit

Permalink
Merge pull request #30500 from deepeshgarg007/auto_tax_gst
Browse files Browse the repository at this point in the history
fix(India): Tax fetching based on tax category
  • Loading branch information
deepeshgarg007 authored Mar 31, 2022
2 parents 96fc6ad + e063147 commit 02dab02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/regional/india/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ def get_regional_address_details(party_details, doctype, company):

if tax_template_by_category:
party_details["taxes_and_charges"] = tax_template_by_category
party_details["taxes"] = get_taxes_and_charges(master_doctype, tax_template_by_category)
return party_details

if not party_details.place_of_supply:
Expand All @@ -292,7 +293,7 @@ def get_regional_address_details(party_details, doctype, company):
return party_details

party_details["taxes_and_charges"] = default_tax
party_details.taxes = get_taxes_and_charges(master_doctype, default_tax)
party_details["taxes"] = get_taxes_and_charges(master_doctype, default_tax)

return party_details

Expand Down

0 comments on commit 02dab02

Please sign in to comment.