~camptocamp/hr-timesheet/hr-partner-creation-recruitement-vre

« back to all changes in this revision

Viewing changes to hr_timesheet_print/report/timesheet_report.rml

  • Committer: Joël Grand-Guillaume
  • Date: 2011-08-12 12:33:12 UTC
  • Revision ID: joel.grandguillaume@camptocamp.com-20110812123312-r789gjznich0wwnj
[ADD] First commit of the first generic modules to move in our new public branch
(lp:c2c-addons/6.1  rev 1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
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="35.0" y1="35.0" width="525" height="772"/>
 
6
        <pageGraphics>
 
7
               <setFont name="Helvetica-Bold" size="9"/>
 
8
 
 
9
               <drawString x="1.0cm" y="28.1cm">[[ company.name ]]</drawString>
 
10
               <drawString x="17.7cm" y="28.1cm">Maintenance And Support Summary</drawString>
 
11
 
 
12
               <setFont name="Helvetica" size="9"/>
 
13
               <drawString x="1.0cm" y="2cm"> [[ time.strftime("%m-%d-%y %H:%M", time.localtime()) ]]</drawString>
 
14
               <drawString x="17.7cm" y="2cm">Page <pageNumber/></drawString>
 
15
 
 
16
               <lineMode width="0.7"/>
 
17
               <lines>0.6cm 27.9cm 20.3cm 27.9cm</lines>
 
18
               <setFont name="Helvetica" size="8"/>
 
19
             </pageGraphics>   
 
20
 
 
21
    </pageTemplate>
 
22
  </template>
 
23
  <stylesheet>
 
24
    <blockTableStyle id="Standard_Outline">
 
25
      <blockAlignment value="LEFT"/>
 
26
      <blockValign value="TOP"/>
 
27
    </blockTableStyle>
 
28
    <blockTableStyle id="Table1">
 
29
        <lineStyle kind="LINEBELOW" colorName="#ffffff" start="0,0" stop="-1,-1"/>
 
30
      <blockAlignment value="LEFT"/>
 
31
      <blockValign value="TOP"/>
 
32
      <blockBackground colorName="#e6e6e6" start="0,0" stop="0,-1"/>
 
33
      <blockBackground colorName="#e6e6e6" start="1,0" stop="1,-1"/>
 
34
      <blockBackground colorName="#e6e6e6" start="2,0" stop="2,-1"/>
 
35
      <blockBackground colorName="#e6e6e6" start="0,1" stop="0,-1"/>
 
36
      <blockBackground colorName="#e6e6e6" start="1,1" stop="1,-1"/>
 
37
      <blockBackground colorName="#e6e6e6" start="2,1" stop="2,-1"/>
 
38
      
 
39
    </blockTableStyle>
 
40
    <blockTableStyle id="Table6">
 
41
      <blockAlignment value="LEFT"/>
 
42
      <blockValign value="TOP"/>
 
43
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="0,0" stop="0,-1"/>
 
44
      <lineStyle kind="LINEABOVE" colorName="#000000" start="0,0" stop="0,0"/>
 
45
      <lineStyle kind="LINEBELOW" colorName="#000000" start="0,-1" stop="0,-1"/>
 
46
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="1,0" stop="1,-1"/>
 
47
      <lineStyle kind="LINEABOVE" colorName="#000000" start="1,0" stop="1,0"/>
 
48
      <lineStyle kind="LINEBELOW" colorName="#000000" start="1,-1" stop="1,-1"/>
 
49
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="2,0" stop="2,-1"/>
 
50
      <lineStyle kind="LINEABOVE" colorName="#000000" start="2,0" stop="2,0"/>
 
51
      <lineStyle kind="LINEBELOW" colorName="#000000" start="2,-1" stop="2,-1"/>
 
52
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="3,0" stop="3,-1"/>
 
53
      <lineStyle kind="LINEAFTER" colorName="#000000" start="3,0" stop="3,-1"/>
 
54
      <lineStyle kind="LINEABOVE" colorName="#000000" start="3,0" stop="3,0"/>
 
55
      <lineStyle kind="LINEBELOW" colorName="#000000" start="3,-1" stop="3,-1"/>
 
56
    </blockTableStyle>
 
57
    <blockTableStyle id="Table2">
 
58
      <lineStyle kind="LINEBELOW" colorName="#000000" start="0,0" stop="-1,0"/>
 
59
      <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,1" stop="-1,-1"/>
 
60
      
 
61
      <blockValign value="TOP"/>
 
62
      <blockAlignment value="RIGHT" start="2,1" stop="-1,-1"/>
 
63
    </blockTableStyle>
 
64
    <blockTableStyle id="Table3">
 
65
      <blockAlignment value="LEFT"/>
 
66
      <blockValign value="TOP"/>
 
67
    </blockTableStyle>
 
68
    <blockTableStyle id="Table4">
 
69
      <blockAlignment value="LEFT"/>
 
70
      <blockValign value="TOP"/>
 
71
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="0,0" stop="0,-1"/>
 
72
      <lineStyle kind="LINEABOVE" colorName="#000000" start="0,0" stop="0,0"/>
 
73
      <lineStyle kind="LINEBELOW" colorName="#000000" start="0,-1" stop="0,-1"/>
 
74
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="1,0" stop="1,-1"/>
 
75
      <lineStyle kind="LINEABOVE" colorName="#000000" start="1,0" stop="1,0"/>
 
76
      <lineStyle kind="LINEBELOW" colorName="#000000" start="1,-1" stop="1,-1"/>
 
77
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="2,0" stop="2,-1"/>
 
78
      <lineStyle kind="LINEABOVE" colorName="#000000" start="2,0" stop="2,0"/>
 
79
      <lineStyle kind="LINEBELOW" colorName="#000000" start="2,-1" stop="2,-1"/>
 
80
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="3,0" stop="3,-1"/>
 
81
      <lineStyle kind="LINEAFTER" colorName="#000000" start="3,0" stop="3,-1"/>
 
82
      <lineStyle kind="LINEABOVE" colorName="#000000" start="3,0" stop="3,0"/>
 
83
      <lineStyle kind="LINEBELOW" colorName="#000000" start="3,-1" stop="3,-1"/>
 
84
    </blockTableStyle>
 
85
    <blockTableStyle id="Table7">
 
86
      <lineStyle kind="LINEBELOW" colorName="#000000" start="0,0" stop="-1,0"/>
 
87
    </blockTableStyle>
 
88
  
 
89
    <initialize>
 
90
      <paraStyle name="all" alignment="justify"/>
 
91
    </initialize>
 
92
    <paraStyle name="P1" fontName="Helvetica-Bold" fontSize="14.0" leading="25" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
 
93
    <paraStyle name="P2" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="6.0"/>
 
94
    <paraStyle name="P2c" fontName="Helvetica" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
 
95
    <paraStyle name="P3" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="6.0"/>
 
96
    <paraStyle name="P10" fontName="Helvetica" fontSize="8.0" leading="14" spaceBefore="0.0" spaceAfter="6.0" alignment="RIGHT"/>
 
97
   <paraStyle name="P9" fontName="Helvetica-Bold" alignment="CENTER" fontSize="14.5" leftIndent="-5.0"/>
 
98
    <paraStyle name="P9b" fontName="Helvetica" fontSize="8"  alignment="LEFT"/>
 
99
    <paraStyle name="P9c" fontName="Helvetica" fontSize="8"  alignment="RIGHT"/>
 
100
    <paraStyle name="P12" fontName="Helvetica" fontSize="8.0" leading="14" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
 
101
    <paraStyle name="P12a" fontName="Helvetica-Bold" fontSize="8.0" alignment="LEFT" spaceBefore="0.0" spaceAfter="6.0"/>
 
102
    <paraStyle name="P14" rightIndent="17.0" leftIndent="-0.0" fontName="Helvetica" fontSize="8.0" leading="10" spaceBefore="0.0" spaceAfter="6.0"/>
 
103
 
 
104
 
 
105
    <blockTableStyle id="TrLevel6">
 
106
      <blockLeftPadding length="60" start="1,0" stop="1,0"/>
 
107
    </blockTableStyle>
 
108
    <blockTableStyle id="TrLevel5">
 
109
      <blockLeftPadding length="40" start="1,0" stop="1,0"/>
 
110
    </blockTableStyle>
 
111
    <blockTableStyle id="TrLevel4">
 
112
      <blockLeftPadding length="20" start="1,0" stop="1,0"/>
 
113
    </blockTableStyle>
 
114
    <blockTableStyle id="TrLevel3">
 
115
      <blockLeftPadding length="0" start="1,0" stop="1,0"/>
 
116
    </blockTableStyle>
 
117
    <blockTableStyle id="TrLevel2">
 
118
      <blockLeftPadding length="0" start="1,0" stop="1,0"/>
 
119
      <lineStyle kind="LINEBELOW" colorName="#777777" start="1,0" stop="1,0"/>
 
120
      <blockTopPadding length="13" start="0,0" stop="-1,0"/>
 
121
      <blockBottomPadding length="2" start="0,0" stop="-1,0"/>
 
122
      <blockFont name="Times-Bold" start="0,0" stop="-1,-1"/>
 
123
    </blockTableStyle>
 
124
    <blockTableStyle id="TrLevel1">
 
125
      <lineStyle kind="LINEBELOW" colorName="#000000" start="0,0" stop="-1,0"/>
 
126
      <blockLeftPadding length="0" start="1,0" stop="1,0"/>
 
127
      <blockTopPadding length="26" start="0,0" stop="-1,0"/>
 
128
      <blockBottomPadding length="2" start="0,0" stop="-1,0"/>
 
129
      <blockFont name="Times-Bold" start="0,0" stop="-1,-1"/>
 
130
    </blockTableStyle>
 
131
 
 
132
    <paraStyle
 
133
        name="Level5" 
 
134
        fontName="Helvetica"
 
135
        fontSize="8.0" />
 
136
    <paraStyle
 
137
        name="Level4" 
 
138
        fontName="Helvetica" 
 
139
        fontSize="8.0" />
 
140
    <paraStyle
 
141
        name="Level3" 
 
142
        fontName="Helvetica" 
 
143
        fontSize="8.0" />
 
144
    <paraStyle
 
145
        name="Level2" 
 
146
        firstLineIndent="-0.03cm"
 
147
        fontName="Helvetica-Bold" 
 
148
        fontSize="8.0" />
 
149
    <paraStyle name="Level1"
 
150
        fontSize="8.0"
 
151
        fontName="Helvetica-Bold" 
 
152
        />
 
153
    <paraStyle name="Caption" fontName="Helvetica" fontSize="10.0" leading="13" spaceBefore="6.0" spaceAfter="6.0"/>
 
154
    <paraStyle name="Index" fontName="Helvetica"/>
 
155
  </stylesheet>
 
156
  <images/>
 
157
  <story>
 
158
 
 
159
   <para style="P2">[[ objects and objects[0] and setLang(objects[0].account_id.partner_id.lang) ]]</para>
 
160
   <para style="P1">Spent hours details</para>
 
161
 
 
162
    <para style="P12a"></para>
 
163
    <para style="P12a"></para>
 
164
    <blockTable colWidths="258.0,259.0" style="Table1" repeatRows="1">
 
165
        <tr>
 
166
            <td>
 
167
              <para style="P12a">Report Date : </para>
 
168
            </td>
 
169
            <td>
 
170
              <para style="P2">[[ time.strftime("%d.%m.%Y", time.localtime()) ]]</para>
 
171
            </td>
 
172
        </tr>
 
173
        <tr>
 
174
            <td>
 
175
              <!-- <para style="P12a">[[ o.type == 'hours' and "Quantity of hours" or "Amount"]] used : </para> -->
 
176
              <para style="P12a">Total hours : </para>
 
177
            </td>
 
178
            <td>
 
179
              <para style="P2">[[ round(tot_hours['total'],2) ]]</para>
 
180
            </td>
 
181
        </tr>
 
182
        <tr>
 
183
            <td>
 
184
              <!-- <para style="P12a">[[ o.type == 'hours' and "Quantity of hours" or "Amount"]] used : </para> -->
 
185
              <para style="P12a">Invoiced hours : </para>
 
186
            </td>
 
187
            <td>
 
188
              <para style="P2">[[ round(tot_hours['deduced'],2) or '0.0' ]]</para>
 
189
            </td>
 
190
        </tr>
 
191
    </blockTable>
 
192
    <para style="P12a"></para>
 
193
    <para style="P12a"></para>
 
194
    <para style="P12a"></para>
 
195
    <blockTable colWidths="58,305.0,52.0,52.0,52.0" style="Table2" repeatRows="1">
 
196
      <tr>
 
197
        <td>
 
198
          <para style="P12a">Date</para>
 
199
        </td>
 
200
        <td>
 
201
          <para style="P12a">Description</para>
 
202
        </td>
 
203
        <td>
 
204
          <para style="P12a">Quantity</para>
 
205
        </td>
 
206
        <td>
 
207
          <para style="P12a">Invoicing</para>
 
208
        </td>
 
209
        <td>
 
210
          <para style="P12a">Deduced</para>
 
211
        </td>
 
212
      </tr>
 
213
      
 
214
       <tr>
 
215
           [[ repeatIn(objects,'l') ]]
 
216
         <td>
 
217
           <para style="P2">[[ l.date and format_date(l.date) or '' ]]</para>
 
218
         </td>
 
219
         <td>
 
220
           <para style="P2">[[ l.name or '' ]]</para>
 
221
         </td>
 
222
         <td>
 
223
           <para style="P2c">[[ round(l.to_invoice.factor &gt;= 0.0 and l.unit_amount or l.to_invoice.factor &lt;= -0.01 and l.unit_amount and ((l.unit_amount and l.to_invoice) and (l.unit_amount - (l.unit_amount * l.to_invoice.factor) / 100 ) or '0.0') or '0.0',2) ]]</para>
 
224
         </td>
 
225
         <td>
 
226
           <para style="P2c">[[ l.to_invoice.factor &gt;= 0.0 and l.to_invoice.customer_name or l.to_invoice.factor &lt;= -0.01 and '100%' ]]</para>
 
227
         </td>
 
228
         <td>
 
229
           <para style="P2c">[[ round((l.unit_amount and l.to_invoice) and (l.unit_amount - (l.unit_amount * l.to_invoice.factor) / 100 ) or '0.0', 2) ]]</para>
 
230
         </td>
 
231
       </tr>
 
232
    </blockTable>
 
233
 
 
234
  </story>
 
235
</document>
 
236