$model_id = $this->db->map_unique('model_barcode', $barcode, 'model_id', 'model');
$item_price_in = $this->db->map_unique('item_serial', $barcode, 'item_price_in', 'item', false);
$item_price_out = $this->db->map_unique('item_serial', $barcode, 'item_price_out', 'item', false);
$model_id = $this->db->map_unique('model_barcode', $barcode, 'model_id', 'model');
$item_price_in = $this->db->map_unique('item_serial', $barcode, 'item_price_in', 'item', false);
$item_price_out = $this->db->map_unique('item_serial', $barcode, 'item_price_out', 'item', false);