From c26b6eab2c0851f03faa58ea30c81dee706e329b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 20 Aug 2015 10:36:59 +0200 Subject: [PATCH] =?utf8?q?PriceSource:=20Bei=20Kundenrabatten=20nicht=20ra?= =?utf8?q?battierf=C3=A4hige=20Artikel=20ignorieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/PriceSource/Customer.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/PriceSource/Customer.pm b/SL/PriceSource/Customer.pm index 6bf06bc30..52d35ee92 100644 --- a/SL/PriceSource/Customer.pm +++ b/SL/PriceSource/Customer.pm @@ -16,6 +16,7 @@ sub available_prices { } sub available_discounts { my ($self, %params) = @_; + return if $self->part->not_discountable; return unless $self->record->is_sales; return unless $self->record->customer; return unless $self->record->customer->discount != 0; -- 2.20.1