~technofluid-team/openobject-addons/technofluid_multiple_installations

« back to all changes in this revision

Viewing changes to account/report/grand_livre_tiers.rml

  • Committer: pinky
  • Date: 2006-12-07 13:41:40 UTC
  • Revision ID: pinky-dedd7f8a42bd4557112a0513082691b8590ad6cc
New trunk

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="57.0" y1="57.0" width="481" height="728"/>
 
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
      <blockBackground colorName="#e6e6e6" start="0,0" stop="0,0"/>
 
17
      <blockBackground colorName="#e6e6e6" start="1,0" stop="1,0"/>
 
18
      <blockBackground colorName="#e6e6e6" start="2,0" stop="2,0"/>
 
19
    </blockTableStyle>
 
20
    <blockTableStyle id="Table2">
 
21
      <blockAlignment value="LEFT"/>
 
22
      <blockValign value="TOP"/>
 
23
      <lineStyle kind="GRID" colorName="black"/>
 
24
    </blockTableStyle>
 
25
    <blockTableStyle id="Table3">
 
26
      <blockAlignment value="LEFT"/>
 
27
      <blockValign value="TOP"/>
 
28
    </blockTableStyle>
 
29
    <blockTableStyle id="Table5">
 
30
      <blockAlignment value="LEFT"/>
 
31
      <blockValign value="TOP"/>
 
32
    </blockTableStyle>
 
33
    <blockTableStyle id="Table4">
 
34
      <blockAlignment value="LEFT"/>
 
35
      <blockValign value="TOP"/>
 
36
      <lineStyle kind="GRID" colorName="black"/>
 
37
    </blockTableStyle>
 
38
    <initialize>
 
39
      <paraStyle name="all" alignment="justify"/>
 
40
    </initialize>
 
41
    <paraStyle name="P1" fontName="Times-Roman" fontSize="20.0" leading="25" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
 
42
    <paraStyle name="P2" fontName="Times-Roman" fontSize="10.0" leading="13" alignment="RIGHT" spaceBefore="0.0" spaceAfter="6.0"/>
 
43
    <paraStyle name="P3" fontName="Times-Roman" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
 
44
    <paraStyle name="P4" fontName="Times-Roman" fontSize="11.0" leading="14" alignment="RIGHT" spaceBefore="0.0" spaceAfter="6.0"/>
 
45
    <paraStyle name="P5" fontName="Times-Roman" alignment="CENTER"/>
 
46
    <paraStyle name="P6" fontName="Times-Roman" fontSize="11.0" leading="14"/>
 
47
    <paraStyle name="P7" fontName="Times-Roman" fontSize="11.0" leading="14" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
 
48
    <paraStyle name="P8" fontName="Times-Roman" fontSize="8.0" leading="10" spaceBefore="0.0" spaceAfter="6.0"/>
 
49
    <paraStyle name="P9" fontName="Times-Bold" spaceBefore="0.0" spaceAfter="6.0"/>
 
50
    <paraStyle name="P10" rightIndent="17.0" leftIndent="-0.0" fontName="Times-Roman" fontSize="8.0" leading="10" spaceBefore="0.0" spaceAfter="6.0"/>
 
51
    <paraStyle name="P11" fontName="Times-Roman" fontSize="8.0" leading="10" spaceBefore="0.0" spaceAfter="6.0"/>
 
52
    <paraStyle name="P12" fontName="Times-Roman" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="6.0"/>
 
53
    <paraStyle name="P13" fontName="Times-Roman" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="6.0"/>
 
54
    <paraStyle name="P14" fontName="Times-Roman" fontSize="11.0" leading="14" alignment="RIGHT" spaceBefore="0.0" spaceAfter="6.0"/>
 
55
    <paraStyle name="P15" fontName="Times-Roman" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="6.0"/>
 
56
    <paraStyle name="Standard" fontName="Times-Roman"/>
 
57
    <paraStyle name="Text body" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/>
 
58
    <paraStyle name="List" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/>
 
59
    <paraStyle name="Table Contents" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/>
 
60
    <paraStyle name="Table Heading" fontName="Times-Roman" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
 
61
    <paraStyle name="Caption" fontName="Times-Roman" fontSize="10.0" leading="13" spaceBefore="6.0" spaceAfter="6.0"/>
 
62
    <paraStyle name="Index" fontName="Times-Roman"/>
 
63
  </stylesheet>
 
64
  <story>
 
65
    <blockTable colWidths="145.0,187.0,149.0" repeatRows="1" style="Table1">
 
66
      <tr>
 
67
        <td>
 
68
          <para style="Table Contents">
 
69
            <font color="white"> </font>
 
70
          </para>
 
71
        </td>
 
72
        <td>
 
73
          <para style="P1">Third party ledger</para>
 
74
        </td>
 
75
        <td>
 
76
          <para style="P2"><i>From</i> [[ data['form']['date1'] ]]</para>
 
77
          <para style="P2"><i>to</i> [[ data['form']['date2'] ]]</para>
 
78
        </td>
 
79
      </tr>
 
80
      <tr>
 
81
        <td>
 
