[fix] [minor] show missing currency message in shopping cart settings
This commit is contained in:
parent
2840620070
commit
8c002491d0
@ -95,6 +95,11 @@ class DocType(DocListController):
|
|||||||
[d.selling_price_list for d in self.doclist.get({"parentfield": "price_lists"})],
|
[d.selling_price_list for d in self.doclist.get({"parentfield": "price_lists"})],
|
||||||
"currency")
|
"currency")
|
||||||
|
|
||||||
|
# check if all price lists have a currency
|
||||||
|
for price_list, currency in price_list_currency_map.items():
|
||||||
|
if not currency:
|
||||||
|
webnotes.throw("%s: %s" % (_("Currency is missing for Price List"), price_list))
|
||||||
|
|
||||||
expected_to_exist = [currency + "-" + company_currency
|
expected_to_exist = [currency + "-" + company_currency
|
||||||
for currency in price_list_currency_map.values()
|
for currency in price_list_currency_map.values()
|
||||||
if currency != company_currency]
|
if currency != company_currency]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user