|
@@ -10,308 +10,486 @@
|
|
file="factura_venta_suceso.report_factura_suceso"
|
|
file="factura_venta_suceso.report_factura_suceso"
|
|
/>
|
|
/>
|
|
|
|
|
|
- <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_suceso">
|
|
<template id="report_factura_suceso">
|
|
<t t-call="report.html_container">
|
|
<t t-call="report.html_container">
|
|
- <t t-call="report.external_layout">
|
|
|
|
- <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 type="text/css">
|
|
|
|
- body{
|
|
|
|
- font-size: 2.7mm;
|
|
|
|
- font-family: Arial, Helvetica, sans-serif;
|
|
|
|
- }
|
|
|
|
- div{
|
|
|
|
- padding: 0px;
|
|
|
|
- }
|
|
|
|
- .pagina{
|
|
|
|
- width:19.3cm;
|
|
|
|
- }
|
|
|
|
|
|
+ <style>
|
|
.logo{
|
|
.logo{
|
|
- height: 1.6cm;
|
|
|
|
|
|
+ height: 1.20cm;
|
|
width: 100%;
|
|
width: 100%;
|
|
top: 0px;
|
|
top: 0px;
|
|
}
|
|
}
|
|
- .fecha_emision_data{
|
|
|
|
- width: 13.5cm;
|
|
|
|
- padding-left: 0.4cm;
|
|
|
|
- float: left;
|
|
|
|
- min-height: 0.2mm;
|
|
|
|
- }
|
|
|
|
- .contado_x{
|
|
|
|
- width: 5.72cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 0.1cm;
|
|
|
|
- min-height: 0.2mm;
|
|
|
|
- }
|
|
|
|
- .razon_data{
|
|
|
|
- width: 13.5cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 0.4cm;
|
|
|
|
- min-height: 0.2mm;
|
|
|
|
- }
|
|
|
|
- .ruc_data{
|
|
|
|
- width: 5.72cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 0.2cm;
|
|
|
|
- min-height: 0.2mm;
|
|
|
|
|
|
+ .table-condensed>tbody>tr>td {
|
|
|
|
+ padding: 1px !important;
|
|
}
|
|
}
|
|
|
|
|
|
- .direccion_data{
|
|
|
|
- width: 13.5cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 0.4cm;
|
|
|
|
- min-height: 0.2mm;
|
|
|
|
|
|
+ .borderless td, .borderless th {
|
|
|
|
+ border: none !important;
|
|
}
|
|
}
|
|
- .telefono_data{
|
|
|
|
- width: 5.72cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 0.3cm;
|
|
|
|
- min-height: 0.2mm;
|
|
|
|
|
|
+ .logo1{
|
|
|
|
+ height: 3.9cm;
|
|
|
|
+ width: 100%;
|
|
|
|
+ top: 0px;
|
|
}
|
|
}
|
|
|
|
+ </style>
|
|
|
|
|
|
- .nota_remision_data{
|
|
|
|
- width: 6cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 0.4cm;
|
|
|
|
- min-height: 0.2mm;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .remision_data{
|
|
|
|
- width: 4cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 0.62cm;
|
|
|
|
- min-height: 0.2mm;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .remision_pago{
|
|
|
|
- width: 9.22cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 1cm;
|
|
|
|
- min-height: 0.2mm;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .cab-articulos{
|
|
|
|
- height: 0.0cm;
|
|
|
|
- clear: both;
|
|
|
|
- }
|
|
|
|
- .articulos{
|
|
|
|
- height: 3.5cm;
|
|
|
|
- }
|
|
|
|
- .art-col1{
|
|
|
|
- width:0.5cm;
|
|
|
|
- text-align: center;
|
|
|
|
- }
|
|
|
|
- .art-col2{
|
|
|
|
- padding-left: 1cm;
|
|
|
|
- width:8.5cm;
|
|
|
|
- }
|
|
|
|
- .art-col3{
|
|
|
|
- width:2.8cm;
|
|
|
|
- padding-left: 0.3cm;
|
|
|
|
- text-align: right;
|
|
|
|
- }
|
|
|
|
- .art-col4{
|
|
|
|
- width:2.4cm;
|
|
|
|
- padding-left: 0.3cm;
|
|
|
|
- text-align: right;
|
|
|
|
- }
|
|
|
|
- .art-col5{
|
|
|
|
- width:2.6cm;
|
|
|
|
- padding-left: 0.2cm;
|
|
|
|
- text-align: right;
|
|
|
|
- }
|
|
|
|
- .art-col6{
|
|
|
|
- width:2.5cm;
|
|
|
|
- text-align: right;
|
|
|
|
- }
|
|
|
|
|
|
+ <t t-foreach="docs" t-as="o">
|
|
|
|
+ <div class="pagina">
|
|
|
|
+ <div class="logo"> </div>
|
|
|
|
+ <!--
|
|
|
|
+ ======================================================================
|
|
|
|
+ CABECERA
|
|
|
|
+ ======================================================================
|
|
|
|
+ -->
|
|
|
|
+ <div style="height:2cm;">
|
|
|
|
+ <div style="padding-top:0.4cm;padding-right:5.0cm;font-size:11px;font-family: Arial;">
|
|
|
|
+ <div>
|
|
|
|
+ <b>Fecha de Emisión: </b><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/>
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ <b>Condición de Venta: </b><t t-if="o.contado">Contado</t><t t-if="o.credito">Crédito</t>
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ <b>Nombre o Razón Social: </b><span t-field="o.partner_id.name"/>
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ &nbsp;
|
|
|
|
+ <b>R.U.C y/o C.I.N°: </b><span t-field="o.partner_id.ruc"/>
|
|
|
|
+ </div>
|
|
|
|
|
|
- .subtotal_data{
|
|
|
|
- width: 12.88cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 0.3cm;
|
|
|
|
- min-height: 0.2cm;
|
|
|
|
- }
|
|
|
|
- .subtotal_excentas{
|
|
|
|
- width: 2cm;
|
|
|
|
- float: right;
|
|
|
|
- text-align: right;
|
|
|
|
- min-height: 0.2cm;
|
|
|
|
- }
|
|
|
|
- .subtotal_5{
|
|
|
|
- width: 2.1cm;
|
|
|
|
- float: right;
|
|
|
|
- text-align: right;
|
|
|
|
- min-height: 0.2cm;
|
|
|
|
- }
|
|
|
|
- .subtotal_10{
|
|
|
|
- width: 2.2cm;
|
|
|
|
- float: right;
|
|
|
|
- text-align: right;
|
|
|
|
- min-height: 0.2cm;
|
|
|
|
- }
|
|
|
|
- .total_pagar_data{
|
|
|
|
- width: 16.5cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 0.4cm;
|
|
|
|
- min-height: 0.2mm;
|
|
|
|
- }
|
|
|
|
- .total_pagar{
|
|
|
|
- width: 2.70cm;
|
|
|
|
- float: right;
|
|
|
|
- text-align: right;
|
|
|
|
- min-height: 0.2mm;
|
|
|
|
- }
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <b>Dirección: </b><span t-field="o.partner_id.street"/>
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ <b>Teléfono: </b><span t-field="o.partner_id.mobile"/>
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ <b>Nota de Remisión N°:</b>
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ <b>Fecha:</b>
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ <b>Condición de Pago:</b>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <!--
|
|
|
|
+ ======================================================================
|
|
|
|
+ TABLA
|
|
|
|
+ ======================================================================
|
|
|
|
+ -->
|
|
|
|
+ <div style="height:3.1cm;">
|
|
|
|
+ <div style="font-family: Arial;">
|
|
|
|
+ <table class="table table-condensed table-bordered">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <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>
|
|
|
|
+ </thead>
|
|
|
|
+ <t t-set="valor_exentas" t-value="0"/>
|
|
|
|
+ <t t-set="valor_impmu" t-value="0"/>
|
|
|
|
+ <t t-set="valor_5" t-value="0"/>
|
|
|
|
+ <t t-set="valor_10" t-value="0"/>
|
|
|
|
|
|
- .iva_5_data{
|
|
|
|
- width: 8cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-top: 0.6cm;
|
|
|
|
- padding-left: 0.3cm;
|
|
|
|
- min-height: 0.25cm;
|
|
|
|
- }
|
|
|
|
- .iva_10_data{
|
|
|
|
- width: 5.61cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-top: 0.6cm;
|
|
|
|
- padding-left: o.5cm;
|
|
|
|
- min-height: 0.25cm;
|
|
|
|
- }
|
|
|
|
- .iva_total_data{
|
|
|
|
- width: 5.61cm;
|
|
|
|
- float: left;
|
|
|
|
- padding-top: 0.6cm;
|
|
|
|
- padding-left: 1.5cm;
|
|
|
|
- min-height: 0.25cm;
|
|
|
|
- }
|
|
|
|
|
|
+ <tbody>
|
|
|
|
+ <tr t-foreach="o.invoice_line" t-as="l">
|
|
|
|
|
|
- </style>
|
|
|
|
- <t t-foreach="docs" t-as="o">
|
|
|
|
|
|
+ <!-- CANTIDAD -->
|
|
|
|
+ <td style="font-size:11px;font-family: Arial;width:1.2cm;overflow: auto; text-align: center;">
|
|
|
|
+ <span t-esc="'%.0f'%l.quantity"/>
|
|
|
|
+ </td>
|
|
|
|
|
|
- <div class="pagina">
|
|
|
|
- <div class="logo"> </div>
|
|
|
|
- <table border="1" class="table table-condensed" style="border-style:solid">
|
|
|
|
- <tr>
|
|
|
|
- <th class="fecha_emision_data" ><b>Fecha de Emisión: </b><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></th>
|
|
|
|
- <th class="contado_x">
|
|
|
|
- <t t-if="o.contado == True"><b>Condición de Venta:</b> Contado</t>
|
|
|
|
- <t t-if="o.credito == True">Condición de Venta: Crédito</t>
|
|
|
|
- </th>
|
|
|
|
- </tr>
|
|
|
|
- <tr>
|
|
|
|
- <th class="razon_data"><b>Nombre o Razón Social: </b><span t-field="o.partner_id.name"/></th>
|
|
|
|
- <th class="ruc_data"><b>R.U.C. y/o C.I.N°: </b><span t-field="o.partner_id.ruc"/></th>
|
|
|
|
- </tr>
|
|
|
|
- <tr>
|
|
|
|
- <th class="direccion_data"><b>Dirección: </b><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/></th>
|
|
|
|
- <th class="telefono_data"><b>Teléfono: </b><span t-field="o.partner_id.phone"/></th>
|
|
|
|
- </tr>
|
|
|
|
- <tr>
|
|
|
|
- <th class="nota_remision_data"><b>Nota de Remisión: </b> </th>
|
|
|
|
- <th class="remision_data"><b>Fecha: </b> </th>
|
|
|
|
- <th class="remision_pago"><b>Condición de Pago: </b> </th>
|
|
|
|
- </tr>
|
|
|
|
- </table>
|
|
|
|
- <div class="cab-articulos"> </div>
|
|
|
|
- <div class="articulos">
|
|
|
|
- <table class="table table-condensed">
|
|
|
|
- <thead>
|
|
|
|
- <tr>
|
|
|
|
- <th class="text-right">Cant.</th>
|
|
|
|
- <th class="text-left">Descripción</th>
|
|
|
|
- <th class="text-right">P. Unitario</th>
|
|
|
|
- <th class="text-right">Exentas</th>
|
|
|
|
- <th class="text-right">IVA 5%</th>
|
|
|
|
- <th class="text-right">IVA 10%</th>
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <t t-set="valor_exenta" t-value="0"/>
|
|
|
|
- <t t-set="valor_5" t-value="0"/>
|
|
|
|
- <t t-set="valor_10" t-value="0"/>
|
|
|
|
- <tbody class="sale_tbody">
|
|
|
|
- <tr t-foreach="o.invoice_line" t-as="l">
|
|
|
|
- <td class="art-col1"><span t-esc="'%.0f'%l.quantity"/></td>
|
|
|
|
- <td class="art-col2"><span t-field="l.name"/></td>
|
|
|
|
- <td class="art-col3"><span t-esc="'{0:,.0f}'.format(int(l.price_unit)).replace(',', '.')"/></td>
|
|
|
|
- <td class="art-col4">
|
|
|
|
- <span t-if="'IVA 5% Venta' not 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-esc= "'{0:,.0f}'.format(int(l.quantity * l.price_unit)).replace(',', '.')">
|
|
|
|
- <span t-value="valor_exenta+(l.quantity * l.price_unit)"/></span>
|
|
|
|
- <t t-set="valor_exenta" t-value="valor_exenta+(l.quantity * l.price_unit)"/>
|
|
|
|
|
|
+ <!-- NOMBRE DEL PRODUCTO -->
|
|
|
|
+ <td style="font-size:11px;font-family: Arial;width:9.5cm;overflow: auto;">
|
|
|
|
+ <span t-field="l.name"/>
|
|
|
|
+ </td>
|
|
|
|
+ <!-- PRECIO UNITARIO -->
|
|
|
|
+ <td style="font-size:11px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
|
|
|
|
+ <t t-if="o.currency_id.id == 166">
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="o.currency_id.id != 166">
|
|
|
|
+ <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
|
|
|
|
+ </t>
|
|
|
|
+ </td>
|
|
|
|
+ <!-- EXENTAS -->
|
|
|
|
+ <td style="font-size:11px;font-family: Arial;width:2.2cm;overflow: auto; text-align: right;">
|
|
|
|
+ <span t-if="'IVA 5% Venta' not 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]">
|
|
|
|
+ <t t-if="o.currency_id.id == 166">
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="o.currency_id.id != 166">
|
|
|
|
+ <span t-esc="'{0:,.2f}'.format(l.quantity * l.price_unit)"/>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-set="valor_exentas" t-value="valor_exentas+(l.quantity * l.price_unit)"/>
|
|
|
|
+ </span>
|
|
|
|
+
|
|
|
|
+ <span t-if="'Impuesto Municipal' in [ilt.name for ilt in l.invoice_line_tax_id]">
|
|
|
|
+ <t t-if="o.currency_id.id == 166">
|
|
|
|
+
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="o.currency_id.id != 166">
|
|
|
|
+
|
|
|
|
+ </t>
|
|
|
|
+ <t t-set="valor_impmu" t-value="valor_impmu+(l.quantity * l.price_unit)"/>
|
|
</span>
|
|
</span>
|
|
- </td>
|
|
|
|
- <td class="art-col5">
|
|
|
|
- <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-esc="'{0:,.0f}'.format(int(l.quantity * l.price_unit)).replace(',', '.')">
|
|
|
|
- <span t-value="valor_5+(l.quantity * l.price_unit)"/></span>
|
|
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <!-- IVA 5% -->
|
|
|
|
+ <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]">
|
|
|
|
+ <t t-if="o.currency_id.id == 166">
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="o.currency_id.id != 166">
|
|
|
|
+ <span t-esc="'{0:,.2f}'.format(l.quantity * l.price_unit)"/>
|
|
|
|
+ </t>
|
|
<t t-set="valor_5" t-value="valor_5+(l.quantity * l.price_unit)"/>
|
|
<t t-set="valor_5" t-value="valor_5+(l.quantity * l.price_unit)"/>
|
|
</span>
|
|
</span>
|
|
- </td>
|
|
|
|
- <td class="art-col6">
|
|
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <!-- IVA 10% -->
|
|
|
|
+ <td style="font-size:11px;font-family: Arial;width:2.5cm;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]">
|
|
- <span t-esc="'{0:,.0f}'.format(int(l.quantity * l.price_unit)).replace(',', '.')">
|
|
|
|
- <span t-value="valor_10+(l.quantity * l.price_unit)"/></span>
|
|
|
|
- <t t-set="valor_10" t-value="valor_10+(l.quantity * l.price_unit)"/>
|
|
|
|
- </span>
|
|
|
|
- </td>
|
|
|
|
- </tr>
|
|
|
|
|
|
+ <t t-if="o.currency_id.id == 166">
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="o.currency_id.id != 166">
|
|
|
|
+ <span t-esc="'{0:,.2f}'.format(l.quantity * l.price_unit)"/>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-set="valor_10" t-value="valor_10+(l.quantity * l.price_unit)"/>
|
|
|
|
+ </span>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <!--
|
|
|
|
+ ======================================================================
|
|
|
|
+ TABLA
|
|
|
|
+ ======================================================================
|
|
|
|
+ -->
|
|
|
|
+ <div style="height:0.5cm;padding-right:0.6cm;">
|
|
|
|
+ <div style="font-family: Arial;">
|
|
|
|
+ <table class="table table-condensed">
|
|
|
|
+ <tbody>
|
|
|
|
+ <t t-set="iva_impuesto" t-value="0"/>
|
|
|
|
+ <tr>
|
|
|
|
+ <td style="font-size:11px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;">
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <td style="font-size:11px;font-family: Arial;width:9.5cm;overflow: auto;">
|
|
|
|
+ Impuesto Municipal 0,5%
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <td style="font-size:11px;font-family: Arial;width:9.7cm;overflow: auto; text-align: center;"></td>
|
|
|
|
+ <td style="font-size:11px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
|
|
|
|
+ <t t-set="iva_impuesto" t-value="valor_impmu*0.005" />
|
|
|
|
+ <t t-if="iva_impuesto != 0">
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(iva_impuesto)"/>
|
|
|
|
+ </t>
|
|
|
|
+ </td>
|
|
|
|
+ <td style="font-size:11px;font-family: Arial;width:2.2cm;overflow: auto; text-align: right;">
|
|
|
|
+
|
|
|
|
+ </td>
|
|
|
|
+ <td style="font-size:11px;font-family: Arial;width:1.9cm;overflow: auto; text-align: right;">
|
|
|
|
+
|
|
|
|
+ </td>
|
|
|
|
+ <td style="font-size:11px;font-family: Arial;width:2.3cm;overflow: auto; text-align: right;">
|
|
|
|
+
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <!--
|
|
|
|
+ ======================================================================
|
|
|
|
+ TABLA
|
|
|
|
+ ======================================================================
|
|
|
|
+ -->
|
|
|
|
+ <div style="height:0.5cm;padding-right:0.6cm;">
|
|
|
|
+ <div style="font-family: Arial;">
|
|
|
|
+ <t t-set="total_5" t-value="0"/>
|
|
|
|
+ <t t-set="total_10" t-value="0"/>
|
|
|
|
+ <t t-set="iva_5" t-value="0"/>
|
|
|
|
+ <t t-set="iva_10" t-value="0"/>
|
|
|
|
+
|
|
|
|
+ <table class="table table-condensed table-bordered">
|
|
|
|
+ <tbody>
|
|
|
|
+ <!-- <col style="width:25%;"/>
|
|
|
|
+ <col style="width:42%;"/>
|
|
|
|
+ <col style="width:12%;"/>
|
|
|
|
+ <col style="width:12%;"/>
|
|
|
|
+ <col style="width:13%;"/> -->
|
|
|
|
+ <tr>
|
|
|
|
+ <th style="width:25%;font-size:10px;font-family: Arial;overflow: auto; text-align: left;min-height:1px;max-height:1px;">
|
|
|
|
+ <b>SUBTOTALES:</b>
|
|
|
|
+ </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">
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(valor_exentas+iva_impuesto)"/>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="o.currency_id.id != 166">
|
|
|
|
+ <span t-esc="'{0:,.2f}'.format(valor_exentas+valor_impmu)"/>
|
|
|
|
+ </t>
|
|
|
|
+ </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">
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(valor_5)"/>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="o.currency_id.id != 166">
|
|
|
|
+ <span t-esc="'{0:,.2f}'.format(valor_5)"/>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-set="iva_5" t-value="valor_5/21" />
|
|
|
|
+ </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">
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(valor_10)"/>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="o.currency_id.id != 166">
|
|
|
|
+ <span t-esc="'{0:,.2f}'.format(valor_10)"/>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-set="iva_10" t-value="valor_10/11" />
|
|
|
|
+ </th>
|
|
|
|
+ </tr>
|
|
|
|
+ <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;">
|
|
|
|
+
|
|
|
|
+ </th>
|
|
|
|
+ <th style="width:9%;height:0.5cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
|
|
|
|
+
|
|
|
|
+ </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>
|
|
|
|
+ </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>
|
|
|
|
+ </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>
|
|
|
|
+ <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>
|
|
|
|
+ </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>
|
|
|
|
+ </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>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- <div style="height:1.7cm;padding-right:0.6cm;">
|
|
|
|
+ <table class="table table-condensed table-bordered">
|
|
|
|
+
|
|
|
|
+ <col style="width:30%;"/>
|
|
|
|
+ <col style="width:52%;"/>
|
|
|
|
+ <col style="width:18%;"/>
|
|
|
|
+ <tbody>
|
|
|
|
+ <tr>
|
|
|
|
+ <th style="height:0.6cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
|
|
|
|
+ <b>TOTAL A PAGAR: (en letra) </b>
|
|
|
|
+ </th>
|
|
|
|
+ <th style="height:0.6cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
|
|
|
|
+ <span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/>
|
|
|
|
+ </th>
|
|
|
|
+ <th style="height:0.6cm;font-size:10px;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="height:0.6cm;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>
|
|
|
|
+ </th>
|
|
|
|
+
|
|
|
|
+ <th style="height:0.6cm;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="height:0.6cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
|
|
|
|
+ <b> TOTAL IVA: </b>
|
|
|
|
+ <t>
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(iva_5+iva_10)"/>
|
|
|
|
+ </t>
|
|
|
|
+ </th>
|
|
|
|
+ </div>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="o.currency_id.id != 166">
|
|
|
|
+ <div>
|
|
|
|
+ <th style="height:0.6cm;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>
|
|
|
|
+ </th>
|
|
|
|
+
|
|
|
|
+ <th style="height:0.6cm;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="height:0.6cm;font-size:10px;font-family: Arial;overflow: auto; text-align: left;">
|
|
|
|
+ <b> TOTAL IVA: </b>
|
|
|
|
+ <t>
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(iva_5+iva_10)"/>
|
|
|
|
+ </t>
|
|
|
|
+ </th>
|
|
|
|
+ </div>
|
|
|
|
+ </t>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div> -->
|
|
|
|
+
|
|
|
|
+ <!-- <div style="height:1cm;padding-right:0.6cm;">
|
|
|
|
+ <table class="table table-condensed table-bordered">
|
|
|
|
+ <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>
|
|
|
|
+ <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>
|
|
|
|
+ </t>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ </tr>
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
|
|
+ </div> -->
|
|
</div>
|
|
</div>
|
|
- <t t-set="iva_exenta" t-value="0"/>
|
|
|
|
- <t t-set="iva_5" t-value="0"/>
|
|
|
|
- <t t-set="iva_10" t-value="0"/>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- <table border="1" class="table table-condensed" style="border-style:solid">
|
|
|
|
- <tr>
|
|
|
|
- <th class="subtotal_data"><b>SUB TOTALES: </b></th>
|
|
|
|
-
|
|
|
|
- <th class="subtotal_10">
|
|
|
|
- <span t-esc="'{0:,.0f}'.format(int(valor_10)).replace(',', '.')"></span>
|
|
|
|
- <t t-set="iva_10" t-value="valor_10/11" />
|
|
|
|
- </th>
|
|
|
|
- <th class="subtotal_5">
|
|
|
|
- <span t-esc="'{0:,.0f}'.format(int(valor_5)).replace(',', '.')"></span>
|
|
|
|
- <t t-set="iva_5" t-value="valor_5/21" />
|
|
|
|
- </th>
|
|
|
|
- <th class="subtotal_excentas">
|
|
|
|
- <span t-esc= "'{0:,.0f}'.format(int(valor_exenta)).replace(',', '.')"></span>
|
|
|
|
- <t t-set="iva_exenta" t-value="valor_exenta" />
|
|
|
|
- </th>
|
|
|
|
-
|
|
|
|
- </tr>
|
|
|
|
- <tr>
|
|
|
|
- <th class="total_pagar_data"><b>TOTAL A PAGAR Gs.: (en letra) </b><span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></th>
|
|
|
|
- <th class="total_pagar"><span t-esc="'{0:,.0f}'.format(int(o.amount_total)).replace(',', '.')"/></th>
|
|
|
|
- </tr>
|
|
|
|
- <tr>
|
|
|
|
- <th class="iva_5_data"><b>LIQUIDACIÓN DEL IVA: (5%) </b><span t-esc="'{0:,.0f}'.format(int(iva_5)).replace(',', '.')"/></th>
|
|
|
|
- <th class="iva_10_data"><b>(10%) </b><span t-esc="'{0:,.0f}'.format(int(iva_10)).replace(',', '.')"/></th>
|
|
|
|
- <th class="iva_total_data"><b>TOTAL IVA: </b><span t-esc="'{0:,.0f}'.format(int(o.amount_tax)).replace(',', '.')"/></th>
|
|
|
|
- </tr>
|
|
|
|
- </table>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
+ </div>
|
|
</t>
|
|
</t>
|
|
|
|
+ <div class="logo1"> </div>
|
|
</div>
|
|
</div>
|
|
- </t>
|
|
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
|
|
|
|
</data>
|
|
</data>
|