PriceSource: Bei Kundenrabatten nicht rabattierfähige Artikel ignorieren
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 20 Aug 2015 08:36:59 +0000 (10:36 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 20 Aug 2015 08:36:59 +0000 (10:36 +0200)
SL/PriceSource/Customer.pm

index 6bf06bc..52d35ee 100644 (file)
@@ -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;