Merge pull request #9382 from nick9822/nick9822-patch-1

Resetting batch and serial nos checks
This commit is contained in:
Makarand Bauskar 2017-06-21 16:34:32 +05:30 committed by GitHub
commit b37eb10421

View File

@ -122,6 +122,14 @@ frappe.ui.form.on("Item", {
frm.set_value("description", frm.doc.item_code); frm.set_value("description", frm.doc.item_code);
}, },
is_stock_item: function(frm) {
if(!frm.doc.is_stock_item) {
frm.set_value("has_batch_no", 0);
frm.set_value("create_new_batch", 0);
frm.set_value("has_serial_no", 0);
}
},
copy_from_item_group: function(frm) { copy_from_item_group: function(frm) {
return frm.call({ return frm.call({
doc: frm.doc, doc: frm.doc,