info('This script checks for company ID inconsistencies if Full Multiple Company Support with scoped locations will be used.'); $this->info('This could take few moments if have a very large dataset.'); $this->newLine(); // if parameter location_id is set, only test this location $location_id = null; if ($this->option('location_id')) { $location_id = $this->option('location_id'); } $ret = Helper::test_locations_fmcs(true, $location_id); $this->warn('There are '.count($ret).' items in the database that need your attention before you can enable location scoping.'); $this->table(['Item Type', 'Item ID', 'Item Company ID', 'Location Company ID'], $ret); } }