From 74288569a87dc36dcee807ed0e2e1d37b74bc67b Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Tue, 3 Feb 2026 23:55:25 +0000 Subject: [PATCH] ver 8.1 --- core/templates/core/payslip.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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