A free open source IT asset/license management system
Fixed order number and warranty bug in importer
snipeb71d0ab48453
diff --git a/app/Importer/AssetImporter.php b/app/Importer/AssetImporter.phpindex 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 founddiff --git a/app/Models/Asset.php b/app/Models/Asset.phpindex 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',