- 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', number_format2(max($myrow['quantity_inv'],0), $dec), null, null, $dec);