From: G. Richardson Date: Sun, 13 Nov 2016 11:45:53 +0000 (+0100) Subject: Order Controller - Sortimentsartikel mit Preis 0 hinzufügen X-Git-Tag: release-3.5.4~1869 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ea1df49dd6040f9b904759faa7f461fff3d95d7c;p=kivitendo-erp.git Order Controller - Sortimentsartikel mit Preis 0 hinzufügen --- diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index f785a7eca..78e9e5436 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -848,7 +848,11 @@ sub _new_item { $item->unit($part->unit) if !$item->unit; my $price_src; - if ($item->sellprice) { + if ( $part->is_assortment ) { + # add assortment items with price 0, as the components carry the price + $price_src = $price_source->price_from_source(""); + $price_src->price(0); + } elsif ($item->sellprice) { $price_src = $price_source->price_from_source(""); $price_src->price($item->sellprice); } else {