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