153
153
<paraStyle name="P1" fontName="Helvetica" alignment="CENTER"/>
154
154
<paraStyle name="P2" fontName="Helvetica" alignment="LEFT"/>
155
<paraStyle name="P3" fontName="Helvetica" alignment="LEFT"/>
156
<paraStyle name="P4" fontName="Helvetica" fontSize="7.0" leading="9" alignment="LEFT"/>
157
<paraStyle name="P5" fontName="Helvetica" fontSize="7.0" leading="9" alignment="RIGHT"/>
158
<paraStyle name="P6" fontName="Helvetica" fontSize="2.0" leading="3" alignment="LEFT"/>
159
<paraStyle name="P7" fontName="Helvetica" alignment="LEFT"/>
155
<paraStyle name="P3" fontName="Helvetica" alignment="RIGHT"/>
156
<paraStyle name="P4" fontName="Helvetica" alignment="LEFT"/>
157
<paraStyle name="P5" fontName="Helvetica" fontSize="7.0" leading="9" alignment="LEFT"/>
158
<paraStyle name="P6" fontName="Helvetica" fontSize="7.0" leading="9" alignment="RIGHT"/>
159
<paraStyle name="P7" fontName="Helvetica" fontSize="2.0" leading="3" alignment="LEFT"/>
160
160
<paraStyle name="P8" fontName="Helvetica" alignment="RIGHT"/>
161
<paraStyle name="P9" fontName="Helvetica" alignment="RIGHT"/>
162
<paraStyle name="P10" fontName="Helvetica" alignment="LEFT"/>
163
<paraStyle name="P11" fontName="Helvetica" fontSize="7.0" leading="9" alignment="RIGHT"/>
161
<paraStyle name="P9" fontName="Helvetica" fontSize="7.0" leading="9" alignment="RIGHT"/>
162
<paraStyle name="P10" fontName="Helvetica" fontSize="7.0" leading="9" alignment="LEFT"/>
164
163
<paraStyle name="Standard" fontName="Helvetica"/>
165
164
<paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>
166
165
<paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
182
181
<para style="P2">开始日期:[[data['all_date']['period_start_date_start'] ]] </para>
185
<para style="P8">结束日期:[[data['all_date']['period_end_date_stop'] ]]</para>
184
<para style="P3">结束日期:[[data['all_date']['period_end_date_stop'] ]]</para>
189
188
<blockTable colWidths="56.0,66.0,58.0,95.0,69.0,69.0,44.0,82.0" style="表格1">
192
<para style="P3">日期</para>
195
<para style="P3">凭证字号</para>
198
<para style="P3">摘要</para>
201
<para style="P3">对方科目</para>
204
<para style="P9">借方</para>
207
<para style="P9">贷方</para>
210
<para style="P3">方向</para>
213
<para style="P9">余额</para>
191
<para style="P4">日期</para>
194
<para style="P4">凭证字号</para>
197
<para style="P4">摘要</para>
200
<para style="P4">对方科目</para>
203
<para style="P8">借方</para>
206
<para style="P8">贷方</para>
209
<para style="P4">方向</para>
212
<para style="P8">余额</para>
217
216
<blockTable colWidths="56.0,66.0,58.0,95.0,69.0,69.0,44.0,82.0" style="表格2">
220
<para style="P4">[[data['all_date']['period_start_date_start'] ]]</para>
224
<font color="white"> </font>
228
<para style="P4">期初余额</para>
232
<font color="white"> </font>
237
<font color="white"> </font>
242
<font color="white"> </font>
247
<font color="white"> </font>
251
<para style="P5">[[formatLang(balance(date_stop=data['all_date']['period_start_date_start'])['balance'])]]</para>
219
<para style="P5">[[data['all_date']['period_start_date_start'] ]]</para>
223
<font color="white"> </font>
227
<para style="P5">期初余额</para>
231
<font color="white"> </font>
236
<font color="white"> </font>
241
<font color="white"> </font>
246
<font color="white"> </font>
250
<para style="P6">[[formatLang(balance(o.id,date_stop=data['all_date']['period_start_date_start'])['balance'])]]</para>
256
<para style="P6">[[repeatIn(lines(),'period')]]</para>
255
<para style="P7">[[repeatIn(lines(o.id),'period')]]</para>
258
<para style="P6">[[repeatIn(period['lines'],'line')]]</para>
257
<para style="P7">[[repeatIn(period['lines'],'line')]]</para>
259
258
<blockTable colWidths="56.0,66.0,58.0,95.0,69.0,69.0,44.0,82.0" style="表格3">
262
<para style="P4">[[ line.date ]]</para>
265
<para style="P4">[[ line.move_id.name ]]</para>
268
<para style="P4">[[line.name ]]</para>
271
<para style="P4">[[ contrepartie([line.id])[line.id] ]]</para>
274
<para style="P4">[[ formatLang(line.debit) ]]</para>
277
<para style="P4">[[ formatLand(line.credit) ]]</para>
280
<para style="P4">[[get_direction(line.debit-line.credit)]]</para>
261
<para style="P5">[[ line.date ]]</para>
264
<para style="P5">[[ line.move_id.name ]]</para>
267
<para style="P5">[[line.name ]]</para>
270
<para style="P5">[[ contrepartie([line.id])[line.id] ]]</para>
273
<para style="P6">[[ formatLang(line.debit) ]]</para>
276
<para style="P6">[[ formatLang(line.credit) ]]</para>
279
<para style="P5">[[get_direction(line.debit-line.credit)]]</para>
284
283
<font color="white"> </font>
290
289
<blockTable colWidths="56.0,66.0,58.0,95.0,69.0,69.0,44.0,82.0" style="表格4">
294
<font color="white"> </font>
299
<font color="white"> </font>
303
<para style="P4">本期合计</para>
307
<font color="white"> </font>
311
<para style="P5">[[formatLang(reduce(lambda x,y:x+y.debit or 0 ,period['lines'],0))]]</para>
314
<para style="P5">[[formatLang(reduce(lambda x,y:x+y.credit or 0 ,period['lines'],0))]]</para>
317
<para style="P4">[[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>
320
<para style="P5">[[formatLang(balance(date_stop=period['period'].date_stop)['balance'])]]</para>
293
<font color="white"> </font>
298
<font color="white"> </font>
302
<para style="P5">本期合计</para>
306
<font color="white"> </font>
310
<para style="P6">[[formatLang(reduce(lambda x,y:x+y.debit or 0 ,period['lines'],0))]]</para>
313
<para style="P6">[[formatLang(reduce(lambda x,y:x+y.credit or 0 ,period['lines'],0))]]</para>
316
<para style="P5">[[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>
319
<para style="P6">[[formatLang(balance(o.id, date_stop=period['period'].date_stop)['balance'])]]</para>
326
<font color="white"> </font>
331
<font color="white"> </font>
335
<para style="P4">本年合计</para>
339
<font color="white"> </font>
343
<para style="P5">[[formatLang(balance(date_start=data['all_date']['period_start_date_start'],date_stop=days['date'])['debit'])]]</para>
346
<para style="P5">[[formatLang(balance(date_start=data['all_date']['period_start_date_start'],date_stop=days['date'])['credit'])]]</para>
349
<para style="P5">[[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>
352
<para style="P5">[[formatLang(balance(date_stop=period['period'].date_stop)['balance'])]]</para>
325
<font color="white"> </font>
330
<font color="white"> </font>
334
<para style="P5">本年合计</para>
338
<font color="white"> </font>
342
<para style="P6">[[formatLang(balance(o.id, date_start=data['all_date']['period_start_date_start'],date_stop=period['period'].date_stop)['debit'])]]</para>
345
<para style="P6">[[formatLang(balance(o.id, date_start=data['all_date']['period_start_date_start'],date_stop=period['period'].date_stop)['credit'])]]</para>
348
<para style="P5">[[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>
351
<para style="P6">[[formatLang(balance(o.id, date_stop=period['period'].date_stop)['balance'])]]</para>
357
<font color="white"> </font>