Added byod to asset importer

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-03-06 14:28:24 -08:00
parent f672bdd3b7
commit 304ccaa30e

View file

@ -80,6 +80,8 @@ class AssetImporter extends ItemImporter
$asset->requestable = $this->fetchHumanBoolean($this->findCsvMatch($row, 'requestable'));
$this->item['warranty_months'] = intval($this->findCsvMatch($row, 'warranty_months'));
$this->item['model_id'] = $this->createOrFetchAssetModel($row);
$this->item['byod'] =($this->fetchHumanBoolean($this->findCsvMatch($row, 'byod')) ==1 ) ? '1' : 0;
// If no status ID is found
if (! array_key_exists('status_id', $this->item) && ! $editingAsset) {