]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/share/print_templates/t_bill_payment.tt2
LP1737540: Add Patron Information to Receipts
[working/Evergreen.git] / Open-ILS / src / templates / staff / share / print_templates / t_bill_payment.tt2
1 <!--
2 Template for bill payment receipts. Data specific to this template
3 includes:
4
5 * patron - has several fields from the patron object, including a financial summary
6
7   * first_given_name
8   * second_given_name
9   * family_name
10   * suffix
11   * card.barcode
12   * expire_date
13   * alias - aka Holds Alias
14   * has_email - boolean value to show/hide elements on the receipt
15   * has_phone - same as has_email
16
17 * current_location.name - name of workstation location
18 * payment_type
19 * payment_total - total paid
20 * new_balance - balance after the payments were applied
21 * payments - list of specific payments
22
23 Individual payments within payments contain:
24 * payment.xact.copy_barcode - Copy barcode
25 * payment.xact.title - Copy title
26 -->
27 Welcome to {{current_location.name}}!<br/>
28 A receipt of your  transaction:<hr/>
29
30 <table style="width:100%"> 
31   <tr> 
32     <td>[% l('Original Balance:') %]</td> 
33     <td align="right">{{previous_balance | currency}}</td> 
34   </tr> 
35   <tr> 
36     <td>[% l('Payment Method:') %]</td> 
37     <td align="right">
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>
46       </div>
47     </td>
48   </tr> 
49   <tr> 
50     <td>[% l('Payment Received:') %]</td> 
51     <td align="right">{{payment_total | currency}}</td> 
52   </tr> 
53   <tr> 
54     <td>[% l('Payment Applied:') %]</td> 
55     <td align="right">{{payment_applied | currency}}</td> 
56   </tr> 
57   <tr> 
58     <td>[% l('Billings Voided:') %]</td> 
59     <td align="right">{{amount_voided | currency}}</td> 
60   </tr> 
61   <tr> 
62     <td>[% l('Change Given:') %]</td> 
63     <td align="right">{{change_given | currency}}</td> 
64   </tr> 
65   <tr> 
66     <td>[% l('New Balance:') %]</td> 
67     <td align="right">{{new_balance | currency}}</td> 
68   </tr> 
69 </table> 
70
71 <p>[% l('Note: [_1]', '{{payment_note}}') %]</p>
72
73 <p>
74 [% l('Specific Bills') %]
75   <blockquote>
76     <div ng-repeat="payment in payments">
77       <table style="width:100%">
78         <tr>
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>
82         </tr>
83         <tr>
84           <td colspan="5">
85             {{payment.xact.copy_barcode}} {{payment.xact.title}}
86           </td>
87         </tr>
88       </table>
89       <br/>
90     </div>
91   </blockquote>
92 </p> 
93 <hr/>
94 <br/><br/> 
95 {{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}