Coverage for /home/tribaal/workspace/django-shop/shop/cart/modifiers/tax_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 -*-
""" A basic Tax calculator: it simply adds a taxes field to the *order*, and makes it a fixed percentage of the subtotal (10%)
Obviously, this is only provided as an example, and anything serious should use a more dynamic configuration system, such as settings or models to hold the tax values... """
""" Add a field on cart.extra_price_fields: """
""" This adds a 10% tax cart modifier, calculated on the item's base price, plus any modifier applied to the cart item *so far* (order matters!).
Make sure the moment you apply taxes comply with your local regulations! Some countries insist that taxes are calculated after/before discounts, and so forth """
|