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:
Justine Jay
2025-03-06 19:48:26 +08:00
committed by GitHub
parent 9c9c8c9356
commit 5cc251a172

View File

@@ -189,15 +189,15 @@ function get_filters() {
fieldname: "period_start_date",
label: __("Start Date"),
fieldtype: "Date",
reqd: 1,
depends_on: "eval:doc.filter_based_on == 'Date Range'",
mandatory_depends_on: "eval:doc.filter_based_on == 'Date Range'",
},
{
fieldname: "period_end_date",
label: __("End Date"),
fieldtype: "Date",
reqd: 1,
depends_on: "eval:doc.filter_based_on == 'Date Range'",
mandatory_depends_on: "eval:doc.filter_based_on == 'Date Range'",
},
{
fieldname: "from_fiscal_year",
@@ -247,6 +247,7 @@ function get_filters() {
company: frappe.query_report.get_filter_value("company"),
});
},
options: "Cost Center",
},
{
fieldname: "project",
@@ -257,6 +258,7 @@ function get_filters() {
company: frappe.query_report.get_filter_value("company"),
});
},
options: "Project",
},
];