Skip to content

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.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',