Fixed a bug in my purchases where tarnsaction amounts were shown that did not take into account the in store credit

used in the transaction.
This commit is contained in:
Martin Kamerbeek 2009-07-15 14:15:06 +00:00
parent 13d1657d21
commit 68a69a9700
2 changed files with 5 additions and 2 deletions

View file

@ -13,6 +13,9 @@
- fixed a bug in the Ogone pay driver where for certain combinations of tax
rates and in store credit a rounding error would prevent checkout at
Ogone. ( Martin Kamerbeek / Oqapi )
- fixed a bug in My Purchases where in store credit would not be taken into
account in the overview yielding zero or neagtive transaction amounts on
the screen. ( Martin Kamerbeek / Oqapi )
7.7.14
- fixed #10606: shelf selector

View file

@ -197,8 +197,8 @@ sub www_managePurchases {
push @{$var->{transactions}}, {
%{$transaction->get},
viewDetailUrl => $self->getUrl('op=account;module=shop;do=viewTransaction;transactionId='.$id),
amount => sprintf("%.2f", $transaction->get('amount')),
amountMinusTax => sprintf( '%.2f', $transaction->get('amount') - $transaction->get('taxes') ),
amount => sprintf( '%.2f', $transaction->get('amount') - $transaction->get('shopCreditDeduction') ),
amountMinusTax => sprintf( '%.2f', $transaction->get('amount') - $transaction->get('shopCreditDeduction') - $transaction->get('taxes') ),
};
}