Merge pull request #29092 from deepeshgarg007/taxes_category_tax_fetch

fix(India): Tax and Charges template not getting fetched based on tax category assigned
This commit is contained in:
Deepesh Garg
2022-01-02 19:06:00 +05:30
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -1213,7 +1213,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='_Test 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

@@ -217,7 +217,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