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:
parent
13d1657d21
commit
68a69a9700
2 changed files with 5 additions and 2 deletions
|
|
@ -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') ),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue