fix: local variable 'fiscal_year_details' referenced before assignment (#27658)

This commit is contained in:
Frappe PR Bot
2021-09-26 20:28:06 +05:30
committed by GitHub
parent 646f8b7871
commit 986ca8815d

View File

@@ -795,7 +795,7 @@ def set_salary_components(docs):
def set_tax_withholding_category(company):
accounts = []
fiscal_year = None
fiscal_year_details = None
abbr = frappe.get_value("Company", company, "abbr")
tds_account = frappe.get_value("Account", 'TDS Payable - {0}'.format(abbr), 'name')