Fixed some other displays of money

This commit is contained in:
James Cole committed 2015-05-20 18:09:44 +02:00
1 parent 568ab26db1
commit 411f77fd29
4 files changed
+27 -9

No files matched your search

@@ -81,7 +81,10 @@ class CategoryController extends Controller
$set = $repository->getCategoriesAndExpensesCorrected($start, $end);
foreach ($set as $entry) {
$chart->addRow($entry['name'], floatval($entry['sum']));
$sum = floatval($entry['sum']);
if($sum != 0) {
$chart->addRow($entry['name'], $sum);
}
}
$chart->generate();
+1 -1
View File
@@ -133,7 +133,7 @@ class TagController extends Controller
* changes to an advancePayment.
*/
if ($tag->tagMode == 'balancingAct') {
if ($tag->tagMode == 'balancingAct' || $tag->tagMode == 'nothing') {
foreach ($tag->transactionjournals as $journal) {
if ($journal->transactionType->type == 'Transfer') {
$allowToAdvancePayment = false;