X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/5ad7e1ed10430c3e9fbe4e9c9cfcbd409e547251..161b9e700918ab3df7c1c95a236071f14f5cca7e:/SL/ARAP.pm diff --git a/SL/ARAP.pm b/SL/ARAP.pm index 4d5c564aa..121ea065a 100644 --- a/SL/ARAP.pm +++ b/SL/ARAP.pm @@ -154,7 +154,8 @@ sub close_orders_if_billed { SL::DB->client->with_transaction(sub { my $query = qq|UPDATE oe SET closed = TRUE WHERE id IN (| . join(', ', ('?') x scalar @close_oe_ids) . qq|)|; do_query($form, $dbh, $query, @close_oe_ids); - }); + 1; + }) or do { die SL::DB->client->error }; } $main::lxdebug->leave_sub();