Coverage for /home/tribaal/workspace/django-shop/shop/cart/modifiers/rebate_modifiers : 100.00%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
#-*- coding: utf-8 -*-
""" Add a rebate to a line item depending on the quantity ordered:
This serves as an example mass rebate modifier: if you buy more than 5 items of the same kind, you get 10% off the bunch
>>> cart_item.extra_price_fields.update({'Rebate': Decimal('10.0')}) """ |