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 [% WRAPPER breadcrumbs %]
21 [% WRAPPER breadcrumb_item %]
22 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
24 [% WRAPPER breadcrumb_item %]
25 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' %]</a>
28 [% WRAPPER breadcrumb_item %]
29 [% IF accountline.credit_type_code || accountline.debit_type_code %]
30 <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Account</a>
34 [% WRAPPER breadcrumb_item bc_active= 1 %]
36 [% IF accountline.credit_type_code %]
37 Details of credit ([% accountline.id | html %])
38 [% ELSIF accountline.debit_type_code %]
39 Details of debit ([% accountline.id | html %])
42 Account for [% INCLUDE 'patron-title.inc' %]
45 [% END #/ WRAPPER breadcrumbs %]
46 [% END #/ WRAPPER sub-header.inc %]
48 <div class="main container-fluid">
50 <div class="col-sm-10 col-sm-push-2">
53 [% INCLUDE 'members-toolbar.inc' borrowernumber=patron.borrowernumber %]
55 <h1>Transaction details</h1>
59 <div class="page-section">
60 [% af_values = accountline.additional_field_values %]
61 [% IF accountline.credit_type_code %]
62 <h2>Details of credit</h2>
63 [% ELSIF accountline.debit_type_code %]
64 <h2>Details of debit</h2>
67 <table id="table_account_fines">
76 [% FOREACH value IN af_values %]
77 <th>[% value.field.name | html %]</th>
87 [% accountline.date | $KohaDates %]
90 [%- PROCESS account_type_description account=accountline -%]
91 [%- IF accountline.payment_type -%]
92 , [% AuthorisedValues.GetByCode('PAYMENT_TYPE', accountline.payment_type) | html %]
94 [%- IF accountline.description -%]
95 , [% accountline.description | html %]
99 [% IF ( accountline.itemnumber ) %]
100 [% SET biblio = accountline.item.biblio %]
101 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]&itemnumber=[% accountline.itemnumber | uri %]">[% biblio.title | html %]</a>
106 [% IF ( accountline.itemnumber ) %]
107 <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>
112 [% IF ( accountline.issue_id ) %]
113 [% accountline.checkout.date_due | $KohaDates as_due_date => 1 %]
118 [% IF ( accountline.issue_id ) %]
119 [% accountline.checkout.returndate | $KohaDates with_hours => 1 %]
124 [% accountline.note | html_line_break %]
127 [% FOREACH value IN af_values %]
129 [% IF value.field.authorised_value_category %]
130 [% AuthorisedValues.GetByCode( value.field.authorised_value_category, value.value ) | html %]
132 [% value.value | html %]
138 [% accountline.amount | $Price %]
142 [% accountline.amountoutstanding | $Price %]
147 </div> <!-- /.page-section -->
149 <div class="page-section">
152 <table class="accountline-offsets-table" id="accountline-debits-table">
155 <th rowspan="2">Date</th>
156 <th colspan="2">Change</th>
157 <th rowspan="2">Action</th>
158 <th colspan="4">Related transaction</th>
171 [% FOREACH ao IN account_offsets %]
172 [% IF ao.credit_id == accountline.accountlines_id %]
173 [% SET offset_accountline = ao.debit %]
174 [% ELSIF ao.debit_id == accountline.accountlines_id %]
175 [% SET offset_accountline = ao.credit %]
178 [%- BLOCK ao_description -%]
179 [%- SWITCH ao.type -%]
180 [%- CASE 'CREATE' -%]<span>Created</span>
181 [%- CASE 'OVERDUE_INCREASE' -%]<span>Increase</span>
182 [%- CASE 'OVERDUE_DECREASE' -%]<span>Decrease</span>
183 [%- CASE 'APPLY' -%]<span>Applied</span>
184 [%- CASE 'VOID' -%]<span>Reversed</span>
189 <td>[% ao.created_on | $KohaDates with_hours => 1%]</td>
190 <td>[%- IF ao.amount > 0 -%][% ao.amount | $Price %][% END %]</td>
191 <td>[%- IF ao.amount < 0 -%][% ao.amount | $Price %][% END %]</td>
193 [% PROCESS ao_description ao=ao %]
195 [%- IF offset_accountline -%]
197 [% PROCESS account_type_description account=offset_accountline %] (<a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]">[% offset_accountline.id | html %]</a>)
200 [% offset_accountline.amount | $Price %]
203 [% IF offset_accountline.manager_id %]
204 <a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id | uri %]">
205 [% IF offset_accountline.manager.firstname %]
206 [% offset_accountline.manager.firstname | html %] [% offest_accountline.manager.surname | html %]
208 [% offset_accountline.manager.surname | html %]
218 <td>[% offset_accountline.note | html %]</td>
223 </div> <!-- /.page-section -->
225 <div class="dialog message">
231 </div> <!-- /.col-sm-10.col-sm-push-2 -->
233 <div class="col-sm-2 col-sm-pull-10">
235 [% INCLUDE 'circ-menu.inc' %]
237 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
238 </div> <!-- /.row -->
241 [% MACRO jsinclude BLOCK %]
242 [% INCLUDE 'str/members-menu.inc' %]
243 [% Asset.js("js/members-menu.js") | $raw %]
246 [% INCLUDE 'intranet-bottom.inc' %]