mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-21 03:04:34 +00:00
fix: show active bom in the dropdown while making stock entry and MR (#39974)
(cherry picked from commit 133f8bd92a)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -250,7 +250,7 @@ frappe.ui.form.on('Material Request', {
|
|||||||
fields: [
|
fields: [
|
||||||
{"fieldname":"bom", "fieldtype":"Link", "label":__("BOM"),
|
{"fieldname":"bom", "fieldtype":"Link", "label":__("BOM"),
|
||||||
options:"BOM", reqd: 1, get_query: function() {
|
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"),
|
{"fieldname":"warehouse", "fieldtype":"Link", "label":__("For Warehouse"),
|
||||||
options:"Warehouse", reqd: 1},
|
options:"Warehouse", reqd: 1},
|
||||||
|
|||||||
@@ -548,7 +548,9 @@ frappe.ui.form.on('Stock Entry', {
|
|||||||
|
|
||||||
let fields = [
|
let fields = [
|
||||||
{"fieldname":"bom", "fieldtype":"Link", "label":__("BOM"),
|
{"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"),
|
{"fieldname":"source_warehouse", "fieldtype":"Link", "label":__("Source Warehouse"),
|
||||||
options:"Warehouse"},
|
options:"Warehouse"},
|
||||||
{"fieldname":"target_warehouse", "fieldtype":"Link", "label":__("Target Warehouse"),
|
{"fieldname":"target_warehouse", "fieldtype":"Link", "label":__("Target Warehouse"),
|
||||||
|
|||||||
Reference in New Issue
Block a user