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 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'patron-search.inc' %]
18 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
21 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
29 [% IF accountline.credit_type_code %]
31 <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Account for [% INCLUDE 'patron-title.inc' %]</a>
34 <a href="#" aria-current="page">
35 Details of credit ([% accountline.id | html %])
38 [% ELSIF accountline.debit_type_code %]
40 <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Account for [% INCLUDE 'patron-title.inc' %]</a>
43 <a href="#" aria-current="page">
44 Details of debit ([% accountline.id | html %])
50 <a href="#" aria-current="page">
51 Account for [% INCLUDE 'patron-title.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 %]
66 [% IF accountline.credit_type_code %]
67 <h2>Details of credit</h2>
68 [% ELSIF accountline.debit_type_code %]
69 <h2>Details of debit</h2>
72 <table id="table_account_fines">
89 [% accountline.date | $KohaDates %]
92 [%- PROCESS account_type_description account=accountline -%]
93 [%- IF accountline.payment_type -%]
94 , [% AuthorisedValues.GetByCode('PAYMENT_TYPE', accountline.payment_type) | html %]
96 [%- IF accountline.description -%]
97 , [% accountline.description | html %]
101 [% IF ( accountline.itemnumber ) %]
102 [% SET biblio = accountline.item.biblio %]
103 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]&itemnumber=[% accountline.itemnumber | uri %]">[% biblio.title | html %]</a>
108 [% IF ( accountline.itemnumber ) %]
109 <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>
114 [% IF ( accountline.issue_id ) %]
115 [% accountline.checkout.date_due | $KohaDates as_due_date => 1 %]
120 [% IF ( accountline.issue_id ) %]
121 [% accountline.checkout.returndate | $KohaDates with_hours => 1 %]
126 [% accountline.note | html_line_break %]
130 [% accountline.amount | $Price %]
134 [% accountline.amountoutstanding | $Price %]
141 <table class="accountline-offsets-table" id="accountline-debits-table">
144 <th rowspan="2">Date</th>
145 <th colspan="2">Change</th>
146 <th rowspan="2">Action</th>
147 <th colspan="4">Related transaction</th>
160 [% FOREACH ao IN account_offsets %]
161 [% IF ao.credit_id == accountline.accountlines_id %]
162 [% SET offset_accountline = ao.debit %]
163 [% ELSIF ao.debit_id == accountline.accountlines_id %]
164 [% SET offset_accountline = ao.credit %]
167 [%- BLOCK ao_description -%]
168 [%- SWITCH ao.type -%]
169 [%- CASE 'CREATE' -%]<span>Created</span>
170 [%- CASE 'OVERDUE_INCREASE' -%]<span>Increase</span>
171 [%- CASE 'OVERDUE_DECREASE' -%]<span>Decrease</span>
172 [%- CASE 'APPLY' -%]<span>Applied</span>
173 [%- CASE 'VOID' -%]<span>Reversed</span>
178 <td>[% ao.created_on | $KohaDates with_hours => 1%]</td>
179 <td>[%- IF ao.amount > 0 -%][% ao.amount | $Price %][% END %]</td>
180 <td>[%- IF ao.amount < 0 -%][% ao.amount | $Price %][% END %]</td>
182 [% PROCESS ao_description ao=ao %]
184 [%- IF offset_accountline -%]
186 [% PROCESS account_type_description account=offset_accountline %] (<a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]">[% offset_accountline.id | html %]</a>)
189 [% offset_accountline.amount | $Price %]
192 [% IF offset_accountline.manager_id %]
193 <a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id | uri %]">
194 [% IF offset_accountline.manager.firstname %]
195 [% offset_accountline.manager.firstname | html %] [% offest_accountline.manager.surname | html %]
197 [% offset_accountline.manager.surname | html %]
207 <td>[% offset_accountline.note | html %]</td>
213 <div class="dialog message">
219 </div> <!-- /.col-sm-10.col-sm-push-2 -->
221 <div class="col-sm-2 col-sm-pull-10">
223 [% INCLUDE 'circ-menu.inc' %]
225 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
226 </div> <!-- /.row -->
229 [% MACRO jsinclude BLOCK %]
230 [% INCLUDE 'str/members-menu.inc' %]
231 [% Asset.js("js/members-menu.js") | $raw %]
234 [% INCLUDE 'intranet-bottom.inc' %]