@@ -, +, @@ --- .../intranet-tmpl/prog/en/modules/admin/credit_types.tt | 5 +++-- .../intranet-tmpl/prog/en/modules/admin/debit_types.tt | 9 +++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt @@ -2,6 +2,7 @@ [% USE Asset %] [% USE Branches %] [% SET footerjs = 1 %] +[% PROCESS 'accounts.inc' %] [% INCLUDE 'doc-head-open.inc' %] [% IF op =='add_form' %] @@ -94,7 +95,7 @@ <li> <label for="description" class="required">Description: </label> [% IF credit_type && credit_type.is_system %] - <span>[% credit_type.description | html %]</span> + <span>[%- PROCESS credit_type_description credit_type = credit_type -%]</span> [% ELSE %] <input type="text" name="description" id="description" required="required" class="required" size="80" maxlength="100" value="[% credit_type.description | html %]" /> <span class="required">Required</span> [% END %] @@ -171,7 +172,7 @@ <td>[% credit_type.archived | html %]</td> <td>[% credit_type.is_system | html %]</td> <td>[% credit_type.code | html %]</td> - <td>[% credit_type.description | html %]</td> + <td>[%- PROCESS credit_type_description credit_type = credit_type -%]</td> <td>[% IF credit_type.can_be_added_manually %]Manual credit[% END %]</td> <td>[% IF credit_type.credit_number_enabled %]Yes[% ELSE %]No[% END %]</td> <td> --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt @@ -3,6 +3,7 @@ [% USE Branches %] [% USE Price %] [% SET footerjs = 1 %] +[% PROCESS 'accounts.inc' %] [% INCLUDE 'doc-head-open.inc' %] <title> [% IF op =='add_form' %] @@ -95,7 +96,11 @@ </li> <li> <label for="description" class="required">Description: </label> - <input type="text" name="description" id="description" required="required" class="required" size="80" maxlength="100" value="[% debit_type.description | html %]" /> <span class="required">Required</span> + [% IF debit_type && debit_type.is_system %] + <span>[%- PROCESS debit_type_description debit_type = debit_type -%]</span> + [% ELSE %] + <input type="text" name="description" id="description" required="required" class="required" size="80" maxlength="100" value="[% debit_type.description | html %]" /> <span class="required">Required</span> + [% END %] </li> <li> <label for="can_be_invoiced">Can be manually invoiced? </label> @@ -162,7 +167,7 @@ <td>[% debit_type.archived | html %]</td> <td>[% debit_type.is_system | html %]</td> <td>[% debit_type.code | html %]</td> - <td>[% debit_type.description | html %]</td> + <td>[%- PROCESS debit_type_description debit_type = debit_type -%]</td> <td>[% debit_type.default_amount | $Price %]</td> <td>[% IF debit_type.can_be_invoiced && debit_type.can_be_sold %] <i class="fa fa-id-card-o"></i> Invoicing, <i class="fa fa-shopping-cart"></i> Sale --