~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to msf_budget/report/engagement.rml

  • Committer: jf
  • Date: 2011-03-23 13:23:55 UTC
  • Revision ID: jf@tempo4-20110323132355-agyf1soy7m5ewatr
Initial Import

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0"?>
2
 
<document filename="test.pdf">
3
 
    <template allowSplitting="20" author="Medecins Sans Frontieres"
4
 
        pageSize="(595.0,842.0)" title="Test">
5
 
        <pageTemplate id="first">
6
 
            <frame height="756" id="first" width="539" x1="42.0" y1="42.0"/>
7
 
            <pageGraphics>
8
 
                <fill color="blue"/>
9
 
                <image height="53.3" width="100" x="35" y="790.0">[[ company.logo or removeParentNode('image') ]]</image>
10
 
                <setFont name="Helvetica" size="8"/>
11
 
                <fill color="black"/>
12
 
                <drawString x="275" y="10.0">Page <pageNumber/>
13
 
                </drawString>
14
 
                <!-- TODO: OEB-148 - Waiting integration on unifield-server -->
15
 
                <!--            <drawString x="765" y="520.0">/</drawString>
16
 
            <drawString x="770" y="520.0"><pageCount /> </drawString>-->
17
 
            </pageGraphics>
18
 
        </pageTemplate>
19
 
    </template>
20
 
    <stylesheet>
21
 
        <blockTableStyle id="Standard_Outline">
22
 
            <blockAlignment value="LEFT"/>
23
 
            <blockValign value="TOP"/>
24
 
        </blockTableStyle>
25
 
        <blockTableStyle id="Table2">
26
 
            <blockAlignment value="LEFT"/>
27
 
            <blockValign value="TOP"/>
28
 
            <lineStyle colorName="#000000" kind="LINEBEFORE" start="0,0" stop="0,-1"/>
29
 
            <lineStyle colorName="#000000" kind="LINEABOVE" start="0,0" stop="0,0"/>
30
 
            <lineStyle colorName="#000000" kind="LINEBELOW" start="0,-1" stop="0,-1"/>
31
 
            <lineStyle colorName="#000000" kind="LINEBEFORE" start="1,0" stop="1,-1"/>
32
 
            <lineStyle colorName="#000000" kind="LINEAFTER" start="1,0" stop="1,-1"/>
33
 
            <lineStyle colorName="#000000" kind="LINEABOVE" start="1,0" stop="1,0"/>
34
 
            <lineStyle colorName="#000000" kind="LINEBELOW" start="1,-1" stop="1,-1"/>
35
 
        </blockTableStyle>
36
 
        <blockTableStyle id="Table3">
37
 
            <blockAlignment value="LEFT"/>
38
 
            <blockValign value="TOP"/>
39
 
            <lineStyle colorName="#000000" kind="LINEBEFORE" start="0,0" stop="0,-1"/>
40
 
            <lineStyle colorName="#000000" kind="LINEABOVE" start="0,0" stop="0,0"/>
41
 
            <lineStyle colorName="#000000" kind="LINEBELOW" start="0,-1" stop="0,-1"/>
42
 
            <lineStyle colorName="#000000" kind="LINEBEFORE" start="1,0" stop="1,-1"/>
43
 
            <lineStyle colorName="#000000" kind="LINEAFTER" start="1,0" stop="1,-1"/>
44
 
            <lineStyle colorName="#000000" kind="LINEABOVE" start="1,0" stop="1,0"/>
45
 
            <lineStyle colorName="#000000" kind="LINEBELOW" start="1,-1" stop="1,-1"/>
46
 
        </blockTableStyle>
47
 
        <blockTableStyle id="Table1">
48
 
            <blockAlignment value="LEFT"/>
49
 
            <blockValign value="TOP"/>
50
 
        </blockTableStyle>
51
 
        <blockTableStyle id="Table10">
52
 
            <blockAlignment value="LEFT"/>
53
 
            <blockValign value="TOP"/>
54
 
            <lineStyle colorName="#000000" kind="LINEBELOW" start="0,-1" stop="13,-1"/>
55
 
        </blockTableStyle>
56
 
        <blockTableStyle id="Table8">
