From 36d764e48014c3b5afb28347603c05571fb6230c Mon Sep 17 00:00:00 2001 From: sunsetsystems Date: Tue, 19 Apr 2005 17:39:03 +0000 Subject: [PATCH] fixed formatting of javascript-calculated amounts --- interface/billing/sl_eob_invoice.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/billing/sl_eob_invoice.php b/interface/billing/sl_eob_invoice.php index 4cde6a852..65d14e365 100644 --- a/interface/billing/sl_eob_invoice.php +++ b/interface/billing/sl_eob_invoice.php @@ -114,7 +114,7 @@ function writeoff(code) { var tmp = f['form_line[' + code + '][bal]'].value - f['form_line[' + code + '][pay]'].value; - f['form_line[' + code + '][adj]'].value = Math.round(tmp * 100) * 0.01; + f['form_line[' + code + '][adj]'].value = Number(tmp).toFixed(2); return false; } @@ -212,9 +212,9 @@ function validate(f) { SLQuery($query); if ($sl_err) die($sl_err); } - $paytotal = sprintf("%.2f", $paytotal); echo "