|
@@ -0,0 +1,343 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<openerp>
|
|
|
+<data>
|
|
|
+
|
|
|
+
|
|
|
+ <report id="informe_reciboenfactura_flashnet"
|
|
|
+ model="account.invoice"
|
|
|
+ string="Recibo en factura"
|
|
|
+ report_type="qweb-pdf"
|
|
|
+ name="factura_venta_flashnet.reciboenfactura_flashnet"
|
|
|
+ file="factura_venta_flashnet.reciboenfactura_flashnet"
|
|
|
+ />
|
|
|
+
|
|
|
+ <record id="paperformat_lowmargin" model="report.paperformat">
|
|
|
+ <field name="name">factura</field>
|
|
|
+ <field name="default" eval="True" />
|
|
|
+ <field name="format">custom</field>
|
|
|
+ <field name="page_height">140</field>
|
|
|
+ <field name="page_width">210</field>
|
|
|
+ <field name="orientation">Portrait</field>
|
|
|
+ <field name="margin_top">3</field>
|
|
|
+ <field name="margin_bottom">2</field>
|
|
|
+ <field name="margin_left">1</field>
|
|
|
+ <field name="margin_right">1</field>
|
|
|
+ <field name="header_line" eval="False" />
|
|
|
+ <field name="header_spacing">3</field>
|
|
|
+ <field name="dpi">90</field>
|
|
|
+ </record>
|
|
|
+
|
|
|
+
|
|
|
+ <record id="factura_venta_flashnet.informe_reciboenfactura_flashnet" model="ir.actions.report.xml">
|
|
|
+ <field name="paperformat_id" ref="factura_venta_flashnet.paperformat_lowmargin" />
|
|
|
+ </record>
|
|
|
+
|
|
|
+ <template id="reciboenfactura_flashnet">
|
|
|
+ <t t-call="report.html_container">
|
|
|
+ <!-- <t t-foreach="[1]" t-as="i"> -->
|
|
|
+ <div class="page">
|
|
|
+ <style type="text/css">
|
|
|
+ body{
|
|
|
+ font-size: 4.0mm;
|
|
|
+ font-family: Arial;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ body1{
|
|
|
+ font-size: 4.3mm;
|
|
|
+ font-weight: bold;
|
|
|
+ font-family: Calibri;
|
|
|
+ }
|
|
|
+ div{
|
|
|
+ padding: 0px;
|
|
|
+ }
|
|
|
+ .pagina{
|
|
|
+ width:19.5cm;
|
|
|
+ padding-left: 2cm;
|
|
|
+ padding-right: 1cm;
|
|
|
+ height: 14cm;
|
|
|
+ }
|
|
|
+ .titulo{
|
|
|
+ width: 19.2cm;
|
|
|
+ text-align: center;
|
|
|
+ padding-top: 2.5cm;
|
|
|
+ margin-left: 0.8cm;
|
|
|
+ width: 100%;
|
|
|
+ min-height: 0.9cm;
|
|
|
+ }
|
|
|
+ .descripcion1{
|
|
|
+ width: 11.2cm;
|
|
|
+ font-size: 15px;
|
|
|
+ padding-top: 0.5cm;
|
|
|
+ float: left;
|
|
|
+ min-height: 0.7cm;
|
|
|
+ }
|
|
|
+
|
|
|
+ .descripcion2{
|
|
|
+ width: 13cm;
|
|
|
+ font-size: 15px;
|
|
|
+ float: left;
|
|
|
+ min-height: 0cm;
|
|
|
+ }
|
|
|
+
|
|
|
+ .descripcion3{
|
|
|
+ width: 15cm;
|
|
|
+ font-size: 15px;
|
|
|
+ float: left;
|
|
|
+ min-height: 0cm;
|
|
|
+ }
|
|
|
+ .descripcion4{
|
|
|
+ width: 15cm;
|
|
|
+ font-size: 15px;
|
|
|
+ float: left;
|
|
|
+ min-height: 0.3cm;
|
|
|
+ }
|
|
|
+ .email{
|
|
|
+ width: 13cm;
|
|
|
+ font-size: 15px;
|
|
|
+ float: left;
|
|
|
+ min-height: 0.3cm;
|
|
|
+ }
|
|
|
+
|
|
|
+ .table-condensed>tbody>tr>td {
|
|
|
+ padding: 1px !important;
|
|
|
+ }
|
|
|
+ .divisoria{
|
|
|
+ height: 0.1cm;
|
|
|
+ clear: both;
|
|
|
+ }
|
|
|
+ .linea1{
|
|
|
+ position: relative;
|
|
|
+ top: -0.12cm;
|
|
|
+ min-height: 0.5cm;
|
|
|
+ }
|
|
|
+ .fecha_emision_data{
|
|
|
+ width: 8.5cm;
|
|
|
+ font-size: 4.0mm;
|
|
|
+ float: left;
|
|
|
+ min-height: 0.5cm;
|
|
|
+ }
|
|
|
+ .number{
|
|
|
+ width: 7cm;
|
|
|
+ float: left;
|
|
|
+ font-size: 4.0mm;
|
|
|
+ padding-left: 0.2cm;
|
|
|
+ min-height: 0.5cm;
|
|
|
+ }
|
|
|
+ .linea2{
|
|
|
+ position: relative;
|
|
|
+ top: -0.12cm;
|
|
|
+ min-height: 0.5cm;
|
|
|
+ }
|
|
|
+ .razon_data{
|
|
|
+ width: 12cm;
|
|
|
+ font-size: 4.0mm;
|
|
|
+ float: left;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .linea3{
|
|
|
+ position: relative;
|
|
|
+ top: -0.12cm;
|
|
|
+ min-height: 0.5cm;
|
|
|
+ }
|
|
|
+ .ruc{
|
|
|
+ width: 7cm;
|
|
|
+ float: left;
|
|
|
+ font-size: 4.0mm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .due{
|
|
|
+ width: 7cm;
|
|
|
+ float: left;
|
|
|
+ font-size: 4.0mm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .linea4{
|
|
|
+ position: relative;
|
|
|
+ top: -0.12cm;
|
|
|
+ min-height: 0.3cm;
|
|
|
+ }
|
|
|
+ .street{
|
|
|
+ width: 15cm;
|
|
|
+ float: left;
|
|
|
+ font-size: 4.0mm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .mobile{
|
|
|
+ width: 7cm;
|
|
|
+ float: left;
|
|
|
+ font-size: 4.0mm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .linea5{
|
|
|
+ position: relative;
|
|
|
+ top: -0.12cm;
|
|
|
+ min-height: 0.3cm;
|
|
|
+ }
|
|
|
+ .vendor{
|
|
|
+ width: 8cm;
|
|
|
+ float: left;
|
|
|
+ font-size: 4.0mm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+
|
|
|
+ .fechapago{
|
|
|
+ width: 8cm;
|
|
|
+ float: left;
|
|
|
+ font-size: 4.0mm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+
|
|
|
+ .cab-articulos{
|
|
|
+ height: 0.4cm;
|
|
|
+ clear: both;
|
|
|
+ }
|
|
|
+ .articulos{
|
|
|
+ height: 4.5cm;
|
|
|
+ width: 14cm;
|
|
|
+ }
|
|
|
+ .art-col1{
|
|
|
+ width:1.9cm;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ .art-col2{
|
|
|
+ padding-left: 0.3cm;
|
|
|
+ width:12cm;
|
|
|
+ }
|
|
|
+ .art-col3{
|
|
|
+ padding-left: 0.3cm;
|
|
|
+ text-align: right;
|
|
|
+ width:3cm;
|
|
|
+ }
|
|
|
+ .art-col4{
|
|
|
+ width:3.4cm;
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+ .art-col5{
|
|
|
+ width:3.4cm;
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+
|
|
|
+ .total_pagar_data{
|
|
|
+ width: 17.5cm;
|
|
|
+ float: left;
|
|
|
+ font-size: 4.0mm;
|
|
|
+ padding-top: 0.01mm;
|
|
|
+ min-height: 0.3cm;
|
|
|
+ }
|
|
|
+
|
|
|
+ </style>
|
|
|
+
|
|
|
+ <t t-foreach="docs" t-as="o">
|
|
|
+ <div class="pagina">
|
|
|
+ <div class="divisoria" ></div>
|
|
|
+ <div style="border:0.3px solid #000;"></div>
|
|
|
+ <div class="titulo" >
|
|
|
+ <h4 class="text-center"><strong>RECIBO DE DINERO Nº: <span t-field="o.name"/></strong></h4>
|
|
|
+ <h3 class="text-center">Flash Net</h3>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div style="border:0.3px solid #000;"></div>
|
|
|
+ <div class="divisoria"> </div>
|
|
|
+ <div class="linea1">
|
|
|
+ <div class="fecha_emision_data"><b>FECHA: </b><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
|
|
|
+ <div class="number"><strong>REF. VENTA: </strong><span t-field="o.name"/></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="linea2">
|
|
|
+ <div class="razon_data"><b>CLIENTE: </b><span t-field="o.partner_id.name"/></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="linea3">
|
|
|
+ <div class="ruc"><b>R.U.C. Nº: </b><span t-field="o.partner_id.ruc"/></div>
|
|
|
+ <div class="due"><b>Vencimiento: </b><span t-field="o.date_due"/></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="linea4">
|
|
|
+ <div class="street"><b>DIRECCIÓN: </b><span t-field="o.partner_id.street"/></div>
|
|
|
+ <div class="mobile"><b>TÉLEFONO: </b><span t-field="o.partner_id.mobile"/></div>
|
|
|
+ </div>
|
|
|
+ <div class="linea5">
|
|
|
+ <div class="vendor"><b>COBRADOR: </b><span t-field="o.employee_id"/></div>
|
|
|
+ <div class="fechapago"><b>FECHA DE PAGO: </b></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="divisoria"> </div>
|
|
|
+ <div style="border:0.3px solid #000;"></div>
|
|
|
+ <div class="divisoria"> </div>
|
|
|
+
|
|
|
+ <table class="table table-condensed table-bordered">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th class="art-col1">CODIGO</th>
|
|
|
+ <th class="art-col2">DESCRIPCION</th>
|
|
|
+ <th class="art-col3">CANT.</th>
|
|
|
+ <th class="art-col4">P. UNIT </th>
|
|
|
+ <th class="art-col5">SUBTOTAL</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody class="sale_tbody">
|
|
|
+ <t t-set="valor_mat" t-value="0"/>
|
|
|
+ <t t-set="qty" t-value="0"/>
|
|
|
+ <tr t-foreach="o.invoice_line" t-as="l">
|
|
|
+ <td class="art-col1">
|
|
|
+ <span t-field="l.product_id.default_code"/>
|
|
|
+ </td>
|
|
|
+ <td class="art-col2">
|
|
|
+ <span t-field="l.product_id"/>
|
|
|
+ </td>
|
|
|
+ <td class="art-col3">
|
|
|
+ <span t-esc= "'{0:,.0f}'.format(int(l.quantity)).replace(',', '.')">
|
|
|
+ <span t-value="qty + l.quantity"/></span>
|
|
|
+ <t t-set="qty" t-value="qty + l.quantity"/>
|
|
|
+ </td>
|
|
|
+ <td class="art-col4">
|
|
|
+ <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td class="art-col5">
|
|
|
+ <span t-esc= "'{0:,.0f}'.format((l.quantity * l.price_unit)).replace(',', '.')">
|
|
|
+ <span t-value="valor_mat+(l.quantity * l.price_unit)"/></span>
|
|
|
+ <t t-set="valor_mat" t-value="valor_mat+(l.quantity * l.price_unit)"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-xs-12 pull-right">
|
|
|
+ <table class="table table-condensed">
|
|
|
+ <td class="art-col1"><b>Totales: </b></td>
|
|
|
+ <td class="art-col2"></td>
|
|
|
+ <td class="art-col3">
|
|
|
+ <span t-esc="'{0:,.0f}'.format(int(qty)).replace(',', '.')"></span>
|
|
|
+ </td>
|
|
|
+ <td class="art-col4"></td>
|
|
|
+ <td class="art-col5">
|
|
|
+ <span t-esc="'{0:,.0f}'.format((valor_mat)).replace(',', '.')"></span>
|
|
|
+ </td>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-xs-12 pull-right">
|
|
|
+ <table class="table table-condensed">
|
|
|
+
|
|
|
+ <tr class="border-black">
|
|
|
+ <td><div class="total_pagar_data"><b>Total a pagar: </b><span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/> Gs. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div></td>
|
|
|
+
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <p style="page-break-after:always"></p>
|
|
|
+ </t>
|
|
|
+ </div>
|
|
|
+ </t>
|
|
|
+
|
|
|
+ </template>
|
|
|
+</data>
|
|
|
+</openerp>
|