mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-14 10:13:57 +00:00
fix(material request): set default buying price list if not exists
(cherry picked from commit 9c0ff14060)
This commit is contained in:
@@ -79,7 +79,9 @@ frappe.ui.form.on("Material Request", {
|
||||
});
|
||||
|
||||
erpnext.accounts.dimensions.setup_dimension_filters(frm, frm.doctype);
|
||||
frm.doc.buying_price_list = frappe.defaults.get_default("buying_price_list");
|
||||
if (!frm.doc.buying_price_list) {
|
||||
frm.doc.buying_price_list = frappe.defaults.get_default("buying_price_list");
|
||||
}
|
||||
},
|
||||
|
||||
company: function (frm) {
|
||||
|
||||
Reference in New Issue
Block a user