Bladeren bron

ADD FIX Impresion de favtura legal positiva

Sebas 6 jaren geleden
bovenliggende
commit
95c0f7527e
2 gewijzigde bestanden met toevoegingen van 132 en 125 verwijderingen
  1. 11 15
      factura_venta_suceso.xml
  2. 121 110
      factura_venta_suceso2.xml

+ 11 - 15
factura_venta_suceso.xml

@@ -29,12 +29,12 @@
                             border: none !important;
                             border: none !important;
                         }
                         }
                         .logo1{
                         .logo1{
-                            height: 3.3cm;
+                            height: 3.7cm;
                             width: 100%;
                             width: 100%;
                             top: 0px;
                             top: 0px;
                         }
                         }
                         .logo2{
                         .logo2{
-                            height: 2.8cm;
+                            height: 4cm;
                             width: 100%;
                             width: 100%;
                             top: 0px;
                             top: 0px;
                         }
                         }
@@ -116,7 +116,7 @@
                                             <tr t-foreach="o.invoice_line" t-as="l">
                                             <tr t-foreach="o.invoice_line" t-as="l">
 
 
                                                 <!-- CANTIDAD -->
                                                 <!-- CANTIDAD -->
-                                                <td style="font-size:11px;font-family: Arial;width:1.2cm;overflow: auto; text-align: center;">
+                                                <td style="font-size:11px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;">
                                                     <span t-esc="'%.0f'%l.quantity"/>
                                                     <span t-esc="'%.0f'%l.quantity"/>
                                                 </td>
                                                 </td>
 
 
@@ -170,7 +170,7 @@
                                                 </td>
                                                 </td>
 
 
                                                 <!-- IVA 10% -->
                                                 <!-- IVA 10% -->
-                                                <td style="font-size:11px;font-family: Arial;width:2.5cm;overflow: auto; text-align: right;">
+                                                <td style="font-size:11px;font-family: Arial;width:1.9cm;overflow: auto; text-align: right;">
                                                     <span t-if="'IVA 10% Venta' in [ilt.name for ilt in l.invoice_line_tax_id]">
                                                     <span t-if="'IVA 10% Venta' in [ilt.name for ilt in l.invoice_line_tax_id]">
                                                         <t t-if="o.currency_id.id == 166">
                                                         <t t-if="o.currency_id.id == 166">
                                                             <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
                                                             <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
@@ -191,17 +191,17 @@
                                 TABLA
                                 TABLA
                             ======================================================================
                             ======================================================================
                             -->
                             -->
-                            <div style="height:0.5cm;padding-right:0.6cm;">
+                            <div style="height:0.5cm;">
                                 <div style="font-family: Arial;">
                                 <div style="font-family: Arial;">
                                     <table class="table table-condensed">
                                     <table class="table table-condensed">
                                         <tbody>
                                         <tbody>
                                             <t t-set="iva_impuesto" t-value="0"/>
                                             <t t-set="iva_impuesto" t-value="0"/>
                                             <tr>
                                             <tr>
-                                                <td style="font-size:11px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;">
+                                                <td style="font-size:11px;font-family: Arial;width:2cm;overflow: auto; text-align: center;">
                                                 </td>
                                                 </td>
 
 
 
 
-                                                <td style="font-size:11px;font-family: Arial;width:9.5cm;overflow: auto;">
+                                                <td style="font-size:11px;font-family: Arial;width:8.8cm;overflow: auto;">
                                                     Impuesto Municipal 0,5%
                                                     Impuesto Municipal 0,5%
                                                 </td>
                                                 </td>
 
 
@@ -218,7 +218,7 @@
                                                 <td style="font-size:11px;font-family: Arial;width:1.9cm;overflow: auto; text-align: right;">
                                                 <td style="font-size:11px;font-family: Arial;width:1.9cm;overflow: auto; text-align: right;">
 
 
                                                 </td>
                                                 </td>
-                                                <td style="font-size:11px;font-family: Arial;width:2.3cm;overflow: auto; text-align: right;">
+                                                <td style="font-size:11px;font-family: Arial;width:1.9cm;overflow: auto; text-align: right;">
 
 
                                                 </td>
                                                 </td>
                                             </tr>
                                             </tr>
@@ -232,7 +232,7 @@
                                 TABLA
                                 TABLA
                             ======================================================================
                             ======================================================================
                             -->
                             -->
