Did I find the right examples for you? yes no

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/d/j/django-lfs-0.7.7/lfs/order/utils.py   django-lfs(Download)
 
    # Discounts
    discounts = lfs.discounts.utils.get_valid_discounts(request)
    for discount in discounts:
        price = price - discount["price_gross"]

src/d/j/django-lfs-0.7.7/lfs/checkout/views.py   django-lfs(Download)
    cart_tax = cart.get_tax(request) + shipping_costs["tax"] + payment_costs["tax"]
 
    discounts = lfs.discounts.utils.get_valid_discounts(request)
    for discount in discounts:
        cart_price = cart_price - discount["price_gross"]

src/d/j/django-lfs-0.7.7/lfs/cart/views.py   django-lfs(Download)
 
    # Discounts
    discounts = lfs.discounts.utils.get_valid_discounts(request)
    for discount in discounts:
        cart_price = cart_price - discount["price_gross"]

src/d/j/django-lfs-0.7.7/lfs/cart/utils.py   django-lfs(Download)
            # Discounts
            import lfs.discounts.utils
            discounts = lfs.discounts.utils.get_valid_discounts(request)
            for discount in discounts:
                cart_price = cart_price - discount["price"]

src/d/j/django-lfs-HEAD/lfs/order/utils.py   django-lfs(Download)
 
    # Discounts
    discounts = lfs.discounts.utils.get_valid_discounts(request)
    for discount in discounts:
        price = price - discount["price_gross"]

src/d/j/django-lfs-HEAD/lfs/checkout/views.py   django-lfs(Download)
        cart_tax = cart.get_tax(request) + shipping_costs["tax"] + payment_costs["tax"]
 
    discounts = lfs.discounts.utils.get_valid_discounts(request)
    for discount in discounts:
        cart_price = cart_price - discount["price_gross"]

src/d/j/django-lfs-HEAD/lfs/cart/views.py   django-lfs(Download)
 
    # Discounts
    discounts = lfs.discounts.utils.get_valid_discounts(request)
    for discount in discounts:
        cart_price = cart_price - discount["price_gross"]