2
<document filename="test.pdf">
3
<template pageSize="(595.0,842.0)" title="Test" author="Martin Simon" allowSplitting="20">
4
<pageTemplate id="first">
5
<frame id="first" x1="15.0" y1="42.0" width="539" height="758"/>
9
<blockTableStyle id="Standard_Outline">
10
<blockAlignment value="LEFT"/>
11
<blockValign value="TOP"/>
13
<blockTableStyle id="Table1">
14
<blockAlignment value="LEFT"/>
15
<blockValign value="TOP"/>
17
<blockTableStyle id="Table4">
18
<blockAlignment value="LEFT"/>
19
<blockValign value="TOP"/>
21
<blockTableStyle id="Table5">
22
<blockAlignment value="LEFT"/>
23
<blockValign value="TOP"/>
25
<blockTableStyle id="Table6">
26
<blockAlignment value="LEFT"/>
27
<blockValign value="TOP"/>
28
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/>
29
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/>
30
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
31
<lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
32
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/>
33
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,1" stop="0,-1"/>
34
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
35
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,1" stop="1,-1"/>
36
<lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,1" stop="1,-1"/>
37
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
39
<blockTableStyle id="Table3">
40
<blockAlignment value="LEFT"/>
41
<blockValign value="TOP"/>
42
<lineStyle kind="LINEBELOW" colorName="#000000" start="0,-1" stop="0,-1"/>
44
<blockTableStyle id="Table7">
45
<blockAlignment value="LEFT"/>
46
<blockValign value="TOP"/>
47
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/>
48
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/>
49
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
50
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/>
51
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="2,0" stop="2,-1"/>
52
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="2,0" stop="2,0"/>
53
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="3,0" stop="3,-1"/>
54
<lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="3,0" stop="3,-1"/>
55
<lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,0" stop="3,0"/>
56
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,1" stop="0,-1"/>
57
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
58
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,1" stop="1,-1"/>
59
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
60
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="2,1" stop="2,-1"/>
61
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="2,-1" stop="2,-1"/>
62
<lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="3,1" stop="3,-1"/>
63
<lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="3,1" stop="3,-1"/>
64
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/>
66
<blockTableStyle id="Table8">
67
<blockAlignment value="LEFT"/>
68
<blockValign value="TOP"/>
69
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
70
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
71
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="2,-1" stop="2,-1"/>
72
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/>
73
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/>
74
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="5,-1" stop="5,-1"/>
75
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="6,-1" stop="6,-1"/>
76
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="7,-1" stop="7,-1"/>
77
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="8,-1" stop="8,-1"/>
79
<blockTableStyle id="Table9">
80
<blockAlignment value="LEFT"/>
81
<blockValign value="TOP"/>
82
<lineStyle kind="LINEBELOW" colorName="#000000" start="0,-1" stop="0,-1"/>
83
<lineStyle kind="LINEBELOW" colorName="#000000" start="1,-1" stop="1,-1"/>
84
<lineStyle kind="LINEBELOW" colorName="#000000" start="2,-1" stop="2,-1"/>
85
<lineStyle kind="LINEBELOW" colorName="#000000" start="3,-1" stop="3,-1"/>
86
<lineStyle kind="LINEBELOW" colorName="#000000" start="4,-1" stop="4,-1"/>
88
<blockTableStyle id="Table2">
89
<blockAlignment value="LEFT"/>
90
<blockValign value="TOP"/>
91
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
92
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
93
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="2,-1" stop="2,-1"/>
94
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/>
95
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/>
98
<paraStyle name="all" alignment="justify"/>
100
<paraStyle name="P1" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
101
<paraStyle name="P2" fontName="Helvetica-Bold" fontSize="14.0" leading="17" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
102
<paraStyle name="P3" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/>
103
<paraStyle name="P4" fontName="Helvetica" fontSize="6.0" leading="8"/>
104
<paraStyle name="P5" fontName="Helvetica-Bold" fontSize="10.0" leading="13"/>
105
<paraStyle name="P6" fontName="Helvetica" fontSize="10.0" leading="13"/>
106
<paraStyle name="P7" fontName="Helvetica" fontSize="6.0" leading="8" spaceBefore="0.0" spaceAfter="6.0"/>
107
<paraStyle name="P8" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="LEFT" spaceBefore="12.0" spaceAfter="6.0"/>
108
<paraStyle name="P9" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="LEFT" spaceBefore="12.0" spaceAfter="6.0"/>
109
<paraStyle name="P10" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
110
<paraStyle name="P11" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/>
111
<paraStyle name="P12" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="6.0" spaceAfter="6.0"/>
112
<paraStyle name="P13" fontName="Helvetica" fontSize="6.0" leading="8" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
113
<paraStyle name="P14" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
114
<paraStyle name="Standard" fontName="Helvetica"/>
115
<paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
116
<paraStyle name="Heading" fontName="Helvetica" fontSize="8.0" leading="10" spaceBefore="12.0" spaceAfter="6.0"/>
117
<paraStyle name="List" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
118
<paraStyle name="Table Contents" fontName="Helvetica"/>
119
<paraStyle name="Table Heading" fontName="Helvetica" alignment="CENTER"/>
120
<paraStyle name="Caption" fontName="Helvetica" fontSize="12.0" leading="15" spaceBefore="6.0" spaceAfter="6.0"/>
121
<paraStyle name="Index" fontName="Helvetica"/>
122
<paraStyle name="terp_header" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="LEFT" spaceBefore="12.0" spaceAfter="6.0"/>
123
<paraStyle name="terp_default_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
124
<paraStyle name="terp_default_Bold_8" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
125
<paraStyle name="terp_default_Bold_9" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
126
<paraStyle name="terp_default_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
127
<paraStyle name="terp_tblheader_General" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/>
128
<paraStyle name="terp_tblheader_General_Centre" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>
129
<paraStyle name="terp_default_Centre_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
130
<paraStyle name="terp_tblheader_Details" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/>
131
<paraStyle name="Footer" fontName="Helvetica"/>
132
<paraStyle name="Horizontal Line" fontName="Helvetica" fontSize="6.0" leading="8" spaceBefore="0.0" spaceAfter="14.0"/>
133
<paraStyle name="Heading 9" fontName="Helvetica-Bold" fontSize="75%" leading="NaN" spaceBefore="12.0" spaceAfter="6.0"/>
134
<paraStyle name="terp_tblheader_General_Right" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="6.0" spaceAfter="6.0"/>
135
<paraStyle name="terp_tblheader_Details_Centre" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>
136
<paraStyle name="terp_tblheader_Details_Right" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="6.0" spaceAfter="6.0"/>
137
<paraStyle name="terp_default_Right_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
138
<paraStyle name="terp_header_Right" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="LEFT" spaceBefore="12.0" spaceAfter="6.0"/>
139
<paraStyle name="terp_header_Centre" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="CENTER" spaceBefore="12.0" spaceAfter="6.0"/>
140
<paraStyle name="terp_default_address" fontName="Helvetica" fontSize="10.0" leading="13" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
141
<paraStyle name="terp_default_Centre_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
142
<paraStyle name="terp_default_Right_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
143
<paraStyle name="terp_default_1" fontName="Helvetica" fontSize="2.0" leading="3" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
144
<paraStyle name="terp_default_Right_9_Bold" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
145
<paraStyle name="terp_default_Italic" rightIndent="0.0" leftIndent="20.0" fontName="Helvetica-Oblique" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
146
<paraStyle name="Preformatted Text" fontName="Helvetica" fontSize="10.0" leading="13" spaceBefore="0.0" spaceAfter="0.0"/>
147
<paraStyle name="terp_default_Centre_9_Bold" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
151
<para style="terp_default_8">[[repeatIn(objects,'shipment')]]</para>
152
<blockTable colWidths="531.0" style="Table1">
156
<font color="white"> </font>
159
<font color="white"> </font>
164
<para style="terp_default_8">
165
<font color="white"> </font>
167
<para style="terp_header">Invoice - [[ time.strftime('%d/%m/%Y') ]]</para>
168
<blockTable colWidths="132.0,134.0,135.0,135.0" style="Table4">
171
<para style="P3">Cargo Manifest Reference</para>
174
<para style="terp_default_8">
175
<font color="white"> </font>
179
<para style="P3">Packing Reference</para>
182
<para style="terp_default_8">[[ shipment.name ]]</para>
187
<font color="white"> </font>
189
<blockTable colWidths="531.0" style="Table5">
193
<font color="white"> </font>
198
<para style="Standard">
199
<font color="white"> </font>
201
<blockTable colWidths="268.0,267.0" style="Table6">
204
<para style="P3">From:</para>
207
<para style="P3">To:</para>
212
<para style="terp_default_8">[[ user.name ]]</para>
213
<para style="terp_default_8">[[ user.address_id.street ]],</para>
214
<para style="terp_default_8">[[ user.address_id.city ]],</para>
215
<para style="terp_default_8">[[ user.address_id.country_id.name ]]</para>
218
<para style="terp_default_8">[[ shipment.partner_id.name ]]</para>
219
<para style="terp_default_8">[[ shipment.address_id.street ]],</para>
220
<para style="terp_default_8">[[ shipment.address_id.city ]],</para>
221
<para style="terp_default_8">[[ shipment.address_id.country_id.name ]]</para>
226
<font color="white"> </font>
228
<blockTable colWidths="531.0" style="Table3">
232
<font color="white"> </font>
237
<para style="P9">High level description of goods:</para>
239
<font color="white"> </font>
241
<blockTable colWidths="132.0,134.0,135.0,135.0" style="Table7">
244
<para style="P3">Number of Parcels</para>
247
<para style="terp_default_8">[[ shipment.num_of_packs ]]</para>
251
<font color="white"> </font>
255
<para style="terp_default_8">
256
<font color="white"> </font>
262
<para style="P3">Total Amount</para>
265
<para style="terp_default_8">[[ shipment.total_amount ]] [[ shipment.currency_id.name ]]</para>
268
<para style="P3">Total Weight</para>
271
<para style="terp_default_8">[[ shipment.total_weight ]] kg</para>
275
<para style="Standard">
276
<font color="white"> </font>
278
<para style="P8">Parcels details</para>
280
<para style="P13">[[repeatIn(shipment.pack_family_memory_ids,'pack_family')]]</para>
281
<blockTable colWidths="41.0,81.0,40.0,33.0,33.0,104.0,68.0,68.0,68.0" style="Table8">
284
<para style="terp_default_9">SO ref: [[ pack_family.sale_order_id.name ]]</para>
287
<para style="P10">PPL ref: [[ pack_family.ppl_id.name ]]</para>
290
<para style="P10">#Packs: [[ pack_family.num_of_packs ]]</para>
293
<para style="P10">From p: [[ pack_family.from_pack ]]</para>
296
<para style="P10">To p: [[ pack_family.to_pack ]]</para>
299
<para style="P10">Pack Weight [kg]: [[ pack_family.weight ]]</para>
302
<para style="terp_default_Right_9">Total Weight [kg]: [[ pack_family.total_weight ]]</para>
305
<para style="terp_default_Right_9">Pack Value: [[ pack_family.amount ]] [[ pack_family.currency_id.name ]]</para>
308
<para style="terp_default_Right_9">Total value: [[ pack_family.total_amount ]][[ pack_family.currency_id.name ]]</para>
312
<blockTable colWidths="115.0,174.0,66.0,51.0,110.0" repeatRows="1" style="Table9">
315
<para style="terp_tblheader_Details">Product Code</para>
318
<para style="P11">Product Name</para>
321
<para style="P11">Unit Price</para>
324
<para style="P11">Qty</para>
327
<para style="P12">Total Value</para>
332
<para style="P14">[[repeatIn(pack_family.move_lines,'move')]]</para>
333
<blockTable colWidths="117.0,174.0,66.0,51.0,110.0" style="Table2">
336
<para style="terp_default_9">[[ move.product_id.code ]]</para>
339
<para style="P10">[[ move.product_id.name ]]</para>
342
<para style="P10">[[ move.sale_line_id.price_unit ]] [[ move.currency_id.name ]]</para>
345
<para style="P10">[[ move.product_qty ]]</para>
348
<para style="terp_default_Right_9">[[ move.total_amount ]] [[ move.currency_id.name ]]</para>
353
<font color="white"> </font>
356
<font color="white"> </font>