Merge remote branch 'upstream/WebGUI8' into 8-merge

This commit is contained in:
Doug Bell 2010-07-14 18:26:42 -05:00
commit 3ae21d6349
6 changed files with 517 additions and 309 deletions

View file

@ -985,7 +985,8 @@ sub www_checkout {
##Handle rounding errors, and checkout immediately if the amount is 0 since
##at least the ITransact driver won't accept $0 checkout.
if (sprintf('%.2f', $total + $self->calculateShopCreditDeduction($total)) eq '0.00') {
my $transaction = WebGUI::Shop::Transaction->create($session, {cart => $self});
my $transaction = WebGUI::Shop::Transaction->new({session => $session, cart => $self});
$transaction->write;
$transaction->completePurchase('zero', 'success', 'success');
$self->onCompletePurchase;
$transaction->sendNotifications();