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

This commit is contained in:
Saqib 2021-09-26 16:27:56 +05:30 committed by GitHub
parent dafe99b6e2
commit f8c1c73953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -752,7 +752,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')