Skip to content

Firefly III: a personal finances manager

Display correct amount [skip ci]

James Cole8044d8955740
diff --git a/resources/twig/partials/reports/categories.twig b/resources/twig/partials/reports/categories.twig
index 66b7491081..88aee1a0b9 100644
--- a/resources/twig/partials/reports/categories.twig
+++ b/resources/twig/partials/reports/categories.twig
@@ -16,14 +16,14 @@
<td>
<a href="{{ route('categories.show',cat.id) }}">{{ cat.name }}</a>
</td>
- <td><span class="text-danger">{{ (cat.spent)|formatAmountPlain }}</span></td>
+ <td><span class="text-danger">{{ (cat.spent * -1)|formatAmountPlain }}</span></td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td><em>{{ 'sum'|_ }}</em></td>
- <td class="text-danger">{{ categories.getTotal|formatAmountPlain }}</td>
+ <td class="text-danger">{{ (categories.getTotal * -1)|formatAmountPlain }}</td>
</tr>
</tfoot>
</table>