5 [%- USE AuthorisedValues -%]
8 [% PROCESS 'accounts.inc' %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Details of [% IF type == 'credit' %]credit[% ELSE %]debit[% END %] › [% INCLUDE 'patron-title.inc' no_html = 1 %] › Patrons › Koha</title>
11 [% INCLUDE 'doc-head-close.inc' %]
14 <body id="pat_accountline_details" class="pat">
15 [% WRAPPER 'header.inc' %]
16 [% INCLUDE 'patron-search-header.inc' %]
19 [% WRAPPER 'sub-header.inc' %]
20 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
23 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
26 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
31 [% IF accountline.credit_type_code %]
33 <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Account for [% INCLUDE 'patron-title.inc' %]</a>
36 <a href="#" aria-current="page">
37 Details of credit ([% accountline.id | html %])
40 [% ELSIF accountline.debit_type_code %]
42 <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Account for [% INCLUDE 'patron-title.inc' %]</a>
45 <a href="#" aria-current="page">
46 Details of debit ([% accountline.id | html %])
52 <a href="#" aria-current="page">
53 Account for [% INCLUDE 'patron-title.inc' %]
61 <div class="main container-fluid">
63 <div class="col-sm-10 col-sm-push-2">
67 [% IF type == 'credit' %]
68 <span>Details of payment</span>
69 [% ELSIF type == 'debit' %]
70 <span>Details of fee</span>
74 [% INCLUDE 'members-toolbar.inc' borrowernumber=patron.borrowernumber %]
77 [% af_values = accountline.additional_field_values %]
78 [% IF accountline.credit_type_code %]
79 <h2>Details of credit</h2>
80 [% ELSIF accountline.debit_type_code %]
81 <h2>Details of debit</h2>
84 <div class="page-section">
86 <table id="table_account_fines">
95 [% FOREACH value IN af_values %]
96 <th>[% value.field.name | html %]</th>
106 [% accountline.date | $KohaDates %]
109 [%- PROCESS account_type_description account=accountline -%]
110 [%- IF accountline.payment_type -%]
111 , [% AuthorisedValues.GetByCode('PAYMENT_TYPE', accountline.payment_type) | html %]
113 [%- IF accountline.description -%]
114 , [% accountline.description | html %]
118 [% IF ( accountline.itemnumber ) %]
119 [% SET biblio = accountline.item.biblio %]
120 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]&itemnumber=[% accountline.itemnumber | uri %]">[% biblio.title | html %]</a>
125 [% IF ( accountline.itemnumber ) %]
126 <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>
131 [% IF ( accountline.issue_id ) %]
132 [% accountline.checkout.date_due | $KohaDates as_due_date => 1 %]
137 [% IF ( accountline.issue_id ) %]
138 [% accountline.checkout.returndate | $KohaDates with_hours => 1 %]
143 [% accountline.note | html_line_break %]
146 [% FOREACH value IN af_values %]
148 [% IF value.field.authorised_value_category %]
149 [% AuthorisedValues.GetByCode( value.field.authorised_value_category, value.value ) | html %]
151 [% value.value | html %]
157 [% accountline.amount | $Price %]
161 [% accountline.amountoutstanding | $Price %]
166 </div> <!-- /.page-section -->
168 <div class="page-section">
170 <table class="accountline-offsets-table" id="accountline-debits-table">
173 <th rowspan="2">Date</th>
174 <th colspan="2">Change</th>
175 <th rowspan="2">Action</th>
176 <th colspan="4">Related transaction</th>
189 [% FOREACH ao IN account_offsets %]
190 [% IF ao.credit_id == accountline.accountlines_id %]
191 [% SET offset_accountline = ao.debit %]
192 [% ELSIF ao.debit_id == accountline.accountlines_id %]
193 [% SET offset_accountline = ao.credit %]
196 [%- BLOCK ao_description -%]
197 [%- SWITCH ao.type -%]
198 [%- CASE 'CREATE' -%]<span>Created</span>
199 [%- CASE 'OVERDUE_INCREASE' -%]<span>Increase</span>
200 [%- CASE 'OVERDUE_DECREASE' -%]<span>Decrease</span>
201 [%- CASE 'APPLY' -%]<span>Applied</span>
202 [%- CASE 'VOID' -%]<span>Reversed</span>
207 <td>[% ao.created_on | $KohaDates with_hours => 1%]</td>
208 <td>[%- IF ao.amount > 0 -%][% ao.amount | $Price %][% END %]</td>
209 <td>[%- IF ao.amount < 0 -%][% ao.amount | $Price %][% END %]</td>
211 [% PROCESS ao_description ao=ao %]
213 [%- IF offset_accountline -%]
215 [% PROCESS account_type_description account=offset_accountline %] (<a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]">[% offset_accountline.id | html %]</a>)
218 [% offset_accountline.amount | $Price %]
221 [% IF offset_accountline.manager_id %]
222 <a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id | uri %]">
223 [% IF offset_accountline.manager.firstname %]
224 [% offset_accountline.manager.firstname | html %] [% offest_accountline.manager.surname | html %]
226 [% offset_accountline.manager.surname | html %]
236 <td>[% offset_accountline.note | html %]</td>
241 </div> <!-- /.page-section -->
243 <div class="dialog message">
249 </div> <!-- /.col-sm-10.col-sm-push-2 -->
251 <div class="col-sm-2 col-sm-pull-10">
253 [% INCLUDE 'circ-menu.inc' %]
255 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
256 </div> <!-- /.row -->
259 [% MACRO jsinclude BLOCK %]
260 [% INCLUDE 'str/members-menu.inc' %]
261 [% Asset.js("js/members-menu.js") | $raw %]
264 [% INCLUDE 'intranet-bottom.inc' %]