Move Shop/Transaction to Moose. Change core modules to suit.
This commit is contained in:
parent
0fe388761f
commit
04a16ed87c
5 changed files with 516 additions and 308 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue