|
@@ -0,0 +1,123 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<openerp>
|
|
|
+<data>
|
|
|
+ <report
|
|
|
+ id="account_invoices_id2"
|
|
|
+ model="account.invoice"
|
|
|
+ string="Listado de Facturas con forma de pago"
|
|
|
+ report_type="qweb-pdf"
|
|
|
+ name="informe_invoice_contadocredito.report_invoice_contadocredito"
|
|
|
+ file="informe_invoice_contadocredito.report_invoice_contadocredito"
|
|
|
+ />
|
|
|
+<template id="report_invoice_contadocredito">
|
|
|
+ <t t-call="report.html_container">
|
|
|
+
|
|
|
+ <t t-call="report.external_layout">
|
|
|
+ <div class="header">-</div>
|
|
|
+ <div class="page">
|
|
|
+ <style type="text/css">
|
|
|
+ .crm_tcab{
|
|
|
+ font-size: 3mm;
|
|
|
+ font-family: Arial, Helvetica, sans-serif;
|
|
|
+ }
|
|
|
+
|
|
|
+ .veh_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 == 'in_invoice'">Listado de Facturas/Compras</span></h4>
|
|
|
+ <h4 style="text-align:center;"> <span t-if="f.type == 'out_invoice'">Listado de Facturas/Ventas</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">N° Factura</th>
|
|
|
+ <th class="text-center">Fecha</th>
|
|
|
+ <th class="text-center">Forma de venta</th>
|
|
|
+ <th class="text-center">R.U.C.</th>
|
|
|
+ <th class="text-center">Cliente</th>
|
|
|
+ <th class="text-center">Total</th>
|
|
|
+ <th class="text-center">Pagado</th>
|
|
|
+ <th class="text-center">Saldo</th>
|
|
|
+ <th class="text-center">Estado</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <t t-foreach="docs" t-as="o">
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td><span t-esc="o.supplier_invoice_number"/></td>
|
|
|
+ <td><span t-field="o.date_invoice"/></td>
|
|
|
+ <td>
|
|
|
+ <t t-if="o.contado == true">
|
|
|
+ <span>Contado</span>
|
|
|
+ </t>
|
|
|
+ <t t-if="not o.contado == true">
|
|
|
+ <span>Crédito</span>
|
|
|
+ </t>
|
|
|
+
|
|
|
+ </td>
|
|
|
+ <td><span t-esc="o.partner_id.ruc"/></td>
|
|
|
+ <td><span t-esc="o.partner_id.name"/></td>
|
|
|
+ <td class="text-right">
|
|
|
+ <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
|
|
|
+ </td>
|
|
|
+ <td class="text-right">
|
|
|
+ <span t-esc="'{0:,.0f}'.format(o.amount_total-o.residual)"/>
|
|
|
+ </td>
|
|
|
+ <td class="text-right">
|
|
|
+ <span t-esc="'{0:,.0f}'.format(o.residual)"/>
|
|
|
+ </td>
|
|
|
+ <td><span t-field="o.state"/></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </t>
|
|
|
+ <tr>
|
|
|
+ <td colspan="10"></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="border-black">
|
|
|
+ <td colspan="4">Total:</td>
|
|
|
+ <td class="text-right">
|
|
|
+ <t t-set="total" t-value="sum([x.amount_total for x in docs])"/>
|
|
|
+ <span t-esc="'{0:,.0f}'.format(total)"/>
|
|
|
+ </td>
|
|
|
+ <td class="text-right">
|
|
|
+ <t t-set="total2" t-value="sum([x.amount_total-x.residual for x in docs])"/>
|
|
|
+ <span t-esc="'{0:,.0f}'.format(total2)"/>
|
|
|
+ </td>
|
|
|
+ <td class="text-right">
|
|
|
+ <t t-set="total3" t-value="sum([x.residual for x in docs])"/>
|
|
|
+ <span t-esc="'{0:,.0f}'.format(total3)"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </t>
|
|
|
+ </t>
|
|
|
+</template>
|
|
|
+</data>
|
|
|
+</openerp>
|