123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <report
- id="account_voucher_id"
- model="account.voucher"
- string="Listados de Pagos/Cobros"
- report_type="qweb-pdf"
- name="informes_account_voucher.report_voucher1"
- file="informes_account_voucher.report_voucher1"
- />
- <template id="report_voucher1">
- <t t-call="report.html_container">
- <t t-call="report.external_layout">
- <div class="page">
- <style type="text/css">
- .crm_tcab{
- font-size: 3mm;
- font-family: Arial, Helvetica, sans-serif;
- }
- .sale_tbody{
- font-size: 2.8mm;
- font-family: Arial, Helvetica, sans-serif;
- }
- .taxtotal{
- font-size: 2.8mm;
- }
- .total{
- font-size: 2.8mm;
- }
- .untotal{
- font-size: 2.8mm;
- }
- .logo1{
- width: 100%;
- top: 1.5cm;
- }
- </style>
- <t t-set="total" t-value="0" />
- <t t-foreach="docs" t-as="f">
- <t t-set="total" t-value="total+1" />
- <t t-if="total==1">
- <h4 style="text-align:center;"> <span t-if="f.type == 'payment'">Listado de Pagos</span></h4>
- <h4 style="text-align:center;"> <span t-if="f.type == 'receipt'">Listado de Cobros</span></h4>
- </t>
- </t>
- <br></br>
- <div class="logo1"> </div>
- <table class="table table-bordered">
- <thead class="crm_tcab">
- <tr class="active">
- <th class="text-center">Numero</th>
- <th class="text-center">Nombre</th>
- <th class="text-center">Fecha</th>
- <th class="text-center">Metodo de Pago/Cobro</th>
- <th class="text-center">Monto Pagado/Cobrado</th>
- <th class="text-center">Estado</th>
- </tr>
- </thead>
- <t t-foreach="docs" t-as="o">
- <tbody class="sale_tbody">
- <td class="text-left">
- <span t-field="o.number"/>
- </td>
- <td class="text-left">
- <span t-field="o.partner_id.name"/>
- </td>
- <td class="text-left">
- <span t-field="o.date"/>
- </td>
- <td class="text-left">
- <span t-field="o.journal_id"/>
- </td>
- <td class="text-right">
- <span t-field="o.amount"
- t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
- </td>
- <td class="text-left">
- <span t-field="o.state"/>
- </td>
- </tbody>
- </t>
- <tr>
- <td colspan="6"></td>
- </tr>
- <tr class="border-black">
- <td colspan="3">Total:</td>
- <td class="text-right">
- <t t-set="total" t-value="sum([x.amount for x in docs])"/>
- <span t-esc="total" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
- </td>
- </tr>
- </table>
- </div>
- </t>
- </t>
- </template>
- </data>
- </openerp>
|