2 Template for bill payment receipts. Data specific to this template
5 * current_location.name - name of workstation location
7 * payment_total - total paid
8 * new_balance - balance after the payments were applied
9 * payments - list of specific payments
11 Individual payments within payments contain:
12 * payment.xact.copy_barcode - Copy barcode
13 * payment.xact.title - Copy title
15 Welcome to {{current_location.name}}!<br/>
16 A receipt of your transaction:<hr/>
18 <table style="width:100%">
20 <td>[% l('Original Balance:') %]</td>
21 <td align="right">{{previous_balance | currency}}</td>
24 <td>[% l('Payment Method:') %]</td>
26 <div ng-switch="payment_type">
27 <div ng-switch-when="cash_payment">[% l('Cash') %]</div>
28 <div ng-switch-when="check_payment">[% l('Check') %]</div>
29 <div ng-switch-when="credit_card_payment">[% l('Credit Card') %]</div>
30 <div ng-switch-when="credit_payment">[% l('Patron Credit') %]</div>
31 <div ng-switch-when="work_payment">[% l('Work') %]</div>
32 <div ng-switch-when="forgive_payment">[% l('Forgive') %]</div>
33 <div ng-switch-when="goods_payment">[% l('Goods') %]</div>
38 <td>[% l('Payment Received:') %]</td>
39 <td align="right">{{payment_total | currency}}</td>
42 <td>[% l('Payment Applied:') %]</td>
43 <td align="right">{{payment_applied | currency}}</td>
46 <td>[% l('Billings Voided:') %]</td>
47 <td align="right">{{amount_voided | currency}}</td>
50 <td>[% l('Change Given:') %]</td>
51 <td align="right">{{change_given | currency}}</td>
54 <td>[% l('New Balance:') %]</td>
55 <td align="right">{{new_balance | currency}}</td>
59 <p>[% l('Note: [_1]', '{{payment_note}}') %]</p>
62 [% l('Specific Bills') %]
64 <div ng-repeat="payment in payments">
65 <table style="width:100%">
67 <td>[% l('Bill # [_1]', '{{payment.xact.id}}') %]</td>
68 <td>{{payment.xact.summary.last_billing_type}}</td>
69 <td>[% l('Received: [_1]', '{{payment.amount | currency}}') %]</td>
73 {{payment.xact.copy_barcode}} {{payment.xact.title}}
83 {{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}