-                            <div style="height:0.5cm;padding-right:0.6cm;">
+                            <div style="height:0.5cm;">
                                 <div style="font-family: Arial;">
                                 <div style="font-family: Arial;">
                                     <t t-set="total_5" t-value="0"/>
                                     <t t-set="total_5" t-value="0"/>
                                     <t t-set="total_10" t-value="0"/>
                                     <t t-set="total_10" t-value="0"/>
@@ -241,11 +241,7 @@
 
 
                                     <table class="table table-condensed table-bordered">
                                     <table class="table table-condensed table-bordered">
                                         <tbody>
                                         <tbody>
-                                            <!-- <col style="width:25%;"/>
-                                            <col style="width:42%;"/>
-                                            <col style="width:12%;"/>
-                                            <col style="width:12%;"/>
-                                            <col style="width:13%;"/> -->
+
                                             <tr>
                                             <tr>
                                                 <th style="width:25%;font-size:10px;font-family: Arial;overflow: auto; text-align: left;min-height:1px;max-height:1px;">
                                                 <th style="width:25%;font-size:10px;font-family: Arial;overflow: auto; text-align: left;min-height:1px;max-height:1px;">
                                                     <b>SUBTOTALES:</b>
                                                     <b>SUBTOTALES:</b>
@@ -368,7 +364,7 @@
                     <div class="logo1"> </div>
                     <div class="logo1"> </div>
                     </t>
                     </t>
                     <t t-if="i == 2">
                     <t t-if="i == 2">
-                    <div class="logo1"> </div>
+                    <div class="logo2"> </div>
                     </t>
                     </t>
 
 
                 </div>
                 </div>

+ 121 - 110
factura_venta_suceso2.xml

@@ -11,30 +11,35 @@
      />
      />
 
 
     <template id="report_factura_suceso">
     <template id="report_factura_suceso">
-        <!-- <t t-call="report.external_layout"> -->
+        <t t-call="report.html_container">
 			<t t-foreach="[1,2,3]" t-as="i">
 			<t t-foreach="[1,2,3]" t-as="i">
 
 
                 <div class="page">
                 <div class="page">
                     <style>
                     <style>
                         .logo{
                         .logo{
-                            height: 1.26cm;
+                            height: 1.38cm;
                             width: 100%;
                             width: 100%;
                             top: 0px;
                             top: 0px;
                         }
                         }
+                        .table-condensed>tbody>tr>td {
+                            padding: 1px !important;
+                        }
+
                         .borderless td, .borderless th {
                         .borderless td, .borderless th {
                             border: none !important;
                             border: none !important;
                         }
                         }
-                        .table-super-condensed>tbody>tr>td {
-                            padding: 1px !important;
-                        }
                         .logo1{
                         .logo1{
-                            height: 1.9cm;
+                            height: 3.3cm;
+                            width: 100%;
+                            top: 0px;
+                        }
+                        .logo2{
+                            height: 2.8cm;
                             width: 100%;
                             width: 100%;
                             top: 0px;
                             top: 0px;
                         }
                         }
-
-
                     </style>
                     </style>
+
                     <t t-foreach="docs" t-as="o">
                     <t t-foreach="docs" t-as="o">
                         <div class="pagina">
                         <div class="pagina">
                             <div class="logo"> </div>
                             <div class="logo"> </div>
@@ -43,7 +48,7 @@
                                 CABECERA
                                 CABECERA
                             ======================================================================
                             ======================================================================
                             -->
                             -->
-                            <div style="height:1.75cm;">
+                            <div style="height:2cm;">
                                 <div style="padding-top:0.4cm;padding-right:5.0cm;font-size:11px;font-family: Arial;">
                                 <div style="padding-top:0.4cm;padding-right:5.0cm;font-size:11px;font-family: Arial;">
                                     <div>
                                     <div>
                                         <b>Fecha de Emisión: </b><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/>
                                         <b>Fecha de Emisión: </b><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/>
@@ -54,16 +59,12 @@
                                         &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
                                         &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
                                         &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
                                         &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
                                         &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
                                         &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
