[freeside-commits] branch FREESIDE_4_BRANCH updated. 540effc1746d2118c7fb5c768aa0d69dc010033b

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


The branch, FREESIDE_4_BRANCH has been updated
       via  540effc1746d2118c7fb5c768aa0d69dc010033b (commit)
      from  7127c07dc9cc26c834d6f83605c6893aa4554741 (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 540effc1746d2118c7fb5c768aa0d69dc010033b
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Apr 5 20:07:24 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