LP#1708487 Add Title and Barcode to Bill Print Templates
[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 Individual payments within payments contain:
12 * payment.xact.copy_barcode - Copy barcode
13 * payment.xact.title - Copy title
14 -->
15 Welcome to {{current_location.name}}!<br/>
16 A receipt of your  transaction:<hr/>
17
18 <table style="width:100%"> 
19   <tr> 
20     <td>[% l('Original Balance:') %]</td> 
21     <td align="right">{{previous_balance | currency}}</td> 
22   </tr> 
23   <tr> 
24     <td>[% l('Payment Method:') %]</td> 
25     <td align="right">
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>
34       </div>
35     </td>
36   </tr> 
37   <tr> 
38     <td>[% l('Payment Received:') %]</td> 
39     <td align="right">{{payment_total | currency}}</td> 
40   </tr> 
41   <tr> 
42     <td>[% l('Payment Applied:') %]</td> 
43     <td align="right">{{payment_applied | currency}}</td> 
44   </tr> 
45   <tr> 
46     <td>[% l('Billings Voided:') %]</td> 
47     <td align="right">{{amount_voided | currency}}</td> 
48   </tr> 
49   <tr> 
50     <td>[% l('Change Given:') %]</td> 
51     <td align="right">{{change_given | currency}}</td> 
52   </tr> 
53   <tr> 
54     <td>[% l('New Balance:') %]</td> 
55     <td align="right">{{new_balance | currency}}</td> 
56   </tr> 
57 </table> 
58
59 <p>[% l('Note: [_1]', '{{payment_note}}') %]</p>
60
61 <p>
62 [% l('Specific Bills') %]
63   <blockquote>
64     <div ng-repeat="payment in payments">
65       <table style="width:100%">
66         <tr>
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>
70         </tr>
71         <tr>
72           <td colspan="5">
73             {{payment.xact.copy_barcode}} {{payment.xact.title}}
74           </td>
75         </tr>
76       </table>
77       <br/>
78     </div>
79   </blockquote>
80 </p> 
81 <hr/>
82 <br/><br/> 
83 {{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}