Revision a47155b8
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
SL/DB/PriceRule.pm | ||
---|---|---|
48 | 48 |
my ($self, $value) = @_; |
49 | 49 |
|
50 | 50 |
if (@_ > 1) { |
51 |
my $number = $self->price || $self->discount; |
|
51 |
my $number = $self->price || $self->discount || $self->reduction;
|
|
52 | 52 |
if ($value == SL::DB::Manager::PriceRule::PRICE_NEW()) { |
53 | 53 |
$self->price($number); |
54 | 54 |
} elsif ($value == SL::DB::Manager::PriceRule::PRICE_REDUCED_MASTER_DATA()) { |
Auch abrufbar als: Unified diff
PriceRule: validate auf reductions angepasst