From: Sven Schöling Date: Thu, 20 Aug 2015 08:36:59 +0000 (+0200) Subject: PriceSource: Bei Kundenrabatten nicht rabattierfähige Artikel ignorieren X-Git-Tag: release-3.3.0~7 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c26b6eab2c0851f03faa58ea30c81dee706e329b;p=kivitendo-erp.git PriceSource: Bei Kundenrabatten nicht rabattierfähige Artikel ignorieren --- 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;