mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
fix: use default buying price list when price list is falsy
(cherry picked from commit 27c73cf9e9)
This commit is contained in:
@@ -255,7 +255,9 @@ frappe.ui.form.on("Material Request", {
|
||||
from_warehouse: item.from_warehouse,
|
||||
warehouse: item.warehouse,
|
||||
doctype: frm.doc.doctype,
|
||||
buying_price_list: frm.doc.price_list,
|
||||
buying_price_list: frm.doc.price_list
|
||||
? frm.doc.price_list
|
||||
: frappe.defaults.get_default("buying_price_list"),
|
||||
currency: frappe.defaults.get_default("Currency"),
|
||||
name: frm.doc.name,
|
||||
qty: item.qty || 1,
|
||||
|
||||
Reference in New Issue
Block a user