Tomas,
are you sure that anything related to tax is sent to the payment
gateway? I see in the satchmo source repeatedly:
amount = order.balance
which is corectly rounded up and there is no number sent about tax to
payment gateway.
Maybe your payment module does it differently.
Maybe your acountant wants "nice" classic invoices where every number
is rounded before addition and he dislikes that computers arithmetics
is otherwise accurate than human with a pencil. It can be important
but it is not related to your paid_in_full.
(For completness: Authorizenet is the only payment processor which
does some its own tax calculations for subscription products. I expect
that your problem is not related to subscription.)
-- Hynek
On 28 lis, 23:04, Tomas Neme <[email protected]> wrote:
> 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.