Add better debugging messages when vehicle has no match in db #73
This commit is contained in:
parent
0d8b8f21b4
commit
36ac62a2ad
1 changed files with 4 additions and 3 deletions
|
|
@ -92,20 +92,21 @@ class ImportCustomerCommand extends Command
|
|||
{
|
||||
// search for manufacturer
|
||||
$mfg_name = trim($row[self::F_V_BRAND]);
|
||||
$make = strtoupper(trim($row[self::F_V_MAKE]));
|
||||
$model = trim($row[self::F_V_MODEL]);
|
||||
|
||||
if (!isset($this->mfg_index[$mfg_name]))
|
||||
{
|
||||
$output->writeln('manufacturer not found: ' . $mfg_name);
|
||||
$output->writeln('manufacturer not found: ' . $mfg_name . ' - ' . $make . ' - ' . $model);
|
||||
return null;
|
||||
}
|
||||
$mfg = $this->mfg_index[$mfg_name];
|
||||
|
||||
// check if empty make
|
||||
$make = strtoupper(trim($row[self::F_V_MAKE]));
|
||||
if (empty($make))
|
||||
return null;
|
||||
|
||||
// get year from and to from model
|
||||
$model = trim($row[self::F_V_MODEL]);
|
||||
if (empty($model))
|
||||
$model = 'NONE';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue