chore: mass trailing whitespace and EOF fixes

This commit is contained in:
Ankush Menat
2021-08-19 13:41:10 +05:30
parent 869e36c33a
commit 4551d7d602
1190 changed files with 1352 additions and 1604 deletions

View File

@@ -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:

View File

@@ -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"]

View File

@@ -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"] = ""

View File

@@ -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()

View File

@@ -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

View File

@@ -82,4 +82,4 @@
</script>
<style>
</style>
</style>

View File

@@ -35,4 +35,4 @@
</div>
<style>
</style>
</style>