2
<document filename="test.pdf">
3
<template pageSize="(27.94cm,21.59cm)" title="Test" author="Martin Simon" allowSplitting="20" showBoundary="0">
4
<pageTemplate id="first">
5
<frame id="first" x1="1.0cm" y1="1.0cm" width="26.0cm" height="16.65cm"/>
7
<setFont name="Helvetica" size="9"/>
9
<image x="1.0cm" y="17.65cm" width="5.0cm">[[company.logo and company.logo or removeParentNode('image')]]</image>
11
<drawString x="1.0cm" y="24.5cm">[[company.logo and removeParentNode('para') or company.name]]</drawString>
14
<place x="-3.5cm" y="16.15cm" width="19cm" height="5.0cm">
15
<blockTable colWidths="9.6cm,9.4cm" style="TITLE">
17
<td><para style="TOP_TITLE"></para></td>
18
<td><para style="TITLE_CENTER_NAME">
19
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font>
20
<font>[[ company.partner_id.vat and ('- %s-%s-%s'%(company.partner_id.vat[2:3],company.partner_id.vat[3:11],company.partner_id.vat[11:12])) or '' ]]</font>
24
<td><para style="TOP_TITLE"></para></td>
25
<td><para style="TITLE_CENTER">[[ get_informe_text(data['form']) ]]</para></td>
28
<td><para style="TOP_TITLE"></para></td>
29
<td><para style="TITLE_CENTER">(Expressed in [[data['form'] and (' %s'%( exchange_name(data['form']))) or '']])</para></td>
32
<td><para style="TOP_TITLE"></para></td>
33
<td><para style="TITLE_CENTER">[[data['form'] and get_month(data['form']) or '']]</para></td>
37
<drawRightString x="270mm" y="5mm"> Pag.: <pageNumber/></drawRightString>
43
<blockTableStyle id="BODY_LINE">
44
<blockValign value="TOP"/>
45
<blockAlignment value="RIGHT"/>
46
<blockTopPadding length="1.0"/>
47
<blockBottomPadding length="1.0"/>
48
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,0" stop="-1,-1" thickness='0.25'/>
50
<blockTableStyle id="BODY_LINE_FILLED">
51
<blockBackground colorName="lightgrey" start="0,0" stop="-1,-1"/>
52
<blockValign value="TOP"/>
53
<blockAlignment value="RIGHT"/>
54
<blockTopPadding length="1.0"/>
55
<blockBottomPadding length="1.0"/>
56
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,0" stop="-1,-1" thickness='0.25'/>
58
<blockTableStyle id="TITLE">
59
<blockValign value="TOP"/>
61
<blockTableStyle id="BODY">
62
<blockValign value="TOP"/>
63
<blockAlignment value="RIGHT"/>
64
<blockTopPadding length="1.0"/>
65
<blockBottomPadding length="1.0"/>
66
<lineStyle kind="LINEBELOW" colorName="darkgrey" start="0,0" stop="-1,-1" thickness='0.25'/>
68
<blockTableStyle id="BODY_STRIKE">
69
<blockValign value="TOP"/>
70
<blockAlignment value="RIGHT"/>
71
<blockTopPadding length="1.0"/>
72
<blockBottomPadding length="1.0"/>
73
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,1" stop="-1,-1" thickness='0.5'/>
75
<blockTableStyle id="TOP_TABLE">
76
<blockAlignment value="LEFT"/>
77
<blockValign value="TOP"/>
78
<lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,-1" stop="0,-1" thickness='0.25'/>
82
<paraStyle name="all" alignment="justify"/>
86
name="TITLE_LEFT_ALIGN_NEW"
93
<paraStyle name="TITLES_NEW"
100
<paraStyle name="TITLES_NEW_P"
101
fontName="Helvetica-Bold"
107
<paraStyle name="TITLES_NEW_RIGHT"
115
name="TITLE_LEFT_ALIGN"
116
fontName="Helvetica-Bold"
122
<paraStyle name="TOP_TITLE" fontName="Helvetica-Bold" fontSize="7" leftIndent="0.0" alignment="LEFT"/>
125
fontName="Helvetica-Bold"
131
<paraStyle name="TITLE_CENTER" fontName="Helvetica-Bold" fontSize="7" leading="10" leftIndent="0.0" alignment="CENTER"/>
132
<paraStyle name="TITLE_CENTER_NAME" fontName="Helvetica-Bold" fontSize="12" leading="13" leftIndent="0.0" alignment="CENTER"/>
144
<para>[[setLang(user.lang)]]</para>
146
<blockTable colWidths="2.5cm,13.5cm,2.5cm,2.5cm,2.5cm,2.5cm" style="BODY" repeatRows="0">
149
<para style="TITLE_LEFT_ALIGN">
154
<para style="TITLES">ACCOUNT</para>
157
<para style="TITLE_LEFT_ALIGN">INITIAL</para>
160
<para style="TITLE_LEFT_ALIGN">DEBIT</para>
163
<para style="TITLE_LEFT_ALIGN">CREDIT</para>
166
<para style="TITLE_LEFT_ALIGN">BALANCE</para>
170
<blockTable colWidths="6.0cm,3.0cm,3.0cm,2.5cm,4.0cm,2.5cm,2.5cm,2.5cm" style="BODY_LINE" repeatRows="0">
172
[[ (a['type'] <> 'view') or removeParentNode('blockTable') ]]
176
<para style="TITLES_NEW">
181
<para style="TITLES_NEW">
186
<para style="TITLES_NEW">JOURNAL ENTRY</para>
189
<para style="TITLE_LEFT_ALIGN"></para>
192
<para style="TITLE_LEFT_ALIGN"></para>
195
<para style="TITLE_LEFT_ALIGN"></para>
198
<para style="TITLE_LEFT_ALIGN"></para>
201
<para style="TITLE_LEFT_ALIGN"></para>
206
<para>[[ repeatIn([x for x in lines(data['form']) if x['type'] != 'view'], 'a') ]]</para>
207
<blockTable colWidths="2.5cm,13.5cm,2.5cm,2.5cm,2.5cm,2.5cm" style="BODY" repeatRows="0">
210
<para style="TITLE_LEFT_ALIGN">
211
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font>
212
<i>[[a['label']==True and a['code'] or '' ]]</i>
216
<para style="TITLES">
217
<font>[[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}))) or removeParentNode('font') ]]</font>
218
<font>[[ a['type']=='view' and a['name'].upper() or a['name'].title() ]]</font>
222
<para style="TITLE_LEFT_ALIGN">
223
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font>
224
<font>[[ (a['total']==True) and formatLang(a['balanceinit'] and a['balanceinit'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']]</font>
228
<para style="TITLE_LEFT_ALIGN">
229
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font>
230
<font>[[ (a['total']==True) and formatLang(a['debit'], digits=2, grouping=True) or '']]</font>
234
<para style="TITLE_LEFT_ALIGN">
235
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font>
236
<font>[[ (a['total']==True) and formatLang(a['credit'], digits=2, grouping=True) or '']]</font>
240
<para style="TITLE_LEFT_ALIGN">
241
<font>[[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]]</font>
242
<font>[[ (a['total']==True) and formatLang(a['balance'] and a['balance'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']]</font>
249
<para>[[ repeatIn(a['journal'], 'j') ]]</para>
250
<blockTable colWidths="6.0cm,3.0cm,3.0cm,2.5cm,4.0cm,2.5cm,2.5cm,2.5cm" style="BODY_LINE" repeatRows="1">
252
[[ (a['type'] <> 'view') or removeParentNode('blockTable') ]]
256
<para style="TITLES_NEW_P">
257
<font> [[ formatLang( j['date'], date=True) ]]</font>
261
<para style="TITLES_NEW_P">
262
<font>[[ j['period'] ]]</font>
266
<para style="TITLES_NEW_P">
267
<font>[[ j['name'] ]] </font>
271
<para style="TITLES_NEW_">
277
<para style="TITLES_NEW">
282
<para style="TITLE_LEFT_ALIGN">
286
<para style="TITLE_LEFT_ALIGN">
290
<para style="TITLE_LEFT_ALIGN">
296
<para>[[ repeatIn(j.get('obj').line_id, 'k') ]]</para>
297
<blockTable colWidths="6.0cm,3.0cm,3.0cm,1.5cm,5.0cm,2.5cm,2.5cm,2.5cm" style="BODY_LINE_FILLED" repeatRows="1">
300
<para style="TITLES_NEW">
301
<font> [[ k.account_id.code == a['code'] and k.name or removeParentNode('blockTable') ]]</font>
305
<para style="TITLES_NEW">
306
<font>[[ k.ref and k.ref or '']]</font>
310
<para style="TITLES_NEW">
311
<font>[[ k.partner_id and k.partner_id.name or '']]</font>
315
<para style="TITLES_NEW">
316
<font>[[ k.account_id and k.account_id.code or '']]</font>
320
<para style="TITLES_NEW">
321
<font>[[ k.account_id and k.account_id.name or '']]</font>
325
<para style="TITLES_NEW_RIGHT">
326
<font>[[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font>
327
<font>[[ k.debit and formatLang(k.debit, digits=2, grouping=True) or '' ]] </font>
331
<para style="TITLES_NEW_RIGHT">
332
<font>[[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font>
333
<font>[[ k.credit and formatLang(k.credit, digits=2, grouping=True) or '' ]] </font>
337
<para style="TITLES_NEW_RIGHT">
338
<font>[[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font>
339
<font>[[ k.reconcile_id and k.reconcile_id.name or k.reconcile_partial_id and k.reconcile_partial_id.name or '']]</font>
344
<blockTable colWidths="6.0cm,3.0cm,3.0cm,1.5cm,5.0cm,2.5cm,2.5cm,2.5cm" style="BODY_LINE" repeatRows="1">
347
<para style="TITLES_NEW">
348
<font> [[ k.account_id.code != a['code'] and k.name or removeParentNode('blockTable') ]]</font>
352
<para style="TITLES_NEW">
353
<font>[[ k.ref and k.ref or '']]</font>
357
<para style="TITLES_NEW">
358
<font>[[ k.partner_id and k.partner_id.name or '']]</font>
362
<para style="TITLES_NEW">
363
<font>[[ k.account_id and k.account_id.code or '']]</font>
367
<para style="TITLES_NEW">
368
<font>[[ k.account_id and k.account_id.name or '']]</font>
372
<para style="TITLES_NEW_RIGHT">
373
<font>[[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font>
374
<font>[[ k.debit and formatLang(k.debit, digits=2, grouping=True) or '' ]] </font>
378
<para style="TITLES_NEW_RIGHT">
379
<font>[[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font>
380
<font>[[ k.credit and formatLang(k.credit, digits=2, grouping=True) or '' ]] </font>
384
<para style="TITLES_NEW_RIGHT">
385
<font>[[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font>
386
<font>[[ k.reconcile_id and k.reconcile_id.name or k.reconcile_partial_id and k.reconcile_partial_id.name or '']]</font>
392
<spacer length="1.5mm"/>
394
<spacer length="2.5mm"/>