~openerp-chinese-team/openerp-china/openerp-china

« back to all changes in this revision

Viewing changes to oecn_account_print/report/cash_journal.rml

  • Committer: JoshuaJan
  • Date: 2012-03-14 06:29:11 UTC
  • Revision ID: joshua@openerp.cn-20120314062911-oj55h9dodzca0b0s
修改报表的模版

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    <paraStyle name="P8" fontName="Helvetica" alignment="RIGHT"/>
72
72
    <paraStyle name="P9" fontName="Helvetica" fontSize="7.0" leading="9" alignment="RIGHT"/>
73
73
    <paraStyle name="P10" fontName="Helvetica" fontSize="7.0" leading="9" alignment="LEFT"/>
74
 
    <paraStyle name="P11" fontName="Helvetica" alignment="LEFT"/>
75
74
    <paraStyle name="Standard" fontName="Helvetica"/>
76
75
    <paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>
77
76
    <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
96
95
        </td>
97
96
      </tr>
98
97
    </blockTable>
99
 
    <blockTable colWidths="57.0,66.0,57.0,90.0,67.0,67.0,67.0,67.0" style="&#x8868;&#x683C;1">
 
98
    <blockTable colWidths="56.0,66.0,57.0,107.0,63.0,63.0,44.0,82.0" style="&#x8868;&#x683C;1">
100
99
      <tr>
101
100
        <td>
102
101
          <para style="P5">日期</para>
124
123
        </td>
125
124
      </tr>
126
125
    </blockTable>
127
 
    <blockTable colWidths="57.0,66.0,57.0,90.0,67.0,67.0,67.0,67.0" style="&#x8868;&#x683C;2">
 
126
    <blockTable colWidths="56.0,66.0,57.0,107.0,63.0,63.0,44.0,82.0" style="&#x8868;&#x683C;2">
128
127
      <tr>
129
128
        <td>
130
129
          <para style="P6">[[data['all_date']['period_start_date_start'] ]]</para>
158
157
          </para>
159
158
        </td>
160
159
        <td>
161
 
          <para style="P7">[[formatLang(balance(date_stop=data['all_date']['period_start_date_start'])['balance'])]]</para>
 
160
          <para style="P7">[[formatLang(balance(o.id, date_stop=data['all_date']['period_start_date_start'])['balance'])]]</para>
162
161
        </td>
163
162
      </tr>
164
163
    </blockTable>
165
164
    <section>
166
 
      <para style="P4">[[repeatIn(lines(True),'period')]]</para>
 
165
      <para style="P4">[[repeatIn(lines(o.id, True),'period')]]</para>
167
166
      <section>
168
167
        <para style="P4">[[repeatIn(period['days'],'days')]]</para>
169
168
        <section>
170
169
          <para style="P4">[[repeatIn(days['lines'],'line')]]</para>
171
 
          <blockTable colWidths="56.0,66.0,57.0,90.0,67.0,67.0,67.0,67.0" style="&#x8868;&#x683C;3">
 
170
          <blockTable colWidths="56.0,66.0,57.0,107.0,63.0,63.0,44.0,82.0" style="&#x8868;&#x683C;3">
172
171
            <tr>
173
172
              <td>
174
173
                <para style="P6">[[ line.date ]]</para>
201
200
            </tr>
202
201
          </blockTable>
203
202
        </section>
204
 
        <blockTable colWidths="56.0,66.0,57.0,90.0,67.0,67.0,67.0,67.0" style="&#x8868;&#x683C;7">
 
203
        <blockTable colWidths="57.0,66.0,57.0,107.0,63.0,63.0,44.0,82.0" style="&#x8868;&#x683C;7">
205
204
          <tr>
206
205
            <td>
207
206
              <para style="P5">
231
230
              <para style="P6">[[get_direction(reduce(lambda x,y:x+y['debit'] or 0 ,period['lines'],0)-reduce(lambda x,y:x+y['credit'] or 0 ,period['lines'],0)) ]]</para>
232
231
            </td>
233
232
            <td>
234
 
              <para style="P7">[[formatLang(balance(date_stop=days['date'])['balance'])]]</para>
 
233
              <para style="P7">[[formatLang(balance(o.id, date_stop=days['date'])['balance'])]]</para>
235
234
            </td>
236
235
          </tr>
237
236
        </blockTable>
238
237
      </section>
239
 
      <blockTable colWidths="56.0,66.0,56.0,91.0,67.0,67.0,67.0,67.0" style="&#x8868;&#x683C;4">
 
238
      <blockTable colWidths="57.0,66.0,57.0,107.0,63.0,63.0,44.0,82.0" style="&#x8868;&#x683C;4">
240
239
        <tr>
241
240
          <td>
242
241
            <para style="P5">
266
265
            <para style="P6">[[get_direction(reduce(lambda x,y:x+y['debit'] or 0 ,period['lines'],0)-reduce(lambda x,y:x+y['credit'] or 0 ,period['lines'],0)) ]]</para>
267
266
          </td>
268
267
          <td>
269
 
            <para style="P7">[[formatLang(balance(date_stop=period['period'].date_stop)['balance'])]]</para>
 
268
            <para style="P7">[[formatLang(balance(o.id, date_stop=period['period'].date_stop)['balance'])]]</para>
270
269
          </td>
271
270
        </tr>
272
271
        <tr>
289
288
            </para>
290
289
          </td>
291
290
          <td>
292
 
            <para style="P7">[[formatLang(balance(date_start=data['all_date']['period_start_date_start'],date_stop=days['date'])['debit'])]]</para>
293
 
          </td>
294
 
          <td>
295
 
            <para style="P7">[[formatLang(balance(date_start=data['all_date']['period_start_date_start'],date_stop=days['date'])['credit'])]]</para>
296
 
          </td>
297
 
          <td>
298
 
            <para style="P6">[[get_direction(balance(date_start=data['all_date']['period_start_date_start'],date_stop=days['date'])['debit'] -balance(date_start=data['all_date']['period_start_date_start'],date_stop=days['date'])['credit'])]]</para>
299
 
          </td>
300
 
          <td>
301
 
            <para style="P7">[[formatLang(balance(date_stop=period['period'].date_stop)['balance'])]]</para>
 
291
            <para style="P7">[[formatLang(balance(o.id, date_start=data['all_date']['period_start_date_start'],date_stop=period['period'].date_stop)['debit'])]]</para>
 
292
          </td>
 
293
          <td>
 
294
            <para style="P7">[[formatLang(balance(o.id, date_start=data['all_date']['period_start_date_start'],date_stop=period['period'].date_stop)['credit'])]]</para>
 
295
          </td>
 
296
          <td>
 
297
            <para style="P6">[[get_direction(balance(o.id, date_start=data['all_date']['period_start_date_start'],date_stop=period['period'].date_stop)['debit'] -balance(o.id, date_start=data['all_date']['period_start_date_start'],date_stop=period['period'].date_stop)['credit'])]]</para>
 
298
          </td>
 
299
          <td>
 
300
            <para style="P7">[[formatLang(balance(o.id, date_stop=period['period'].date_stop)['balance'])]]</para>
302
301
          </td>
303
302
        </tr>
304
303
      </blockTable>