mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
chore: Update patch
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import frappe
|
import frappe
|
||||||
|
from frappe.utils import nowdate
|
||||||
|
|
||||||
from erpnext.accounts.utils import get_fiscal_year
|
from erpnext.accounts.utils import get_fiscal_year
|
||||||
|
|
||||||
@@ -6,7 +7,7 @@ from erpnext.accounts.utils import get_fiscal_year
|
|||||||
def execute():
|
def execute():
|
||||||
# Only do for current fiscal year, no need to repost for all years
|
# Only do for current fiscal year, no need to repost for all years
|
||||||
for company in frappe.get_all("Company"):
|
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")
|
purchase_invoice = frappe.qb.DocType("Purchase Invoice")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user