]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Controller/Order.pm
GDPDU: Steuerdaten konsistent halten, Zahlenformatierung
[kivitendo-erp.git] / SL / Controller / Order.pm
index 480f8915b6d2ca48284534b47e1993dbb4aeaf59..631ab16dd6f4d071caeb470ebc2737eed4a912fb 100644 (file)
@@ -93,7 +93,7 @@ sub action_delete {
 
   flash_later('info', $::locale->text('The order has been deleted'));
   my @redirect_params = (
-    action => 'edit',
+    action => 'add',
     type   => $self->type,
   );
 
@@ -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;
 }