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:
commit
f56deebb97
@ -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]),
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user