fix: Test Case
This commit is contained in:
parent
ee1486209d
commit
c33bbd4f39
@ -1230,12 +1230,14 @@ def check_gl_entries(doc, voucher_no, expected_gle, posting_date):
|
|||||||
def update_tax_witholding_category(company, account):
|
def update_tax_witholding_category(company, account):
|
||||||
from erpnext.accounts.utils import get_fiscal_year
|
from erpnext.accounts.utils import get_fiscal_year
|
||||||
|
|
||||||
fiscal_year = get_fiscal_year(fiscal_year='_Test Fiscal Year 2021')
|
fiscal_year = get_fiscal_year(fiscal_year='2021')
|
||||||
|
|
||||||
if not frappe.db.get_value('Tax Withholding Rate',
|
if not frappe.db.get_value('Tax Withholding Rate',
|
||||||
{'parent': 'TDS - 194 - Dividends - Individual', 'from_date': ('>=', fiscal_year[1]),
|
{'parent': 'TDS - 194 - Dividends - Individual', 'from_date': ('>=', fiscal_year[1]),
|
||||||
'to_date': ('<=', fiscal_year[2])}):
|
'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.set('rates', [])
|
||||||
|
|
||||||
tds_category.append('rates', {
|
tds_category.append('rates', {
|
||||||
'from_date': fiscal_year[1],
|
'from_date': fiscal_year[1],
|
||||||
'to_date': fiscal_year[2],
|
'to_date': fiscal_year[2],
|
||||||
|
Loading…
Reference in New Issue
Block a user