X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAM.pm;h=2ec225238a2ca63ab14fd156e73b4cb5846c15ae;hb=a0ae7b99a32757f1ce42e0712429ebef554c6037;hp=9780078f514bee6876c7138ad0cce70722e31e74;hpb=6be10c6a62e8e99aed3a4147ecbb0053faa8fcba;p=kivitendo-erp.git diff --git a/SL/AM.pm b/SL/AM.pm index 9780078f5..2ec225238 100644 --- 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;