mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 23:31:20 +00:00
fix: default fiscal year in report v14 (#42960)
* loads the fiscal year from the calendar year * loads the fiscal year from the calendar year * loads the fiscal year from the calendar year * loads the fiscal year from the calendar year * fix: default fiscal year in report v14 * fix: default fiscal year in report v14 --prettier --------- Co-authored-by: Nihantra C. Patel <141945075+Nihantra-Patel@users.noreply.github.com>
This commit is contained in:
@@ -43,7 +43,7 @@ function get_filters() {
|
|||||||
label: __("From Fiscal Year"),
|
label: __("From 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()),
|
||||||
reqd: 1,
|
reqd: 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -51,7 +51,7 @@ function get_filters() {
|
|||||||
label: __("To Fiscal Year"),
|
label: __("To 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()),
|
||||||
reqd: 1,
|
reqd: 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ frappe.query_reports["Sales Partner Target Variance based on Item Group"] = {
|
|||||||
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: "doctype",
|
fieldname: "doctype",
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ frappe.query_reports["Sales Person Target Variance Based On Item Group"] = {
|
|||||||
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: "doctype",
|
fieldname: "doctype",
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ frappe.query_reports["Territory Target Variance Based On Item Group"] = {
|
|||||||
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: "doctype",
|
fieldname: "doctype",
|
||||||
|
|||||||
Reference in New Issue
Block a user