]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/ShopOrder.pm
Shop: Shop-Order-Items nach OrderItems: Langtext + Beschreibung
[mfinanz.git] / SL / DB / ShopOrder.pm
index ae5d8568f72a730b955f02a72c4c8c34aa726ee3..00399029b094b210189bf2536edce2958dc88663 100644 (file)
@@ -48,7 +48,8 @@ sub convert_to_sales_order {
     }else{
       my $current_order_item = SL::DB::OrderItem->new(
         parts_id            => $part->id,
     }else{
       my $current_order_item = SL::DB::OrderItem->new(
         parts_id            => $part->id,
-        description         => $part->description,
+        description         => $_->description, # description from the shop
+        longdescription     => $part->notes,    # longdescription from parts. TODO locales
         qty                 => $_->quantity,
         sellprice           => $_->price,
         unit                => $part->unit,
         qty                 => $_->quantity,
         sellprice           => $_->price,
         unit                => $part->unit,