Fixed order number and warranty bug in importer

This commit is contained in:
snipe 2017-10-26 16:13:35 -07:00
parent ea07517ad5
commit b71d0ab484
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -85,6 +85,7 @@ class Asset extends Depreciable
'model_id',
'name',
'notes',
'order_number',
'purchase_cost',
'purchase_date',
'rtd_location_id',