From 3df5a5bb15735f0735354b47b9abf324b1033199 Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Tue, 9 May 2006 15:17:53 +0000 Subject: [PATCH] bugfix @)(#$0*()@#%()&$&**&#(@(&*(*&)!#)$*(&!)(*$&^)(!*#&$ --- lib/WebGUI/Commerce/Item/Event.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Commerce/Item/Event.pm b/lib/WebGUI/Commerce/Item/Event.pm index 9cbbcd4cb..277aacd4f 100644 --- a/lib/WebGUI/Commerce/Item/Event.pm +++ b/lib/WebGUI/Commerce/Item/Event.pm @@ -147,7 +147,7 @@ sub priceLineItem { my $numberOfThisPass = $passesInCart{$passId}; # calculate discount. if ($pass->{type} eq 'newPrice') { - $discountedPrice = (0 + $pass->{amount}) if ($discountedPrice > (0 + $pass->{amount})); + $discountedPrice = (0 + $pass->{amount}) if ($discountedPrice < (0 + $pass->{amount})); } elsif ($pass->{type} eq 'amountOff') { # not yet implemented! } elsif ($pass->{type} eq 'percentOff') {