2 Template for bill payment receipts. Data specific to this template
5 * patron - has several fields from the patron object, including a financial summary
13 * alias - aka Holds Alias
14 * has_email - boolean value to show/hide elements on the receipt
15 * has_phone - same as has_email
17 * current_location.name - name of workstation location
19 * payment_total - total paid
20 * new_balance - balance after the payments were applied
21 * payments - list of specific payments
23 Individual payments within payments contain:
24 * payment.xact.copy_barcode - Copy barcode
25 * payment.xact.title - Copy title
27 Welcome to {{current_location.name}}!<br/>
28 A receipt of your transaction:<hr/>
30 <table style="width:100%">
32 <td>[% l('Original Balance:') %]</td>
33 <td align="right">{{previous_balance | currency}}</td>
36 <td>[% l('Payment Method:') %]</td>
38 <div ng-switch="payment_type">
39 <div ng-switch-when="cash_payment">[% l('Cash') %]</div>
40 <div ng-switch-when="check_payment">[% l('Check') %]</div>
41 <div ng-switch-when="credit_card_payment">[% l('Credit Card') %]</div>
42 <div ng-switch-when="credit_payment">[% l('Patron Credit') %]</div>
43 <div ng-switch-when="work_payment">[% l('Work') %]</div>
44 <div ng-switch-when="forgive_payment">[% l('Forgive') %]</div>
45 <div ng-switch-when="goods_payment">[% l('Goods') %]</div>
50 <td>[% l('Payment Received:') %]</td>
51 <td align="right">{{payment_total | currency}}</td>
54 <td>[% l('Payment Applied:') %]</td>
55 <td align="right">{{payment_applied | currency}}</td>
58 <td>[% l('Billings Voided:') %]</td>
59 <td align="right">{{amount_voided | currency}}</td>
62 <td>[% l('Change Given:') %]</td>
63 <td align="right">{{change_given | currency}}</td>
66 <td>[% l('New Balance:') %]</td>
67 <td align="right">{{new_balance | currency}}</td>
71 <p>[% l('Note: [_1]', '{{payment_note}}') %]</p>
74 [% l('Specific Bills') %]
76 <div ng-repeat="payment in payments">
77 <table style="width:100%">
79 <td>[% l('Bill # [_1]', '{{payment.xact.id}}') %]</td>
80 <td>{{payment.xact.summary.last_billing_type}}</td>
81 <td>[% l('Received: [_1]', '{{payment.amount | currency}}') %]</td>
85 {{payment.xact.copy_barcode}} {{payment.xact.title}}
95 {{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}