57
 
            <blockAlignment value="LEFT"/>
58
 
            <blockValign value="TOP"/>
59
 
        </blockTableStyle>
60
 
        <blockTableStyle id="Table12">
61
 
            <blockAlignment value="LEFT"/>
62
 
            <blockValign value="TOP"/>
63
 
        </blockTableStyle>
64
 
        <blockTableStyle id="Table11">
65
 
            <blockAlignment value="LEFT"/>
66
 
            <blockValign value="TOP"/>
67
 
            <lineStyle colorName="#000000" kind="LINEABOVE" start="0,-1" stop="7,-1"/>
68
 
            <lineStyle colorName="#000000" kind="LINEBELOW" start="0,-1" stop="7,-1"/>
69
 
            <lineStyle colorName="#000000" kind="LINEBEFORE" start="0,0" stop="0,-1"/>
70
 
            <lineStyle colorName="#000000" kind="LINEAFTER" start="0,0" stop="0,-1"/>
71
 
            <lineStyle colorName="#000000" kind="LINEAFTER" start="1,0" stop="1,-1"/>
72
 
            <lineStyle colorName="#000000" kind="LINEAFTER" start="2,0" stop="2,-1"/>
73
 
            <lineStyle colorName="#000000" kind="LINEAFTER" start="3,0" stop="3,-1"/>
74
 
            <lineStyle colorName="#000000" kind="LINEAFTER" start="4,0" stop="4,-1"/>
75
 
            <lineStyle colorName="#000000" kind="LINEAFTER" start="5,0" stop="5,-1"/>
76
 
            <lineStyle colorName="#000000" kind="LINEAFTER" start="6,0" stop="6,-1"/>
77
 
            <lineStyle colorName="#000000" kind="LINEAFTER" start="7,0" stop="7,-1"/>
78
 
        </blockTableStyle>
79
 
        <blockTableStyle id="Table6">
80
 
            <blockAlignment value="LEFT"/>
81
 
            <blockValign value="TOP"/>
82
 
        </blockTableStyle>
83
 
        <blockTableStyle id="Table9">
84
 
            <blockAlignment value="LEFT"/>
85
 
            <blockValign value="TOP"/>
86
 
        </blockTableStyle>
87
 
        <blockTableStyle id="Table4">
88
 
            <blockAlignment value="LEFT"/>
89
 
            <blockValign value="TOP"/>
90
 
            <lineStyle colorName="#000000" kind="LINEBELOW" start="0,-1" stop="6,-1"/>
91
 
        </blockTableStyle>
92
 
        <blockTableStyle id="Table5">
93
 
            <blockAlignment value="LEFT"/>
94
 
            <blockValign value="TOP"/>
95
 
        </blockTableStyle>
96
 
        <blockTableStyle id="Table7">
97
 
            <blockAlignment value="LEFT"/>
98
 
            <blockValign value="TOP"/>
99
 
        </blockTableStyle>
100
 
        <initialize>
101
 
            <paraStyle alignment="justify" name="all"/>
102
 
        </initialize>
103
 
        <paraStyle alignment="CENTER" fontName="Helvetica"
104
 
            fontSize="8.0" leading="11" name="P1" textColor="#4c4c4c"/>
105
 
        <paraStyle alignment="CENTER" fontName="Helvetica-Bold"
106
 
            fontSize="8.0" leading="11" name="P2"/>
107
 
        <paraStyle alignment="CENTER" fontName="Helvetica"
108
 
            fontSize="8.0" leading="11" name="P3"/>
109
 
        <paraStyle alignment="LEFT" fontName="Helvetica" fontSize="8.0"
110
 
            leading="11" name="P3a"/>
111
 
        <paraStyle fontName="Helvetica-Bold" fontSize="8.0" leading="11"
112
 
            name="P4" spaceAfter="6.0" spaceBefore="0.0"/>
113
 
        <paraStyle alignment="LEFT" fontName="Helvetica" fontSize="8.0"
114
 
            leading="10" name="P5" spaceAfter="0.0" spaceBefore="0.0"/>
115
 
        <paraStyle alignment="LEFT" fontName="Helvetica-Bold"