-                                        &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
-                                        &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
                                         <b>Condición de Venta: </b><t t-if="o.contado">Contado</t><t t-if="o.credito">Crédito</t>
                                         <b>Condición de Venta: </b><t t-if="o.contado">Contado</t><t t-if="o.credito">Crédito</t>
                                     </div>
                                     </div>
                                     <div>
                                     <div>
                                         <b>Nombre o Razón Social: </b><span t-field="o.partner_id.name"/>
                                         <b>Nombre o Razón Social: </b><span t-field="o.partner_id.name"/>
                                         &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
                                         &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
-                                        &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
-                                        &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
-                                        &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                                        &amp;nbsp;
                                         <b>R.U.C y/o C.I.N°: </b><span t-field="o.partner_id.ruc"/>
                                         <b>R.U.C y/o C.I.N°: </b><span t-field="o.partner_id.ruc"/>
                                     </div>
                                     </div>
 
 
@@ -93,17 +94,17 @@
                                 TABLA
                                 TABLA
                             ======================================================================
                             ======================================================================
                             -->
                             -->
-                            <div style="height:3.8cm;">
+                            <div style="height:3.1cm;">
                                 <div style="font-family: Arial;">
                                 <div style="font-family: Arial;">
-                                    <table class="table borderless table-condensed">
+                                    <table class="table table-condensed table-bordered">
                                         <thead>
                                         <thead>
                                             <tr>
                                             <tr>
-                                                <td style="font-size:11px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;"><b>Cant.</b></td>
-                                                <td style="font-size:11px;font-family: Arial;width:9.5cm;overflow: auto; text-align: left;"><b>Descripción</b></td>
-                                                <td style="font-size:11px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;"><b>P. Unitario</b></td>
-                                                <td style="font-size:11px;font-family: Arial;width:2.2cm;overflow: auto; text-align: right;"><b>Exentas</b></td>
-                                                <td style="font-size:11px;font-family: Arial;width:1.9cm;overflow: auto; text-align: right;"><b>IVA 5%</b></td>
-                                                <td style="font-size:11px;font-family: Arial;width:1.9cm;overflow: auto; text-align: right;"><b>IVA 10%</b></td>
+                                                <th style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;"><b>Cant.</b></th>
+                                                <th style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto; text-align: left;"><b>Descripción</b></th>
+                                                <th style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: center;"><b>P. Unit</b></th>
+                                                <th style="font-size:10px;font-family: Arial;width:2.2cm;overflow: auto; text-align: center;"><b>Exentas</b></th>
+                                                <th style="font-size:10px;font-family: Arial;width:1.9cm;overflow: auto; text-align: center;"><b>IVA 5%</b></th>
+                                                <th style="font-size:10px;font-family: Arial;width:1.9cm;overflow: auto; text-align: center;"><b>IVA 10%</b></th>
                                             </tr>
                                             </tr>
                                         </thead>
                                         </thead>
                                         <t t-set="valor_exentas" t-value="0"/>
                                         <t t-set="valor_exentas" t-value="0"/>
@@ -155,11 +156,6 @@
                                                     </span>
                                                     </span>
                                                 </td>
                                                 </td>
 
 
-                                                <!-- IMPUESTO MUNICIPAL -->
-                                                <!-- <td style="font-size:11px;font-family: Arial;width:2.2cm;overflow: auto; text-align: right;"> -->
-
-                                                <!-- </td> -->
-
                                                 <!-- IVA 5% -->
                                                 <!-- IVA 5% -->
                                                 <td style="font-size:11px;font-family: Arial;width:1.9cm;overflow: auto; text-align: right;">
                                                 <td style="font-size:11px;font-family: Arial;width:1.9cm;overflow: auto; text-align: right;">
                                                     <span t-if="'IVA 5% Venta' in [ilt.name for ilt in l.invoice_line_tax_id] and 'IVA 10% Venta' not in [ilt.name for ilt in l.invoice_line_tax_id]">
                                                     <span t-if="'IVA 5% Venta' in [ilt.name for ilt in l.invoice_line_tax_id] and 'IVA 10% Venta' not in [ilt.name for ilt in l.invoice_line_tax_id]">
@@ -197,16 +193,14 @@
                             -->
                             -->
                             <div style="height:0.5cm;padding-right:0.6cm;">
                             <div style="height:0.5cm;padding-right:0.6cm;">
                                 <div style="font-family: Arial;">
                                 <div style="font-family: Arial;">
