From 99a3593a0d6b30a257a003f20e430a1aacfbca7e Mon Sep 17 00:00:00 2001 From: Shreyas Patil Date: Wed, 16 Nov 2016 11:16:44 +0530 Subject: [PATCH] [Fix] Make from_date and to_date for stock balance query report as mandatory fields (#6948) --- erpnext/stock/report/stock_balance/stock_balance.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/stock/report/stock_balance/stock_balance.js b/erpnext/stock/report/stock_balance/stock_balance.js index 43b3657d10..434c092a60 100644 --- a/erpnext/stock/report/stock_balance/stock_balance.js +++ b/erpnext/stock/report/stock_balance/stock_balance.js @@ -8,6 +8,7 @@ frappe.query_reports["Stock Balance"] = { "label": __("From Date"), "fieldtype": "Date", "width": "80", + "reqd": 1, "default": sys_defaults.year_start_date, }, { @@ -15,6 +16,7 @@ frappe.query_reports["Stock Balance"] = { "label": __("To Date"), "fieldtype": "Date", "width": "80", + "reqd": 1, "default": frappe.datetime.get_today() }, {