Skip to content

Commit 6570796

Browse files
Abdeali099mergify[bot]
authored andcommitted
fix: update fiscal year filter to use mandatory_depends_on instead of reqd
(cherry picked from commit 79d6a51)
1 parent fba7871 commit 6570796

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

erpnext/public/js/financial_statements.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,16 +422,16 @@ function get_filters() {
422422
label: __("Start Year"),
423423
fieldtype: "Link",
424424
options: "Fiscal Year",
425-
reqd: 1,
426425
depends_on: "eval:doc.filter_based_on == 'Fiscal Year'",
426+
mandatory_depends_on: "eval:doc.filter_based_on == 'Fiscal Year'",
427427
},
428428
{
429429
fieldname: "to_fiscal_year",
430430
label: __("End Year"),
431431
fieldtype: "Link",
432432
options: "Fiscal Year",
433-
reqd: 1,
434433
depends_on: "eval:doc.filter_based_on == 'Fiscal Year'",
434+
mandatory_depends_on: "eval:doc.filter_based_on == 'Fiscal Year'",
435435
},
436436
{
437437
fieldname: "periodicity",

0 commit comments

Comments
 (0)