]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Controller/Order.pm
GDPDU: Steuerdaten konsistent halten, Zahlenformatierung
[kivitendo-erp.git] / SL / Controller / Order.pm
index 89c7ded25e2a4eff68bf3c5ad764a3c9e15f1407..631ab16dd6f4d071caeb470ebc2737eed4a912fb 100644 (file)
@@ -784,7 +784,7 @@ sub _make_item {
   $item->assign_attributes(%$attr);
   $item->longdescription($item->part->notes) if $is_new && !defined $attr->{longdescription};
   # item fields that currently can't be set in in row but are needed:
-  $item->lastcost($item->part->lastcost);
+  $item->lastcost($item->part->lastcost) if $is_new;
 
   return $item;
 }