Skip to content

A free open source IT asset/license management system

A few more display tweaks

snipe890702f66d00
diff --git a/app/Console/Commands/TestLocationsFMCS.php b/app/Console/Commands/TestLocationsFMCS.php
index 908057565a..f14c78063a 100644
--- a/app/Console/Commands/TestLocationsFMCS.php
+++ b/app/Console/Commands/TestLocationsFMCS.php
@@ -41,7 +41,7 @@ class TestLocationsFMCS extends Command
$this->newLine();
$this->info('Edit your locations to associate them with the correct company.');
- $header = ['ID', 'Type', 'Name', 'Checkout Type', 'Company ID', 'Item Company','Item Location', 'Location Company', 'Location Company ID'];
+ $header = ['Type', 'ID', 'Name', 'Checkout Type', 'Company ID', 'Item Company', 'Item Location', 'Location Company', 'Location Company ID'];
sort($mismatched);
$this->table($header, $mismatched);
diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php
index 75bcc6d01d..27a1f99c01 100644
--- a/app/Helpers/Helper.php
+++ b/app/Helpers/Helper.php
@@ -1597,12 +1597,16 @@ class Helper
if ($item && $item->company_id != $location_company) {
$mismatched[] = [
- $item->id,
class_basename(get_class($item)),
+ $item->id,
$item->name ?? $item->asset_tag ?? $item->serial ?? $item->username,
str_replace('App\\Models\\', '', $item->assigned_type) ?? null,
$item->company_id ?? null,
$item->company->name ?? null,
+// $item->defaultLoc->id ?? null,
+// $item->defaultLoc->name ?? null,
+// $item->defaultLoc->company->id ?? null,
+// $item->defaultLoc->company->name ?? null,
$item->location->name ?? null,
$item->location->company->name ?? null,
$location_company ?? null,