OK, I ended up changing
satchmo_store.shop.templatetags.satchmo_order.order_details to this:

def order_details(context, order, default_view_tax=False):
    """Output a formatted block giving order details."""

    # I want to have a taxes list (if default_view_tax is False) so I can
show
    #   the rounding on the last tax
    taxes = []
    if not default_view_tax:
        tax_total = 0
        for tax in order.taxes.all():
            taxes.append({
                    'description': tax.description,
                    'tax': tax.tax
                    })
            tax_total += trunc_decimal(tax.tax, 2)

        trunc_total = trunc_decimal(order.tax, 2)
        if tax_total < trunc_total:
            taxes[-1]['tax'] += trunc_total - tax_total
    return {
        'order' : order,
        'default_view_tax' : default_view_tax,
        'order_taxes': taxes,
        'request' : context['request']
    }

If anyone sees any problem with this, or can tell me a better way of
achieving it, any tips will be welcome

-- 
"The whole of Japan is pure invention. There is no such country, there are
no such people" --Oscar Wilde

|_|0|_|
|_|_|0|
|0|0|0|

(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to