mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
fix: Sider, Linter
- Moved return to next line
- Space between function import and body
(cherry picked from commit a780f78f38)
This commit is contained in:
@@ -18,13 +18,15 @@ def set_cart_count(login_manager):
|
|||||||
# make sure user is already a customer
|
# make sure user is already a customer
|
||||||
# before trying to set cart count
|
# before trying to set cart count
|
||||||
user_is_customer = is_customer()
|
user_is_customer = is_customer()
|
||||||
if not user_is_customer: return
|
if not user_is_customer:
|
||||||
|
return
|
||||||
|
|
||||||
if show_cart_count():
|
if show_cart_count():
|
||||||
<<<<<<< HEAD:erpnext/e_commerce/shopping_cart/utils.py
|
<<<<<<< HEAD:erpnext/e_commerce/shopping_cart/utils.py
|
||||||
from erpnext.e_commerce.shopping_cart.cart import set_cart_count
|
from erpnext.e_commerce.shopping_cart.cart import set_cart_count
|
||||||
=======
|
=======
|
||||||
from erpnext.shopping_cart.cart import set_cart_count
|
from erpnext.shopping_cart.cart import set_cart_count
|
||||||
|
|
||||||
# set_cart_count will try to fetch existing cart quotation
|
# set_cart_count will try to fetch existing cart quotation
|
||||||
# or create one if non existent (and create a customer too)
|
# or create one if non existent (and create a customer too)
|
||||||
# cart count is calculated from this quotation's items
|
# cart count is calculated from this quotation's items
|
||||||
|
|||||||
Reference in New Issue
Block a user