From 288570acdea0bfb5cea54cff2e4f6d998e005b10 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Fri, 31 Oct 2025 13:59:58 +0530 Subject: [PATCH] Revert "refactor: add supplier filter in buying (backport #50013) (#50107)" This reverts commit abb210bd18358149e77fa16dd08578c823efd6e1. --- erpnext/public/js/controllers/buying.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/erpnext/public/js/controllers/buying.js b/erpnext/public/js/controllers/buying.js index e0e68c37451..8c0be8042ac 100644 --- a/erpnext/public/js/controllers/buying.js +++ b/erpnext/public/js/controllers/buying.js @@ -17,17 +17,7 @@ erpnext.buying = { this.setup_queries(doc, cdt, cdn); super.onload(); - if (["Purchase Order", "Purchase Receipt", "Purchase Invoice"].includes(this.frm.doctype)) { - this.frm.set_query("supplier", function () { - return { - filters: { - is_transporter: 0, - }, - }; - }); - } - - this.frm.set_query("shipping_rule", function () { + this.frm.set_query('shipping_rule', function() { return { filters: { "shipping_rule_type": "Buying"