mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
fix: Assign given price list if POS price list is not available
This commit is contained in:
@@ -164,7 +164,7 @@ def set_price_list(out, party, party_type, given_price_list, pos=None):
|
|||||||
price_list = customer_price_list
|
price_list = customer_price_list
|
||||||
else:
|
else:
|
||||||
pos_price_list = frappe.get_value('Pos Profile', pos, 'selling_price_list')
|
pos_price_list = frappe.get_value('Pos Profile', pos, 'selling_price_list')
|
||||||
price_list = pos_price_list
|
price_list = pos_price_list or given_price_list
|
||||||
else:
|
else:
|
||||||
price_list = get_default_price_list(party) or given_price_list
|
price_list = get_default_price_list(party) or given_price_list
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user