Add Zip field in the User Importer

This commit is contained in:
Ivan Nieto Vivanco 2022-01-19 13:35:54 -06:00
parent f9647614ab
commit 1fc71a4111
2 changed files with 2 additions and 0 deletions

View file

@ -52,6 +52,7 @@ class UserImporter extends ItemImporter
$this->item['city'] = $this->findCsvMatch($row, 'city'); $this->item['city'] = $this->findCsvMatch($row, 'city');
$this->item['state'] = $this->findCsvMatch($row, 'state'); $this->item['state'] = $this->findCsvMatch($row, 'state');
$this->item['country'] = $this->findCsvMatch($row, 'country'); $this->item['country'] = $this->findCsvMatch($row, 'country');
$this->item['zip'] = $this->findCsvMatch($row, 'zip');
$this->item['activated'] = ($this->fetchHumanBoolean($this->findCsvMatch($row, 'activated')) == 1) ? '1' : 0; $this->item['activated'] = ($this->fetchHumanBoolean($this->findCsvMatch($row, 'activated')) == 1) ? '1' : 0;
$this->item['employee_num'] = $this->findCsvMatch($row, 'employee_num'); $this->item['employee_num'] = $this->findCsvMatch($row, 'employee_num');
$this->item['department_id'] = $this->createOrFetchDepartment($this->findCsvMatch($row, 'department')); $this->item['department_id'] = $this->createOrFetchDepartment($this->findCsvMatch($row, 'department'));

View file

@ -182,6 +182,7 @@
{id: 'address', text: 'Address' }, {id: 'address', text: 'Address' },
{id: 'city', text: 'City' }, {id: 'city', text: 'City' },
{id: 'state', text: 'State' }, {id: 'state', text: 'State' },
{id: 'zip', text: 'ZIP' },
{id: 'country', text: 'Country' }, {id: 'country', text: 'Country' },
], ],