mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-01 20:48:27 +00:00
fix: update fiscal year filter to use mandatory_depends_on instead of reqd
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user