116
 
            fontSize="8.0" leading="10" name="P6" spaceAfter="0.0" spaceBefore="0.0"/>
117
 
        <paraStyle alignment="LEFT" fontName="Helvetica-Bold"
118
 
            fontSize="10.0" leading="13" name="P7" spaceAfter="0.0" spaceBefore="0.0"/>
119
 
        <paraStyle alignment="LEFT" fontName="Helvetica" fontSize="8.0"
120
 
            leading="11" name="P8" spaceAfter="0.0" spaceBefore="0.0"/>
121
 
        <paraStyle alignment="LEFT" fontName="Helvetica-Bold"
122
 
            fontSize="8.0" leading="11" name="P9" spaceAfter="0.0" spaceBefore="0.0"/>
123
 
        <paraStyle alignment="LEFT" fontName="Helvetica-Bold"
124
 
            fontSize="8.0" leading="11" name="P10" spaceAfter="0.0" spaceBefore="0.0"/>
125
 
        <paraStyle alignment="LEFT" fontName="Helvetica" fontSize="8.0"
126
 
            leading="11" name="P11" spaceAfter="0.0" spaceBefore="0.0"/>
127
 
        <paraStyle alignment="CENTER" fontName="Helvetica"
128
 
            fontSize="8.0" leading="11" name="P12" spaceAfter="0.0" spaceBefore="0.0"/>
129
 
        <paraStyle alignment="CENTER" fontName="Helvetica-Bold"
130
 
            fontSize="8.0" leading="11" name="P13" spaceAfter="6.0" spaceBefore="6.0"/>
131
 
        <paraStyle alignment="CENTER" fontName="Helvetica"
132
 
            fontSize="8.0" leading="11" name="P14" spaceAfter="0.0" spaceBefore="0.0"/>
133
 
        <paraStyle alignment="LEFT" fontName="Helvetica-Bold"
134
 
            fontSize="8.0" leading="11" name="P15" spaceAfter="6.0" spaceBefore="6.0"/>
135
 
        <paraStyle alignment="CENTER" fontName="Helvetica-Bold"
136
 
            fontSize="8.0" leading="11" name="P16" spaceAfter="6.0" spaceBefore="6.0"/>
137
 
        <paraStyle alignment="RIGHT" fontName="Helvetica-Bold"
138
 
            fontSize="8.0" leading="11" name="P17" spaceAfter="6.0" spaceBefore="6.0"/>
139
 
        <paraStyle alignment="RIGHT" fontName="Helvetica" fontSize="8.0"
140
 
            leading="11" name="P18" spaceAfter="0.0" spaceBefore="0.0"/>
141
 
        <paraStyle alignment="LEFT" fontName="Helvetica" fontSize="8.0"
142
 
            leading="11" name="P19" spaceAfter="0.0" spaceBefore="0.0"/>
143
 
        <paraStyle alignment="LEFT" fontName="Helvetica" fontSize="6.0"
144
 
            leading="8" name="P20" spaceAfter="0.0" spaceBefore="0.0"/>
145
 
        <paraStyle alignment="LEFT" fontName="Helvetica" fontSize="6.0"
146
 
            leading="8" name="P21" spaceAfter="0.0" spaceBefore="0.0"/>
147
 
        <paraStyle alignment="LEFT" fontName="Helvetica-Bold"
148
 
            fontSize="8.0" leading="11" name="P22" spaceAfter="0.0" spaceBefore="0.0"/>
149
 
        <paraStyle alignment="CENTER" fontName="Helvetica"
150
 
            fontSize="8.0" leading="11" name="P23"/>
151
 
        <paraStyle alignment="CENTER" fontName="Helvetica"
152
 
            fontSize="8.0" leading="11" name="P24" textColor="#444444"/>
153
 
        <paraStyle alignment="LEFT" fontName="Helvetica-Bold"
154
 
            fontSize="10.0" leading="13" name="P25" spaceAfter="0.0" spaceBefore="0.0"/>
155
 
        <paraStyle alignment="CENTER" fontName="Helvetica-Bold"
156
 
            fontSize="14.0" leading="19" name="P26" spaceAfter="0.0" spaceBefore="0.0"/>
