From: Sven Schöling Date: Tue, 14 Oct 2014 15:55:25 +0000 (+0200) Subject: PriceRule: Anpassung von Preisregeln auf Preisquellenrabatte X-Git-Tag: release-3.2.0beta~124 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=fd938095aa302bb170d501c07c235c86ae8f0b47;p=kivitendo-erp.git PriceRule: Anpassung von Preisregeln auf Preisquellenrabatte --- diff --git a/SL/PriceSource/PriceRules.pm b/SL/PriceSource/PriceRules.pm index 15be4d4b1..697369d0f 100644 --- a/SL/PriceSource/PriceRules.pm +++ b/SL/PriceSource/PriceRules.pm @@ -26,6 +26,8 @@ sub available_prices { map { $self->make_price_from_rule($_) } @$rules; } +sub available_discounts { } + sub price_from_source { my ($self, $source, $spec) = @_; @@ -46,6 +48,8 @@ sub best_price { $self->make_price_from_rule($min_price); } +sub best_discount { } + sub price_for_rule { my ($self, $rule) = @_; $rule->price_or_discount