Display correct amount [skip ci]

This commit is contained in:
James Cole 2015-08-02 07:08:47 +02:00
parent 4f0ed97410
commit 8044d89557

View File

@ -16,14 +16,14 @@
<td> <td>
<a href="{{ route('categories.show',cat.id) }}">{{ cat.name }}</a> <a href="{{ route('categories.show',cat.id) }}">{{ cat.name }}</a>
</td> </td>
<td><span class="text-danger">{{ (cat.spent)|formatAmountPlain }}</span></td> <td><span class="text-danger">{{ (cat.spent * -1)|formatAmountPlain }}</span></td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
<tfoot> <tfoot>
<tr> <tr>
<td><em>{{ 'sum'|_ }}</em></td> <td><em>{{ 'sum'|_ }}</em></td>
<td class="text-danger">{{ categories.getTotal|formatAmountPlain }}</td> <td class="text-danger">{{ (categories.getTotal * -1)|formatAmountPlain }}</td>
</tr> </tr>
</tfoot> </tfoot>
</table> </table>