Skip to content

Commit

Permalink
[Fix] Make from_date and to_date for stock balance query report as ma…
Browse files Browse the repository at this point in the history
…ndatory fields (#6948)
  • Loading branch information
shreyasp authored and rmehta committed Nov 16, 2016
1 parent 7be942d commit 99a3593
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/stock/report/stock_balance/stock_balance.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ frappe.query_reports["Stock Balance"] = {
"label": __("From Date"),
"fieldtype": "Date",
"width": "80",
"reqd": 1,
"default": sys_defaults.year_start_date,
},
{
"fieldname":"to_date",
"label": __("To Date"),
"fieldtype": "Date",
"width": "80",
"reqd": 1,
"default": frappe.datetime.get_today()
},
{
Expand Down

0 comments on commit 99a3593

Please sign in to comment.