mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
Resetting batch and serial nos checks
This commit is contained in:
@@ -121,7 +121,15 @@ frappe.ui.form.on("Item", {
|
|||||||
if(!frm.doc.description)
|
if(!frm.doc.description)
|
||||||
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user