A few more display tweaks

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-04-08 17:47:39 +01:00
parent ea365e5645
commit 890702f66d
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -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);
+5 -1
View File
@@ -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,