refactor: move RFQ supplier disabled filter to link_filters

Static filters with no doc-dependent values belong on the field
definition, not in JS. Matches the existing pattern used for
Warehouse/Item link_filters elsewhere (e.g. job_card_item.json,
product_bundle_item.json).
This commit is contained in:
Jatin3128
2026-08-11 15:35:28 +05:30
parent 8c0a945417
commit 6b35c51ff1
2 changed files with 1 additions and 4 deletions

View File

@@ -22,10 +22,6 @@ frappe.ui.form.on("Request for Quotation", {
};
};
frm.set_query("supplier", "suppliers", function () {
return { filters: { disabled: 0 } };
});
frm.set_query("warehouse", "items", () => ({
filters: {
company: frm.doc.company,

View File

@@ -40,6 +40,7 @@
"fieldtype": "Link",
"in_list_view": 1,
"label": "Supplier",
"link_filters": "[[\"Supplier\",\"disabled\",\"=\",0]]",
"options": "Supplier",
"reqd": 1
},