~openbias/bias-trunk/bias-public-trunk

« back to all changes in this revision

Viewing changes to bias_base_customization/account/report/invoice_entry_print.rml

  • Committer: Jose Patricio
  • Date: 2011-10-19 03:16:40 UTC
  • Revision ID: josepato@bias.com.mx-20111019031640-05zd7r5lxwx084qu
el push inicial

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="(792.0,612.0)" title="Test" author="Martin Simon" allowSplitting="20">
 
4
    <pageTemplate id="first">
 
5
      <frame id="first" x1="9.0" y1="28.0" width="780" height="580"/>
 
6
    </pageTemplate>
 
7
  </template>
 
8
  <stylesheet>
 
9
    <blockTableStyle id="Standard_Outline">
 
10
      <blockAlignment value="LEFT"/>
 
11
      <blockValign value="TOP"/>
 
12
    </blockTableStyle>
 
13
    <blockTableStyle id="Table1">
 
14
      <blockAlignment value="LEFT"/>
 
15
      <blockValign value="TOP"/>
 
16
    </blockTableStyle>
 
17
    <blockTableStyle id="Tabla1">
 
18
      <blockAlignment value="LEFT"/>
 
19
      <blockValign value="TOP"/>
 
20
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="0,0" stop="0,-1"/>
 
21
      <lineStyle kind="LINEABOVE" colorName="#000000" start="0,0" stop="0,0"/>
 
22
      <lineStyle kind="LINEBELOW" colorName="#000000" start="0,-1" stop="0,-1"/>
 
23
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="1,0" stop="1,-1"/>
 
24
      <lineStyle kind="LINEABOVE" colorName="#000000" start="1,0" stop="1,0"/>
 
25
      <lineStyle kind="LINEBELOW" colorName="#000000" start="1,-1" stop="1,-1"/>
 
26
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="2,0" stop="2,-1"/>
 
27
      <lineStyle kind="LINEAFTER" colorName="#000000" start="2,0" stop="2,-1"/>
 
28
      <lineStyle kind="LINEABOVE" colorName="#000000" start="2,0" stop="2,0"/>
 
29
      <lineStyle kind="LINEBELOW" colorName="#000000" start="2,-1" stop="2,-1"/>
 
30
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="0,1" stop="0,-1"/>
 
31
      <lineStyle kind="LINEBELOW" colorName="#000000" start="0,-1" stop="0,-1"/>
 
32
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="1,1" stop="1,-1"/>
 
33
      <lineStyle kind="LINEBELOW" colorName="#000000" start="1,-1" stop="1,-1"/>
 
34
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="2,1" stop="2,-1"/>
 
35
      <lineStyle kind="LINEAFTER" colorName="#000000" start="2,1" stop="2,-1"/>
 
36
      <lineStyle kind="LINEBELOW" colorName="#000000" start="2,-1" stop="2,-1"/>
 
37
    </blockTableStyle>
 
38
    <blockTableStyle id="Table9">
 
39
      <blockAlignment value="LEFT"/>
 
40
      <blockValign value="TOP"/>
 
41
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="0,0" stop="0,-1"/>
 
42
      <lineStyle kind="LINEABOVE" colorName="#000000" start="0,0" stop="0,0"/>
 
43
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="1,0" stop="1,-1"/>
 
44
      <lineStyle kind="LINEABOVE" colorName="#000000" start="1,0" stop="1,0"/>
 
45
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="2,0" stop="2,-1"/>
 
46
      <lineStyle kind="LINEABOVE" colorName="#000000" start="2,0" stop="2,0"/>
 
47
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="3,0" stop="3,-1"/>
 
48
      <lineStyle kind="LINEABOVE" colorName="#000000" start="3,0" stop="3,0"/>
 
49
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="4,0" stop="4,-1"/>
 
50
      <lineStyle kind="LINEABOVE" colorName="#000000" start="4,0" stop="4,0"/>
 
51
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="5,0" stop="5,-1"/>
 
52
      <lineStyle kind="LINEABOVE" colorName="#000000" start="5,0" stop="5,0"/>
 
53
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="6,0" stop="6,-1"/>
 
54
      <lineStyle kind="LINEABOVE" colorName="#000000" start="6,0" stop="6,0"/>
 
