2 Template for bill payment receipts. Data specific to this template
5 * patron - has several fields from the patron object, including a financial summary
11 * pref_ versions of all name fields (e.g. pref_family_name);
14 * alias - aka Holds Alias
15 * has_email - boolean value to show/hide elements on the receipt
16 * has_phone - same as has_email
18 * current_location.name - name of workstation location
20 * payment_total - total paid
21 * new_balance - balance after the payments were applied
22 * payments - list of specific payments
23 * approval_code - credit card approval code
25 Individual payments within payments contain:
26 * payment.xact.copy_barcode - Item barcode
27 * payment.xact.title - Item title
29 [% l('Welcome to [_1]', '{{current_location.name}}') %]<br/>
30 [% l('A receipt of your transaction:') %]<hr/>
32 <table style="width:100%">
34 <td>[% l('Original Balance:') %]</td>
35 <td align="right">{{previous_balance | currency}}</td>
38 <td>[% l('Payment Method:') %]</td>
40 <div ng-switch="payment_type">
41 <div ng-switch-when="cash_payment">[% l('Cash') %]</div>
42 <div ng-switch-when="check_payment">[% l('Check') %]</div>
43 <div ng-switch-when="credit_card_payment">[% l('Credit Card') %]</div>
44 <div ng-switch-when="debit_card_payment">[% l('Debit Card') %]</div>
45 <div ng-switch-when="credit_payment">[% l('Patron Credit') %]</div>
46 <div ng-switch-when="work_payment">[% l('Work') %]</div>
47 <div ng-switch-when="forgive_payment">[% l('Forgive') %]</div>
48 <div ng-switch-when="goods_payment">[% l('Goods') %]</div>
53 <td>[% l('Payment Received:') %]</td>
54 <td align="right">{{payment_total | currency}}</td>
57 <td>[% l('Payment Applied:') %]</td>
58 <td align="right">{{payment_applied | currency}}</td>
61 <td>[% l('Billings Voided:') %]</td>
62 <td align="right">{{amount_voided | currency}}</td>
65 <td>[% l('Change Given:') %]</td>
66 <td align="right">{{change_given | currency}}</td>
69 <td>[% l('New Balance:') %]</td>
70 <td align="right">{{new_balance | currency}}</td>
74 <p>[% l('Note: [_1]', '{{payment_note}}') %]</p>
77 [% l('Specific Bills') %]
79 <div ng-repeat="payment in payments">
80 <table style="width:100%">
82 <td>[% l('Bill # [_1]', '{{payment.xact.id}}') %]</td>
83 <td>{{payment.xact.summary.last_billing_type}}</td>
84 <td>[% l('Received: [_1]', '{{payment.amount | currency}}') %]</td>
88 {{payment.xact.copy_barcode}} {{payment.xact.title}}
98 {{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}