-                                    <table class="table borderless table-super-condensed">
+                                    <table class="table table-condensed">
                                         <tbody>
                                         <tbody>
                                             <t t-set="iva_impuesto" t-value="0"/>
                                             <t t-set="iva_impuesto" t-value="0"/>
-                                            <!-- LINEA DE SUBTOTALES -->
                                             <tr>
                                             <tr>
-                                                <!-- CANTIDAD -->
                                                 <td style="font-size:11px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;">
                                                 <td style="font-size:11px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;">
                                                 </td>
                                                 </td>
 
 
-                                                <!-- NOMBRE DEL PRODUCTO -->
+
                                                 <td style="font-size:11px;font-family: Arial;width:9.5cm;overflow: auto;">
                                                 <td style="font-size:11px;font-family: Arial;width:9.5cm;overflow: auto;">
                                                     Impuesto Municipal 0,5%
                                                     Impuesto Municipal 0,5%
                                                 </td>
                                                 </td>
@@ -238,32 +232,37 @@
                                 TABLA
                                 TABLA
                             ======================================================================
                             ======================================================================
                             -->
                             -->
-                            <div style="height:1.9cm;padding-right:0.6cm;">
+                            <div style="height:0.5cm;padding-right:0.6cm;">
                                 <div style="font-family: Arial;">
                                 <div style="font-family: Arial;">
                                     <t t-set="total_5" t-value="0"/>
                                     <t t-set="total_5" t-value="0"/>
                                     <t t-set="total_10" t-value="0"/>
                                     <t t-set="total_10" t-value="0"/>
                                     <t t-set="iva_5" t-value="0"/>
                                     <t t-set="iva_5" t-value="0"/>
                                     <t t-set="iva_10" t-value="0"/>
                                     <t t-set="iva_10" t-value="0"/>
 
 
-                                    <table class="table borderless table-super-condensed">
+                                    <table class="table table-condensed table-bordered">
                                         <tbody>
                                         <tbody>
+                                            <!-- <col style="width:25%;"/>
+                                            <col style="width:42%;"/>
+                                            <col style="width:12%;"/>
+                                            <col style="width:12%;"/>
+                                            <col style="width:13%;"/> -->
                                             <tr>
                                             <tr>
-
-                                                <td style="font-size:11px;font-family: Arial;width:1.0cm;overflow: auto; text-align: left;">
+                                                <th style="width:25%;font-size:10px;font-family: Arial;overflow: auto; text-align: left;min-height:1px;max-height:1px;">
                                                     <b>SUBTOTALES:</b>
                                                     <b>SUBTOTALES:</b>
-                                                </td>
-                                                <td style="width:1.3cm;overflow: auto; text-align: center;"></td>
-                                                <td style="width:9.5cm;overflow: auto; text-align: center;"></td>
-                                                <td style="width:1.7cm;overflow: auto; text-align: center;"></td>
-                                                <td style="font-size:11px;font-family: Arial;width:2.2cm;overflow: auto; text-align: right;">
+                                                </th>
+                                                <th style="width:44%;height:0.5cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
+
+                                                </th>
+
+                                                <th style="width:10%;font-size:10px;font-family: Arial;overflow: auto; text-align: right;min-height:1px;max-height:1px;">
                                                     <t t-if="o.currency_id.id == 166">
                                                     <t t-if="o.currency_id.id == 166">
                                                         <span t-esc="'{0:,.0f}'.format(valor_exentas+iva_impuesto)"/>
                                                         <span t-esc="'{0:,.0f}'.format(valor_exentas+iva_impuesto)"/>
                                                     </t>
                                                     </t>
                                                     <t t-if="o.currency_id.id != 166">
                                                     <t t-if="o.currency_id.id != 166">
                                                         <span t-esc="'{0:,.2f}'.format(valor_exentas+valor_impmu)"/>
                                                         <span t-esc="'{0:,.2f}'.format(valor_exentas+valor_impmu)"/>
                                                     </t>
                                                     </t>
-                                                </td>
-                                                <td style="font-size:11px;font-family: Arial;width:1.9cm;overflow: auto; text-align: right;">
+                                                </th>
+                                                <th style="width:9%;font-size:10px;font-family: Arial;overflow: auto; text-align: right;min-height:1px;max-height:1px;">
                                                     <t t-if="o.currency_id.id == 166">
                                                     <t t-if="o.currency_id.id == 166">
                                                         <span t-esc="'{0:,.0f}'.format(valor_5)"/>
                                                         <span t-esc="'{0:,.0f}'.format(valor_5)"/>
                                                     </t>
                                                     </t>
