- qty_cell($myrow["quantity_inv"]);
- text_cells(null, 'This_QuantityCredited', max($myrow['quantity_inv'], 0), 13, 15);
+ $dec = get_qty_dec($myrow['item_code']);
+ qty_cell($myrow["quantity_inv"], false, $dec);
+ qty_cells(null, 'This_QuantityCredited', qty_format(max($myrow['quantity_inv'],0),$myrow['item_code'], $dec), null, null, $dec);