]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Shop: Shop-Order-Items nach OrderItems: Langtext + Beschreibung
authorJan Büren <jan@kivitendo.de>
Thu, 3 Feb 2022 09:35:59 +0000 (10:35 +0100)
committerJan Büren <jan@kivitendo.de>
Fri, 11 Feb 2022 14:19:57 +0000 (15:19 +0100)
Die Beschreibung aus dem Shop sollte für den Auftrag besser
passen, als das was aktuell in kivi.Parts vorhanden ist.
Langtext wird nicht im Shop angezeigt, aber das darf dann ruhig
aus Parts kommen (so wie beim manuellen Hinzufügen).

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,