Skip to content

Commit

Permalink
test: Update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed Sep 14, 2021
1 parent e8edeec commit 7d61181
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,8 @@ def update_tax_witholding_category(company, account, date):
fiscal_year = get_fiscal_year(date=date, company=company)

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],
Expand Down

0 comments on commit 7d61181

Please sign in to comment.