157
 
        <paraStyle alignment="CENTER" fontName="Helvetica-Bold"
158
 
            fontSize="10.0" leading="19" name="P27" spaceAfter="0.0" spaceBefore="0.0"/>
159
 
        <paraStyle fontName="Helvetica" name="Standard"/>
160
 
        <paraStyle fontName="Helvetica" name="Text body"
161
 
            spaceAfter="6.0" spaceBefore="0.0"/>
162
 
        <paraStyle fontName="Helvetica" fontSize="8.0" leading="10"
163
 
            name="Heading" spaceAfter="6.0" spaceBefore="12.0"/>
164
 
        <paraStyle fontName="Helvetica" name="List" spaceAfter="6.0" spaceBefore="0.0"/>
165
 
        <paraStyle fontName="Helvetica" name="Table Contents"/>
166
 
        <paraStyle alignment="CENTER" fontName="Helvetica" name="Table Heading"/>
167
 
        <paraStyle fontName="Helvetica" fontSize="12.0" leading="15"
168
 
            name="Caption" spaceAfter="6.0" spaceBefore="6.0"/>
169
 
        <paraStyle fontName="Helvetica" name="Index"/>
170
 
        <paraStyle alignment="LEFT" fontName="Helvetica-Bold"
171
 
            fontSize="15.0" leading="19" name="terp_header"
172
 
            spaceAfter="6.0" spaceBefore="12.0"/>
173
 
        <paraStyle alignment="LEFT" fontName="Helvetica" fontSize="8.0"
174
 
            leading="10" name="terp_default_8" spaceAfter="0.0" spaceBefore="0.0"/>
175
 
        <paraStyle alignment="LEFT" fontName="Helvetica-Bold"
176
 
            fontSize="8.0" leading="10" name="terp_default_Bold_8"
177
 
            spaceAfter="0.0" spaceBefore="0.0"/>
178
 
        <paraStyle alignment="LEFT" fontName="Helvetica-Bold"
179
 
            fontSize="8.0" leading="11" name="terp_default_Bold_9"
180
 
            spaceAfter="0.0" spaceBefore="0.0"/>
181
 
        <paraStyle alignment="LEFT" fontName="Helvetica" fontSize="8.0"
182
 
            leading="11" name="terp_default_9" spaceAfter="0.0" spaceBefore="0.0"/>
183
 
        <paraStyle alignment="LEFT" fontName="Helvetica-Bold"
184
 
            fontSize="8.0" leading="10" name="terp_tblheader_General"
185
 
            spaceAfter="6.0" spaceBefore="6.0"/>
186
 
        <paraStyle alignment="CENTER" fontName="Helvetica-Bold"
187
 
            fontSize="8.0" leading="10"
188
 
            name="terp_tblheader_General_Centre" spaceAfter="6.0" spaceBefore="6.0"/>
189
 
        <paraStyle alignment="CENTER" fontName="Helvetica"
190
 
            fontSize="8.0" leading="10" name="terp_default_Centre_8"
191
 
            spaceAfter="0.0" spaceBefore="0.0"/>
192
 
        <paraStyle alignment="LEFT" fontName="Helvetica-Bold"
193
 
            fontSize="8.0" leading="11" name="terp_tblheader_Details"
194
 
            spaceAfter="6.0" spaceBefore="6.0"/>
195
 
        <paraStyle fontName="Helvetica" name="Footer"/>
196
 
        <paraStyle fontName="Helvetica" fontSize="6.0" leading="8"
197
 
            name="Horizontal Line" spaceAfter="14.0" spaceBefore="0.0"/>
198
 
        <paraStyle fontName="Helvetica-Bold" fontSize="75%"
199
 
            leading="NaN" name="Heading 9" spaceAfter="6.0" spaceBefore="12.0"/>
200
 
        <paraStyle alignment="RIGHT" fontName="Helvetica-Bold"
201
 
            fontSize="8.0" leading="10"
202
 
            name="terp_tblheader_General_Right" spaceAfter="6.0" spaceBefore="6.0"/>
203
 
        <paraStyle alignment="CENTER" fontName="Helvetica-Bold"
