mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-25 13:03:02 +00:00
Merge pull request #55815 from frappe/mergify/bp/version-16-hotfix/pr-55813
fix(bom): fetch routing operations when Routing is selected (backport #55813)
This commit is contained in:
@@ -175,6 +175,9 @@ frappe.ui.form.on("BOM", {
|
|||||||
with_operations: function (frm) {
|
with_operations: function (frm) {
|
||||||
frm.set_df_property("fg_based_operating_cost", "hidden", frm.doc.with_operations ? 1 : 0);
|
frm.set_df_property("fg_based_operating_cost", "hidden", frm.doc.with_operations ? 1 : 0);
|
||||||
frm.trigger("toggle_fields_for_semi_finished_goods");
|
frm.trigger("toggle_fields_for_semi_finished_goods");
|
||||||
|
if (frm.doc.routing && frm.doc.with_operations && !frm.doc.operations.length) {
|
||||||
|
frm.trigger("routing");
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
fg_based_operating_cost: function (frm) {
|
fg_based_operating_cost: function (frm) {
|
||||||
@@ -583,7 +586,7 @@ frappe.ui.form.on("BOM", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
routing(frm) {
|
routing(frm) {
|
||||||
if (frm.doc.routing && frm.doc.with_operations && !frm.doc.operations) {
|
if (frm.doc.routing && frm.doc.with_operations && !frm.doc.operations.length) {
|
||||||
frappe.call({
|
frappe.call({
|
||||||
doc: frm.doc,
|
doc: frm.doc,
|
||||||
method: "get_routing",
|
method: "get_routing",
|
||||||
|
|||||||
Reference in New Issue
Block a user