From 8bb27de2339af7fe0b2b70ebb11d71fd83dc94e7 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 2 Dec 2015 08:37:08 +0100 Subject: [PATCH] More report subtleties. --- resources/twig/partials/reports/budgets.twig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/resources/twig/partials/reports/budgets.twig b/resources/twig/partials/reports/budgets.twig index 3fddc8add3..8aa53fff0d 100644 --- a/resources/twig/partials/reports/budgets.twig +++ b/resources/twig/partials/reports/budgets.twig @@ -61,7 +61,14 @@ {{ 'sum'|_ }} {{ budgets.getBudgeted|formatAmount }} - {{ budgets.getSpent|formatAmount }} + + {% if budgets.getSpent != 0 %} + {{ budgets.getSpent|formatAmountPlain }} + {% endif %} + {% if budgets.getSpent === 0 %} + {{ budgets.getSpent|formatAmount }} + {% endif %} + {{ budgets.getLeft|formatAmount }} {{ budgets.getOverspent|formatAmountPlain }}