You should make a file in the directory
Phreepos/custom/pages/main/extra_js.php
If you past the code below in this file it should work.
i have removed the readonly from the inputbox named 'price_'
Code:
<?php
// Path: /modules/phreepos/custom/pages/main/extra_js.php
//
?>
<script type="text/javascript">
function addInvRow() {
var newCell;
var cell;
var newRow = document.getElementById('item_table').insertRow(-1);
var rowCnt = newRow.rowIndex;
// NOTE: any change here also need to be made to template form for reload if action fails
cell = '<td align="center">';
cell += buildIcon(icon_path+'16x16/emblems/emblem-unreadable.png', image_delete_text, 'onclick="if (confirm(\''+image_delete_msg+'\')) removeInvRow('+rowCnt+');"') + '</td>';
newCell = newRow.insertCell(-1);
newCell.innerHTML = cell;
cell = '<td nowrap="nowrap" class="main" align="center"><input type="text" name="pstd_'+rowCnt+'" id="pstd_'+rowCnt+'" size="7" maxlength="6" onchange="updateRowTotal('+rowCnt+', true)" style="text-align:right" />';
cell += ' ' + buildIcon(icon_path+'16x16/actions/tab-new.png', image_ser_num, 'onclick="serialList(\'serial_'+rowCnt+'\')"');
cell += '</td>';
newCell = newRow.insertCell(-1);
newCell.innerHTML = cell;
cell = '<td nowrap="nowrap" class="main" align="center"><input type="text" name="sku_'+rowCnt+'" id="sku_'+rowCnt+'" readonly="readonly" size="'+(max_sku_len+1)+'" maxlength="'+max_sku_len+'" /> ';
cell += buildIcon(icon_path+'16x16/actions/document-properties.png', text_properties, 'id="sku_prop_'+rowCnt+'" align="top" style="cursor:pointer" onclick="InventoryProp('+rowCnt+')"');
cell += '</td>';
newCell = newRow.insertCell(-1);
newCell.innerHTML = cell;
cell = '<td class="main"><input name="desc_'+rowCnt+'" id="desc_'+rowCnt+'" readonly="readonly" size="50" maxlength="255" /></td>';
newCell = newRow.insertCell(-1);
newCell.innerHTML = cell;
cell = '<td nowrap="nowrap" class="main" align="center"><input type="text" name="price_'+rowCnt+'" id="price_'+rowCnt+'" size="10" maxlength="15" style="text-align:right" /></td>';
newCell = newRow.insertCell(-1);
newCell.innerHTML = cell;
cell = '<td class="main" align="center">';
// Hidden fields
cell += '<input type="hidden" name="id_'+rowCnt+'" id="id_'+rowCnt+'" value="" />';
cell += '<input type="hidden" name="stock_'+rowCnt+'" id="stock_'+rowCnt+'" value="NA" />';
cell += '<input type="hidden" name="inactive_'+rowCnt+'" id="inactive_'+rowCnt+'" value="0" />';
cell += '<input type="hidden" name="serial_'+rowCnt+'" id="serial_'+rowCnt+'" value="" />';
cell += '<input type="hidden" name="full_'+rowCnt+'" id="full_'+rowCnt+'" value="" />';
cell += '<input type="hidden" name="disc_'+rowCnt+'" id="disc_'+rowCnt+'" value="" />';
cell += '<input type="hidden" name="acct_'+rowCnt+'" id="acct_'+rowCnt+'" value="'+default_inv_acct+'" />';
cell += '<input type="hidden" name="tax_'+rowCnt+'" id="tax_'+rowCnt+'" value="" />';
// End hidden fields
cell += '<input type="text" name="total_'+rowCnt+'" id="total_'+rowCnt+'" value="'+formatted_zero+'" readonly="readonly" size="11" maxlength="20" style="text-align:right" /></td>';
newCell = newRow.insertCell(-1);
newCell.innerHTML = cell;
return rowCnt;
}
</script>