mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
frappe call only when there is item
This commit is contained in:
@@ -151,6 +151,7 @@ frappe.ui.form.on("Production Order", {
|
||||
},
|
||||
|
||||
production_item: function(frm) {
|
||||
if (frm.doc.production_item) {
|
||||
frappe.call({
|
||||
method: "erpnext.manufacturing.doctype.production_order.production_order.get_item_details",
|
||||
args: {
|
||||
@@ -171,6 +172,7 @@ frappe.ui.form.on("Production Order", {
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
project: function(frm) {
|
||||
|
||||
Reference in New Issue
Block a user