forked from smu-libraries/alma_letters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFineFeePaymentReceiptLetter.xsl
128 lines (125 loc) · 4.92 KB
/
FineFeePaymentReceiptLetter.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?xml version="1.0" encoding="utf-8"?>
<!--
Modified on 20160707 by Wee Hiong
1. Add do-not-reply message to the footer.
Modified on 20151222 by Wee Hiong
1. Remove sender's address as contact information is now inside the header.
2. Add link to library account.
3. Add intro message before Transaction ID.
4. Make Transaction ID take the common font instead of H4.
Modified on 20151002 by Wee Hiong
1. Fix wrong column for total amount.
2. Add currency to total amount.
Modified on 20151002 by Wee Hiong
1. Add the name of the item that caused the fine.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="header.xsl" />
<xsl:include href="mailReason.xsl" />
<xsl:include href="footer.xsl" />
<xsl:include href="style.xsl" />
<xsl:template match="/">
<html>
<head>
<xsl:call-template name="generalStyle" />
</head>
<body>
<xsl:attribute name="style">
<!-- style.xsl -->
<xsl:call-template name="bodyStyleCss" />
</xsl:attribute>
<!-- header.xsl -->
<xsl:call-template name="head" />
<br />
<!-- mailReason.xsl -->
<xsl:call-template name="toWhomIsConcerned" />
<div class="messageArea">
<div class="messageBody">
<table cellspacing="0" cellpadding="5" border="0">
<tr>
<td>
<h>You have made the following payment:</h>
</td>
</tr>
<tr>
<td>
<xsl:if test="notification_data/transaction_id != ''">
<b>@@transaction_id@@:
<xsl:value-of select="/notification_data/transaction_id" />
</b>
</xsl:if>
<xsl:for-each select="notification_data/labels_list">
<table cellspacing="0" cellpadding="5" border="0">
<tr>
<td>
<xsl:value-of select="letter.fineFeePaymentReceiptLetter.message" />
</td>
</tr>
</table>
<br />
</xsl:for-each>
<table cellpadding="5" class="listing">
<xsl:attribute name="style">
<!-- style.xsl -->
<xsl:call-template name="mainTableStyleCss" />
</xsl:attribute>
<tr>
<th>@@fee_type@@</th>
<th>Item</th>
<th>@@payment_date@@</th>
<th align="right">@@paid_amount@@</th>
<th>@@payment_method@@</th>
<th>@@note@@</th>
</tr>
<xsl:for-each select="notification_data/user_fines_fees_list/user_fines_fees">
<tr>
<td>
<xsl:value-of select="fine_fee_type_display" />
</td>
<td>
<xsl:value-of select="item_title" />
</td>
<td>
<xsl:value-of select="create_date" />
</td>
<td align="right">
<xsl:value-of select="fines_fee_transactions/fines_fee_transaction/transaction_ammount/currency" />
<xsl:text> </xsl:text>
<xsl:value-of select="fines_fee_transactions/fines_fee_transaction/transaction_amount_display" />
</td>
<td>
<xsl:value-of select="fines_fee_transactions/fines_fee_transaction/transaction_method" />
</td>
<td>
<xsl:value-of select="fines_fee_transactions/fines_fee_transaction/transaction_note" />
</td>
</tr>
</xsl:for-each>
<tr>
<td />
<td />
<td align="right">
<b>@@total@@:</b>
</td>
<td align="right">
<xsl:value-of select="notification_data/currency" />
<xsl:text> </xsl:text>
<xsl:value-of select="notification_data/total_amount_paid" />
</td>
<td />
<td />
</tr>
</table>
</td>
</tr>
</table>
<br />
<!-- footer.xsl -->
<xsl:call-template name="myAccount" />
<xsl:call-template name="doNotReply" />
</div>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>