From: Moritz Bunkus Date: Fri, 18 Jan 2008 16:49:19 +0000 (+0000) Subject: Anzahl der Lager in der Lagerübersicht anzeigen. X-Git-Tag: release-2.6.0beta1~329 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d6e36f9c0d4bfb573298620e3f7d2ffd3c90c68c;p=kivitendo-erp.git Anzahl der Lager in der Lagerübersicht anzeigen. --- diff --git a/SL/AM.pm b/SL/AM.pm index 97e5896e8..91fc9a7c1 100644 --- a/SL/AM.pm +++ b/SL/AM.pm @@ -2517,7 +2517,8 @@ sub get_all_warehouses { # connect to database my $dbh = $form->get_standard_dbh($myconfig); - my $query = qq|SELECT w.id, w.description, w.invalid + my $query = qq|SELECT w.id, w.description, w.invalid, + (SELECT COUNT(b.description) FROM bin b WHERE b.warehouse_id = w.id) AS number_of_bins, FROM warehouse w ORDER BY w.sortkey|;