From f2e9b41199a1fe3fdda7d5b77c92fe81160667bf Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 23 May 2023 12:57:34 -0700 Subject: [PATCH] More user fields in asset importer Signed-off-by: snipe --- app/Http/Livewire/Importer.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/app/Http/Livewire/Importer.php b/app/Http/Livewire/Importer.php index ed56c6d3d..6ca6279d5 100644 --- a/app/Http/Livewire/Importer.php +++ b/app/Http/Livewire/Importer.php @@ -200,12 +200,7 @@ class Importer extends Component 'asset_tag' => trans('general.asset_tag'), 'asset_model' => trans('general.model_name'), 'byod' => trans('general.byod'), - 'checkout_class' => trans('general.importer.checkout_type'), - 'checkout_location' => trans('general.importer.checkout_location'), - 'image' => trans('general.importer.image_filename'), 'model_number' => trans('general.model_no'), - 'full_name' => trans('general.importer.checked_out_to_fullname'), - 'email' => trans('general.importer.checked_out_email'), 'status' => trans('general.status'), 'warranty_months' => trans('admin/hardware/form.warranty'), 'category' => trans('general.category'), @@ -219,6 +214,16 @@ class Importer extends Component 'model_notes' => trans('general.item_notes', ['item' => trans('admin/hardware/form.model')]), 'manufacturer' => trans('general.manufacturer'), 'order_number' => trans('general.order_number'), + 'image' => trans('general.importer.image_filename'), + // Checkout fields - assets can be checked out to other assets, people, or locations, but we currently + // only support checkout to people and locations in the importer + 'checkout_class' => trans('general.importer.checkout_type'), + 'first_name' => trans('general.importer.checked_out_to_first_name'), + 'last_name' => trans('general.importer.checked_out_to_last_name'), + 'full_name' => trans('general.importer.checked_out_to_fullname'), + 'email' => trans('general.importer.checked_out_to_email'), + 'username' => trans('general.importer.checked_out_to_username'), + 'checkout_location' => trans('general.importer.checkout_location'), ]; $this->consumables_fields = [