@@ -271,8 +270,8 @@
                                                         <span t-esc="'{0:,.2f}'.format(valor_5)"/>
                                                         <span t-esc="'{0:,.2f}'.format(valor_5)"/>
                                                     </t>
                                                     </t>
                                                     <t t-set="iva_5" t-value="valor_5/21" />
                                                     <t t-set="iva_5" t-value="valor_5/21" />
-                                                </td>
-                                                <td style="font-size:11px;font-family: Arial;width:2.7cm;overflow: auto; text-align: right;">
+                                                </th>
+                                                <th style="width:12%;font-size:10px;font-family: Arial;overflow: auto; text-align: right;min-height:1px;max-height:1px;">
                                                     <t t-if="o.currency_id.id == 166">
                                                     <t t-if="o.currency_id.id == 166">
                                                         <span t-esc="'{0:,.0f}'.format(valor_10)"/>
                                                         <span t-esc="'{0:,.0f}'.format(valor_10)"/>
                                                     </t>
                                                     </t>
@@ -280,90 +279,102 @@
                                                         <span t-esc="'{0:,.2f}'.format(valor_10)"/>
                                                         <span t-esc="'{0:,.2f}'.format(valor_10)"/>
                                                     </t>
                                                     </t>
                                                     <t t-set="iva_10" t-value="valor_10/11" />
                                                     <t t-set="iva_10" t-value="valor_10/11" />
-                                                </td>
+                                                </th>
                                             </tr>
                                             </tr>
-                                        </tbody>
+                                            <tr>
+                                                <th style="width:25%;height:0.5cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
+                                                    <b>TOTAL A PAGAR: (en letra) </b>
+                                                </th>
+                                                <th style="width:44%;height:0.5cm;font-size:9px;font-family: Arial;overflow: auto; text-align: left;">
+                                                    <span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/>
+                                                </th>
+                                                <th style="width:10%;height:0.5cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
 
 
-                                    </table>
-                                    <table class="table borderless table-super-condensed">
-                                        <tbody>
+                                                </th>
+                                                <th style="width:9%;height:0.5cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
 
 
-                                            <tr>
-                                                <td style="font-size:11px;font-family: Arial;overflow: auto; width:30.5cm;text-align: left;">
-                                                        <b>TOTAL A PAGAR: (en letra) </b><span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/>
-                                                </td>
-                                                    <td style="font-size:11px;font-family: Arial;overflow: auto; width:7cm;text-align: right;">
-                                                        <t t-if="o.currency_id.id == 166">
-                                                            <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
+                                                </th>
+                                                <th style="width:12%;height:0.5cm;font-size:11px;font-family: Arial;overflow: auto; text-align: right;">
+                                                    <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>
+                                                </th>
+                                            </tr>
+                                            <t t-if="o.currency_id.id == 166">
+                                                <div>
+                                                    <th style="width:25%;height:0.5cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
+                                                        <b>LIQUIDACIÓN DEL IVA (5%): </b>
+                                                        <t t-if="iva_5 != 0">
+                                                            <span t-esc="'{0:,.0f}'.format(iva_5)"/>
                                                         </t>
                                                         </t>
-                                                        <t t-if="o.currency_id.id != 166">
-                                                            <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
+                                                    </th>
+
+                                                    <th style="width:12%;height:0.5cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
+                                                        <b>IVA 10%: </b>
+                                                        <t t-if="iva_10 != 0">
+                                                            <span t-esc="'{0:,.0f}'.format(iva_10)"/>
                                                         </t>
                                                         </t>
