Skip to content

Commit

Permalink
Modified total by account plugin to round Other category to 2 decimal…
Browse files Browse the repository at this point in the history
… places
  • Loading branch information
elazar committed Sep 8, 2011
1 parent e6ba3d9 commit 08eae85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/total_by_account.php
Expand Up @@ -14,7 +14,7 @@
return ($amount / $total) >= .01; return ($amount / $total) >= .01;
}); });
if ($diff = $total - array_sum($data)) { if ($diff = $total - array_sum($data)) {
$data['Other'] = $diff; $data['Other'] = round($diff, 2);
} }
asort($data); asort($data);


Expand Down

0 comments on commit 08eae85

Please sign in to comment.