From a3f9809d36d7b3c784506c915889043f39396ffe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 11 Sep 2014 17:02:04 +0200 Subject: [PATCH] =?utf8?q?PriceRule:=20price=5Ffrom=5Frule=20f=C3=BCr=20Fe?= =?utf8?q?stpreise=20gefixt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/PriceSource/PriceRules.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.20.1