12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <template id="informe_diarioacc_por_fecha">
- <t t-call="report.html_container">
- <t t-call="report.internal_layout">
- <div class="page">
- <h2 class="text-center text-info">Balance</h2>
- <br/>
- <div class="row">
- <div class="col-xs-6 col-sm-5 col-md-5">
- <div class="panel panel-success">
- <div class="panel-heading">
- Ingreso
- </div>
- <table class="table table-condenced table-bordered">
- <thead>
- <th>Factura</th>
- <th>Cliente</th>
- <th>Fecha</th>
- <th>Ingreso</th>
- </thead>
- <tbody>
- <t t-foreach="docs" t-as="o">
- <t t-if="o.type == 'receipt' ">
- <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"><span t-field="o.amount_entrada"/></td>
- </tr>
- </t>
- </t>
- </tbody>
- </table>
- </div>
- </div>
- <div class="col-xs-6 col-sm-5 col-sm-5">
- <div class="panel panel-danger">
- <div class="panel-heading">
- Egreso
- </div>
- <table class="table table-condenced table-bordered">
- <thead>
- <th>Factura</th>
- <th>Proveedor</th>
- <th>Fecha</th>
- <th>Egreso</th>
- </thead>
- <tbody>
- <t t-foreach="docs" t-as="o">
- <t t-if="o.type == 'payment' ">
- <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"><span t-field="o.amount_salida"/></td>
- </tr>
- </t>
- </t>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-xs-12 col-sm-12 col-sm-12">
- <div class="panel panel-info">
- <div class="panel-heading">
- Saldo
- </div>
- <table class="table table-condenced table-bordered">
- <thead>
- <th>Total Ingreso: </th>
- <th class="text-right">
- <t t-set="totalent" t-value="sum([x.amount_entrada for x in docs])"/>
- <span t-esc="totalent" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
- </th>
- <th>Total Egreso: </th>
- <th class="text-right">
- <t t-set="totalsal" t-value="sum([x.amount_salida for x in docs])"/>
- <span t-esc="totalsal" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
- </th>
- </thead>
- </table>
- <div class="panel-footer text-right">
- <t t-set="tsaldo" t-value="sum([x.saldo for x in docs])"/>
- <span t-esc="tsaldo" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
- </div>
- </div>
- </div>
- </div>
- </div>
- </t>
- </t>
- </template>
|