Merge pull request #29094 from frappe/mergify/bp/develop/pr-29092

fix(India): Tax and Charges template not getting fetched based on tax category assigned (backport #29092)
This commit is contained in:
Deepesh Garg 2022-01-02 19:42:38 +05:30 committed by GitHub
commit f56deebb97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1236,7 +1236,7 @@ def check_gl_entries(doc, voucher_no, expected_gle, posting_date):
def update_tax_witholding_category(company, account):
from erpnext.accounts.utils import get_fiscal_year
fiscal_year = get_fiscal_year(fiscal_year='2021')
fiscal_year = get_fiscal_year(date=nowdate())
if not frappe.db.get_value('Tax Withholding Rate',
{'parent': 'TDS - 194 - Dividends - Individual', 'from_date': ('>=', fiscal_year[1]),

View File

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