mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-02 04:58:29 +00:00
fix: update fiscal year filter to use mandatory_depends_on instead of reqd
(cherry picked from commit 79d6a51e1e)
This commit is contained in:
committed by
Mergify
parent
fba78711cc
commit
6570796fba
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user