refactor: use 'boolean' parameter while fetching FY year

This commit is contained in:
ruthra kumar
2023-11-14 06:44:49 +05:30
parent e07c3aad6b
commit c31ee8ea33
3 changed files with 14 additions and 4 deletions

View File

@@ -53,6 +53,9 @@ GL_REPOSTING_CHUNK = 100
def get_fiscal_year(
date=None, fiscal_year=None, label="Date", verbose=1, company=None, as_dict=False, boolean=False
):
if isinstance(boolean, str):
boolean = frappe.json.loads(boolean)
fiscal_years = get_fiscal_years(
date, fiscal_year, label, verbose, company, as_dict=as_dict, boolean=boolean
)