3 [%- USE AuthorisedValues -%]
6 [% PROCESS 'accounts.inc' %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Koha › Patrons › Account for [% INCLUDE 'patron-title.inc' %]</title>
10 [% INCLUDE 'doc-head-close.inc' %]
12 <body id="pat_discharges" class="pat">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'patron-search.inc' %]
16 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | html %]">Account for [% INCLUDE 'patron-title.inc' %]</a> › Details for account line [% accountline.id | html %]</div>
18 <div id="doc3" class="yui-t2">
23 [% IF type == 'credit' %]
24 <h2>Details for payment</h2>
25 [% ELSIF type == 'debit' %]
26 <h2>Details for fee</h2>
29 <table id="table_account_fines">
32 <th class="title-string">Date</th>
33 <th>Description of charges</th>
43 <span title="[% accountline.date | html %]">[% accountline.date |$KohaDates %]</span>
46 [%- PROCESS account_type_description account=accountline -%]
47 [%- IF accountline.payment_type -%]
48 , [% AuthorisedValues.GetByCode('PAYMENT_TYPE', accountline.payment_type) | html %]
50 [%- IF accountline.description -%]
51 , [% accountline.description | html %]
55 [% IF ( accountline.itemnumber ) %]
56 [% SET biblio = accountline.item.biblio %]
57 <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]&itemnumber=[% accountline.itemnumber | uri %]">[% biblio.title | html %]</a>
62 [% accountline.note | html_line_break %]
66 [% accountline.amount | $Price %]
70 [% accountline.amountoutstanding | $Price %]
76 [% IF type == 'credit' %]
78 [% ELSIF type == 'debit' %]
82 [% IF account_offsets %]
83 <table class="accountline-offsets-table" id="accountline-debits-table">
89 <th>Amount outstanding</th>
92 <th>Transacting librarian</th>
93 <th>Date/Time of change</th>
94 <th>Amount of change</th>
95 <th>Type of change</th>
101 [% FOREACH ao IN account_offsets %]
102 [% IF type == 'credit' %]
103 [% SET offset_accountline = ao.debit %]
104 [% ELSIF type == 'debit' %]
105 [% SET offset_accountline = ao.credit %]
108 [% IF offset_accountline %]
110 <td>[% offset_accountline.date | $KohaDates %]</td>
111 <td>[% offset_accountline.timestamp | $KohaDates with_hours => 1 | html %]</td>
112 <td>[% offset_accountline.amount | $Price %]</td>
113 <td>[% offset_accountline.amountoutstanding | $Price %]</td>
114 <td>[% PROCESS account_type_description account=offset_accountline %]</td>
115 <td>[% offset_accountline.note | html %]</td>
116 <td>[% IF offset_accountline.manager_id %]<a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id | uri %]">[% offset_accountline.manager_id | html %]</a>[% END %]</td>
117 <td>[% ao.created_on | $KohaDates with_hours => 1 | html %]</td>
118 <td>[% ao.amount | $Price %]</td>
119 <td>[% PROCESS offset_type_description account_offset=ao %]</td>
120 <td><a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a></td>
127 No details available for this payment.
130 <div class="dialog message">
131 <p>Account line not found.</p>
138 [% INCLUDE 'circ-menu.inc' %]
141 [% INCLUDE 'intranet-bottom.inc' %]