! -> Note
$ -> Affected files
+17-Dec-2008 Joe Hunt
+# [0000101] More wonderful rounding issues
+$ /includes/ui/ui_view.inc
+ /purchasing/includes/db/invoice_db.inc
+ /sales/includes/db/sales_credit_db.inc
+ /sales/includes/db/sales_delivery_db.inc
+ /sales/includes/db/sales_invoice_db.inc
+
16-Dec-2008 Joe Hunt
# [0000100] Keep getting left allocated weird results (rounding problems).
$ /includes/ui/ui_view.inc
{
label_row($taxitem['tax_type_name'] . " (" . $taxitem['rate'] . "%)",
number_format2($taxitem['Value'],user_price_dec()), "colspan=$columns align=right", "align=right",$leftspan);
- $total += $taxitem['Value'];
+ $total += round2($taxitem['Value'], user_price_dec());
}
}
foreach ($taxes as $taxitem)
{
+ $taxitem['Value'] = round2($taxitem['Value'], user_price_dec());
$tax_total += $taxitem['Value'];
}
$tax_total = 0;
foreach ($taxes as $taxitem) {
- $tax_total += $taxitem['Value'];
+ $taxitem['Value'] = round2($taxitem['Value'], user_price_dec());
+ $tax_total += $taxitem['Value'];
}
if ($credit_note->tax_included == 0) {
$taxes = $delivery->get_taxes(); // all taxes with freight_tax
foreach ($taxes as $taxitem) {
+ $taxitem['Value'] = round2($taxitem['Value'], user_price_dec());
$tax_total += $taxitem['Value'];
}
/* Insert/update the debtor_trans */
$taxes = $invoice->get_taxes(); // all taxes with freight_tax
foreach ($taxes as $taxitem) {
+ $taxitem['Value'] = round2($taxitem['Value'], user_price_dec());
$ov_gst += $taxitem['Value'];
}