diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt
index 4c325e5f46..a75061a896 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt
@@ -132,8 +132,13 @@
[% IF account.itemnumber %][% Branches.GetName( account.item.homebranch ) | html %][% END %] |
[% account.note | html_line_break %] |
- [% IF account.amount <= 0 %][% ELSE %] | [% END %][% account.amount | $Price %] |
- [% IF account.amountoutstanding <= 0 %][% ELSE %] | [% END %][% account.amountoutstanding | $Price %] |
+ [% IF account.amount <= 0 %]
+ [% SET td_class="credit" %]
+ [% ELSE %]
+ [% SET td_class="debig" %]
+ [% END %]
+ [% account.amount | $Price %] |
+ [% account.amountoutstanding | $Price %] |
[% IF ( account.is_credit ) %]
[% IF Koha.Preference('UseEmailReceipts') %]
|