55
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="7,0" stop="7,-1"/>
 
56
      <lineStyle kind="LINEABOVE" colorName="#000000" start="7,0" stop="7,0"/>
 
57
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="8,0" stop="8,-1"/>
 
58
      <lineStyle kind="LINEAFTER" colorName="#000000" start="8,0" stop="8,-1"/>
 
59
      <lineStyle kind="LINEABOVE" colorName="#000000" start="8,0" stop="8,0"/>
 
60
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="0,1" stop="0,-1"/>
 
61
      <lineStyle kind="LINEBELOW" colorName="#000000" start="0,-1" stop="0,-1"/>
 
62
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="1,1" stop="1,-1"/>
 
63
      <lineStyle kind="LINEBELOW" colorName="#000000" start="1,-1" stop="1,-1"/>
 
64
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="2,1" stop="2,-1"/>
 
65
      <lineStyle kind="LINEBELOW" colorName="#000000" start="2,-1" stop="2,-1"/>
 
66
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="3,1" stop="3,-1"/>
 
67
      <lineStyle kind="LINEBELOW" colorName="#000000" start="3,-1" stop="3,-1"/>
 
68
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="4,1" stop="4,-1"/>
 
69
      <lineStyle kind="LINEBELOW" colorName="#000000" start="4,-1" stop="4,-1"/>
 
70
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="5,1" stop="5,-1"/>
 
71
      <lineStyle kind="LINEBELOW" colorName="#000000" start="5,-1" stop="5,-1"/>
 
72
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="6,1" stop="6,-1"/>
 
73
      <lineStyle kind="LINEBELOW" colorName="#000000" start="6,-1" stop="6,-1"/>
 
74
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="7,1" stop="7,-1"/>
 
75
      <lineStyle kind="LINEBELOW" colorName="#000000" start="7,-1" stop="7,-1"/>
 
76
      <lineStyle kind="LINEBEFORE" colorName="#000000" start="8,1" stop="8,-1"/>
 
77
      <lineStyle kind="LINEAFTER" colorName="#000000" start="8,1" stop="8,-1"/>
 
78
      <lineStyle kind="LINEBELOW" colorName="#000000" start="8,-1" stop="8,-1"/>
 
79
    </blockTableStyle>
 
80
    <blockTableStyle id="Table2">
 
81
      <blockAlignment value="LEFT"/>
 
82
      <blockValign value="TOP"/>
 
83
    </blockTableStyle>
 
84
    <blockTableStyle id="Table8">
 
85
      <blockAlignment value="LEFT"/>
 
86
      <blockValign value="TOP"/>
 
87
    </blockTableStyle>
 
88
    <initialize>
 
89
      <paraStyle name="all" alignment="justify"/>
 
90
    </initialize>
 
91
    <paraStyle name="P1" rightIndent="31.0" leftIndent="13.0" fontName="Times-BoldItalic" fontSize="6.0" leading="8" spaceBefore="0.0" spaceAfter="0.0"/>
 
92
    <paraStyle name="P2" fontName="Times-Roman" fontSize="9.0" leading="11" spaceBefore="0.0" spaceAfter="6.0"/>
 
93
    <paraStyle name="P3" rightIndent="-97.0" leftIndent="0.0" fontName="Times-BoldItalic" fontSize="6.0" leading="8" spaceBefore="0.0" spaceAfter="0.0"/>
 
94
    <paraStyle name="P4" rightIndent="-97.0" leftIndent="0.0" fontName="Times-Bold" fontSize="12.0" leading="15" spaceBefore="0.0" spaceAfter="0.0"/>
 
95
    <paraStyle name="P5" fontName="Times-Roman" fontSize="6.0" leading="8" spaceBefore="0.0" spaceAfter="0.0"/>
 
96
    <paraStyle name="P6" fontName="Times-Roman" fontSize="10.0" leading="13" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
 
97
    <paraStyle name="P7" fontName="Times-BoldItalic" fontSize="10.0" leading="13" spaceBefore="0.0" spaceAfter="0.0"/>
 
98
    <paraStyle name="P8" fontName="Times-Roman" fontSize="9.0" leading="11" spaceBefore="0.0" spaceAfter="0.0"/>
 
