mark expected delivery date mandatory for Sales Order of type Sales

This commit is contained in:
Anand Doshi 2012-11-28 18:28:23 +05:30
parent 624334aed1
commit 342e3c4616

View File

@ -92,6 +92,16 @@ cur_frm.cscript.refresh = function(doc, cdt, cdn) {
cur_frm.add_custom_button('Unstop', cur_frm.cscript['Unstop Sales Order']);
}
}
cur_frm.cscript.order_type(doc);
}
cur_frm.cscript.order_type = function(doc) {
if(doc.order_type == "Sales") {
cur_frm.toggle_reqd("delivery_date", 1);
} else {
cur_frm.toggle_reqd("delivery_date", 0);
}
}
//customer