Skip to content

A free open source IT asset/license management system

Added aliases

snipe65c2d75c0462
diff --git a/app/Http/Livewire/ImporterFile.php b/app/Http/Livewire/ImporterFile.php
index e67f37f499..da0c723fdd 100644
--- a/app/Http/Livewire/ImporterFile.php
+++ b/app/Http/Livewire/ImporterFile.php
@@ -106,8 +106,36 @@ class ImporterFile extends Component
//array of "real fieldnames" to a list of aliases for that field
static $aliases = [
- 'model_number' => ['model', 'model no','model no.','model number', 'model num', 'model num.'],
- 'warranty_months' => ['Warranty', 'Warranty Months']
+ 'model_number' =>
+ [
+ 'model',
+ 'model no',
+ 'model no.',
+ 'model number',
+ 'model num',
+ 'model num.'
+ ],
+ 'warranty_months' =>
+ [
+ 'Warranty',
+ 'Warranty Months'
+ ],
+ 'qty' =>
+ [
+ 'QTY',
+ 'Quantity'
+ ],
+ 'min_amt' =>
+ [
+ 'Min Amount',
+ 'Min QTY'
+ ],
+ 'next_audit_date' =>
+ [
+ 'Next Audit',
+ ],
+
+
];
private function getColumns($type)