From 0fb37d4f2adc3641c8f411ba400c6b6b91e4800d Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Tue, 9 May 2006 15:23:09 +0000 Subject: [PATCH] fix --- 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 277aacd4f..d5be61a5d 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 ($price > (0 + $pass->{amount})); } elsif ($pass->{type} eq 'amountOff') { # not yet implemented! } elsif ($pass->{type} eq 'percentOff') {