File: //proc/self/cwd/pm/plugins/Purchase/Views/item_include/item_select.php
<?php if(isset($label_name)){ ?>
<label><?php echo _l($label_name); ?> </label>
<?php } ?>
<div class="form-group select-placeholder">
<select name="<?php echo html_entity_decode($select_name) ?>" class="select2 <?php if($ajaxItems == true){echo ' ajax-search';} ?>" data-width="100%" id="<?php echo html_entity_decode($id_name) ?>" <?php if(isset($multiple)){ ?> multiple="<?php echo html_entity_decode($multiple) ?>" <?php } ?> placeholder="<?php if(isset($data_none_selected_text)){echo _l($data_none_selected_text);} ?>" data-live-search="true" >
<option value=""></option>
<?php foreach($items as $group_id=>$_items){ ?>
<optgroup data-group-id="<?php echo html_entity_decode($group_id); ?>" label="<?php echo html_entity_decode($_items[0]['group_name']); ?>">
<?php foreach($_items as $item){ ?>
<?php
$selected = '';
if(isset($item_id) && $item['id'] == $item_id){
$selected = ' selected';
}
?>
<option value="<?php echo html_entity_decode($item['id']); ?>" <?php echo html_entity_decode($selected); ?> data-subtext="<?php echo strip_tags(mb_substr($item['description'],0,200)).'...'; ?>">(<?php echo to_decimal_format($item['purchase_price']); ; ?>) <?php echo html_entity_decode($item['title']); ?></option>
<?php } ?>
</optgroup>
<?php } ?>
</select>
</div>