From b71d0ab48453e9e06e7603c026666a1a04bb33a9 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 26 Oct 2017 16:13:35 -0700 Subject: [PATCH] Fixed order number and warranty bug in importer --- app/Importer/AssetImporter.php | 2 +- app/Models/Asset.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Importer/AssetImporter.php b/app/Importer/AssetImporter.php index 7518663098..e2987ed2e0 100644 --- a/app/Importer/AssetImporter.php +++ b/app/Importer/AssetImporter.php @@ -67,7 +67,7 @@ class AssetImporter extends ItemImporter } $this->item['image'] = $this->findCsvMatch($row, "image"); - $this->item['warranty_months'] = intval($this->findCsvMatch($row, "warranty")); + $this->item['warranty_months'] = intval($this->findCsvMatch($row, "warranty_months")); $this->item['model_id'] = $this->createOrFetchAssetModel($row); // If no status ID is found diff --git a/app/Models/Asset.php b/app/Models/Asset.php index a1dc0bd93a..9446df9996 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -85,6 +85,7 @@ class Asset extends Depreciable 'model_id', 'name', 'notes', + 'order_number', 'purchase_cost', 'purchase_date', 'rtd_location_id',