fix: update fiscal year filter to use mandatory_depends_on instead of reqd

(cherry picked from commit 79d6a51e1e)
This commit is contained in:
Abdeali Chharchhoda
2026-04-23 15:54:42 +05:30
committed by Mergify
parent fba78711cc
commit 6570796fba

View File

@@ -422,16 +422,16 @@ function get_filters() {
label: __("Start Year"), label: __("Start Year"),
fieldtype: "Link", fieldtype: "Link",
options: "Fiscal Year", options: "Fiscal Year",
reqd: 1,
depends_on: "eval:doc.filter_based_on == 'Fiscal Year'", depends_on: "eval:doc.filter_based_on == 'Fiscal Year'",
mandatory_depends_on: "eval:doc.filter_based_on == 'Fiscal Year'",
}, },
{ {
fieldname: "to_fiscal_year", fieldname: "to_fiscal_year",
label: __("End Year"), label: __("End Year"),
fieldtype: "Link", fieldtype: "Link",
options: "Fiscal Year", options: "Fiscal Year",
reqd: 1,
depends_on: "eval:doc.filter_based_on == 'Fiscal Year'", depends_on: "eval:doc.filter_based_on == 'Fiscal Year'",
mandatory_depends_on: "eval:doc.filter_based_on == 'Fiscal Year'",
}, },
{ {
fieldname: "periodicity", fieldname: "periodicity",