test: Update test case
This commit is contained in:
@@ -1209,7 +1209,8 @@ def update_tax_witholding_category(company, account, date):
|
|||||||
fiscal_year = get_fiscal_year(date=date, company=company)
|
fiscal_year = get_fiscal_year(date=date, company=company)
|
||||||
|
|
||||||
if not frappe.db.get_value('Tax Withholding Rate',
|
if not frappe.db.get_value('Tax Withholding Rate',
|
||||||
{'parent': 'TDS - 194 - Dividends - Individual', 'fiscal_year': fiscal_year[0]}):
|
{'parent': 'TDS - 194 - Dividends - Individual', 'from_date': ('>=', fiscal_year[1]),
|
||||||
|
'to_date': ('<=', fiscal_year[2])}):
|
||||||
tds_category = frappe.get_doc('Tax Withholding Category', 'TDS - 194 - Dividends - Individual')
|
tds_category = frappe.get_doc('Tax Withholding Category', 'TDS - 194 - Dividends - Individual')
|
||||||
tds_category.append('rates', {
|
tds_category.append('rates', {
|
||||||
'from_date': fiscal_year[1],
|
'from_date': fiscal_year[1],
|
||||||
|
|||||||
Reference in New Issue
Block a user