PriceSource: Nicht rabbatierfähige Waren beachten.
authorSven Schöling <s.schoeling@linet-services.de>
Tue, 7 Apr 2015 12:17:52 +0000 (14:17 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Tue, 7 Apr 2015 12:17:52 +0000 (14:17 +0200)
SL/PriceSource.pm

index e7a5906..ac419a6 100644 (file)
@@ -35,6 +35,7 @@ sub available_prices {
 }
 
 sub available_discounts {
+  return if $_[0]->record_item->part->not_discountable;
   map { $_->available_discounts } $_[0]->all_price_sources;
 }