diff --git a/core/templates/core/payslip.html b/core/templates/core/payslip.html index 55950ce..64aa651 100644 --- a/core/templates/core/payslip.html +++ b/core/templates/core/payslip.html @@ -122,10 +122,10 @@ Adjustments Net: - {% if record.amount >= base_pay %} - + R {{ record.amount|sub:base_pay|intcomma }} + {% if adjustments_net >= 0 %} + + R {{ adjustments_net|intcomma }} {% else %} - - R {{ base_pay|sub:record.amount|intcomma }} + - R {{ adjustments_net|stringformat:".2f"|slice:"1:"|intcomma }} {% endif %} @@ -146,4 +146,4 @@ -{% endblock %} +{% endblock %} \ No newline at end of file