From c59fd7b8dabf9155c8ff0fa0467cf22d04e6c15b Mon Sep 17 00:00:00 2001 From: Ivan Nieto Vivanco Date: Wed, 24 Aug 2022 19:20:23 -0500 Subject: [PATCH] Fix importer field mapping for command line --- app/Importer/Importer.php | 2 +- app/Importer/ItemImporter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Importer/Importer.php b/app/Importer/Importer.php index f5b0ae44da..203e788d23 100644 --- a/app/Importer/Importer.php +++ b/app/Importer/Importer.php @@ -56,7 +56,7 @@ abstract class Importer 'reassignable' => 'reassignable', 'requestable' => 'requestable', 'seats' => 'seats', - 'serial_number' => 'serial number', + 'serial' => 'serial number', 'status' => 'status', 'supplier' => 'supplier', 'termination_date' => 'termination date', diff --git a/app/Importer/ItemImporter.php b/app/Importer/ItemImporter.php index 5d8005ff21..f015de04d9 100644 --- a/app/Importer/ItemImporter.php +++ b/app/Importer/ItemImporter.php @@ -90,7 +90,7 @@ class ItemImporter extends Importer $this->item['qty'] = $this->findCsvMatch($row, 'quantity'); $this->item['requestable'] = $this->findCsvMatch($row, 'requestable'); $this->item['user_id'] = $this->user_id; - $this->item['serial'] = $this->findCsvMatch($row, 'serial'); + $this->item['serial'] = $this->findCsvMatch($row, 'serial number'); // NO need to call this method if we're running the user import. // TODO: Merge these methods. $this->item['checkout_class'] = $this->findCsvMatch($row, 'checkout_class');