Usability: Set For Warehouse and Work-in-Progress Warehouse as mandatory, when the user clicks Submit

This commit is contained in:
Anand Doshi 2014-04-26 12:22:30 +05:30
parent 4c90bae16d
commit 3b3d55cda2

View File

@ -10,6 +10,10 @@ $.extend(cur_frm.cscript, {
this.frm.add_fetch("sales_order", "delivery_date", "expected_delivery_date");
},
before_submit: function() {
cur_frm.toggle_reqd(["fg_warehouse", "wip_warehouse"], true);
},
refresh: function(doc, dt, dn) {
this.frm.dashboard.reset();
erpnext.toggle_naming_series();