Merge pull request #28790 from frappe/mergify/bp/develop/pr-28786

fix: Error on Invoice generation (backport #28786)
This commit is contained in:
Deepesh Garg 2021-12-08 14:14:26 +05:30 committed by GitHub
commit 5983ddf65b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,7 +213,7 @@ def get_regional_address_details(party_details, doctype, company):
tax_template_by_category = get_tax_template_based_on_category(master_doctype, company, party_details)
if tax_template_by_category:
party_details.get['taxes_and_charges'] = tax_template_by_category
party_details['taxes_and_charges'] = tax_template_by_category
return
if not party_details.place_of_supply: return party_details