projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
locales en/de
[kivitendo-erp.git]
/
SL
/
AM.pm
diff --git
a/SL/AM.pm
b/SL/AM.pm
index
9780078
..
2ec2252
100644
(file)
--- a/
SL/AM.pm
+++ b/
SL/AM.pm
@@
-1249,6
+1249,8
@@
sub save_warehouse {
my ($self, $myconfig, $form) = @_;
+ croak('Need at least one new bin') unless $form->{number_of_new_bins} > 0;
+
SL::DB->client->with_transaction(sub {
my $dbh = SL::DB->client->dbh;