-
Notifications
You must be signed in to change notification settings - Fork 0
/
shipping_placard_html_template.html
99 lines (98 loc) · 4.49 KB
/
shipping_placard_html_template.html
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
<?xml version="1.0"?><!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd">
<pdf>
<head>
<!--Set up all font languages-->
<link name="NotoSans" type="font" subtype="truetype" src="${nsfont.NotoSans_Regular}" src-bold="${nsfont.NotoSans_Bold}" src-italic="${nsfont.NotoSans_Italic}" src-bolditalic="${nsfont.NotoSans_BoldItalic}" bytes="2" />
<#if .locale == "zh_CN">
<link name="NotoSansCJKsc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKsc_Regular}" src-bold="${nsfont.NotoSansCJKsc_Bold}" bytes="2" />
<#elseif .locale == "zh_TW">
<link name="NotoSansCJKtc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKtc_Regular}" src-bold="${nsfont.NotoSansCJKtc_Bold}" bytes="2" />
<#elseif .locale == "ja_JP">
<link name="NotoSansCJKjp" type="font" subtype="opentype" src="${nsfont.NotoSansCJKjp_Regular}" src-bold="${nsfont.NotoSansCJKjp_Bold}" bytes="2" />
<#elseif .locale == "ko_KR">
<link name="NotoSansCJKkr" type="font" subtype="opentype" src="${nsfont.NotoSansCJKkr_Regular}" src-bold="${nsfont.NotoSansCJKkr_Bold}" bytes="2" />
<#elseif .locale == "th_TH">
<link name="NotoSansThai" type="font" subtype="opentype" src="${nsfont.NotoSansThai_Regular}" src-bold="${nsfont.NotoSansThai_Bold}" bytes="2" />
</#if>
<macrolist>
<macro id="nlheader">
<table class="header" style="width: 100%; font-size: 10pt;">
<!--Add company logo and page title-->
<tr><td colspan="3"><#if companyInformation.logoUrl?length != 0><img src="${companyInformation.logoUrl}" style="width: 275px; height: 112.5px;" /></#if></td></tr>
<tr><td colspan="3" align="center" style="font-size: 24pt; padding: 20px 0px 0px 0px; font-weight: bold">SHIPPING PLACARD</td></tr>
</table>
</macro>
</macrolist>
<!--Set up CSS styles for all html tags-->
<style type="text/css">table {
<#if .locale == "zh_CN">
font-family: stsong, sans-serif;
<#elseif .locale == "zh_TW">
font-family: msung, sans-serif;
<#elseif .locale == "ja_JP">
font-family: heiseimin, sans-serif;
<#elseif .locale == "ko_KR">
font-family: hygothic, sans-serif;
<#elseif .locale == "ru_RU">
font-family: verdana;
<#else>
font-family: sans-serif;
</#if>
font-size: 9pt;
table-layout: fixed;
}
th {
font-weight: bold;
font-size: 8pt;
vertical-align: middle;
padding: 5px 6px 3px;
background-color: #e3e3e3;
color: #333333;
}
td {
padding: 8px 10px;
font-size: 21pt;
}
b {
font-weight: bold;
color: #333333;
font-size: 28px;
}
table.header td {
padding: 0;
font-size: 10pt;
}
table.body td {
padding-top: 2px;
}
td.addressheader {
font-size: 24pt;
font-weight: bold;
padding-top: 10px;
padding-bottom: 8px;
background-color: #E0E0E0;
}
td.address {
padding-top: 10px;
}
table.mytable {
font-size: 9pt;
border-collapse: collapse;
}
.mytable td, .mytable th {
border: 0.1px solid #000000;
}
</style>
</head>
<body header="nlheader" header-height="8%" padding="0.75in 0.5in 0.75in 0.5in" size="Letter-LANDSCAPE">
<!--Create table with shipping placard information of current record-->
<table class="mytable" style="width: 100%; margin-top: 100px;">
<tr><td colspan="1" style="width: 411px; height: 4px;"><span style="font-size:28px; font-weight: bold"><b>Customer P.O. Number: </b>${record.createdfrom.otherrefnum}</span></td></tr>
<tr><td style="vertical-align: top; width: 377px; font-weight: bold"><span style="font-size:28px;"><b>Sales Order Number: </b>${record.createdfrom.tranid}</span></td></tr>
<tr><td style="vertical-align: top; align: left; width: 377px; font-weight: bold"><span style="font-size:28px;"><b>Vendor Name: </b>${record.entityname}</span></td></tr>
<tr><td class="addressheader" style="width: 377px; font-weight: bold">VENDOR ADDRESS</td></tr>
<tr><td class="address" style="width: 377px; font-weight: bold"><b>${record.shipaddress}</b></td></tr>
</table>
</body>
</pdf>