[% USE raw %] [% USE Asset %] [%- USE Price -%] [%- USE KohaDates -%] [%- USE AuthorisedValues -%] [%- USE Branches -%] [% SET footerjs = 1 %] [% PROCESS 'accounts.inc' %] [% INCLUDE 'doc-head-open.inc' %] Details of [% IF type == 'credit' %]credit[% ELSE %]debit[% END %] › [% INCLUDE 'patron-title.inc' no_html = 1 %] › Patrons › Koha [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'patron-search.inc' %]
[% INCLUDE 'members-toolbar.inc' borrowernumber=patron.borrowernumber %] [% IF accountline %] [% IF accountline.credit_type_code %]

Details of credit

[% ELSIF accountline.debit_type_code %]

Details of debit

[% END %]
Date Description Barcode Due date Return date Note Amount Outstanding
[% accountline.date | $KohaDates %] [%- PROCESS account_type_description account=accountline -%] [%- IF accountline.payment_type -%] , [% AuthorisedValues.GetByCode('PAYMENT_TYPE', accountline.payment_type) | html %] [%- END =%] [%- IF accountline.description -%] , [% accountline.description | html %] [%- END -%]   [% IF ( accountline.itemnumber ) %] [% SET biblio = accountline.item.biblio %] [% biblio.title | html %] [% END %] [% IF ( accountline.itemnumber ) %] [% accountline.item.barcode | html %] [% END %] [% IF ( accountline.issue_id ) %] [% accountline.checkout.date_due | $KohaDates as_due_date => 1 %] [% END %] [% IF ( accountline.issue_id ) %] [% accountline.checkout.returndate | $KohaDates with_hours => 1 %] [% END %] [% accountline.note | html_line_break %] [% accountline.amount | $Price %] [% accountline.amountoutstanding | $Price %]

History

[% FOREACH ao IN account_offsets %] [% IF ao.credit_id == accountline.accountlines_id %] [% SET offset_accountline = ao.debit %] [% ELSIF ao.debit_id == accountline.accountlines_id %] [% SET offset_accountline = ao.credit %] [% END %] [%- BLOCK ao_description -%] [%- SWITCH ao.type -%] [%- CASE 'CREATE' -%]Created [%- CASE 'OVERDUE_INCREASE' -%]Increase [%- CASE 'OVERDUE_DECREASE' -%]Decrease [%- CASE 'APPLY' -%]Applied [%- CASE 'VOID' -%]Reversed [%- END -%] [%- END -%] [%- IF offset_accountline -%] [%- ELSE -%] [%- END -%] [% END %]
Date Change Action Related transaction
Increase Decrease Type Amount Librarian Note
[% ao.created_on | $KohaDates with_hours => 1%] [%- IF ao.amount > 0 -%][% ao.amount | $Price %][% END %] [%- IF ao.amount < 0 -%][% ao.amount | $Price %][% END %] [% PROCESS ao_description ao=ao %] [% PROCESS account_type_description account=offset_accountline %] ([% offset_accountline.id | html %]) [% offset_accountline.amount | $Price %] [% IF offset_accountline.manager_id %] [% IF offset_accountline.manager.firstname %] [% offset_accountline.manager.firstname | html %] [% offest_accountline.manager.surname | html %] [% ELSE %] [% offset_accountline.manager.surname | html %] [% END %] [% END %] [% offset_accountline.note | html %]
[% ELSE %]
Account not found
[% END %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'str/members-menu.inc' %] [% Asset.js("js/members-menu.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]