99
    <paraStyle name="P9" fontName="Times-Roman" fontSize="8.0" leading="10" spaceBefore="0.0" spaceAfter="0.0"/>
 
100
    <paraStyle name="P10" fontName="Times-Roman" fontSize="12.0" leading="15" spaceBefore="0.0" spaceAfter="0.0"/>
 
101
    <paraStyle name="P11" fontName="Times-Roman" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
 
102
    <paraStyle name="P12" fontName="Times-Roman" fontSize="8.0" leading="10" spaceBefore="0.0" spaceAfter="6.0"/>
 
103
    <paraStyle name="P13" fontName="Times-Roman" fontSize="8.0" leading="10" backColor="#b3b3b3" spaceBefore="0.0" spaceAfter="0.0"/>
 
104
    <paraStyle name="P14" fontName="Times-Roman" fontSize="3.0" leading="4" spaceBefore="0.0" spaceAfter="6.0"/>
 
105
    <paraStyle name="P15" fontName="Times-Roman" fontSize="10.0" leading="13" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
 
106
    <paraStyle name="P16" fontName="Times-Roman" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
 
107
    <paraStyle name="P17" fontName="Times-Roman" fontSize="8.0" leading="10" spaceBefore="0.0" spaceAfter="0.0"/>
 
108
    <paraStyle name="P18" fontName="Times-Roman" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
 
109
    <paraStyle name="P19" fontName="Times-Roman" fontSize="8.0" leading="10" backColor="#b3b3b3" spaceBefore="0.0" spaceAfter="0.0"/>
 
110
    <paraStyle name="P20" fontName="Times-Roman" fontSize="8.0" leading="10" spaceBefore="0.0" spaceAfter="6.0"/>
 
111
    <paraStyle name="P21" fontName="Times-Roman" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="6.0"/>
 
112
    <paraStyle name="Standard" fontName="Times-Roman"/>
 
113
    <paraStyle name="Text body" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/>
 
114
    <paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>
 
115
    <paraStyle name="List" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/>
 
116
    <paraStyle name="Table Contents" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="0.0"/>
 
117
    <paraStyle name="Table Heading" fontName="Times-Roman" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
 
118
    <paraStyle name="Caption" fontName="Times-Roman" fontSize="12.0" leading="15" spaceBefore="6.0" spaceAfter="6.0"/>
 
119
    <paraStyle name="Index" fontName="Times-Roman"/>
 
120
  </stylesheet>
 
121
  <images/>
 
122
  <story>
 
123
    <para style="P1">[[ repeatIn(objects,'o') ]]</para>
 
124
    <para style="P3">[[ setLang(o.partner_id.lang) ]]</para>
 
125
    <blockTable colWidths="780.0" style="Table1">
 
126
      <tr>
 
127
        <td>
 
128
          <para style="P4">Poliza Contable</para>
 
129
          <para style="P7">Impreso por: [[user.name ]]</para>
 
130
          <para style="P7">Compania : [[user.company_id.name ]]</para>
 
131
          <para style="P7">Fecha Impresión: [[date_sp(time.strftime('%Y-%m-%d %H:%M:%S'))]]</para>
 
132
        </td>
 
133
      </tr>
 
134
    </blockTable>
 
135
    <blockTable colWidths="260.0,260.0,260.0" style="Tabla1">
 
136
      <tr>
 
137
        <td>
 
138
          <para style="P11">Nombre: <font face="Times-Roman" size="10.0">[[ o.move_id.name ]]</font></para>
 
139
        </td>
 
140
        <td>
 
141
          <para style="P6">Periodo: <font face="Times-Roman">[[ o.move_id.period_id.name ]]</font></para>
 
142
        </td>
 
143
        <td>
 
144
          <para style="P6">Diario: <font face="Times-Roman">[[ o.move_id.journal_id.name ]]</font></para>
 
145
        </td>
 
146
      </tr>
 
147
      <tr>
 
148
        <td>
 
149
          <para style="P6">Fecha: <font face="Times-Roman">[[ time.strftime('%d-%b-%Y', time.strptime(o.date_invoice,'%Y-%m-%d')) ]]</font></para>
 
150
        </td>
 
151
        <td>
 
