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-header.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">
64 [% IF type == 'credit' %]
66 [% ELSIF type == 'debit' %]
71 [% INCLUDE 'members-toolbar.inc' borrowernumber=patron.borrowernumber %]
74 [% IF accountline.credit_type_code %]
75 <h2>Details of credit</h2>
76 [% ELSIF accountline.debit_type_code %]
77 <h2>Details of debit</h2>
80 <table id="table_account_fines">
97 [% accountline.date | $KohaDates %]
100 [%- PROCESS account_type_description account=accountline -%]
101 [%- IF accountline.payment_type -%]
102 , [% AuthorisedValues.GetByCode('PAYMENT_TYPE', accountline.payment_type) | html %]
104 [%- IF accountline.description -%]
105 , [% accountline.description | html %]
109 [% IF ( accountline.itemnumber ) %]
110 [% SET biblio = accountline.item.biblio %]
111 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]&itemnumber=[% accountline.itemnumber | uri %]">[% biblio.title | html %]</a>
116 [% IF ( accountline.itemnumber ) %]
117 <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>
122 [% IF ( accountline.issue_id ) %]
123 [% accountline.checkout.date_due | $KohaDates as_due_date => 1 %]
128 [% IF ( accountline.issue_id ) %]
129 [% accountline.checkout.returndate | $KohaDates with_hours => 1 %]
134 [% accountline.note | html_line_break %]
138 [% accountline.amount | $Price %]
142 [% accountline.amountoutstanding | $Price %]
149 <table class="accountline-offsets-table" id="accountline-debits-table">
152 <th rowspan="2">Date</th>
153 <th colspan="2">Change</th>
154 <th rowspan="2">Action</th>
155 <th colspan="4">Related transaction</th>
168 [% FOREACH ao IN account_offsets %]
169 [% IF ao.credit_id == accountline.accountlines_id %]
170 [% SET offset_accountline = ao.debit %]
171 [% ELSIF ao.debit_id == accountline.accountlines_id %]
172 [% SET offset_accountline = ao.credit %]
175 [%- BLOCK ao_description -%]
176 [%- SWITCH ao.type -%]
177 [%- CASE 'CREATE' -%]<span>Created</span>
178 [%- CASE 'OVERDUE_INCREASE' -%]<span>Increase</span>
179 [%- CASE 'OVERDUE_DECREASE' -%]<span>Decrease</span>
180 [%- CASE 'APPLY' -%]<span>Applied</span>
181 [%- CASE 'VOID' -%]<span>Reversed</span>
186 <td>[% ao.created_on | $KohaDates with_hours => 1%]</td>
187 <td>[%- IF ao.amount > 0 -%][% ao.amount | $Price %][% END %]</td>
188 <td>[%- IF ao.amount < 0 -%][% ao.amount | $Price %][% END %]</td>
190 [% PROCESS ao_description ao=ao %]
192 [%- IF offset_accountline -%]
194 [% PROCESS account_type_description account=offset_accountline %] (<a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]">[% offset_accountline.id | html %]</a>)
197 [% offset_accountline.amount | $Price %]
200 [% IF offset_accountline.manager_id %]
201 <a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id | uri %]">
202 [% IF offset_accountline.manager.firstname %]
203 [% offset_accountline.manager.firstname | html %] [% offest_accountline.manager.surname | html %]
205 [% offset_accountline.manager.surname | html %]
215 <td>[% offset_accountline.note | html %]</td>
221 <div class="dialog message">
227 </div> <!-- /.col-sm-10.col-sm-push-2 -->
229 <div class="col-sm-2 col-sm-pull-10">
231 [% INCLUDE 'circ-menu.inc' %]
233 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
234 </div> <!-- /.row -->
237 [% MACRO jsinclude BLOCK %]
238 [% INCLUDE 'str/members-menu.inc' %]
239 [% Asset.js("js/members-menu.js") | $raw %]
242 [% INCLUDE 'intranet-bottom.inc' %]