]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/share/print_templates/t_bill_payment.tt2
lp1691237 webstaff: fix Format Dates and Format Times
[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 * current_location.name - name of workstation location
6 * payment_type
7 * payment_total - total paid
8 * new_balance - balance after the payments were applied
9 * payments - list of specific payments
10
11 -->
12 Welcome to {{current_location.name}}!<br/>
13 A receipt of your  transaction:<hr/>
14
15 <table style="width:100%"> 
16   <tr> 
17     <td>[% l('Original Balance:') %]</td> 
18     <td align="right">{{previous_balance | currency}}</td> 
19   </tr> 
20   <tr> 
21     <td>[% l('Payment Method:') %]</td> 
22     <td align="right">
23       <div ng-switch="payment_type">
24         <div ng-switch-when="cash_payment">[% l('Cash') %]</div>
25         <div ng-switch-when="check_payment">[% l('Check') %]</div>
26         <div ng-switch-when="credit_card_payment">[% l('Credit Card') %]</div>
27         <div ng-switch-when="credit_payment">[% l('Patron Credit') %]</div>
28         <div ng-switch-when="work_payment">[% l('Work') %]</div>
29         <div ng-switch-when="forgive_payment">[% l('Forgive') %]</div>
30         <div ng-switch-when="goods_payment">[% l('Goods') %]</div>
31       </div>
32     </td>
33   </tr> 
34   <tr> 
35     <td>[% l('Payment Received:') %]</td> 
36     <td align="right">{{payment_total | currency}}</td> 
37   </tr> 
38   <tr> 
39     <td>[% l('Payment Applied:') %]</td> 
40     <td align="right">{{payment_applied | currency}}</td> 
41   </tr> 
42   <tr> 
43     <td>[% l('Billings Voided:') %]</td> 
44     <td align="right">{{amount_voided | currency}}</td> 
45   </tr> 
46   <tr> 
47     <td>[% l('Change Given:') %]</td> 
48     <td align="right">{{change_given | currency}}</td> 
49   </tr> 
50   <tr> 
51     <td>[% l('New Balance:') %]</td> 
52     <td align="right">{{new_balance | currency}}</td> 
53   </tr> 
54 </table> 
55
56 <p>[% l('Note: [_1]', '{{payment_note}}') %]</p>
57
58 <p>
59 [% l('Specific Bills') %]
60   <blockquote>
61     <div ng-repeat="payment in payments">
62       <table style="width:100%">
63         <tr>
64           <td>[% l('Bill # [_1]', '{{payment.xact.id}}') %]</td>
65           <td>{{payment.xact.summary.last_billing_type}}</td>
66           <td>[% l('Received: [_1]', '{{payment.amount | currency}}') %]</td>
67         </tr>
68         <tr>
69           <td colspan="5">
70             {{payment.xact.copy_barcode}} {{payment.xact.title}}
71           </td>
72         </tr>
73       </table>
74       <br/>
75     </div>
76   </blockquote>
77 </p> 
78 <hr/>
79 <br/><br/> 
80 {{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}