Victor Grousset/tuxayo
7758a0248e
And a few minor fixes when they where causing issues for translatability. And rephrased a string about password reset to have it identical to other strings with the same meaning. Simplified via wrapping strings with <span> to split to huge concatenated strings with a lot of %s everywhere. == Test plan == This patch needs mainly proof reading. Still it's possible to do some basic testing to demonstrate that adding a <span> in an IF doesn't break anything. Pick in one of the 110 modified templates a string that you know how to display. Otherwise: 1. acquisitions => vendor => basket => add to basket => search "from existing record" => add order 2. Cancel the order 3. You see without issue "Bibliographic record will not be deleted" 4. administration => Patron categories 5. Try to delete a used and unused category 6. You see as expected Category XXXX is in use. Deletion not possible! and Confirm deletion of category XXXX Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
242 lines
10 KiB
Text
242 lines
10 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 [% IF type == 'credit' %]credit[% ELSE %]debit[% END %] › [% INCLUDE 'patron-title.inc' no_html = 1 %] › Patrons › Koha</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
|
|
<body id="pat_accountline_details" class="pat">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'patron-search-header.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 accountline %]
|
|
[% IF accountline.credit_type_code %]
|
|
<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 credit ([% accountline.id | html %])
|
|
</a>
|
|
</li>
|
|
[% ELSIF accountline.debit_type_code %]
|
|
<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 debit ([% accountline.id | html %])
|
|
</a>
|
|
</li>
|
|
[% END %]
|
|
[% 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>
|
|
|
|
<h1>
|
|
[% IF type == 'credit' %]
|
|
<span>Details of payment</span>
|
|
[% ELSIF type == 'debit' %]
|
|
<span>Details of fee</span>
|
|
[% END %]
|
|
</h1>
|
|
|
|
[% INCLUDE 'members-toolbar.inc' borrowernumber=patron.borrowernumber %]
|
|
|
|
[% IF accountline %]
|
|
[% IF accountline.credit_type_code %]
|
|
<h2>Details of credit</h2>
|
|
[% ELSIF accountline.debit_type_code %]
|
|
<h2>Details of debit</h2>
|
|
[% END %]
|
|
|
|
<table id="table_account_fines">
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Description</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 -%]
|
|
|
|
|
|
[% IF ( accountline.itemnumber ) %]
|
|
[% SET biblio = accountline.item.biblio %]
|
|
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]&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 %]&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>
|
|
|
|
<h3>History</h3>
|
|
<table class="accountline-offsets-table" id="accountline-debits-table">
|
|
<thead>
|
|
<tr>
|
|
<th rowspan="2">Date</th>
|
|
<th colspan="2">Change</th>
|
|
<th rowspan="2">Action</th>
|
|
<th colspan="4">Related transaction</th>
|
|
</tr>
|
|
<tr>
|
|
<th>Increase</th>
|
|
<th>Decrease</th>
|
|
<th>Type</th>
|
|
<th>Amount</th>
|
|
<th>Librarian</th>
|
|
<th>Note</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
[% FOREACH ao IN account_offsets %]
|
|
[% IF ao.credit_id == accountline.accountlines_id %]
|
|
[% SET offset_accountline = ao.debit %]
|
|
[% ELSIF ao.debit_id == accountline.accountlines_id %]
|
|
[% SET offset_accountline = ao.credit %]
|
|
[% END %]
|
|
|
|
[%- BLOCK ao_description -%]
|
|
[%- SWITCH ao.type -%]
|
|
[%- CASE 'CREATE' -%]<span>Created</span>
|
|
[%- CASE 'OVERDUE_INCREASE' -%]<span>Increase</span>
|
|
[%- CASE 'OVERDUE_DECREASE' -%]<span>Decrease</span>
|
|
[%- CASE 'APPLY' -%]<span>Applied</span>
|
|
[%- CASE 'VOID' -%]<span>Reversed</span>
|
|
[%- END -%]
|
|
[%- END -%]
|
|
|
|
<tr>
|
|
<td>[% ao.created_on | $KohaDates with_hours => 1%]</td>
|
|
<td>[%- IF ao.amount > 0 -%][% ao.amount | $Price %][% END %]</td>
|
|
<td>[%- IF ao.amount < 0 -%][% ao.amount | $Price %][% END %]</td>
|
|
<td>
|
|
[% PROCESS ao_description ao=ao %]
|
|
</td>
|
|
[%- IF offset_accountline -%]
|
|
<td>
|
|
[% PROCESS account_type_description account=offset_accountline %] (<a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]">[% offset_accountline.id | html %]</a>)
|
|
</td>
|
|
<td>
|
|
[% offset_accountline.amount | $Price %]
|
|
</td>
|
|
<td>
|
|
[% IF offset_accountline.manager_id %]
|
|
<a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id | uri %]">
|
|
[% IF offset_accountline.manager.firstname %]
|
|
[% offset_accountline.manager.firstname | html %] [% offest_accountline.manager.surname | html %]
|
|
[% ELSE %]
|
|
[% offset_accountline.manager.surname | html %]
|
|
[% END %]
|
|
</a>
|
|
[% END %]
|
|
</td>
|
|
[%- ELSE -%]
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
[%- END -%]
|
|
<td>[% offset_accountline.note | html %]</td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% ELSE %]
|
|
<div class="dialog message">
|
|
Account not found
|
|
</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' %]
|