204
 
            fontSize="8.0" leading="11"
205
 
            name="terp_tblheader_Details_Centre" spaceAfter="6.0" spaceBefore="6.0"/>
206
 
        <paraStyle alignment="RIGHT" fontName="Helvetica-Bold"
207
 
            fontSize="8.0" leading="11"
208
 
            name="terp_tblheader_Details_Right" spaceAfter="6.0" spaceBefore="6.0"/>
209
 
        <paraStyle alignment="RIGHT" fontName="Helvetica" fontSize="8.0"
210
 
            leading="10" name="terp_default_Right_8" spaceAfter="0.0" spaceBefore="0.0"/>
211
 
        <paraStyle alignment="LEFT" fontName="Helvetica-Bold"
212
 
            fontSize="15.0" leading="19" name="terp_header_Right"
213
 
            spaceAfter="6.0" spaceBefore="12.0"/>
214
 
        <paraStyle alignment="CENTER" fontName="Helvetica-Bold"
215
 
            fontSize="15.0" leading="19" name="terp_header_Centre"
216
 
            spaceAfter="6.0" spaceBefore="12.0"/>
217
 
        <paraStyle alignment="LEFT" fontName="Helvetica" fontSize="10.0"
218
 
            leading="13" name="terp_default_address" spaceAfter="0.0" spaceBefore="0.0"/>
219
 
        <paraStyle alignment="CENTER" fontName="Helvetica"
220
 
            fontSize="8.0" leading="11" name="terp_default_Centre_9"
221
 
            spaceAfter="0.0" spaceBefore="0.0"/>
222
 
        <paraStyle alignment="RIGHT" fontName="Helvetica" fontSize="8.0"
223
 
            leading="11" name="terp_default_Right_9" spaceAfter="0.0" spaceBefore="0.0"/>
224
 
        <paraStyle alignment="LEFT" fontName="Helvetica" fontSize="2.0"
225
 
            leading="3" name="terp_default_1" spaceAfter="0.0" spaceBefore="0.0"/>
226
 
        <paraStyle alignment="RIGHT" fontName="Helvetica-Bold"
227
 
            fontSize="8.0" leading="11" name="terp_default_Right_9_Bold"
228
 
            spaceAfter="0.0" spaceBefore="0.0"/>
229
 
        <paraStyle alignment="LEFT" fontName="Helvetica-Oblique"
230
 
            fontSize="8.0" leading="10" leftIndent="20.0"
231
 
            name="terp_default_Italic" rightIndent="0.0"
232
 
            spaceAfter="0.0" spaceBefore="0.0"/>
233
 
        <paraStyle fontName="Helvetica" fontSize="10.0" leading="13"
234
 
            name="Preformatted Text" spaceAfter="0.0" spaceBefore="0.0"/>
235
 
        <paraStyle alignment="CENTER" fontName="Helvetica-Bold"
236
 
            fontSize="8.0" leading="11"
237
 
            name="terp_default_Centre_9_Bold" spaceAfter="0.0" spaceBefore="0.0"/>
238
 
        <images/>
239
 
    </stylesheet>
240
 
    <story>
241
 
        <para style="P5">[[repeatIn(objects,'o')]]</para>
242
 
        <para style="P27">
243
 
            <font color="white"/>
244
 
        </para>
245
 
        <para style="P26">Order impact vs. budget</para>
246
 
        <para style="P27">
247
 
            <font color="white"/>
248
 
        </para>
249
 
        <para style="P27">
250
 
            <font color="white"/>
251
 
        </para>
252
 
        <para style="P10">Delivery requested date: [[ (str(o.delivery_requested_date) and str(o.delivery_requested_date)) or '' ]]</para>
253
 
        <para style="P10">Delivery confirmed date: [[ (str(o.delivery_confirmed_date) and str(o.delivery_confirmed_date)) or '' ]]</para>
254
 
        <para style="P10">PO reference: [[ (o.name and o.name) or '' ]]</para>
255
 
        <para style="P10">Fiscal year: [[ (get_fiscal_year(o) and get_fiscal_year(o)) or ' ' ]]</para>
