projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4425fe
)
Anzahl der Lager in der Lagerübersicht anzeigen.
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 18 Jan 2008 16:49:19 +0000
(16:49 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 18 Jan 2008 16:49:19 +0000
(16:49 +0000)
SL/AM.pm
patch
|
blob
|
history
diff --git
a/SL/AM.pm
b/SL/AM.pm
index
97e5896
..
91fc9a7
100644
(file)
--- 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|;