Revert "refactor: add supplier filter in buying"

This commit is contained in:
Mihir Kandoi
2025-10-31 14:00:19 +05:30
committed by GitHub
parent c4b46344be
commit 7f7dd8d0ba
4 changed files with 30 additions and 10 deletions

View File

@@ -17,16 +17,6 @@ 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 () {
return {
filters: {