X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FInventory.pm;h=0a41f0b7df470f565a851a95dbcb1f9509b87b4f;hb=f10e650c26ed930ce04f4ca1bd3f21d0036e5ba4;hp=ca6190c902167efec7db2d570c0f5a9c6d01ed7a;hpb=4fdbfa7df4c1f89cdb0d3d3266b5908ac67c3f15;p=kivitendo-erp.git diff --git a/SL/Controller/Inventory.pm b/SL/Controller/Inventory.pm index ca6190c90..0a41f0b7d 100644 --- a/SL/Controller/Inventory.pm +++ b/SL/Controller/Inventory.pm @@ -45,8 +45,9 @@ sub action_stock { my ($self) = @_; my $qty = $::form->parse_amount(\%::myconfig, $::form->{qty}); - - if ($qty < 0) { + if (!$qty) { + flash_later('error', t8('Cannot stock without amount')); + } elsif ($qty < 0) { flash_later('error', t8('Cannot stock negative amounts')); } else { # do stock