Title
#suitescript
al3xicon

al3xicon

01/03/2017, 3:52 PM
function _getSearchItemType(type) {
	var itemType = '';
	switch (type.toLowerCase()) {
		case 'invtpart':
			itemType = search.Type.INVENTORY_ITEM;
			break;
		case 'noninvtpart':
			itemType = search.Type.NON_INVENTORY_ITEM;
			break;
		case 'assembly':
			itemType = search.Type.ASSEMBLY_ITEM;
			break;
		case 'kit':
			itemType = search.Type.KIT_ITEM;
			break;
		default:
			break;
	}
	return itemType;
  }