Revision a3f9809d
Von Sven Schöling vor mehr als 10 Jahren hinzugefügt
SL/PriceSource/PriceRules.pm | ||
---|---|---|
my ($self, $rule) = @_;
|
||
$rule->price_or_discount
|
||
? (1 - $rule->discount / 100) * ($rule->is_sales ? $self->part->sellprice : $self->part->lastcost)
|
||
: $_->price;
|
||
: $rule->price;
|
||
}
|
||
|
||
sub make_price_from_rule {
|
Auch abrufbar als: Unified diff
PriceRule: price_from_rule für Festpreise gefixt.