From 153675e52ac9230c61ca4d8d57d7f65d8e8008e3 Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Fri, 4 Nov 2022 01:03:45 +0530 Subject: [PATCH] chore: Update patch --- erpnext/patches/v14_0/update_tds_fields.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/patches/v14_0/update_tds_fields.py b/erpnext/patches/v14_0/update_tds_fields.py index 513acb2523..fd33d5450d 100644 --- a/erpnext/patches/v14_0/update_tds_fields.py +++ b/erpnext/patches/v14_0/update_tds_fields.py @@ -1,4 +1,5 @@ import frappe +from frappe.utils import nowdate from erpnext.accounts.utils import get_fiscal_year @@ -6,7 +7,7 @@ from erpnext.accounts.utils import get_fiscal_year def execute(): # Only do for current fiscal year, no need to repost for all years for company in frappe.get_all("Company"): - fiscal_year_details = get_fiscal_year(company=company.name, as_dict=True) + fiscal_year_details = get_fiscal_year(date=nowdate(), company=company.name, as_dict=True) purchase_invoice = frappe.qb.DocType("Purchase Invoice")