Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt
Wainui Witika-Park 1701149e90 Bug 26703: members folder
Swapped the order of the page titles to have the unique information
first, i.e. the name of the specific page displays first, and the name of the website (e.g. Koha) displays at the end.

To test:
1) Apply patch
2) Ensure each of the files in the members folder are swapped around
to display the most unique information first, and the website name is at the end
3) Ensure the pages displayed on the Staff Client that correspond to
these files also display the changes

Sponsored-by: Catalyst IT
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Henry Bolshaw <bolshawh@parliament.uk>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-04-21 11:16:34 +02:00

213 lines
8.8 KiB
Text

[% USE raw %]
[% USE Asset %]
[%- USE Price -%]
[%- USE KohaDates -%]
[%- USE AuthorisedValues -%]
[%- USE Branches -%]
[% SET footerjs = 1 %]
[% PROCESS 'accounts.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Details of fee &rsaquo; [% INCLUDE 'patron-title.inc' no_html = 1 %] &rsaquo; Patrons &rsaquo; Koha</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="pat_accountline_details" class="pat">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'patron-search.inc' %]
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
<ol>
<li>
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
</li>
<li>
<a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
</li>
[% IF type == 'credit' %]
<li>
<a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Account for [% INCLUDE 'patron-title.inc' %]</a>
</li>
<li>
<a href="#" aria-current="page">
Details of payment
</a>
</li>
[% ELSIF type == 'debit' %]
<li>
<a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Account for [% INCLUDE 'patron-title.inc' %]</a>
</li>
<li>
<a href="#" aria-current="page">
Details of fee
</a>
</li>
[% ELSE %]
<li>
<a href="#" aria-current="page">
Account for [% INCLUDE 'patron-title.inc' %]
</a>
</li>
[% END %]
</ol>
</nav>
<div class="main container-fluid">
<div class="row">
<div class="col-sm-10 col-sm-push-2">
<main>
[% INCLUDE 'members-toolbar.inc' borrowernumber=patron.borrowernumber %]
[% IF accountline %]
[% IF type == 'credit' %]
<h2>Details of payment</h2>
[% ELSIF type == 'debit' %]
<h2>Details of fee</h2>
[% END %]
<table id="table_account_fines">
<thead>
<tr>
<th>Date</th>
<th>Description of charges</th>
<th>Barcode</th>
<th>Due date</th>
<th>Return date</th>
<th>Note</th>
<th>Amount</th>
<th>Outstanding</th>
</tr>
</thead>
<tbody>
<tr>
<td>
[% accountline.date |$KohaDates %]
</td>
<td>
[%- PROCESS account_type_description account=accountline -%]
[%- IF accountline.payment_type -%]
, [% AuthorisedValues.GetByCode('PAYMENT_TYPE', accountline.payment_type) | html %]
[%- END =%]
[%- IF accountline.description -%]
, [% accountline.description | html %]
[%- END -%]
&nbsp;
[% IF ( accountline.itemnumber ) %]
[% SET biblio = accountline.item.biblio %]
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]&amp;itemnumber=[% accountline.itemnumber | uri %]">[% biblio.title | html %]</a>
[% END %]
</td>
<td>
[% IF ( accountline.itemnumber ) %]
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% accountline.item.biblionumber | uri %]&amp;itemnumber=[% accountline.itemnumber | uri %]#item[% accountline.itemnumber | uri %]">[% accountline.item.barcode | html %]</a>
[% END %]
</td>
<td>
[% IF ( accountline.issue_id ) %]
[% accountline.checkout.date_due | $KohaDates as_due_date => 1 %]
[% END %]
</td>
<td>
[% IF ( accountline.issue_id ) %]
[% accountline.checkout.returndate | $KohaDates with_hours => 1 %]
[% END %]
</td>
<td>
[% accountline.note | html_line_break %]
</td>
<td>
[% accountline.amount | $Price %]
</td>
<td>
[% accountline.amountoutstanding | $Price %]
</td>
</tr>
</tbody>
</table>
[% IF type == 'credit' %]
<h3>Fees paid</h3>
[% ELSIF type == 'debit' %]
<h3>Payments</h3>
[% END %]
<table class="accountline-offsets-table" id="accountline-debits-table">
<thead>
<tr>
<th>Date created</th>
<th>Date updated</th>
<th>Amount</th>
<th>Amount outstanding</th>
<th>Type</th>
<th>Note</th>
<th>Transacting librarian</th>
<th>Date/time of change</th>
<th>Amount of change</th>
<th>Type of change</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
[% FOREACH ao IN account_offsets %]
[% IF type == 'credit' %]
[% SET offset_accountline = ao.debit %]
[% ELSIF type == 'debit' %]
[% SET offset_accountline = ao.credit %]
[% END %]
[% IF offset_accountline %]
<tr>
<td>[% offset_accountline.date | $KohaDates %]</td>
<td>[% offset_accountline.timestamp | $KohaDates with_hours => 1 %]</td>
<td>[% offset_accountline.amount | $Price %]</td>
<td>[% offset_accountline.amountoutstanding | $Price %]</td>
<td>[% PROCESS account_type_description account=offset_accountline %]</td>
<td>[% offset_accountline.note | html %]</td>
<td>[% IF offset_accountline.manager_id %]<a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id | uri %]">[% offset_accountline.manager_id | html %]</a>[% END %]</td>
<td>[% ao.created_on | $KohaDates with_hours => 1 %]</td>
<td>[% ao.amount | $Price %]</td>
<td>[% PROCESS offset_type_description account_offset=ao %]</td>
<td><a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a></td>
</tr>
[% END %]
[% END %]
</tbody>
</table>
[% ELSE %]
<div class="dialog message">
[% IF type == 'credit' %]
Payment not found
[% ELSIF type == 'debit' %]
Fee not found
[% END %]
</div>
[% END %]
</main>
</div> <!-- /.col-sm-10.col-sm-push-2 -->
<div class="col-sm-2 col-sm-pull-10">
<aside>
[% INCLUDE 'circ-menu.inc' %]
</aside>
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
</div> <!-- /.row -->
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'str/members-menu.inc' %]
[% Asset.js("js/members-menu.js") | $raw %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]