~donkirkby/openobject-addons/stock-serial

« back to all changes in this revision

Viewing changes to account/report/overdue.rml

  • Committer: Jay(Open ERP)
  • Date: 2010-04-30 09:11:31 UTC
  • Revision ID: jvo@tinyerp.com-20100430091131-bmrseuyrozob8m8s
[FIX] Account : Overdue report corrected

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
    <paraStyle name="terp_default_Bold_9" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
85
85
    <paraStyle name="terp_default_Centre_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
86
86
    <paraStyle name="terp_default_Right_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
 
87
    <images/>
87
88
  </stylesheet>
88
 
  <images/>
89
89
  <story>
90
90
    <para style="terp_default_8">[[ repeatIn(objects,'o') ]]</para>
91
91
    <para style="terp_default_8">[[ setLang(o.lang) ]]</para>
177
177
            <para style="terp_default_Centre_9">[[ line['ref'] ]]</para>
178
178
          </td>
179
179
          <td>
180
 
            <para style="terp_default_Centre_9">[[ line['date_maturity'] ]]</para>
181
 
          </td>
182
 
          <td>
183
 
            <para style="terp_default_Right_9">[[ formatLang(line['debit']) and formatLang(line['debit'] * (line['account_id']['type'] == 'payable' and -1 or 1)) ]]</para>
184
 
          </td>
185
 
          <td>
186
 
            <para style="terp_default_Right_9">[[ formatLang(line['credit']) and formatLang(line['credit'] * (line['account_id']['type'] == 'payable' and -1 or 1)) ]]</para>
187
 
          </td>
188
 
          <td>
189
 
            <para style="terp_default_Right_9">[[ formatLang((line['date_maturity'] &lt; time.strftime('%Y-%m-%d')) and ((line['debit'] - line['credit']) * (line['account_id']['type'] == 'payable' and -1 or 1))) ]]</para>
 
180
            <para style="terp_default_Centre_9">[[ line['date_maturity'] and formatLang(line['date_maturity'],date=True) or '' ]]</para>
 
181
          </td>
 
182
          <td>
 
183
            <para style="terp_default_Right_9">[[ (line['account_id']['type'] == 'receivable' and formatLang(line['debit']) or 0) or (line['account_id']['type'] == 'payable' and formatLang(line['credit'] * -1) or ' ') ]]</para>
 
184
          </td>
 
185
          <td>
 
186
            <para style="terp_default_Right_9">[[ (line['account_id']['type'] == 'receivable' and formatLang(line['credit']) or 0) or (line['account_id']['type'] == 'payable' and formatLang(line['debit'] * -1) or 0) ]]</para>
 
187
          </td>
 
188
          <td>
 
189
            <para style="terp_default_Right_9">[[ formatLang((line['date_maturity'] &lt; time.strftime('%Y-%m-%d'))) and (line['debit'] - line['credit']) ]]</para>
190
190
          </td>
191
191
          <td>
192
192
            <para style="terp_default_Centre_9">[[ line['blocked'] and 'X' or '' ]]</para>
205
205
          <para style="terp_default_Bold_9">Sub-Total : </para>
206
206
        </td>
207
207
        <td>
208
 
          <para style="terp_default_Right_9">[[ formatLang((reduce(lambda x, y: x + (y['debit'] * (y['account_id']['type'] == 'payable' and -1 or 1)), getLines(o), 0))) ]]</para>
209
 
        </td>
210
 
        <td>
211
 
          <para style="terp_default_Right_9">[[ formatLang((reduce(lambda x ,y: x + (y['credit'] * (y['account_id']['type'] == 'payable' and -1 or 1)), getLines(o), 0))) ]] </para>
212
 
        </td>
213
 
        <td>
214
 
          <para style="terp_default_Right_9">[[ formatLang((reduce(lambda x, y: x + ((y['debit'] - y['credit']) * (y['account_id']['type'] == 'payable' and -1 or 1)), filter(lambda x: x['date_maturity'] &lt; time.strftime('%Y-%m-%d'), getLines(o)), 0))) ]]</para>
 
208
          <para style="terp_default_Right_9">[[ formatLang((reduce(lambda x, y: x + ((y['account_id']['type'] == 'receivable' and y['debit'] or 0) or (y['account_id']['type'] == 'payable' and y['credit'] * -1 or 0)), getLines(o), 0))) ]]</para>
 
209
        </td>
 
210
        <td>
 
211
          <para style="terp_default_Right_9">[[ formatLang((reduce(lambda x, y: x + ((y['account_id']['type'] == 'receivable' and y['credit'] or 0) or (y['account_id']['type'] == 'payable' and y['debit'] * -1 or 0)), getLines(o), 0))) ]] </para>
 
212
        </td>
 
213
        <td>
 
214
          <para style="terp_default_Right_9">[[ formatLang((reduce(lambda x, y: x + (y['debit'] - y['credit']), filter(lambda x: x['date_maturity'] &lt; time.strftime('%Y-%m-%d'), getLines(o)), 0))) ]]</para>
215
215
        </td>
216
216
        <td>
217
217
          <para style="terp_default_9">
229
229
          <para style="terp_default_Bold_9">Balance : </para>
230
230
        </td>
231
231
        <td>
232
 
          <para style="terp_default_Right_9">[[ formatLang((reduce(lambda x, y: x +((y['debit'] - y['credit']) * (y['account_id']['type'] == 'payable' and -1 or 1)), getLines(o), 0))) ]]</para>
 
232
          <para style="terp_default_Right_9">[[ formatLang((reduce(lambda x, y: x +(y['debit'] - y['credit']), getLines(o), 0))) ]]</para>
233
233
        </td>
234
234
        <td>
235
235
          <para style="terp_default_9">
248
248
        </td>
249
249
      </tr>
250
250
    </blockTable>
251
 
    <para style="terp_default_9">Total amount due: [[ formatLang((reduce(lambda x, y: x + ((y['debit'] - y['credit']) * (y['account_id']['type'] == 'payable' and -1 or 1)), getLines(o), 0))) ]] [[ company.currency_id.name ]].</para>
 
251
    <para style="terp_default_9">Total amount due: [[ formatLang((reduce(lambda x, y: x + (y['debit'] - y['credit']), getLines(o), 0))) ]] [[ company.currency_id.name ]].</para>
252
252
    <para style="terp_default_8">
253
253
      <font color="white"> </font>
254
254
    </para>
255
255
  </story>
256
 
</document>
 
256
</document>
 
 
b'\\ No newline at end of file'