fix: Set the default filter in All Trends Report

This commit is contained in:
Nihantra C. Patel
2023-08-31 13:38:42 +05:30
committed by GitHub
parent 420536ca52
commit 132957f59e

View File

@@ -28,7 +28,7 @@ erpnext.get_purchase_trends_filters = function() {
"label": __("Fiscal Year"), "label": __("Fiscal Year"),
"fieldtype": "Link", "fieldtype": "Link",
"options":'Fiscal Year', "options":'Fiscal Year',
"default": frappe.sys_defaults.fiscal_year "default": erpnext.utils.get_fiscal_year(frappe.datetime.get_today())
}, },
{ {
"fieldname":"period_based_on", "fieldname":"period_based_on",