You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/Importer/Importer.php
+16-58Lines changed: 16 additions & 58 deletions
Original file line number
Diff line number
Diff line change
@@ -27,60 +27,14 @@ abstract class Importer
27
27
protected$updating;
28
28
/**
29
29
* Default Map of item fields->csv names
30
+
*
31
+
* This has been moved into Livewire/Importer.php to be more granular.
32
+
* @todo - remove references to this property since we don't use it anymore.
33
+
*
30
34
* @var array
31
35
*/
32
36
private$defaultFieldMap = [
33
-
'asset_tag' => 'asset tag',
34
-
'activated' => 'activated',
35
-
'category' => 'category',
36
-
'checkout_class' => 'checkout type', // Supports Location or User for assets. Using checkout_class instead of checkout_type because type exists on asset already.
37
-
'checkout_location' => 'checkout location',
38
-
'company' => 'company',
39
-
'item_name' => 'item name',
40
-
'item_number' => 'item number',
41
-
'image' => 'image',
42
-
'expiration_date' => 'expiration date',
43
-
'location' => 'location',
44
-
'notes' => 'notes',
45
-
'license_email' => 'licensed to email',
46
-
'license_name' => 'licensed to name',
47
-
'maintained' => 'maintained',
48
-
'manufacturer' => 'manufacturer',
49
-
'asset_model' => 'model name',
50
-
'model_number' => 'model number',
51
-
'order_number' => 'order number',
52
-
'purchase_cost' => 'purchase cost',
53
-
'purchase_date' => 'purchase date',
54
-
'purchase_order' => 'purchase order',
55
-
'qty' => 'quantity',
56
-
'reassignable' => 'reassignable',
57
-
'requestable' => 'requestable',
58
-
'seats' => 'seats',
59
-
'serial' => 'serial number',
60
-
'status' => 'status',
61
-
'supplier' => 'supplier',
62
-
'termination_date' => 'termination date',
63
-
'warranty_months' => 'warranty',
64
-
'full_name' => 'full name',
65
-
'email' => 'email',
66
-
'username' => 'username',
67
-
'address' => 'address',
68
-
'address2' => 'address2',
69
-
'city' => 'city',
70
-
'state' => 'state',
71
-
'country' => 'country',
72
-
'zip' => 'zip',
73
-
'jobtitle' => 'job title',
74
-
'employee_num' => 'employee number',
75
-
'phone_number' => 'phone number',
76
-
'first_name' => 'first name',
77
-
'last_name' => 'last name',
78
-
'department' => 'department',
79
-
'manager_name' => 'manager full name',
80
-
'manager_username' => 'manager username',
81
-
'min_amt' => 'minimum quantity',
82
-
'remote' => 'remote',
83
-
'vip' => 'vip',
37
+
84
38
];
85
39
/**
86
40
* Map of item fields->csv names
@@ -288,6 +242,8 @@ protected function createOrFetchUser($row, $type = 'user')
0 commit comments