-                                                   </td>
+                                                    </th>
+                                                    <th style="width:10%;height:0.5cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
+                                                        <b> TOTAL IVA: </b>
+                                                    </th>
+                                                    <th style="width:10%;height:0.5cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
 
 
-                                            </tr>
-                                        </tbody>
-                                    </table>
-                                    <table class="table borderless table-super-condensed">
-                                        <tbody>
-                                                <tr>
-                                                    <td style="font-size:11px;font-family: Arial;overflow: auto; text-align: left;">
-                                                        <t t-if="o.currency_id.id == 166">
-                                                            <div>
-
-                                                                <td style="font-size:11px;font-family: Arial;width:15cm;overflow: auto; text-align: left;">
-                                                                    <b>LIQUIDACIÓN DEL IVA (5%): </b>
-                                                                    <t t-if="iva_5 != 0">
-                                                                        <span t-esc="'{0:,.0f}'.format(iva_5)"/>
-                                                                    </t>
-                                                                </td>
-                                                                <td style="font-size:11px;font-family: Arial;width:5cm;overflow: auto; text-align: center;">
-                                                                    <b>IVA 10%: </b>
-                                                                    <t t-if="iva_10 != 0">
-                                                                        <span t-esc="'{0:,.0f}'.format(iva_10)"/>
-                                                                    </t>
-                                                                </td>
-                                                                <td style="font-size:11px;font-family: Arial;width:7cm;overflow: auto; text-align: center;">
-                                                                    <b> TOTAL IVA: </b>
-                                                                    <t>
-                                                                        <span t-esc="'{0:,.0f}'.format(iva_5+iva_10)"/>
-                                                                    </t>
-                                                                </td>
-                                                            </div>
+                                                        <t>
+                                                            <span t-esc="'{0:,.0f}'.format(iva_5+iva_10)"/>
                                                         </t>
                                                         </t>
-                                                        <t t-if="o.currency_id.id != 166">
-                                                            <td style="font-size:11px;font-family: Arial;width:15cm;overflow: auto; text-align: left;">
-                                                                <b>LIQUIDACIÓN DEL IVA (5%): </b>
-                                                                <t t-if="iva_5 != 0">
-                                                                    <span t-esc="'{0:,.2f}'.format(iva_5)"/>
-                                                                </t>
-                                                            </td>
-                                                            <td style="font-size:11px;font-family: Arial;width:5cm;overflow: auto; text-align: center;">
-                                                                <b>IVA 10%: </b>
-                                                                <t t-if="iva_10 != 0">
-                                                                    <span t-esc="'{0:,.2f}'.format(iva_10)"/>
-                                                                </t>
-                                                            </td>
-                                                            <td style="font-size:11px;font-family: Arial;width:7cm;overflow: auto; text-align: center;">
-                                                                <b> TOTAL IVA: </b>
-                                                                <t>
-                                                                    <span t-esc="'{0:,.2f}'.format(iva_5+iva_10)"/>
-                                                                </t>
-                                                            </td>
+                                                    </th>
+
+                                                </div>
+                                            </t>
+                                            <t t-if="o.currency_id.id != 166">
+                                                <div>
+                                                    <th style="width:25%;height:0.5cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
+                                                        <b>LIQUIDACIÓN DEL IVA (5%): </b>
+                                                        <t t-if="iva_5 != 0">
+                                                            <span t-esc="'{0:,.0f}'.format(iva_5)"/>
                                                         </t>
                                                         </t>
-                                                    </td>
+                                                    </th>
 
 
-                                            </tr>
+                                                    <th style="width:12%;height:0.5cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
+                                                        <b>IVA 10%: </b>
+                                                        <t t-if="iva_10 != 0">
+                                                            <span t-esc="'{0:,.0f}'.format(iva_10)"/>
+                                                        </t>
+                                                    </th>
+                                                    <th style="width:10%;height:0.5cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
+                                                        <b> TOTAL IVA: </b>
+                                                    </th>
+                                                    <th style="width:10%;height:0.5cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
+
+                                                        <t>
+                                                            <span t-esc="'{0:,.0f}'.format(iva_5+iva_10)"/>
+                                                        </t>
+                                                    </th>
+                                                </div>
+                                            </t>
                                         </tbody>
                                         </tbody>
                                     </table>
                                     </table>
                                 </div>
                                 </div>
+
                             </div>
                             </div>
 
 
                         </div>
                         </div>
                     </t>
                     </t>
+                    <t t-if="i == 1">
+                    <div class="logo1"> </div>
+                    </t>
+                    <t t-if="i == 2">
+                    <div class="logo1"> </div>
+                    </t>
+
                 </div>
                 </div>
-            <div class="logo1"> </div>
+            </t>
         </t>
         </t>
+
     </template>
     </template>
 
 
 </data>
 </data>