152
          <para style="P6">Referencia: <font face="Times-Roman">[[ o.move_id.ref ]]</font></para>
 
153
        </td>
 
154
        <td>
 
155
          <para style="P6">Estatus: <font face="Times-Roman">[[ state(o) ]]</font></para>
 
156
        </td>
 
157
      </tr>
 
158
    </blockTable>
 
159
    <para style="P14">
 
160
      <font color="white"> </font>
 
161
    </para>
 
162
    <blockTable colWidths="51.0,42.0,46.0,146.0,267.0,59.0,59.0,47.0,63.0" style="Table9">
 
163
      <tr>
 
164
        <td>
 
165
          <para style="P13">Referencia</para>
 
166
        </td>
 
167
        <td>
 
168
          <para style="P13">Factura</para>
 
169
        </td>
 
170
        <td>
 
171
          <para style="P13">Nombre</para>
 
172
        </td>
 
173
        <td>
 
174
          <para style="P13">Ref. Empresa</para>
 
175
        </td>
 
176
        <td>
 
177
          <para style="P13">Cuenta</para>
 
178
        </td>
 
179
        <td>
 
180
          <para style="P13">Debe</para>
 
181
        </td>
 
182
        <td>
 
183
          <para style="P13">Haber</para>
 
184
        </td>
 
185
        <td>
 
186
          <para style="P13">Moneda</para>
 
187
        </td>
 
188
        <td>
 
189
          <para style="P13">Total Moneda</para>
 
190
        </td>
 
191
      </tr>
 
192
      <tr>
 
193
        <td>
 
194
          <para style="P9">[[ repeatIn(o.move_id.line_id, 'l')]]</para>
 
195
          <para style="P9">[[ l.ref ]]</para>
 
196
        </td>
 
197
        <td>
 
198
          <para style="P9">[[ o.reference or o.number ]]</para>
 
199
        </td>
 
200
        <td>
 
201
          <para style="P9">[[ l.name[:9] ]]</para>
 
202
        </td>
 
203
        <td>
 
204
          <para style="P12">[[ l.partner_id.name[:35] ]]</para>
 
205
        </td>
 
206
        <td>
 
207
          <para style="P12">[[ l.account_id.code ]] [[ l.account_id.name ]]</para>
 
208
        </td>
 
209
        <td>
 
210
          <para style="P21">[[ moneyfmt('%.2f' %l.debit) ]]</para>
 
211
        </td>
 
212
        <td>
 
213
          <para style="P21">[[ moneyfmt('%.2f' %l.credit) ]]</para>
 
214
        </td>
 
215
        <td>
 
216
          <para style="P21">[[ l.currency_id.name ]]</para>
 
217
        </td>
 
218
        <td>
 
219
          <para style="P21">[[ moneyfmt('%.2f' %l.amount_currency) ]]</para>
 
220
        </td>
 
221
      </tr>
 
222
    </blockTable>
 
223
    <blockTable colWidths="500.0,183.0,97.0" style="Table2">
 
224
      <tr>
 
225
        <td>
 
226
          <para style="P8">
 
227
            <font color="white"> </font>
 
228
          </para>
 
229
        </td>
 
230
        <td>
 
231
          <blockTable colWidths="50.0,59.0,59.0" style="Table8">
 
232
            <tr>
 
233
              <td>
 
234
                <para style="P16">Total</para>
 
235
              </td>
 
236
              <td>
 
237
                <para style="P16">[[ moneyfmt('%.2f' %_sum_debit(o)) ]]</para>
 
238
              </td>
 
239
              <td>
 
240
                <para style="P16">[[ moneyfmt('%.2f' %_sum_credit(o)) ]]</para>
 
241
              </td>
 
242
            </tr>
 
243
          </blockTable>
 
244
          <para style="P8">
 
245
            <font color="white"> </font>
 
246
          </para>
 
247
        </td>
 
248
        <td>
 
249
          <para style="P8">
 
250
            <font color="white"> </font>
 
251
          </para>
 
252
        </td>
 
253
      </tr>
 
254
    </blockTable>
 
255
    <para style="P2">
 
256
      <font color="white"> </font>
 
257
    </para>
 
258
  </story>
 
259
</document>
 
260