From: Sven Schöling Date: Sun, 6 Feb 2022 21:45:52 +0000 (+0100) Subject: DeliveryOrder: bei fehlerhaftem Auslagern sofort abbrechen X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~216^2~11 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5b3d7427b3d3df79c2342850d859bd6535dfd15e;p=kivitendo-erp.git DeliveryOrder: bei fehlerhaftem Auslagern sofort abbrechen --- diff --git a/SL/Controller/DeliveryOrder.pm b/SL/Controller/DeliveryOrder.pm index 8f3d838c8..fc25fc019 100644 --- a/SL/Controller/DeliveryOrder.pm +++ b/SL/Controller/DeliveryOrder.pm @@ -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 {