fix: show active bom in the dropdown while making stock entry and MR (#39974) (cherry picked from commit 133f8bd92a33fb15d1ababf8b5f1d4f061426538) Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
parent
46f7569a54
commit
720144898f
@ -250,7 +250,7 @@ frappe.ui.form.on('Material Request', {
|
||||
fields: [
|
||||
{"fieldname":"bom", "fieldtype":"Link", "label":__("BOM"),
|
||||
options:"BOM", reqd: 1, get_query: function() {
|
||||
return {filters: { docstatus:1 }};
|
||||
return {filters: { docstatus:1, "is_active": 1 }};
|
||||
}},
|
||||
{"fieldname":"warehouse", "fieldtype":"Link", "label":__("For Warehouse"),
|
||||
options:"Warehouse", reqd: 1},
|
||||
|
@ -543,7 +543,9 @@ frappe.ui.form.on('Stock Entry', {
|
||||
|
||||
let fields = [
|
||||
{"fieldname":"bom", "fieldtype":"Link", "label":__("BOM"),
|
||||
options:"BOM", reqd: 1, get_query: filters()},
|
||||
options:"BOM", reqd: 1, get_query: () => {
|
||||
return {filters: { docstatus:1, "is_active": 1 }};
|
||||
}},
|
||||
{"fieldname":"source_warehouse", "fieldtype":"Link", "label":__("Source Warehouse"),
|
||||
options:"Warehouse"},
|
||||
{"fieldname":"target_warehouse", "fieldtype":"Link", "label":__("Target Warehouse"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user