From a4555e808d572ca50d95c618bb9ba5636134dff5 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Tue, 26 Dec 2017 17:01:52 -0700 Subject: [PATCH] Add location descriptions to report --- lib/reports.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/reports.php b/lib/reports.php index 432f15d..caf2984 100644 --- a/lib/reports.php +++ b/lib/reports.php @@ -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;