X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/8209ac9179ccbfce0b4b1de99f2c651675603e68..945793f0b279b59e89523634dd998cc17766f31f:/SL/Controller/Inventory.pm 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