From: Ivan Kohler Date: Wed, 6 Apr 2016 03:07:23 +0000 (-0700) Subject: fix rounding error in CCH tax appropriation, RT#41610 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=dea176cdec2d5ed43c6f4304681b109a11da4fa0 fix rounding error in CCH tax appropriation, RT#41610 --- diff --git a/httemplate/edit/elements/ApplicationCommon.html b/httemplate/edit/elements/ApplicationCommon.html index acc3368b8..4d7f9218d 100644 --- a/httemplate/edit/elements/ApplicationCommon.html +++ b/httemplate/edit/elements/ApplicationCommon.html @@ -158,6 +158,7 @@ function changed(what) { % } % $desc .= ' (default)'; % } +% $total_owed = sprintf('%.2f', $total_owed + 0.00000001 ); #so 1.005 rounds to 1.01 % if ( $total_owed > 0 ) { <% &{$row_generator}($key, $cbp, $desc, $total_owed, $amount, '') %> % }