mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
chore: mass trailing whitespace and EOF fixes
This commit is contained in:
@@ -31,7 +31,7 @@ class ShoppingCartSettings(Document):
|
||||
[self.price_list], "currency")
|
||||
|
||||
price_list_currency_map = dict(price_list_currency_map)
|
||||
|
||||
|
||||
# check if all price lists have a currency
|
||||
for price_list, currency in price_list_currency_map.items():
|
||||
if not currency:
|
||||
|
||||
@@ -36,7 +36,7 @@ class TestShoppingCartSettings(unittest.TestCase):
|
||||
cart_settings.enabled = 1
|
||||
if not frappe.db.get_value("Tax Rule", {"use_for_shopping_cart": 1}, "name"):
|
||||
self.assertRaises(ShoppingCartSetupError, cart_settings.validate_tax_rule)
|
||||
|
||||
|
||||
frappe.db.sql("update `tabTax Rule` set use_for_shopping_cart = 1")
|
||||
|
||||
test_dependencies = ["Tax Rule"]
|
||||
test_dependencies = ["Tax Rule"]
|
||||
|
||||
@@ -66,4 +66,4 @@ def set_product_info_for_website(item):
|
||||
item["price_sales_uom"] = product_info.get("price").get("formatted_price_sales_uom")
|
||||
else:
|
||||
item["price_stock_uom"] = ""
|
||||
item["price_sales_uom"] = ""
|
||||
item["price_sales_uom"] = ""
|
||||
|
||||
@@ -123,4 +123,4 @@ def remove_document_from_index(path):
|
||||
|
||||
def build_index_for_all_routes():
|
||||
search = ProductSearch(INDEX_NAME)
|
||||
return search.build()
|
||||
return search.build()
|
||||
|
||||
@@ -38,4 +38,4 @@ def check_customer_or_supplier():
|
||||
if link.link_doctype in ('Customer', 'Supplier'):
|
||||
return link.link_doctype, link.link_name
|
||||
|
||||
return 'Customer', None
|
||||
return 'Customer', None
|
||||
|
||||
@@ -82,4 +82,4 @@
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -35,4 +35,4 @@
|
||||
</div>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user