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
24 Individual payments within payments contain:
25 * payment.xact.copy_barcode - Item barcode
26 * payment.xact.title - Item title
28 Welcome to {{current_location.name}}!<br/>
29 A receipt of your transaction:<hr/>
31 <table style="width:100%">
33 <td>[% l('Original Balance:') %]</td>
34 <td align="right">{{previous_balance | currency}}</td>
37 <td>[% l('Payment Method:') %]</td>
39 <div ng-switch="payment_type">
40 <div ng-switch-when="cash_payment">[% l('Cash') %]</div>
41 <div ng-switch-when="check_payment">[% l('Check') %]</div>
42 <div ng-switch-when="credit_card_payment">[% l('Credit Card') %]</div>
43 <div ng-switch-when="credit_payment">[% l('Patron Credit') %]</div>
44 <div ng-switch-when="work_payment">[% l('Work') %]</div>
45 <div ng-switch-when="forgive_payment">[% l('Forgive') %]</div>
46 <div ng-switch-when="goods_payment">[% l('Goods') %]</div>
51 <td>[% l('Payment Received:') %]</td>
52 <td align="right">{{payment_total | currency}}</td>
55 <td>[% l('Payment Applied:') %]</td>
56 <td align="right">{{payment_applied | currency}}</td>
59 <td>[% l('Billings Voided:') %]</td>
60 <td align="right">{{amount_voided | currency}}</td>
63 <td>[% l('Change Given:') %]</td>
64 <td align="right">{{change_given | currency}}</td>
67 <td>[% l('New Balance:') %]</td>
68 <td align="right">{{new_balance | currency}}</td>
72 <p>[% l('Note: [_1]', '{{payment_note}}') %]</p>
75 [% l('Specific Bills') %]
77 <div ng-repeat="payment in payments">
78 <table style="width:100%">
80 <td>[% l('Bill # [_1]', '{{payment.xact.id}}') %]</td>
81 <td>{{payment.xact.summary.last_billing_type}}</td>
82 <td>[% l('Received: [_1]', '{{payment.amount | currency}}') %]</td>
86 {{payment.xact.copy_barcode}} {{payment.xact.title}}
96 {{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}