mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 14:32:13 +00:00
fix: auto email report creation (#46343)
* fix(financial_statements): mandatory based on filter_based_on value * fix(financial_statements.js): include options for multiselect
This commit is contained in:
@@ -189,15 +189,15 @@ function get_filters() {
|
|||||||
fieldname: "period_start_date",
|
fieldname: "period_start_date",
|
||||||
label: __("Start Date"),
|
label: __("Start Date"),
|
||||||
fieldtype: "Date",
|
fieldtype: "Date",
|
||||||
reqd: 1,
|
|
||||||
depends_on: "eval:doc.filter_based_on == 'Date Range'",
|
depends_on: "eval:doc.filter_based_on == 'Date Range'",
|
||||||
|
mandatory_depends_on: "eval:doc.filter_based_on == 'Date Range'",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldname: "period_end_date",
|
fieldname: "period_end_date",
|
||||||
label: __("End Date"),
|
label: __("End Date"),
|
||||||
fieldtype: "Date",
|
fieldtype: "Date",
|
||||||
reqd: 1,
|
|
||||||
depends_on: "eval:doc.filter_based_on == 'Date Range'",
|
depends_on: "eval:doc.filter_based_on == 'Date Range'",
|
||||||
|
mandatory_depends_on: "eval:doc.filter_based_on == 'Date Range'",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldname: "from_fiscal_year",
|
fieldname: "from_fiscal_year",
|
||||||
@@ -247,6 +247,7 @@ function get_filters() {
|
|||||||
company: frappe.query_report.get_filter_value("company"),
|
company: frappe.query_report.get_filter_value("company"),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
options: "Cost Center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldname: "project",
|
fieldname: "project",
|
||||||
@@ -257,6 +258,7 @@ function get_filters() {
|
|||||||
company: frappe.query_report.get_filter_value("company"),
|
company: frappe.query_report.get_filter_value("company"),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
options: "Project",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user