|
Line 0
Link Here
|
|
|
1 |
[%- USE Price -%] |
| 2 |
[%- USE KohaDates -%] |
| 3 |
[%- USE AuthorisedValues -%] |
| 4 |
|
| 5 |
[% INCLUDE 'doc-head-open.inc' %] |
| 6 |
<title>Koha › Patrons › Account for [% INCLUDE 'patron-title.inc' %]</title> |
| 7 |
[% INCLUDE 'doc-head-close.inc' %] |
| 8 |
</head> |
| 9 |
<body id="pat_discharges" class="pat"> |
| 10 |
[% INCLUDE 'header.inc' %] |
| 11 |
[% INCLUDE 'patron-search.inc' %] |
| 12 |
|
| 13 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Account for [% INCLUDE 'patron-title.inc' %]</a> › Details for account line [% accountline.id %]</div> |
| 14 |
|
| 15 |
<div id="doc3" class="yui-t2"> |
| 16 |
<div id="bd"> |
| 17 |
<div id="yui-main"> |
| 18 |
<div class="yui-b"> |
| 19 |
[% IF accountline %] |
| 20 |
[% IF type == 'credit' %] |
| 21 |
<h2>Details for payment</h2> |
| 22 |
[% ELSIF type == 'debit' %] |
| 23 |
<h2>Details for fee</h2> |
| 24 |
[% END %] |
| 25 |
|
| 26 |
<table id="table_account_fines"> |
| 27 |
<thead> |
| 28 |
<tr> |
| 29 |
<th class="title-string">Date</th> |
| 30 |
<th>Description of charges</th> |
| 31 |
<th>Note</th> |
| 32 |
<th>Amount</th> |
| 33 |
<th>Outstanding</th> |
| 34 |
</tr> |
| 35 |
</thead> |
| 36 |
|
| 37 |
<tbody> |
| 38 |
<tr> |
| 39 |
<td> |
| 40 |
<span title="[% accountline.date %]">[% accountline.date |$KohaDates %]</span> |
| 41 |
</td> |
| 42 |
<td> |
| 43 |
[% INCLUDE 'accounttype.inc' accountline => accountline %] |
| 44 |
[%- IF accountline.payment_type -%] |
| 45 |
, [% AuthorisedValues.GetByCode('PAYMENT_TYPE', accountline.payment_type) %] |
| 46 |
[%- END =%] |
| 47 |
[%- IF accountline.description -%] |
| 48 |
, [% accountline.description %] |
| 49 |
[%- END -%] |
| 50 |
|
| 51 |
|
| 52 |
[% IF ( accountline.itemnumber ) %] |
| 53 |
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% accountline.biblionumber %]&itemnumber=[% accountline.itemnumber %]">[% accountline.title |html %]</a> |
| 54 |
[% END %] |
| 55 |
</td> |
| 56 |
|
| 57 |
<td> |
| 58 |
[% accountline.note | html_line_break %] |
| 59 |
</td> |
| 60 |
|
| 61 |
<td> |
| 62 |
[% accountline.amount | $Price %] |
| 63 |
</td> |
| 64 |
|
| 65 |
<td> |
| 66 |
[% accountline.amountoutstanding | $Price %] |
| 67 |
</td> |
| 68 |
</tr> |
| 69 |
</tbody> |
| 70 |
</table> |
| 71 |
|
| 72 |
[% IF type == 'credit' %] |
| 73 |
<h3>Fees paid</h3> |
| 74 |
[% ELSIF type == 'debit' %] |
| 75 |
<h3>Payments</h3> |
| 76 |
[% END %] |
| 77 |
|
| 78 |
[% IF account_offsets %] |
| 79 |
<table class="accountline-offsets-table" id="accountline-debits-table"> |
| 80 |
<thead> |
| 81 |
<tr> |
| 82 |
<th>Date created</th> |
| 83 |
<th>Date updated</th> |
| 84 |
<th>Amount</th> |
| 85 |
<th>Amount outstanding</th> |
| 86 |
<th>Type</th> |
| 87 |
<th>Note</th> |
| 88 |
<th>Transacting<br/>librarian id</th> |
| 89 |
<th>Date/Time of change</th> |
| 90 |
<th>Amount of change</th> |
| 91 |
<th>Type of change</th> |
| 92 |
<th> </th> |
| 93 |
</tr> |
| 94 |
</thead> |
| 95 |
|
| 96 |
<tbody> |
| 97 |
[% FOREACH ao IN account_offsets.sort('created_on') %] |
| 98 |
[% IF type == 'credit' %] |
| 99 |
[% SET offset_accountline = ao.debit %] |
| 100 |
[% ELSIF type == 'debit' %] |
| 101 |
[% SET offset_accountline = ao.credit %] |
| 102 |
[% END %] |
| 103 |
|
| 104 |
[% IF offset_accountline %] |
| 105 |
<tr> |
| 106 |
<td>[% offset_accountline.date | $KohaDates %]</td> |
| 107 |
<td>[% offset_accountline.timestamp | $KohaDates with_hours => 1 %]</td> |
| 108 |
<td>[% offset_accountline.amount | $Price %]</td> |
| 109 |
<td>[% offset_accountline.amountoutstanding | $Price %]</td> |
| 110 |
<td>[% INCLUDE 'accounttype.inc' accountline => offset_accountline %]</td> |
| 111 |
<td>[% offset_accountline.note %]</td> |
| 112 |
<td>[% IF offset_accountline.manager_id %]<a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id %]">[% offset_accountline.manager_id %]</a>[% END %]</td> |
| 113 |
<td>[% ao.created_on | $KohaDates with_hours => 1 %]</td> |
| 114 |
<td>[% ao.amount | $Price %]</td> |
| 115 |
<td>[% INCLUDE 'account_offset_type.inc' account_offset => ao %]</td> |
| 116 |
<td><a href="accountline-details.pl?accountlines_id=[% offset_accountline.id %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a></td> |
| 117 |
</tr> |
| 118 |
[% END %] |
| 119 |
[% END %] |
| 120 |
</tbody> |
| 121 |
</table> |
| 122 |
[% ELSE %] |
| 123 |
No details available for this payment. |
| 124 |
[% END %] |
| 125 |
[% ELSE %] |
| 126 |
<div class="dialog message"> |
| 127 |
<p>Account line not found.</p> |
| 128 |
</div> |
| 129 |
[% END %] |
| 130 |
</div> |
| 131 |
</div> |
| 132 |
|
| 133 |
<div class="yui-b"> |
| 134 |
[% INCLUDE 'circ-menu.inc' %] |
| 135 |
</div> |
| 136 |
</div> |
| 137 |
[% INCLUDE 'intranet-bottom.inc' %] |