- [% account.date | $KohaDates %]
- [% account.timestamp | $KohaDates with_hours = 1 %]
- [% account.credit_number | html %]
- [% PROCESS account_type_description account=account %]
-
- [%- IF account.payment_type %][% AuthorisedValues.GetByCode('PAYMENT_TYPE', account.payment_type) | html %][% END %]
- [%- IF account.description %][% account.description | html %][% END %]
- [% IF ( account.itemnumber ) %]
- [% account.item.biblio.title | html %]
- [% END %]
- [% IF ( account.itemnumber ) %]
- [% account.item.barcode | html %]
- [% END %]
- [% IF ( account.itemnumber ) %][% account.item.itemcallnumber | html %][% END %]
- [% IF ( account.issue_id ) || (account.old_issue_id) %][% account.checkout.date_due | $KohaDates as_due_date => 1 %][% END %]
- [% IF ( account.issue_id ) || (account.old_issue_id) %][% account.checkout.returndate | $KohaDates with_hours => 1 %][% END %]
- [% IF ( account.issue_id ) || (account.old_issue_id) %][% account.checkout.issuedate | $KohaDates %][% END %]
-
- [% IF ( account.issue_id ) || (account.old_issue_id) && account.checkout.library %]
- [% account.checkout.library.branchname | html %]
- [% END %]
-
- [% IF account.itemnumber %][% Branches.GetName( account.item.homebranch ) | html %][% END %]
-
- [% account.note | html_line_break %]
- [% IF CAN_user_updatecharges_edit_accountline_notes %]
- Edit
- [% END %]
-
- [% IF account.amount <= 0 %]
- [% SET td_class="credit" %]
- [% ELSE %]
- [% SET td_class="debig" %]
+
+
+ [% FOREACH account IN accounts %]
+
+ [% account.date | $KohaDates %]
+ [% account.timestamp | $KohaDates with_hours = 1 %]
+ [% account.credit_number | html %]
+ [% PROCESS account_type_description account=account %]
+
+ [%- IF account.payment_type %][% AuthorisedValues.GetByCode('PAYMENT_TYPE', account.payment_type) | html %][% END %]
+ [%- IF account.description %]
+ [% # Passing the raw filter here because this content is scrubbed %]
+ [% account.description | $raw %]
[% END %]
- [% account.amount | $Price %]
- [% account.amountoutstanding | $Price %]
-
- [% IF ( account.is_credit ) %]
- [% IF patron.notice_email_address %]
-
- Receipt
-
-
- [% ELSE %]
- Print
- [% END %]
+ [% IF ( account.itemnumber ) %]
+
+
+ [% account.item.biblio.title | html %]
+
+ [% END %]
+ [% IF ( account.itemnumber ) %]
+ [% account.item.barcode | html %]
+ [% END %]
+ [% IF ( account.itemnumber ) %][% account.item.itemcallnumber | html %][% END %]
+ [% IF ( account.issue_id ) || (account.old_issue_id) %][% account.checkout.date_due | $KohaDates as_due_date => 1 %][% END %]
+ [% IF ( account.issue_id ) || (account.old_issue_id) %][% account.checkout.returndate | $KohaDates with_hours => 1 %][% END %]
+ [% IF ( account.issue_id ) || (account.old_issue_id) %][% account.checkout.issuedate | $KohaDates %][% END %]
+
+ [% IF ( account.issue_id ) || (account.old_issue_id) && account.checkout.library %]
+ [% account.checkout.library.branchname | html %]
+ [% END %]
+
+ [% IF account.itemnumber %][% Branches.GetName( account.item.homebranch ) | html %][% END %]
+
+ [% account.note | html_line_break %]
+ [% IF CAN_user_updatecharges_edit_accountline_notes %]
+ Edit
+ [% END %]
+
+ [% IF account.amount <= 0 %]
+ [% SET td_class="credit" %]
+ [% ELSE %]
+ [% SET td_class="debig" %]
+ [% END %]
+ [% account.amount | $Price %]
+ [% account.amountoutstanding | $Price %]
+
+ [% IF ( account.is_credit ) %]
+ [% IF patron.notice_email_address %]
+
+ Receipt
+
+
[% ELSE %]
- Print
+ Print
[% END %]
- Details
- [% IF account.is_debit && account.amountoutstanding > 0 %]
-
- [% END %]
- [% IF account.is_credit && account.status != 'VOID' %]
- Void payment
- [% END %]
- [% IF account.is_debit && account.amount == account.amountoutstanding && account.status != 'CANCELLED' && !(account.debit_type_code == 'PAYOUT') %]
- Cancel charge
- [% END %]
- [% IF CAN_user_updatecharges_payout && account.is_credit && ( account.amountoutstanding < 0 ) %]
- Issue payout
- [% END %]
- [% IF CAN_user_updatecharges_refund && account.is_debit && ( account.amountoutstanding != account.amount ) && !(account.status == 'REFUNDED') && !(account.debit_type_code == 'PAYOUT') && !(account.debit_type_code == 'VOID') %]
- Issue refund
- [% END %]
- [% IF CAN_user_updatecharges_discount && account.is_debit && ( account.amountoutstanding == account.amount ) && !(account.debit_type_code == 'PAYOUT') && !(account.debit_type_code == 'VOID') %]
- Apply discount
- [% END %]
-
-
- [% END %]
-