From: Sven Schöling Date: Thu, 11 Sep 2014 15:02:04 +0000 (+0200) Subject: PriceRule: price_from_rule für Festpreise gefixt. X-Git-Tag: release-3.2.0beta~149 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a3f9809d36d7b3c784506c915889043f39396ffe;p=kivitendo-erp.git PriceRule: price_from_rule für Festpreise gefixt. --- diff --git a/SL/PriceSource/PriceRules.pm b/SL/PriceSource/PriceRules.pm index e225fa7d0..1fee03200 100644 --- a/SL/PriceSource/PriceRules.pm +++ b/SL/PriceSource/PriceRules.pm @@ -43,7 +43,7 @@ sub price_for_rule { 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 {