|
@@ -0,0 +1,536 @@
|
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
+<openerp>
|
|
|
|
+<data>
|
|
|
|
+
|
|
|
|
+ <report id="factura_venta_tag"
|
|
|
|
+ model="account.invoice"
|
|
|
|
+ string="Factura Legal"
|
|
|
|
+ report_type="qweb-html"
|
|
|
|
+ name="factura_venta_tag.report_factura_tag"
|
|
|
|
+ file="factura_venta_tag.report_factura_tag"
|
|
|
|
+ />
|
|
|
|
+
|
|
|
|
+ <template id="report_header_custom" inherit_id="report.external_layout_header">
|
|
|
|
+ <xpath expr="//div[@class='header']" position="replace">
|
|
|
|
+ <div class ="header">
|
|
|
|
+ </div>
|
|
|
|
+ </xpath>
|
|
|
|
+ </template>
|
|
|
|
+
|
|
|
|
+ <template id="external_layout_footer" inherit_id="report.external_layout_footer">
|
|
|
|
+ <xpath expr="//div[@class='footer']" position="replace">
|
|
|
|
+ <div class ="footer">
|
|
|
|
+ </div>
|
|
|
|
+ </xpath>
|
|
|
|
+ </template>
|
|
|
|
+
|
|
|
|
+ <template id="report_factura_tag">
|
|
|
|
+ <t t-call="report.html_container">
|
|
|
|
+ <t t-call="report.external_layout">
|
|
|
|
+ <t t-foreach="[1,2,3]" t-as="i">
|
|
|
|
+ <div class="page">
|
|
|
|
+ <style type="text/css">
|
|
|
|
+ body{
|
|
|
|
+ font-size: 2.5mm;
|
|
|
|
+ font-family: Arial, Helvetica, sans-serif;
|
|
|
|
+ }
|
|
|
|
+ div{
|
|
|
|
+ padding: 0px;
|
|
|
|
+ }
|
|
|
|
+ .pagina{
|
|
|
|
+ width:19.3cm;
|
|
|
|
+ }
|
|
|
|
+ .logo{
|
|
|
|
+ height: 0.78cm;
|
|
|
|
+ width: 100%;
|
|
|
|
+ top: 0px;
|
|
|
|
+ }
|
|
|
|
+ .fecha_emision_data{
|
|
|
|
+ width: 9.1cm;
|
|
|
|
+ font-size: 2.5mm;
|
|
|
|
+ padding-left: 2.86cm;
|
|
|
|
+ float: left;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .ruc_data1{
|
|
|
|
+ width: 3.0cm;
|
|
|
|
+ font-size: 2.5mm;
|
|
|
|
+ font-family: Arial, Helvetica, sans-serif;
|
|
|
|
+ float: left;
|
|
|
|
+ padding-left: 0.3cm;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .contado_x{
|
|
|
|
+ width: 6.6cm;
|
|
|
|
+ float: right;
|
|
|
|
+ font-size: 2.4mm;
|
|
|
|
+ padding-left: 0.9mm;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .linea2{
|
|
|
|
+ position: relative;
|
|
|
|
+ top: -0.12cm;
|
|
|
|
+ min-height: 0.4cm;
|
|
|
|
+ }
|
|
|
|
+ .razon_data{
|
|
|
|
+ width: 13.7cm;
|
|
|
|
+ float: left;
|
|
|
|
+ font-size: 2.4mm;
|
|
|
|
+ padding-left: 5.7cm;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .ruc_data{
|
|
|
|
+ width: 6.5cm;
|
|
|
|
+ font-size: 2.4mm;
|
|
|
|
+ float: right;
|
|
|
|
+ padding-left: 0.1cm;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .linea3{
|
|
|
|
+ position: relative;
|
|
|
|
+ top: -0.12cm;
|
|
|
|
+ min-height: 0.4cm;
|
|
|
|
+ }
|
|
|
|
+ .direccion_data{
|
|
|
|
+ width: 11.0cm;
|
|
|
|
+ font-size: 2.4mm;
|
|
|
|
+ font-family: Arial, Helvetica, sans-serif;
|
|
|
|
+ float: left;
|
|
|
|
+ padding-left: 4.1cm;
|
|
|
|
+ }
|
|
|
|
+ .nota_remision_data{
|
|
|
|
+ width: 5.3cm;
|
|
|
|
+ float: left;
|
|
|
|
+ padding-left: 2.5cm;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .linea4{
|
|
|
|
+ position: relative;
|
|
|
|
+ top: -0.12cm;
|
|
|
|
+ min-height: 0.4cm;
|
|
|
|
+ }
|
|
|
|
+ .telefono_data{
|
|
|
|
+ width: 7.8cm;
|
|
|
|
+ font-size: 2.3mm;
|
|
|
|
+ font-family: Arial, Helvetica, sans-serif;
|
|
|
|
+ float: right;
|
|
|
|
+ padding-left: 3.8cm;
|
|
|
|
+ }
|
|
|
|
+ .art-col11{
|
|
|
|
+ padding-left: 0.2mm;
|
|
|
|
+ width:1.7cm;
|
|
|
|
+ text-align: left;
|
|
|
|
+ }
|
|
|
|
+ .art-col13{
|
|
|
|
+ padding-left: 1.0cm;
|
|
|
|
+ width:9.3cm;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+ .art-col14{
|
|
|
|
+ width:1.8cm;
|
|
|
|
+ text-align: right;
|
|
|
|
+ }
|
|
|
|
+ .art-col15{
|
|
|
|
+ width:2.2cm;
|
|
|
|
+ padding-left: 0.3cm;
|
|
|
|
+ text-align: left;
|
|
|
|
+ }
|
|
|
|
+ .art-col16{
|
|
|
|
+ width:1.0cm;
|
|
|
|
+ text-align: right;
|
|
|
|
+ }
|
|
|
|
+ .art-col17{
|
|
|
|
+ width:2.0cm;
|
|
|
|
+ text-align: right;
|
|
|
|
+ }
|
|
|
|
+ .cab-articulos{
|
|
|
|
+ height: 0.85cm;
|
|
|
|
+ clear: both;
|
|
|
|
+ }
|
|
|
|
+ .articulos{
|
|
|
|
+ height: 3.355cm;
|
|
|
|
+ }
|
|
|
|
+ .art-col2{
|
|
|
|
+ padding-left: 0.2mm;
|
|
|
|
+ width:1.8cm;
|
|
|
|
+ font-size: 2.0mm;
|
|
|
|
+ text-align: center;
|
|
|
|
+ vertical-align: top;
|
|
|
|
+ min-height: 0.6cm;
|
|
|
|
+ }
|
|
|
|
+ .art-col3{
|
|
|
|
+ padding-left: 1.0cm;
|
|
|
|
+ font-size: 2.0mm;
|
|
|
|
+ width:2.0cm;
|
|
|
|
+ text-align: center;
|
|
|
|
+ vertical-align: top;
|
|
|
|
+ min-height: 0.6cm;
|
|
|
|
+ }
|
|
|
|
+ .art-col4{
|
|
|
|
+ width:6.9cm;
|
|
|
|
+ font-size: 2.0mm;
|
|
|
|
+ padding-left: 0.2mm;
|
|
|
|
+ text-align: left;
|
|
|
|
+ vertical-align: top;
|
|
|
|
+ min-height: 0.6cm;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .art-col5{
|
|
|
|
+ width:1.68cm;
|
|
|
|
+ font-size: 2.0mm;
|
|
|
|
+ text-align: right;
|
|
|
|
+ vertical-align: top;
|
|
|
|
+ min-height: 0.6cm;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .art-col8{
|
|
|
|
+ width:1.7cm;
|
|
|
|
+ font-size: 2.0mm;
|
|
|
|
+ text-align: right;
|
|
|
|
+ vertical-align: top;
|
|
|
|
+ min-height: 0.6cm;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .art-col6{
|
|
|
|
+ width:2.0cm;
|
|
|
|
+ font-size: 2.0mm;
|
|
|
|
+ vertical-align: top;
|
|
|
|
+ text-align: right;
|
|
|
|
+ min-height: 0.6cm;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .art-col7{
|
|
|
|
+ width:2.3cm;
|
|
|
|
+ font-size: 2.0mm;
|
|
|
|
+ text-align: right;
|
|
|
|
+ vertical-align: top;
|
|
|
|
+ min-height: 0.6cm;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .tab-articulos{
|
|
|
|
+ height: 0.87cm;
|
|
|
|
+ clear: both;
|
|
|
|
+ }
|
|
|
|
+ .art-col31{
|
|
|
|
+ padding-left: 0.2mm;
|
|
|
|
+ width:1.0cm;
|
|
|
|
+ text-align: left;
|
|
|
|
+ }
|
|
|
|
+ .art-col33{
|
|
|
|
+ padding-left: 1.0cm;
|
|
|
|
+ width:7.7cm;
|
|
|
|
+ text-align: left;
|
|
|
|
+ }
|
|
|
|
+ .art-col34{
|
|
|
|
+ width:1.4m;
|
|
|
|
+ text-align: right;
|
|
|
|
+ }
|
|
|
|
+ .art-col35{
|
|
|
|
+ width:1.2cm;
|
|
|
|
+ text-align: left;
|
|
|
|
+ }
|
|
|
|
+ .art-col36{
|
|
|
|
+ width:3.2cm;
|
|
|
|
+ text-align: right;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .tab-articulos4{
|
|
|
|
+ height: 0.0cm;
|
|
|
|
+ padding-left: 0.0cm;
|
|
|
|
+ clear: both;
|
|
|
|
+ }
|
|
|
|
+ .art-col41{
|
|
|
|
+ padding-left: 0.2mm;
|
|
|
|
+ width:1.7cm;
|
|
|
|
+ text-align: left;
|
|
|
|
+ }
|
|
|
|
+ .art-col43{
|
|
|
|
+ padding-left: 1.0cm;
|
|
|
|
+ width:9.3cm;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+ .art-col44{
|
|
|
|
+ width:1.8cm;
|
|
|
|
+ text-align: right;
|
|
|
|
+ }
|
|
|
|
+ .art-col45{
|
|
|
|
+ width:1.7cm;
|
|
|
|
+ padding-left: 0.3cm;
|
|
|
|
+ text-align: left;
|
|
|
|
+ }
|
|
|
|
+ .art-col46{
|
|
|
|
+ width:2.0cm;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+ .art-col47{
|
|
|
|
+ width:2.0cm;
|
|
|
|
+ text-align: right;
|
|
|
|
+ }
|
|
|
|
+ .logo1{
|
|
|
|
+ height: 2.83cm;
|
|
|
|
+ width: 100%;
|
|
|
|
+ top: 0px;
|
|
|
|
+ }
|
|
|
|
+ .logo2{
|
|
|
|
+ height: 2.85cm;
|
|
|
|
+ width: 100%;
|
|
|
|
+ top: 0px;
|
|
|
|
+ }
|
|
|
|
+ .logo3{
|
|
|
|
+ height: 4.69cm;
|
|
|
|
+ width: 100%;
|
|
|
|
+ top: 0px;
|
|
|
|
+ }
|
|
|
|
+ .subtotal_data{
|
|
|
|
+ width: 6cm;
|
|
|
|
+ float: left;
|
|
|
|
+ padding-top: 0.002cm;
|
|
|
|
+ padding-left: 2.3cm;
|
|
|
|
+ min-height: 0.2cm;
|
|
|
|
+ }
|
|
|
|
+ .subtotal_excentas{
|
|
|
|
+ width: 1.8cm;
|
|
|
|
+ float: left;
|
|
|
|
+ text-align: right;
|
|
|
|
+ padding-left: 7.9cm;
|
|
|
|
+ padding-top: 0.7cm;
|
|
|
|
+ min-height: 0.2cm;
|
|
|
|
+ }
|
|
|
|
+ .subtotal_5{
|
|
|
|
+ width: 1.8cm;
|
|
|
|
+ float: left;
|
|
|
|
+ padding-left: 1cm;
|
|
|
|
+ text-align: right;
|
|
|
|
+ padding-top: 0.7cm;
|
|
|
|
+ min-height: 0.2cm;
|
|
|
|
+ }
|
|
|
|
+ .subtotal_10{
|
|
|
|
+ width: 2.8cm;
|
|
|
|
+ float: left;
|
|
|
|
+ padding-left: 0.8cm;
|
|
|
|
+ text-align: right;
|
|
|
|
+ padding-top: 0.7cm;
|
|
|
|
+ min-height: 0.2cm;
|
|
|
|
+ }
|
|
|
|
+ .total_pagar_data{
|
|
|
|
+ width: 6.4cm;
|
|
|
|
+ float: left;
|
|
|
|
+ padding-top: 0.01mm;
|
|
|
|
+ padding-left: 3.8cm;
|
|
|
|
+ min-height: 0.5cm;
|
|
|
|
+ }
|
|
|
|
+ .total_pagar{
|
|
|
|
+ width: 2.3cm;
|
|
|
|
+ float: right;
|
|
|
|
+ padding-top: 0.01mm;
|
|
|
|
+ padding-left: 0.8cm;
|
|
|
|
+ min-height: 0.5cm;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .iva_5_data{
|
|
|
|
+ width: 5cm;
|
|
|
|
+ float: left;
|
|
|
|
+ padding-top: 0.04mm;
|
|
|
|
+ padding-left: 1.7cm;
|
|
|
|
+ font-size: 2.4mm;
|
|
|
|
+ min-height: 0.5cm;
|
|
|
|
+ }
|
|
|
|
+ .iva_10_data{
|
|
|
|
+ width: 5.2cm;
|
|
|
|
+ float: left;
|
|
|
|
+ padding-left: 1.4cm;
|
|
|
|
+ font-size: 2.4mm;
|
|
|
|
+ padding-top: 0.04mm;
|
|
|
|
+ min-height: 0.5cm;
|
|
|
|
+ }
|
|
|
|
+ .iva_total_data{
|
|
|
|
+ width: 5.8cm;
|
|
|
|
+ float: left;
|
|
|
|
+ font-size: 2.4mm;
|
|
|
|
+ padding-left: 1.8cm;
|
|
|
|
+ padding-top: 0.04mm;
|
|
|
|
+ min-height: 0.5cm;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ </style>
|
|
|
|
+ <t t-foreach="docs" t-as="o">
|
|
|
|
+ <div class="pagina">
|
|
|
|
+ <div class="logo"> </div>
|
|
|
|
+ <table class="tab-articulos2">
|
|
|
|
+ <td class="art-col11"> </td>
|
|
|
|
+ <td class="art-col13">
|
|
|
|
+
|
|
|
|
+ <span t-field="o.date_invoice" t-field-options='{"format": "dd MMM yyyy"}'/>
|
|
|
|
+
|
|
|
|
+ </td>
|
|
|
|
+ <td class="art-col14">
|
|
|
|
+ <t t-if="o.credito == True">
|
|
|
|
+ <b>Vencimiento: </b>
|
|
|
|
+ </t>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="art-col15">
|
|
|
|
+ <t t-if="o.credito == True">
|
|
|
|
+ <span t-field="o.date_due" t-field-options='{"format": "dd/MM/yyyy"}'/>
|
|
|
|
+ </t>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td class="art-col16">
|
|
|
|
+ <div class="contado_x">
|
|
|
|
+ <t t-if="o.contado == True">Contado</t>
|
|
|
|
+ <t t-if="o.contado == False">Crédito</t>
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="art-col17">
|
|
|
|
+
|
|
|
|
+ </td>
|
|
|
|
+ </table>
|
|
|
|
+
|
|
|
|
+ <table class="tab-articulos2">
|
|
|
|
+ <td class="art-col11"> </td>
|
|
|
|
+ <td class="art-col13">
|
|
|
|
+ <t t-f="o.partner_id.name"><span t-field="o.partner_id.name"/></t>
|
|
|
|
+ <t t-f="not o.partner_id.name">-</t>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="art-col14"> </td>
|
|
|
|
+ <td class="art-col15"> </td>
|
|
|
|
+ <td class="art-col16">
|
|
|
|
+ <div class="ruc_data">
|
|
|
|
+ <span t-field= "o.partner_id.ruc"/>
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="art-col17">
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ </table>
|
|
|
|
+
|
|
|
|
+ <table class="tab-articulos2">
|
|
|
|
+ <td class="art-col11"> </td>
|
|
|
|
+ <td class="art-col13">
|
|
|
|
+ <t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/></t>
|
|
|
|
+ <t t-f="not o.partner_id.street">-</t>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="art-col14"> </td>
|
|
|
|
+ <td class="art-col15"> </td>
|
|
|
|
+ <td class="art-col16">
|
|
|
|
+
|
|
|
|
+ </td>
|
|
|
|
+ <td class="art-col17">
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ </table>
|
|
|
|
+
|
|
|
|
+ <table class="tab-articulos2">
|
|
|
|
+ <td class="art-col11"> </td>
|
|
|
|
+ <td class="art-col13">
|
|
|
|
+ <t t-f="o.partner_id.phone"><span t-field="o.partner_id.mobile"/> <span t-field="o.partner_id.phone"/></t>
|
|
|
|
+ <t t-f="not o.partner_id.phone">-</t>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="art-col14"> </td>
|
|
|
|
+ <td class="art-col15"> </td>
|
|
|
|
+ <td class="art-col16">
|
|
|
|
+
|
|
|
|
+ </td>
|
|
|
|
+ <td class="art-col17">
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ </table>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <div class="cab-articulos"> </div>
|
|
|
|
+ <div class="articulos">
|
|
|
|
+
|
|
|
|
+ <table class="tab-articulos">
|
|
|
|
+ <!-- <div style="border:0.1px white;"></div> -->
|
|
|
|
+ <tr t-foreach="o.invoice_line" t-as="l">
|
|
|
|
+ <td class="art-col2"><span t-field="l.product_id.id"/></td>
|
|
|
|
+ <td class="art-col3"><span t-esc="'%.0f'%l.quantity"/></td>
|
|
|
|
+ <td class="art-col4"><span t-field="l.name"/></td>
|
|
|
|
+ <td class="art-col5"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></td>
|
|
|
|
+ <td class="art-col8"> </td>
|
|
|
|
+ <td class="art-col6"> </td>
|
|
|
|
+ <td class="art-col7"><span t-esc="'{0:,.0f}'.format((l.quantity * l.price_unit))"/></td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="subtotal_data"> </div>
|
|
|
|
+ <div class="subtotal_excentas"> </div>
|
|
|
|
+ <div class="subtotal_5"> </div>
|
|
|
|
+ <td style="font-size:7.0px;">
|
|
|
|
+ <t t-if="o.currency_id.id == 166">
|
|
|
|
+ <div class="subtotal_10"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="o.currency_id.id != 166">
|
|
|
|
+ <div class="subtotal_10"><span t-esc="'{0:,.2f}'.format(o.amount_total)"/></div>
|
|
|
|
+ </t>
|
|
|
|
+ </td>
|
|
|
|
+ <div class="total_pagar_data"></div>
|
|
|
|
+
|
|
|
|
+ <tr>
|
|
|
|
+ <table class="tab-articulos2">
|
|
|
|
+ <td class="art-col33">
|
|
|
|
+ </td>
|
|
|
|
+ <td class="art-col34">
|
|
|
|
+ </td>
|
|
|
|
+ <td class="art-col35">
|
|
|
|
+
|
|
|
|
+ </td>
|
|
|
|
+ <td class="art-col36">
|
|
|
|
+ <t t-if="o.currency_id.id == 166">
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="o.currency_id.id != 166">
|
|
|
|
+ <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
|
|
|
|
+ </t>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ </table>
|
|
|
|
+ </tr>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <table class="tab-articulos4">
|
|
|
|
+ <td class="art-col41">
|
|
|
|
+ </td>
|
|
|
|
+ <td class="art-col43">
|
|
|
|
+ <t t-if="o.currency_id.id == 166">
|
|
|
|
+ <div><span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="o.currency_id.id != 166">
|
|
|
|
+ <div><span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
|
|
|
|
+ </t>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="art-col44"> </td>
|
|
|
|
+ <td class="art-col45">
|
|
|
|
+
|
|
|
|
+ </td>
|
|
|
|
+ <td class="art-col46">
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="art-col47">
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ </table>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <t t-if="i == 1">
|
|
|
|
+ <div class="logo1"> </div>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="i == 2">
|
|
|
|
+ <div class="logo2"> </div>
|
|
|
|
+ </t>
|
|
|
|
+ <!-- <t t-if="i == 3">
|
|
|
|
+ <div class="logo3"> </div>
|
|
|
|
+ </t> -->
|
|
|
|
+
|
|
|
|
+ </t>
|
|
|
|
+ </div>
|
|
|
|
+ </t>
|
|
|
|
+ </t>
|
|
|
|
+ </t>
|
|
|
|
+ </template>
|
|
|
|
+
|
|
|
|
+</data>
|
|
|
|
+</openerp>
|