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 <table id="table_account_fines">
93 [% FOREACH value IN af_values %]
94 <th>[% value.field.name | html %]</th>
104 [% accountline.date | $KohaDates %]
107 [%- PROCESS account_type_description account=accountline -%]
108 [%- IF accountline.payment_type -%]
109 , [% AuthorisedValues.GetByCode('PAYMENT_TYPE', accountline.payment_type) | html %]
111 [%- IF accountline.description -%]
112 , [% accountline.description | html %]
116 [% IF ( accountline.itemnumber ) %]
117 [% SET biblio = accountline.item.biblio %]
118 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]&itemnumber=[% accountline.itemnumber | uri %]">[% biblio.title | html %]</a>
123 [% IF ( accountline.itemnumber ) %]
124 <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>
129 [% IF ( accountline.issue_id ) %]
130 [% accountline.checkout.date_due | $KohaDates as_due_date => 1 %]
135 [% IF ( accountline.issue_id ) %]
136 [% accountline.checkout.returndate | $KohaDates with_hours => 1 %]
141 [% accountline.note | html_line_break %]
144 [% FOREACH value IN af_values %]
146 [% IF value.field.authorised_value_category %]
147 [% AuthorisedValues.GetByCode( value.field.authorised_value_category, value.value ) | html %]
149 [% value.value | html %]
155 [% accountline.amount | $Price %]
159 [% accountline.amountoutstanding | $Price %]
166 <table class="accountline-offsets-table" id="accountline-debits-table">
169 <th rowspan="2">Date</th>
170 <th colspan="2">Change</th>
171 <th rowspan="2">Action</th>
172 <th colspan="4">Related transaction</th>
185 [% FOREACH ao IN account_offsets %]
186 [% IF ao.credit_id == accountline.accountlines_id %]
187 [% SET offset_accountline = ao.debit %]
188 [% ELSIF ao.debit_id == accountline.accountlines_id %]
189 [% SET offset_accountline = ao.credit %]
192 [%- BLOCK ao_description -%]
193 [%- SWITCH ao.type -%]
194 [%- CASE 'CREATE' -%]<span>Created</span>
195 [%- CASE 'OVERDUE_INCREASE' -%]<span>Increase</span>
196 [%- CASE 'OVERDUE_DECREASE' -%]<span>Decrease</span>
197 [%- CASE 'APPLY' -%]<span>Applied</span>
198 [%- CASE 'VOID' -%]<span>Reversed</span>
203 <td>[% ao.created_on | $KohaDates with_hours => 1%]</td>
204 <td>[%- IF ao.amount > 0 -%][% ao.amount | $Price %][% END %]</td>
205 <td>[%- IF ao.amount < 0 -%][% ao.amount | $Price %][% END %]</td>
207 [% PROCESS ao_description ao=ao %]
209 [%- IF offset_accountline -%]
211 [% PROCESS account_type_description account=offset_accountline %] (<a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]">[% offset_accountline.id | html %]</a>)
214 [% offset_accountline.amount | $Price %]
217 [% IF offset_accountline.manager_id %]
218 <a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id | uri %]">
219 [% IF offset_accountline.manager.firstname %]
220 [% offset_accountline.manager.firstname | html %] [% offest_accountline.manager.surname | html %]
222 [% offset_accountline.manager.surname | html %]
232 <td>[% offset_accountline.note | html %]</td>
238 <div class="dialog message">
244 </div> <!-- /.col-sm-10.col-sm-push-2 -->
246 <div class="col-sm-2 col-sm-pull-10">
248 [% INCLUDE 'circ-menu.inc' %]
250 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
251 </div> <!-- /.row -->
254 [% MACRO jsinclude BLOCK %]
255 [% INCLUDE 'str/members-menu.inc' %]
256 [% Asset.js("js/members-menu.js") | $raw %]
259 [% INCLUDE 'intranet-bottom.inc' %]