DeliveryOrder: bei fehlerhaftem Auslagern sofort abbrechen
authorSven Schöling <s.schoeling@googlemail.com>
Sun, 6 Feb 2022 21:45:52 +0000 (22:45 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 14 Feb 2022 14:04:13 +0000 (15:04 +0100)
SL/Controller/DeliveryOrder.pm

index 8f3d838..fc25fc0 100644 (file)
@@ -1069,7 +1069,7 @@ sub action_transfer_stock {
   }
 
   if (!@transfer_requests) {
-    $self->js->flash("error", t8("No stock to transfer"))->render;
+    return $self->js->flash("error", t8("No stock to transfer"))->render;
   }
 
   SL::DB->client->with_transaction(sub {