minor fixes in stock entry
This commit is contained in:
parent
dc35137e20
commit
d270559fa9
@ -360,7 +360,8 @@ cur_frm.cscript.uom = function(doc, cdt, cdn) {
|
|||||||
|
|
||||||
cur_frm.cscript.validate = function(doc, cdt, cdn) {
|
cur_frm.cscript.validate = function(doc, cdt, cdn) {
|
||||||
cur_frm.cscript.validate_items(doc);
|
cur_frm.cscript.validate_items(doc);
|
||||||
validated = cur_frm.cscript.get_doctype_docname() ? true : false;
|
if($.inArray(cur_frm.doc.purpose, ["Purchase Return", "Sales Return"])!==-1)
|
||||||
|
validated = cur_frm.cscript.get_doctype_docname() ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
cur_frm.cscript.validate_items = function(doc) {
|
cur_frm.cscript.validate_items = function(doc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user