minor fixes in stock entry

This commit is contained in:
Nabin Hait 2013-03-30 17:48:37 +05:30
parent dc35137e20
commit d270559fa9

View File

@ -360,6 +360,7 @@ cur_frm.cscript.uom = function(doc, cdt, cdn) {
cur_frm.cscript.validate = function(doc, cdt, cdn) {
cur_frm.cscript.validate_items(doc);
if($.inArray(cur_frm.doc.purpose, ["Purchase Return", "Sales Return"])!==-1)
validated = cur_frm.cscript.get_doctype_docname() ? true : false;
}