Fix a sum.

This commit is contained in:
James Cole 2015-12-12 08:12:27 +01:00
parent 8de5384158
commit 8f8e29fc22

View File

@ -67,7 +67,7 @@
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
{% set overspent = rep.amount + spentInRep > 0 %}
{% set overspent = rep.amount + spentInRep < 0 %}
{% if overspent %}
{% set pct = (spentInRep != 0 ? (rep.amount / (spentInRep*-1))*100 : 0) %}