From a47155b8430974b25bea606b068cd6ed4f067757 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 8 Dec 2014 12:31:59 +0100 Subject: [PATCH] PriceRule: validate auf reductions angepasst --- SL/DB/PriceRule.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DB/PriceRule.pm b/SL/DB/PriceRule.pm index 3deac758f..e33b3a3e4 100644 --- a/SL/DB/PriceRule.pm +++ b/SL/DB/PriceRule.pm @@ -48,7 +48,7 @@ sub price_type { my ($self, $value) = @_; if (@_ > 1) { - my $number = $self->price || $self->discount; + my $number = $self->price || $self->discount || $self->reduction; if ($value == SL::DB::Manager::PriceRule::PRICE_NEW()) { $self->price($number); } elsif ($value == SL::DB::Manager::PriceRule::PRICE_REDUCED_MASTER_DATA()) { -- 2.20.1