diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt
index cb225c6904..b1061728a0 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt
@@ -68,7 +68,6 @@
[% IF accountline %]
- [% af_values = accountline.additional_field_values %]
[% IF accountline.credit_type_code %]
Details of credit
[% ELSIF accountline.debit_type_code %]
@@ -84,8 +83,8 @@
Due date |
Return date |
Note |
- [% FOREACH value IN af_values %]
- [% value.field.name | html %] |
+ [% FOREACH field IN available_additional_fields %]
+ [% field.name | html %] |
[% END %]
Amount |
Outstanding |
@@ -135,16 +134,7 @@
[% accountline.note | html_line_break %]
|
-
- [% FOREACH value IN af_values %]
-
- [% IF value.field.authorised_value_category %]
- [% AuthorisedValues.GetByCode( value.field.authorised_value_category, value.value ) | html %]
- [% ELSE %]
- [% value.value | html %]
- [% END %]
- |
- [% END %]
+ [% INCLUDE 'additional-fields-display.inc' available=available_additional_fields values=additional_field_values value_only=1 is_table_cell=1 %]
[% accountline.amount | $Price %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt
index 4010aa87a2..cf2af4c58c 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt
@@ -136,6 +136,7 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'str/members-menu.inc' %]
[% Asset.js("js/members-menu.js") | $raw %]
+ [% Asset.js("js/additional-fields-entry.js") | $raw %]
|