Merge pull request #28503 from frappe/mergify/bp/version-13-pre-release/pr-28469

fix: FY query returning None for new company (backport #28469)
This commit is contained in:
Deepesh Garg
2021-11-22 20:20:17 +05:30
committed by GitHub

View File

@@ -825,7 +825,7 @@ def set_tax_withholding_category(company):
accounts = [dict(company=company, account=tds_account)]
try:
fiscal_year_details = get_fiscal_year(today(), verbose=0, company=company)
fiscal_year_details = get_fiscal_year(today(), verbose=0)
except FiscalYearError:
pass