fix(UX): hide RM table(Job Card) if material transfer is against work order (backport #28746)
* fix(UX): hide RM table(Job Card) if material transfer is against work order (#28746)
(cherry picked from commit cc8c0595e2)
# Conflicts:
# erpnext/manufacturing/doctype/job_card/job_card.js
* chore: resolve conflicts
Co-authored-by: Noah Jacob <noahjacobkurian@gmail.com>
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -76,6 +76,15 @@ frappe.ui.form.on('Job Card', {
|
||||
frm.trigger("prepare_timer_buttons");
|
||||
}
|
||||
frm.trigger("setup_quality_inspection");
|
||||
|
||||
if (frm.doc.work_order) {
|
||||
frappe.db.get_value('Work Order', frm.doc.work_order,
|
||||
'transfer_material_against').then((r) => {
|
||||
if (r.message.transfer_material_against == 'Work Order') {
|
||||
frm.set_df_property('items', 'hidden', 1);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
setup_quality_inspection: function(frm) {
|
||||
|
||||
Reference in New Issue
Block a user