]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/share/print_templates/t_bill_payment.tt2
LP2045292 Color contrast for AngularJS patron bills
[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   * pref_ versions of all name fields (e.g. pref_family_name);
12   * card.barcode
13   * expire_date
14   * alias - aka Holds Alias
15   * has_email - boolean value to show/hide elements on the receipt
16   * has_phone - same as has_email
17
18 * current_location.name - name of workstation location
19 * payment_type
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
24
25 Individual payments within payments contain:
26 * payment.xact.copy_barcode - Item barcode
27 * payment.xact.title - Item title
28 -->
29 Welcome to {{current_location.name}}!<br/>
30 A receipt of your  transaction:<hr/>
31
32 <table style="width:100%"> 
33   <tr> 
34     <td>[% l('Original Balance:') %]</td> 
35     <td align="right">{{previous_balance | currency}}</td> 
36   </tr> 
37   <tr> 
38     <td>[% l('Payment Method:') %]</td> 
39     <td align="right">
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>
49       </div>
50     </td>
51   </tr> 
52   <tr> 
53     <td>[% l('Payment Received:') %]</td> 
54     <td align="right">{{payment_total | currency}}</td> 
55   </tr> 
56   <tr> 
57     <td>[% l('Payment Applied:') %]</td> 
58     <td align="right">{{payment_applied | currency}}</td> 
59   </tr> 
60   <tr> 
61     <td>[% l('Billings Voided:') %]</td> 
62     <td align="right">{{amount_voided | currency}}</td> 
63   </tr> 
64   <tr> 
65     <td>[% l('Change Given:') %]</td> 
66     <td align="right">{{change_given | currency}}</td> 
67   </tr> 
68   <tr> 
69     <td>[% l('New Balance:') %]</td> 
70     <td align="right">{{new_balance | currency}}</td> 
71   </tr> 
72 </table> 
73
74 <p>[% l('Note: [_1]', '{{payment_note}}') %]</p>
75
76 <p>
77 [% l('Specific Bills') %]
78   <blockquote>
79     <div ng-repeat="payment in payments">
80       <table style="width:100%">
81         <tr>
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>
85         </tr>
86         <tr>
87           <td colspan="5">
88             {{payment.xact.copy_barcode}} {{payment.xact.title}}
89           </td>
90         </tr>
91       </table>
92       <br/>
93     </div>
94   </blockquote>
95 </p> 
96 <hr/>
97 <br/><br/> 
98 {{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}