fix rounding error in CCH tax appropriation, RT#41610
authorIvan Kohler <ivan@freeside.biz>
Wed, 6 Apr 2016 03:07:26 +0000 (20:07 -0700)
committerIvan Kohler <ivan@freeside.biz>
Wed, 6 Apr 2016 03:07:26 +0000 (20:07 -0700)
httemplate/edit/elements/ApplicationCommon.html

index 7b1050a..ffc303c 100644 (file)
@@ -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, '') %>
 %         }