From: Sven Schöling Date: Mon, 8 Dec 2014 11:31:59 +0000 (+0100) Subject: PriceRule: validate auf reductions angepasst X-Git-Tag: release-3.2.1~8 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a47155b8430974b25bea606b068cd6ed4f067757;p=kivitendo-erp.git PriceRule: validate auf reductions angepasst --- 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()) {