fix(RFQ): load up to 100 suppliers

This commit is contained in:
barredterra
2024-03-19 02:22:52 +01:00
parent 3dd6686d8a
commit 8d1b530070

View File

@@ -518,16 +518,15 @@ erpnext.buying.RequestforQuotationController = class RequestforQuotationControll
callback: load_suppliers,
});
} else if (args.supplier_group) {
return frappe.call({
method: "frappe.client.get_list",
args: {
doctype: "Supplier",
frappe.db
.get_list("Supplier", {
filters: { supplier_group: args.supplier_group },
limit: 100,
order_by: "name",
fields: ["name"],
filters: [["Supplier", "supplier_group", "=", args.supplier_group]],
},
callback: load_suppliers,
});
})
.then((r) => {
load_suppliers({ message: r });
});
}
},
});