test: Update test case

(cherry picked from commit d5a736d11e)
This commit is contained in:
Deepesh Garg
2021-09-01 21:15:24 +05:30
committed by Mergify
parent 35b3bc4e71
commit 46f814d255

View File

@@ -1697,7 +1697,8 @@ def update_tax_witholding_category(company, account):
)
=======
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.append('rates', {
'from_date': fiscal_year[1],