-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPartnerInvoiceLetter.xsl
More file actions
90 lines (78 loc) · 3.91 KB
/
PartnerInvoiceLetter.xsl
File metadata and controls
90 lines (78 loc) · 3.91 KB
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
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="header.xsl" />
<xsl:include href="senderReceiver.xsl" />
<xsl:include href="mailReason.xsl" />
<xsl:include href="footer.xsl" />
<xsl:include href="style.xsl" />
<xsl:template match="/">
<html>
<xsl:if test="notification_data/languages/string">
<xsl:attribute name="lang">
<xsl:value-of select="notification_data/languages/string"/>
</xsl:attribute>
</xsl:if>
<head>
<title>
<xsl:value-of select="notification_data/general_data/subject"/>
</title>
<xsl:call-template name="generalStyle" />
</head>
<body>
<xsl:attribute name="style">
<xsl:call-template name="bodyStyleCss" />
</xsl:attribute>
<xsl:call-template name="head" />
<xsl:call-template name="senderReceiver" />
<br />
<xsl:call-template name="toWhomIsConcerned" /> <!-- mailReason.xsl -->
<xsl:if test="notification_data/invoice_id != ''" >
<h4>@@invoiceNumber@@: <xsl:value-of select="/notification_data/invoice_id"/></h4>
</xsl:if>
<table cellpadding="5" class="listing">
<xsl:attribute name="style">
<xsl:call-template name="mainTableStyleCss" /> <!-- style.xsl -->
</xsl:attribute>
<tr>
<th>@@externalIdentifier@@</th>
<th>@@title@@</th>
<th>@@feeType@@</th>
<th>@@chargeAmount@@</th>
</tr>
<xsl:for-each select="notification_data/lending_request_fee_list/lending_request_fee">
<tr>
<xsl:if test="external_identifier != '0' and external_identifier != '1'" >
<td><xsl:value-of select="external_identifier"/></td>
</xsl:if>
<xsl:if test="external_identifier = '0' or external_identifier = '1'" >
<td></td>
</xsl:if>
<td><xsl:value-of select="title"/></td>
<xsl:if test="external_identifier != '0' and external_identifier != '1'" >
<td><xsl:value-of select="fee_type"/></td>
<td align="right"><xsl:value-of select="charge_amount"/> <xsl:value-of select="currency"/></td>
</xsl:if>
<xsl:if test="external_identifier = '0' or external_identifier = '1'" >
<strong><td><xsl:value-of select="fee_type"/></td></strong>
<strong><td align="right"><xsl:value-of select="charge_amount"/> <xsl:value-of select="currency"/></td></strong>
</xsl:if>
<xsl:if test="external_identifier = '0'">
<tr>
<td colspan="4">
<div style="border-top: 3px solid black; margin: 0;"></div>
</td>
</tr>
</xsl:if>
</tr>
</xsl:for-each>
</table>
<br />
<table role='presentation' >
<tr><td>@@sincerely@@</td></tr>
<tr><td>@@department@@</td></tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>