5 [%- USE AuthorisedValues -%]
7 [% PROCESS 'i18n.inc' %]
9 [% PROCESS 'accounts.inc' %]
10 [% INCLUDE 'doc-head-open.inc' %]
11 <title>[% FILTER collapse %]
12 [% IF type == 'credit' %]
13 [% t("Details of credit") | html %]
15 [% t("Details of debit") | html %]
17 [% INCLUDE 'patron-title.inc' no_html = 1 %] ›
18 [% t("Patrons") | html %] ›
19 [% t("Koha") | html %]
21 [% INCLUDE 'doc-head-close.inc' %]
24 <body id="pat_accountline_details" class="pat">
25 [% WRAPPER 'header.inc' %]
26 [% INCLUDE 'patron-search-header.inc' %]
29 [% WRAPPER 'sub-header.inc' %]
30 [% WRAPPER breadcrumbs %]
31 [% WRAPPER breadcrumb_item %]
32 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
34 [% WRAPPER breadcrumb_item %]
35 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' %]</a>
38 [% WRAPPER breadcrumb_item %]
39 [% IF accountline.credit_type_code || accountline.debit_type_code %]
40 <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Account</a>
44 [% WRAPPER breadcrumb_item bc_active= 1 %]
46 [% IF accountline.credit_type_code %]
47 Details of credit ([% accountline.id | html %])
48 [% ELSIF accountline.debit_type_code %]
49 Details of debit ([% accountline.id | html %])
52 Account for [% INCLUDE 'patron-title.inc' %]
55 [% END #/ WRAPPER breadcrumbs %]
56 [% END #/ WRAPPER sub-header.inc %]
58 <div class="main container-fluid">
60 <div class="col-sm-10 col-sm-push-2">
63 [% INCLUDE 'members-toolbar.inc' borrowernumber=patron.borrowernumber %]
65 <h1>Transaction details</h1>
69 <div class="page-section">
70 [% af_values = accountline.additional_field_values %]
71 [% IF accountline.credit_type_code %]
72 <h2>Details of credit</h2>
73 [% ELSIF accountline.debit_type_code %]
74 <h2>Details of debit</h2>
77 <table id="table_account_fines">
86 [% FOREACH value IN af_values %]
87 <th>[% value.field.name | html %]</th>
98 [% accountline.date | $KohaDates %]
101 [%- PROCESS account_type_description account=accountline -%]
102 [%- IF accountline.payment_type -%]
103 , [% AuthorisedValues.GetByCode('PAYMENT_TYPE', accountline.payment_type) | html %]
105 [%- IF accountline.description -%]
106 , [% accountline.description | html %]
110 [% IF ( accountline.itemnumber ) %]
111 [% SET biblio = accountline.item.biblio %]
112 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]&itemnumber=[% accountline.itemnumber | uri %]">[% biblio.title | html %]</a>
117 [% IF ( accountline.itemnumber ) %]
118 <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>
123 [% IF ( accountline.issue_id ) %]
124 [% accountline.checkout.date_due | $KohaDates as_due_date => 1 %]
129 [% IF ( accountline.issue_id ) %]
130 [% accountline.checkout.returndate | $KohaDates with_hours => 1 %]
135 [% accountline.note | html_line_break %]
138 [% FOREACH value IN af_values %]
140 [% IF value.field.authorised_value_category %]
141 [% AuthorisedValues.GetByCode( value.field.authorised_value_category, value.value ) | html %]
143 [% value.value | html %]
149 [% accountline.amount | $Price %]
153 [% accountline.amountoutstanding | $Price %]
156 [% IF accountline.manager_id %]
157 [% INCLUDE 'patron-title.inc' patron => accountline.manager, hide_patron_infos_if_needed => 1, no_cardnumber => 1 %]
163 </div> <!-- /.page-section -->
165 <div class="page-section">
168 <table class="accountline-offsets-table" id="accountline-debits-table">
171 <th rowspan="2">Date</th>
172 <th colspan="2">Change</th>
173 <th rowspan="2">Action</th>
174 <th colspan="4">Related transaction</th>
187 [% FOREACH ao IN account_offsets %]
188 [% IF ao.credit_id == accountline.accountlines_id %]
189 [% SET offset_accountline = ao.debit %]
190 [% ELSIF ao.debit_id == accountline.accountlines_id %]
191 [% SET offset_accountline = ao.credit %]
194 [%- BLOCK ao_description -%]
195 [%- SWITCH ao.type -%]
196 [%- CASE 'CREATE' -%]<span>Created</span>
197 [%- CASE 'OVERDUE_INCREASE' -%]<span>Increase</span>
198 [%- CASE 'OVERDUE_DECREASE' -%]<span>Decrease</span>
199 [%- CASE 'APPLY' -%]<span>Applied</span>
200 [%- CASE 'VOID' -%]<span>Reversed</span>
205 <td>[% ao.created_on | $KohaDates with_hours => 1%]</td>
206 <td>[%- IF ao.amount > 0 -%][% ao.amount | $Price %][% END %]</td>
207 <td>[%- IF ao.amount < 0 -%][% ao.amount | $Price %][% END %]</td>
209 [% PROCESS ao_description ao=ao %]
211 [%- IF offset_accountline -%]
213 [% PROCESS account_type_description account=offset_accountline %] (<a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]">[% offset_accountline.id | html %]</a>)
216 [% offset_accountline.amount | $Price %]
219 [% IF offset_accountline.manager_id %]
220 [% INCLUDE 'patron-title.inc' patron => offset_accountline.manager, hide_patron_infos_if_needed => 1, no_cardnumber => 1 %]
228 <td>[% offset_accountline.note | html %]</td>
233 </div> <!-- /.page-section -->
235 <div class="dialog message">
241 </div> <!-- /.col-sm-10.col-sm-push-2 -->
243 <div class="col-sm-2 col-sm-pull-10">
245 [% INCLUDE 'circ-menu.inc' %]
247 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
248 </div> <!-- /.row -->
251 [% MACRO jsinclude BLOCK %]
252 [% INCLUDE 'str/members-menu.inc' %]
253 [% Asset.js("js/members-menu.js") | $raw %]
256 [% INCLUDE 'intranet-bottom.inc' %]