mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
[fix] shopping cart - get price list for default territory if no price list is selected
This commit is contained in:
@@ -130,6 +130,9 @@ class ShoppingCartSettings(Document):
|
|||||||
|
|
||||||
def get_price_list(self, billing_territory):
|
def get_price_list(self, billing_territory):
|
||||||
price_list = self.get_name_from_territory(billing_territory, "price_lists", "selling_price_list")
|
price_list = self.get_name_from_territory(billing_territory, "price_lists", "selling_price_list")
|
||||||
|
if not (price_list and price_list[0]):
|
||||||
|
price_list = self.get_name_from_territory(self.default_territory, "price_lists", "selling_price_list")
|
||||||
|
|
||||||
return price_list and price_list[0] or None
|
return price_list and price_list[0] or None
|
||||||
|
|
||||||
def get_tax_master(self, billing_territory):
|
def get_tax_master(self, billing_territory):
|
||||||
|
|||||||
Reference in New Issue
Block a user