From 0b6b73b5004fc61b83cdc0563c41318c7b8ead7a Mon Sep 17 00:00:00 2001 From: Sudharsanan11 Date: Tue, 16 Dec 2025 17:58:20 +0530 Subject: [PATCH] fix(buying): add disabled filter for supplier (cherry picked from commit 6cc2290f6e0939000a4a6f5e903cf4e850bda5e8) # Conflicts: # erpnext/buying/doctype/request_for_quotation/request_for_quotation.js --- .../request_for_quotation/request_for_quotation.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js index e88a98759d0..5782a3960ad 100644 --- a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js +++ b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js @@ -549,10 +549,20 @@ erpnext.buying.RequestforQuotationController = class RequestforQuotationControll callback: load_suppliers, }); } else if (args.supplier_group) { +<<<<<<< HEAD return frappe.call({ method: "frappe.client.get_list", args: { doctype: "Supplier", +======= + frappe.db + .get_list("Supplier", { + filters: { + supplier_group: args.supplier_group, + disabled: 0, + }, + limit: 100, +>>>>>>> 6cc2290f6e (fix(buying): add disabled filter for supplier) order_by: "name", fields: ["name"], filters: [["Supplier", "supplier_group", "=", args.supplier_group]],