[Fix] Make from_date and to_date for stock balance query report as mandatory fields (#6948)
diff --git a/erpnext/stock/report/stock_balance/stock_balance.js b/erpnext/stock/report/stock_balance/stock_balance.js
index 43b3657..434c092 100644
--- a/erpnext/stock/report/stock_balance/stock_balance.js
+++ b/erpnext/stock/report/stock_balance/stock_balance.js
@@ -8,6 +8,7 @@
"label": __("From Date"),
"fieldtype": "Date",
"width": "80",
+ "reqd": 1,
"default": sys_defaults.year_start_date,
},
{
@@ -15,6 +16,7 @@
"label": __("To Date"),
"fieldtype": "Date",
"width": "80",
+ "reqd": 1,
"default": frappe.datetime.get_today()
},
{