mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Merge pull request #13671 from snipe/bug/sc-23773
Fixed #13670 - order number missing from license import
This commit is contained in:
commit
402ff58628
|
@ -275,6 +275,7 @@ class Importer extends Component
|
||||||
'license_email' => trans('admin/licenses/form.to_email'),
|
'license_email' => trans('admin/licenses/form.to_email'),
|
||||||
'license_name' => trans('admin/licenses/form.to_name'),
|
'license_name' => trans('admin/licenses/form.to_name'),
|
||||||
'purchase_order' => trans('admin/licenses/form.purchase_order'),
|
'purchase_order' => trans('admin/licenses/form.purchase_order'),
|
||||||
|
'order_number' => trans('general.order_number'),
|
||||||
'reassignable' => trans('admin/licenses/form.reassignable'),
|
'reassignable' => trans('admin/licenses/form.reassignable'),
|
||||||
'seats' => trans('admin/licenses/form.seats'),
|
'seats' => trans('admin/licenses/form.seats'),
|
||||||
'notes' => trans('general.notes'),
|
'notes' => trans('general.notes'),
|
||||||
|
|
|
@ -28,7 +28,7 @@ abstract class Importer
|
||||||
/**
|
/**
|
||||||
* Default Map of item fields->csv names
|
* Default Map of item fields->csv names
|
||||||
*
|
*
|
||||||
* This has been moved into Livewire/Importer.php to be more granular.
|
* This has been moved into app/Http/Livewire/Importer.php to be more granular.
|
||||||
* @todo - remove references to this property since we don't use it anymore.
|
* @todo - remove references to this property since we don't use it anymore.
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
|
|
|
@ -65,6 +65,7 @@ class LicenseImporter extends ItemImporter
|
||||||
$this->item['license_name'] = $this->findCsvMatch($row, 'license_name');
|
$this->item['license_name'] = $this->findCsvMatch($row, 'license_name');
|
||||||
$this->item['maintained'] = $this->findCsvMatch($row, 'maintained');
|
$this->item['maintained'] = $this->findCsvMatch($row, 'maintained');
|
||||||
$this->item['purchase_order'] = $this->findCsvMatch($row, 'purchase_order');
|
$this->item['purchase_order'] = $this->findCsvMatch($row, 'purchase_order');
|
||||||
|
$this->item['order_number'] = $this->findCsvMatch($row, 'order_number');
|
||||||
$this->item['reassignable'] = $this->findCsvMatch($row, 'reassignable');
|
$this->item['reassignable'] = $this->findCsvMatch($row, 'reassignable');
|
||||||
$this->item['manufacturer'] = $this->createOrFetchManufacturer($this->findCsvMatch($row, 'manufacturer'));
|
$this->item['manufacturer'] = $this->createOrFetchManufacturer($this->findCsvMatch($row, 'manufacturer'));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue