if (!check_num('This_QuantityCredited', 0))
{
display_error(_("The quantity to credit must be numeric and greater than zero."));
+ set_focus('This_QuantityCredited');
return false;
}
if (!check_num('ChgPrice', 0))
{
display_error(_("The price is either not numeric or negative."));
+ set_focus('ChgPrice');
return false;
}
qty_cell($myrow["quantity_inv"]);
qty_cell($myrow["qty_recd"] - $myrow["quantity_inv"]);
amount_cell($myrow["unit_price"]);
- amount_cell($myrow["unit_price"] * $myrow["quantity_inv"]);
+ amount_cell(round($myrow["unit_price"] * $myrow["quantity_inv"], user_price_dec()));
end_row();
$i++;
if ($i > 15)