forked from Business/BinStack
Add location descriptions to report
This commit is contained in:
parent
e57a43217e
commit
a4555e808d
@ -138,9 +138,10 @@ function getLocationReport() {
|
||||
$locs = $database->select('locations', [
|
||||
'locid',
|
||||
'locname',
|
||||
'loccode'
|
||||
'loccode',
|
||||
'locinfo'
|
||||
]);
|
||||
$header = [lang("id", false), lang("location", false), lang("code", false), lang("item count", false)];
|
||||
$header = [lang("id", false), lang("location", false), lang("code", false), lang("item count", false), lang("description", false)];
|
||||
$out = [$header];
|
||||
for ($i = 0; $i < count($locs); $i++) {
|
||||
$itemcount = $database->count('items', ['locid' => $locs[$i]['locid']]);
|
||||
@ -148,7 +149,8 @@ function getLocationReport() {
|
||||
$locs[$i]["locid"],
|
||||
$locs[$i]["locname"],
|
||||
$locs[$i]["loccode"],
|
||||
$itemcount . ""
|
||||
$itemcount . "",
|
||||
$locs[$i]["locinfo"]
|
||||
];
|
||||
}
|
||||
return $out;
|
||||
|
Loading…
x
Reference in New Issue
Block a user