1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <report id="report_diarioacc3"
- model="diarioacc.voucher"
- string="Balance de Ingreso y Egreso"
- report_type="qweb-pdf"
- name="analisis_accountvoucher.informe_diarioacc_por_fecha"
- file="analisis_accountvoucher.informe_diarioacc_por_fecha"
- />
- <template id="informe_diarioacc_por_fecha">
- <t t-call="report.html_container">
- <t t-call="report.external_layout">
- <div class="page">
- <div class="row">
- <div class="col-xs-12 col-sm-12">
- <div class="panel panel-info">
- <div class="panel-heading text-center">
- <h4>Balance</h4>
- </div>
- <table class="table table-condenced table-bordered">
- <thead>
- <th>Factura</th>
- <th>Cliente/Proveedor</th>
- <th>Fecha</th>
- <th>Ingreso</th>
- <th>Egreso</th>
- </thead>
- <tbody>
- <t t-foreach="docs" t-as="o">
- <tr>
- <td><span t-esc="o.reference"/></td>
- <td><span t-field="o.partner_id"/></td>
- <td><span t-field="o.date_x"/></td>
- <td class="text-right success"><span t-esc="'{0:,.0f}'.format(round(float(o.amount_entrada), 0))"/></td>
- <!-- t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/> <td class="text-right success"><span t-esc='"%0.0f" % o.amount_entrada'/></td> -->
- <td class="text-right danger"><span t-esc="'{0:,.0f}'.format(round(float(o.amount_salida), 0))"/></td>
- </tr>
- </t>
- <tr>
- <td><strong>Total : </strong></td>
- <td></td>
- <td></td>
- <td class="text-right success">
- <strong>
- <t t-set="totalent" t-value="sum([x.amount_entrada for x in docs])"/>
- <span t-esc="'{0:,.0f}'.format(round(float(totalent), 0))"/>
- </strong>
- </td>
- <td class="text-right danger">
- <strong>
- <t t-set="totalsal" t-value="sum([x.amount_salida for x in docs])"/>
- <span t-esc="'{0:,.0f}'.format(round(float(totalsal), 0))"/>
- </strong>
- </td>
- </tr>
- </tbody>
- </table>
- <div class="panel-footer text-right">
- <strong>Saldo : <t t-set="tsaldo" t-value="sum([x.saldo for x in docs])"/>
- <span t-esc="'{0:,.0f}'.format(round(float(tsaldo), 0))"/>
- </strong>
- </div>
- </div>
- </div>
- </div>
- </div>
- </t>
- </t>
- </template>
- <!-- <record id="paperformat_analisis_accountvoucher" model="report.paperformat">
- <field name="name">Balance</field>
- <field name="orientation">Landscape</field>
- </record>
- <record id="report_diarioacc3" model="ir.actions.report.xml">
- <field name="paperformat_id" ref="paperformat_analisis_accountvoucher"></field>
- </record> -->
- </data>
- </openerp>
|