A free open source IT asset/license management system
Separate notes on assets and asset models
Ivan Nieto Vivanco577dc6b02cfb
diff --git a/app/Importer/AssetImporter.php b/app/Importer/AssetImporter.phpindex bb2d00c1bb..f8d1cfabf5 100644--- a/app/Importer/AssetImporter.php+++ b/app/Importer/AssetImporter.php@@ -68,7 +68,7 @@ class AssetImporter extends ItemImporter$this->log('No Matching Asset, Creating a new one');$asset = new Asset;}-+ $this->item['notes'] = $this->findCsvMatch($row, 'asset_notes');$this->item['image'] = $this->findCsvMatch($row, 'image');$this->item['requestable'] = $this->fetchHumanBoolean($this->findCsvMatch($row, 'requestable'));$asset->requestable = $this->fetchHumanBoolean($this->findCsvMatch($row, 'requestable'));diff --git a/app/Importer/ItemImporter.php b/app/Importer/ItemImporter.phpindex 3188a46052..5d8005ff21 100644--- a/app/Importer/ItemImporter.php+++ b/app/Importer/ItemImporter.php@@ -221,6 +221,7 @@ class ItemImporter extends Importer$this->log('Matching Model found, updating it.');$item = $this->sanitizeItemForStoring($asset_model, $editingModel);$item['name'] = $asset_model_name;+ $item['notes'] = $this->findCsvMatch($row, 'model_notes');if(!empty($asset_modelNumber)){$item['model_number'] = $asset_modelNumber;@@ -238,6 +239,7 @@ class ItemImporter extends Importer$item = $this->sanitizeItemForStoring($asset_model, $editingModel);$item['name'] = $asset_model_name;$item['model_number'] = $asset_modelNumber;+ $item['notes'] = $this->findCsvMatch($row, 'model_notes');$asset_model->fill($item);$item = null;diff --git a/resources/assets/js/components/importer/importer-file.vue b/resources/assets/js/components/importer/importer-file.vueindex b363b51a93..b7e58fecd3 100644--- a/resources/assets/js/components/importer/importer-file.vue+++ b/resources/assets/js/components/importer/importer-file.vue@@ -130,7 +130,6 @@{id: 'location', text: 'Location' },{id: 'maintained', text: 'Maintained' },{id: 'manufacturer', text: 'Manufacturer' },- {id: 'notes', text: 'Notes' },{id: 'order_number', text: 'Order Number' },{id: 'purchase_cost', text: 'Purchase Cost' },{id: 'purchase_date', text: 'Purchase Date' },@@ -143,6 +142,7 @@],accessories:[{id: 'model_number', text: 'Model Number'},+ {id: 'notes', text: 'Notes' },],assets: [{id: 'asset_tag', text: 'Asset Tag' },@@ -151,6 +151,8 @@{id: 'checkout_location', text: 'Checkout Location' },{id: 'image', text: 'Image Filename' },{id: 'model_number', text: 'Model Number' },+ {id: 'asset_notes', text: 'Asset Notes' },+ {id: 'model_notes', text: 'Model Notes' },{id: 'full_name', text: 'Full Name' },{id: 'status', text: 'Status' },{id: 'warranty_months', text: 'Warranty Months' },@@ -161,11 +163,13 @@{id: 'item_no', text: "Item Number"},{id: 'model_number', text: "Model Number"},{id: 'min_amt', text: "Minimum Quantity"},+ {id: 'notes', text: 'Notes' },],licenses: [{id: 'asset_tag', text: 'Assigned To Asset'},{id: 'expiration_date', text: 'Expiration Date' },{id: 'full_name', text: 'Full Name' },+ {id: 'notes', text: 'Notes' },{id: 'license_email', text: 'Licensed To Email' },{id: 'license_name', text: 'Licensed To Name' },{id: 'purchase_order', text: 'Purchase Order' },@@ -179,6 +183,7 @@{id: 'last_name', text: 'Last Name' },{id: 'phone_number', text: 'Phone Number' },{id: 'manager_first_name', text: 'Manager First Name' },+ {id: 'notes', text: 'Notes' },{id: 'manager_last_name', text: 'Manager Last Name' },{id: 'activated', text: 'Activated' },{id: 'address', text: 'Address' },