82
          <para style="Table Contents">[[ company.name ]]</para>
 
83
        </td>
 
84
        <td>
 
85
          <para style="P3">Complete</para>
 
86
        </td>
 
87
        <td>
 
88
          <para style="P4"><i>Currency:</i> [[ company.currency_id.name ]]</para>
 
89
        </td>
 
90
      </tr>
 
91
    </blockTable>
 
92
    <para style="Standard">
 
93
      <font color="white"> </font>
 
94
    </para>
 
95
    <para style="P5"><i>Printing date:</i> [[ time.strftime('%Y-%m-%d') ]] <i>at</i> [[ time.strftime('%H:%M:%S') ]]</para>
 
96
    <para style="P6">
 
97
      <font color="white"> </font>
 
98
    </para>
 
99
    <blockTable colWidths="45.0,36.0,50.0,145.0,69.0,72.0,64.0" repeatRows="1" style="Table2">
 
100
      <tr>
 
101
        <td>
 
102
          <para style="P7">Date</para>
 
103
        </td>
 
104
        <td>
 
105
          <para style="P7">J. code</para>
 
106
        </td>
 
107
        <td>
 
108
          <para style="P7">Voucher Nb</para>
 
109
        </td>
 
110
        <td>
 
111
          <para style="P7">Entry label</para>
 
112
        </td>
 
113
        <td>
 
114
          <para style="P7">Debit</para>
 
115
        </td>
 
116
        <td>
 
117
          <para style="P7">Credit</para>
 
118
        </td>
 
119
        <td>
 
120
          <para style="P7">Progressive balance</para>
 
121
        </td>
 
122
      </tr>
 
123
    </blockTable>
 
124
    <para style="Text body">
 
125
      <font color="white"> </font>
 
126
    </para>
 
127
    <section>
 
128
      <para style="P8">[[ repeatIn(objects, 'p') ]]</para>
 
129
      <para style="P9">[[ p.ref ]] [[ p.name ]]</para>
 
130
      <blockTable colWidths="45.0,37.0,50.0,145.0,69.0,72.0,63.0" style="Table3">
 
131
        <tr>
 
132
          <td>
 
133
            <para style="P10"><font face="Times-Roman">[[ repeatIn(lines(p), 'line') ]]</font>[[ line['date'] ]]</para>
 
134
          </td>
 
135
          <td>
 
136
            <para style="P11">[[ line['code'] ]]</para>
 
137
          </td>
 
138
          <td>
 
139
            <para style="P11">[[ line['ref'] ]]</para>
 
140
          </td>
 
141
          <td>
 
142
            <para style="P12">[[ line['name'] ]]</para>
 
143
          </td>
 
144
          <td>
 
145
            <para style="P13">[[ line['debit'] and '%.2f' % line['debit'] or '' ]]</para>
 
146
          </td>
 
147
          <td>
 
148
            <para style="P13">[[ line['credit'] and '%.2f' % line['credit'] or '' ]]</para>
 
149
          </td>
 
150
          <td>
 
151
            <para style="P13">[[ line['progress'] and '%.2f' % line['progress'] or '' ]]</para>
 
152
          </td>
 
153
        </tr>
 
154
      </blockTable>
 
155
      <blockTable colWidths="277.0,69.0,72.0,63.0" style="Table5">
 
156
        <tr>
 
157
          <td>
 
158
            <para style="P14">Total for [[ p.ref ]] </para>
 
159
            <para style="P14">
 
160
              <font color="white"> </font>
 
161
            </para>
 
162
          </td>
 
163
          <td>
 
164
            <para style="P15">[[ '%.2f' % sum_debit_partner(p) ]]</para>
 
165
          </td>
 
166
          <td>
 
167
            <para style="P15">[[ '%.2f' % sum_credit_partner(p) ]]</para>
 
168
          </td>
 
169
          <td>
 
170
            <para style="P15">[[ '%.2f' %(sum_debit_partner(p) - sum_credit_partner(p)) ]]</para>
 
171
          </td>
 
172
        </tr>
 
173
      </blockTable>
 
174
      <para style="Standard">
 
175
        <font color="white"> </font>
 
176
      </para>
 
177
    </section>
 
178
    <para style="Text body">
 
179
      <font color="white"> </font>
 
180
    </para>
 
181
    <blockTable colWidths="277.0,69.0,72.0,63.0" style="Table4">
 
182
      <tr>
 
183
        <td>
 
184
          <para style="P14">Balance brought forward</para>
 
185
        </td>
 
186
        <td>
 
187
          <para style="P15">[[ '%.2f' % sum_debit() ]]</para>
 
188
        </td>
 
189
        <td>
 
190
          <para style="P15">[[ '%.2f' % sum_credit() ]]</para>
 
191
        </td>
 
192
        <td>
 
193
          <para style="P15">[[ '%.2f' %(sum_debit() - sum_credit()) ]]</para>
 
194
        </td>
 
195
      </tr>
 
196
    </blockTable>
 
197
    <para style="Standard">
 
198
      <font color="white"> </font>
 
199
    </para>
 
200
  </story>
 
201
</document>
 
202