projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pflichtenheft-Grundeinstellungen erst read/only anzeigen, nicht direkt als Maske
[kivitendo-erp.git]
/
SL
/
Controller
/
Inventory.pm
diff --git
a/SL/Controller/Inventory.pm
b/SL/Controller/Inventory.pm
index
ca6190c
..
0a41f0b
100644
(file)
--- 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});
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
flash_later('error', t8('Cannot stock negative amounts'));
} else {
# do stock