|
@@ -0,0 +1,183 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<openerp>
|
|
|
+ <data>
|
|
|
+ <report
|
|
|
+ id="report_orden_cobro"
|
|
|
+ model="orden.cobro"
|
|
|
+ string="Orden de cobro"
|
|
|
+ report_type="qweb-pdf"
|
|
|
+ name="orden_cobro.orden_cobro"
|
|
|
+ file="orden_cobro.orden_cobro"
|
|
|
+ />
|
|
|
+
|
|
|
+ <template id="orden_cobro">
|
|
|
+ <t t-call="report.html_container">
|
|
|
+ <t t-foreach="docs" t-as="o">
|
|
|
+ <t t-call="report.external_layout">
|
|
|
+ <t t-set="meses" t-value="{
|
|
|
+ '01': 'enero', '02': 'febrero', '03': 'marzo', '04': 'abril',
|
|
|
+ '05': 'mayo', '06': 'junio', '07': 'julio', '08': 'agosto',
|
|
|
+ '09': 'septiembre', '10': 'octubre', '11': 'noviembre', '12': 'diciembre'
|
|
|
+ }"/>
|
|
|
+ <t t-set="fecha_parts" t-value="o.date.split('-')"/>
|
|
|
+ <t t-set="fecha_letras" t-value="'%s de %s de %s' % (fecha_parts[2], meses[fecha_parts[1]], fecha_parts[0])"/>
|
|
|
+
|
|
|
+ <div class="page" style="font-size:13px;">
|
|
|
+ <div style="border: 2px solid #ddd; padding: 10px;">
|
|
|
+
|
|
|
+ <!-- Cabecera -->
|
|
|
+ <div class="row" style="display: flex; align-items: stretch; margin-top: -25px; border-top: 1px solid #ddd;">
|
|
|
+ <div class="col-xs-3" style="border-radius: 10px 0 0 10px; border: 2px solid #ddd; display: flex; flex-direction: column; justify-content: center; padding: 10px;">
|
|
|
+ <div class="logo-container">
|
|
|
+ <img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="max-height: 125px;" />
|
|
|
+ </div>
|
|
|
+ <div style="margin-top: 0.3cm;"></div>
|
|
|
+ <t><center><strong>INNOVACIÓN, TECNOLOGÍA Y SEGURIDAD</strong></center></t>
|
|
|
+ </div>
|
|
|
+ <div class="col-xs-5" style="border: 2px solid #ddd; display: flex; flex-direction: column; justify-content: center; padding: 10px;">
|
|
|
+ <h3><center><strong><i>BIOELECTRIC</i></strong></center></h3>
|
|
|
+ <t><center><b>de Armando Javier Aguilar Ramos</b></center></t>
|
|
|
+ <t><center><b>Instalaciones eléctricas, electromecánicas y electrónicas.</b></center></t>
|
|
|
+ <t><center><b>Comercio al por menor de otros artículos N.C.P.</b></center></t>
|
|
|
+ <t><center><b>Comercio al por menor de otros artículos de Ferretería</b></center></t>
|
|
|
+ <t><center><b>Calle Juan R. Medina c/ Av San Antonio</b></center></t>
|
|
|
+ <t><center><b>San Antonio - Paraguay</b></center></t>
|
|
|
+ <t><center><b>bioelectricpy@gmail.com - (0981) 939 132</b></center></t>
|
|
|
+ </div>
|
|
|
+ <div class="col-xs-4" style="border-radius: 0 10px 10px 0; border: 2px solid #ddd; display: flex; flex-direction: column; justify-content: center; padding: 10px;">
|
|
|
+ <t>
|
|
|
+ <div>
|
|
|
+ <h5><center><strong>Formulario Nº 022</strong></center></h5>
|
|
|
+ </div>
|
|
|
+ </t>
|
|
|
+ <t>
|
|
|
+ <div>
|
|
|
+ <h3><center><strong>RECIBO DE DINERO</strong></center></h3>
|
|
|
+ </div>
|
|
|
+ </t>
|
|
|
+ <t>
|
|
|
+ <div>
|
|
|
+ <h4><center><strong><span t-field="o.name" /></strong></center></h4>
|
|
|
+ </div>
|
|
|
+ </t>
|
|
|
+ <t>
|
|
|
+ <div>
|
|
|
+ <center><strong><span t-field="o.company_id.vat" /></strong></center>
|
|
|
+ </div>
|
|
|
+ </t>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <hr style="border: 1px solid #ddd; margin-top: 10px; margin-bottom: 15px;"/>
|
|
|
+
|
|
|
+ <div style="margin-bottom: 15px; font-size: 13px;">
|
|
|
+ <strong>Fecha:</strong> <span t-esc="fecha_letras"/>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <table style="width:100%; margin-bottom:15px;">
|
|
|
+ <tr style="height: 25px;">
|
|
|
+ <td><strong>Recibimos de </strong> <span t-field="o.partner_id.name"/></td>
|
|
|
+ <td><strong>R.U.C:</strong> <span t-esc="o.ruc_partner"/></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 25px;">
|
|
|
+ <td><strong>Teléfono:</strong> <span t-esc="o.telefono_partner or ''"/></td>
|
|
|
+ <td><strong>Celular:</strong> <span t-esc="o.celular_partner or ''"/></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ <table style="width:100%; margin-bottom:15px;border: 1px solid #ddd; margin-top: 10px;">
|
|
|
+ <tr style="height: 25px;">
|
|
|
+ <td><strong>La cantidad de </strong> <span t-esc="convertir(o.total, o.currency_id.en_letras1)"/></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <table style="width:100%; margin-bottom:15px;border: 1px solid #ddd; margin-top: 10px;">
|
|
|
+ <tr style="height: 25px;">
|
|
|
+ <td><strong>Por concepto de </strong> <span t-esc="o.concepto or ''"/></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ <!-- Detalle de Facturas -->
|
|
|
+ <div class="row" style="display: flex;">
|
|
|
+ <div class="col-xs-3" style="border: 1px solid #ddd; padding: 10px;">
|
|
|
+ <h4>Facturas</h4>
|
|
|
+ <table style="width: 100%; border-collapse: collapse; margin-bottom: 20px; border: 1px solid #ddd;">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th style="border: 1px solid #ddd; padding: 8px;">Nº de Factura</th>
|
|
|
+ <th style="border: 1px solid #ddd; padding: 8px;">Monto</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr t-foreach="o.invoice_ids" t-as="line">
|
|
|
+ <td style="border: 1px solid #ddd; padding: 8px;"><span t-esc="line.name"/></td>
|
|
|
+ <td style="border: 1px solid #ddd; padding: 8px; text-align: right;"><span t-esc="'{0:,.0f}'.format(line.amount_total)"/></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <table style="width:100%; border: 1px solid #ddd; margin-bottom:15px;">
|
|
|
+ <tr style="height: 30px;">
|
|
|
+ <td style="width:40%; border-right:1px solid #ddd;">
|
|
|
+ <strong>Importe Gs.:</strong>
|
|
|
+ </td>
|
|
|
+ <td style="width:60%; padding-left:10px;">
|
|
|
+ <span t-esc="'{0:,.0f}'.format(o.total)"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="col-xs-9" style="border: 1px solid #ddd; padding: 10px;">
|
|
|
+ <strong>Forma de cobro:</strong>
|
|
|
+ <div style="margin-top: 5px;">
|
|
|
+ <span style="margin-right: 40px; display: inline-block;">
|
|
|
+ <t t-if="o.is_efec">[x] Efectivo</t>
|
|
|
+ <t t-if="not o.is_efec">[ ] Efectivo</t>
|
|
|
+ </span>
|
|
|
+ <span style="margin-right: 40px; display: inline-block;">
|
|
|
+ <t t-if="o.is_cheq">[x] Cheque</t>
|
|
|
+ <t t-if="not o.is_cheq">[ ] Cheque</t>
|
|
|
+ </span>
|
|
|
+ <span style="display: inline-block;">
|
|
|
+ <t t-if="o.is_transf">[x] Transferencia</t>
|
|
|
+ <t t-if="not o.is_transf">[ ] Transferencia</t>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <table style="width:100%; margin-top: 10px; border-collapse: collapse; border: 1px solid #ddd;">
|
|
|
+ <tr style="height: 25px;">
|
|
|
+ <td style="border: 1px solid #ddd;"><strong>Banco Cheque:</strong> <span t-esc="o.cheque_banco or ''"/></td>
|
|
|
+ <td style="border: 1px solid #ddd;"><strong>Cheque Nº:</strong> <span t-esc="o.cheque_nro or ''"/></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 25px;">
|
|
|
+ <td style="border: 1px solid #ddd;"><strong>Banco Transferencia:</strong> <span t-esc="o.transf_banco or ''"/></td>
|
|
|
+ <td style="border: 1px solid #ddd;"><strong>Transferencia Nº:</strong> <span t-esc="o.transf_nro or ''"/></td>
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 25px;">
|
|
|
+ <td style="border: 1px solid #ddd;"><strong>Presupuesto Nº:</strong> <span t-esc="o.presupuesto_nro or ''"/></td>
|
|
|
+ <td style="border: 1px solid #ddd;"><strong>Obra:</strong> <span t-esc="o.obra or ''"/></td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <table style="width:100%; margin-top: 20px; font-size: 12px;">
|
|
|
+ <tr style="height: 25px;">
|
|
|
+ <td><strong>Solicitado por:</strong> <span t-esc="o.solicitado_por or ''"/></td>
|
|
|
+
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 25px;">
|
|
|
+
|
|
|
+ </tr>
|
|
|
+ <tr style="height: 25px;">
|
|
|
+ <td><strong>Elaborado por:</strong> <span t-field="o.user_id.name"/></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </t>
|
|
|
+ </t>
|
|
|
+ </t>
|
|
|
+ </template>
|
|
|
+ </data>
|
|
|
+</openerp>
|