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

This commit is contained in:
Abdeali Chharchhoda
2026-04-23 15:54:42 +05:30
parent 5a915cb45e
commit 79d6a51e1e

View File

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