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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user