[freeside-commits] branch master updated. dea176cdec2d5ed43c6f4304681b109a11da4fa0

Ivan ivan at 420.am
Tue Apr 5 20:07:24 PDT 2016


The branch, master has been updated
       via  dea176cdec2d5ed43c6f4304681b109a11da4fa0 (commit)
      from  47a843b88c44f1d2d2c9a0101dbeb806f2644c11 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit dea176cdec2d5ed43c6f4304681b109a11da4fa0
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Apr 5 20:07:23 2016 -0700

    fix rounding error in CCH tax appropriation, RT#41610

diff --git a/httemplate/edit/elements/ApplicationCommon.html b/httemplate/edit/elements/ApplicationCommon.html
index acc3368..4d7f921 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, '') %>
 %         }

-----------------------------------------------------------------------

Summary of changes:
 httemplate/edit/elements/ApplicationCommon.html |    1 +
 1 file changed, 1 insertion(+)




More information about the freeside-commits mailing list