256
 
        <para style="P10">Functional currency: [[ o.functional_currency_id and o.functional_currency_id.name or ' ' ]]</para>
257
 
        <para style="P10">Report date: [[ time.strftime('%d/%m/%Y') ]]</para>
258
 
        <para style="P27">
259
 
            <font color="white"/>
260
 
        </para>
261
 
        <para style="P5">
262
 
            <font color="white"/>
263
 
        </para>
264
 
        <para style="P5">
265
 
            <font color="red">[[ check_distribution(o) and ' ' or 'WARNING: analytic distribution for this PO is not complete!' ]]</font>
266
 
        </para>
267
 
        <para style="P5">
268
 
            <font color="white"/>
269
 
        </para>
270
 
        <blockTable style="Table9">
271
 
            <tr>
272
 
                <td>
273
 
                    <blockTable
274
 
                        colWidths="115.0,115.0,40.0,52.0,52.0,52.0,52.0,52.0" style="Table11">
275
 
                        <tr>
276
 
                            <td>
277
 
                                <para style="P2">Cost Centre</para>
278
 
                            </td>
279
 
                            <td>
280
 
                                <para style="P2">Account</para>
281
 
                            </td>
282
 
                            <td>
283
 
                                <para style="P2">Dest.</para>
284
 
                            </td>
285
 
                            <td>
286
 
                                <para style="P2">Budget amount</para>
287
 
                            </td>
288
 
                            <td>
289
 
                                <para style="P2">Actuals amount</para>
290
 
                            </td>
291
 
                            <td>
292
 
                                <para style="P2">Remaining Budget</para>
293
 
                            </td>
294
 
                            <td>
295
 
                                <parawrap style="P2">PO amount</parawrap>
296
 
                            </td>
297
 
                            <td>
298
 
                                <parawrap style="P2">PO impact</parawrap>
299
 
                            </td>
300
 
                        </tr>
301
 
                    </blockTable>
302
 
                    <blockTable
303
 
                        colWidths="115.0,115.0,40.0,52.0,52.0,52.0,52.0,52.0" style="Table11">
304
 
                        <tr>
305
 
                            <para style="P20">[[ repeatIn(get_report_lines(o),'line', 'blockTable') ]]</para>
306
 
                            <td>
307
 
                                <para style="P3">[[ line[0] ]]</para>
308
 
                            </td>
309
 
                            <td>
310
 
                                <para style="P3a">[[ line[1] ]]</para>
311
 
                            </td>
312
 
                            <td>
313
 
                                <para style="P3">[[ line[7] ]]</para>
314
 
                            </td>
315
 
                            <td>
316
 
                                <para style="P3">
317
 
                                    <font color="red">[[ (line[2] == 'Budget missing' and line[2]) or '' ]]</font>[[ (line[2] != 'Budget missing' and formatLang(line[2], digits=0, grouping=True )) or '' ]]</para>
318
 
                            </td>
319
 
                            <td>
320
 
                                <para style="P3">[[ formatLang(line[3], digits=0, grouping=True ) or '' ]]</para>
321
 
                            </td>
322
 
                            <td>
323
 
                                <para style="P3">[[ formatLang(line[4], digits=0, grouping=True ) or '' ]]</para>
324
 
                            </td>
325
 
                            <td>
326
 
                                <para style="P3">[[ formatLang(line[5], digits=0, grouping=True ) or '' ]]</para>
327
 
                            </td>
328
 
                            <td>
329
 
                                <para style="P3">
330
 
                                    <font color="red">[[ not isPos(line[6]) and formatLang(line[6], digits=0, grouping=True ) or '' ]]</font>[[ isPos(line[6]) and formatLang(line[6], digits=0, grouping=True) or '' ]]</para>
331
 
                            </td>
332
 
                        </tr>
333
 
                    </blockTable>
334
 
                </td>
335
 
            </tr>
336
 
        </blockTable>
337
 
        <para style="P5">
338
 
            <font color="white"/>
339
 
        </para>
340
 
        <para style="P5">Actuals amounts in this report include confirmed POs (commitments) but not open / validated POs</para>
341
 
    </story>
342
 
</document>