]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/Inventory.pm
SL::DBUpgrade2: Dateien direkt als UTF-8 öffnen und SL::IConv nicht nutzen
[mfinanz.git] / SL / Controller / Inventory.pm
index ca6190c902167efec7db2d570c0f5a9c6d01ed7a..0a41f0b7df470f565a851a95dbcb1f9509b87b4f 100644 (file)
@@ -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