Some fixes for #129

This commit is contained in:
James Cole 2015-12-11 18:35:49 +01:00
parent cb49c00f4d
commit 5aff0c4943
3 changed files with 4 additions and 4 deletions

View File

@ -365,7 +365,7 @@ class ReportHelper implements ReportHelperInterface
$object = new Expense;
$set = $this->query->expenseInPeriodCorrected($start, $end, $shared);
foreach ($set as $entry) {
$object->addToTotal($entry->amount_positive);
$object->addToTotal($entry->amount);
$object->addOrCreateExpense($entry);
}
@ -515,7 +515,7 @@ class ReportHelper implements ReportHelperInterface
$object = new Expense;
$set = $this->query->expenseInPeriodCorrectedForList($start, $end, $accounts);
foreach ($set as $entry) {
$object->addToTotal($entry->amount_positive);
$object->addToTotal($entry->amount);
$object->addOrCreateExpense($entry);
}

View File

@ -42,7 +42,7 @@ $(function () {
datePicker.setEndDate(endDate);
}
}
$('.openModal').on('click', openModal);
$('.date-select').on('click', preSelectDate);

View File

@ -32,7 +32,7 @@
{% endif %}
<tr>
<td><em>{{ 'sum'|_ }}</em></td>
<td><span class="text-danger">{{ (expenses.getTotal)|formatAmountPlain }}</span></td>
<td>{{ (expenses.getTotal)|formatAmountPlain }}</td>
</tr>
</tfoot>
</table>