|
@@ -10,264 +10,248 @@
|
|
file="factura_venta_jemachuca.report_invoice_jemachuca"
|
|
file="factura_venta_jemachuca.report_invoice_jemachuca"
|
|
/>
|
|
/>
|
|
|
|
|
|
- <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_invoice_jemachuca">
|
|
<template id="report_invoice_jemachuca">
|
|
<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">
|
|
|
|
- <div class="page">
|
|
|
|
- <style>
|
|
|
|
- .borderless td, .borderless th {
|
|
|
|
- border: none !important;
|
|
|
|
- }
|
|
|
|
- .table-condensed>tbody>tr>td {
|
|
|
|
- padding: 1px !important;
|
|
|
|
- }
|
|
|
|
- .table-super-condensed>tbody>tr>td {
|
|
|
|
- padding: 5px !important;
|
|
|
|
- }
|
|
|
|
|
|
+ <t t-foreach="[1,2,3]" t-as="i">
|
|
|
|
+ <div class="page">
|
|
|
|
+ <style>
|
|
|
|
+ .borderless td, .borderless th {
|
|
|
|
+ border: none !important;
|
|
|
|
+ }
|
|
|
|
+ .table-condensed>tbody>tr>td {
|
|
|
|
+ padding: 1px !important;
|
|
|
|
+ }
|
|
|
|
+ .table-super-condensed>tbody>tr>td {
|
|
|
|
+ padding: 5px !important;
|
|
|
|
+ }
|
|
|
|
|
|
- </style>
|
|
|
|
- <t t-foreach="docs" t-as="o">
|
|
|
|
- <div class="pagina">
|
|
|
|
- <!--
|
|
|
|
- ======================================================================
|
|
|
|
- CABECERA
|
|
|
|
- ======================================================================
|
|
|
|
- -->
|
|
|
|
- <div style="height:3.3cm;">
|
|
|
|
- <div style="padding-left:8.6cm;padding-top:0.4cm;padding-right:5.0cm;font-size:9px;">
|
|
|
|
- <div>Fecha de Emisión: <span t-field="o.date_invoice" t-field-options='{"format": "dd/MM/yyyy"}'/></div>
|
|
|
|
- <div>Nombre / Razón Social: <span t-field="o.partner_id.name"/></div>
|
|
|
|
- <div>
|
|
|
|
- R.U.C: <span t-field="o.partner_id.ruc"/>
|
|
|
|
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
- Cond de Venta: <t t-if="o.contado">Contado</t><t t-if="o.credito">Crédito</t>
|
|
|
|
- </div>
|
|
|
|
- <div>Dir.: <span t-field="o.partner_id.street"/>,<span t-field="o.partner_id.street2"/></div>
|
|
|
|
- <div><span t-field="o.partner_id.state_id.display_name"/>,<span t-field="o.partner_id.country_id.name"/></div>
|
|
|
|
- <div>Nota de Remisión: </div>
|
|
|
|
|
|
+ </style>
|
|
|
|
+ <t t-foreach="docs" t-as="o">
|
|
|
|
+ <div class="pagina">
|
|
|
|
+ <!--
|
|
|
|
+ ======================================================================
|
|
|
|
+ CABECERA
|
|
|
|
+ ======================================================================
|
|
|
|
+ -->
|
|
|
|
+ <div style="height:3.3cm;">
|
|
|
|
+ <div style="padding-left:8.6cm;padding-top:0.4cm;padding-right:5.0cm;font-size:9px;">
|
|
|
|
+ <div>Fecha de Emisión: <span t-field="o.date_invoice" t-field-options='{"format": "dd/MM/yyyy"}'/></div>
|
|
|
|
+ <div>Nombre / Razón Social: <span t-field="o.partner_id.name"/></div>
|
|
|
|
+ <div>
|
|
|
|
+ R.U.C: <span t-field="o.partner_id.ruc"/>
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ Cond de Venta: <t t-if="o.contado">Contado</t><t t-if="o.credito">Crédito</t>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div>Dir.: <span t-field="o.partner_id.street"/>,<span t-field="o.partner_id.street2"/></div>
|
|
|
|
+ <div><span t-field="o.partner_id.state_id.display_name"/>,<span t-field="o.partner_id.country_id.name"/></div>
|
|
|
|
+ <div>Nota de Remisión: </div>
|
|
</div>
|
|
</div>
|
|
- <!--
|
|
|
|
- ======================================================================
|
|
|
|
- TABLA
|
|
|
|
- ======================================================================
|
|
|
|
- -->
|
|
|
|
- <div style="height:3.5cm;padding-right:0.6cm;">
|
|
|
|
- <div style="font-size:9px;">
|
|
|
|
- <table class="table borderless table-condensed">
|
|
|
|
- <t t-set="valor_exentas" t-value="0"/>
|
|
|
|
- <t t-set="valor_5" t-value="0"/>
|
|
|
|
- <t t-set="valor_10" t-value="0"/>
|
|
|
|
- <tbody>
|
|
|
|
- <tr t-foreach="o.invoice_line" t-as="l">
|
|
|
|
- <!-- CODIGO DE PRODUCTO -->
|
|
|
|
- <td style="width:1cm;overflow: auto; text-align: center;">
|
|
|
|
- <span t-field="l.product_id.id"/>
|
|
|
|
- </td>
|
|
|
|
- <!-- CANTIDAD -->
|
|
|
|
- <td style="width:1.3cm;overflow: auto; text-align: center;">
|
|
|
|
- <span t-field="l.quantity"/>
|
|
|
|
- </td>
|
|
|
|
- <!-- NOMBRE DEL PRODUCTO -->
|
|
|
|
- <td style="width:9.5cm;overflow: auto;">
|
|
|
|
- <span t-field="l.name"/>
|
|
|
|
- </td>
|
|
|
|
- <!-- PRECIO UNITARIO -->
|
|
|
|
- <td style="width:1.7cm;overflow: auto; text-align: right;">
|
|
|
|
|
|
+ </div>
|
|
|
|
+ <!--
|
|
|
|
+ ======================================================================
|
|
|
|
+ TABLA
|
|
|
|
+ ======================================================================
|
|
|
|
+ -->
|
|
|
|
+ <div style="height:3.5cm;padding-right:0.6cm;">
|
|
|
|
+ <div style="font-size:9px;">
|
|
|
|
+ <table class="table borderless table-condensed">
|
|
|
|
+ <t t-set="valor_exentas" t-value="0"/>
|
|
|
|
+ <t t-set="valor_5" t-value="0"/>
|
|
|
|
+ <t t-set="valor_10" t-value="0"/>
|
|
|
|
+ <tbody>
|
|
|
|
+ <tr t-foreach="o.invoice_line" t-as="l">
|
|
|
|
+ <!-- CODIGO DE PRODUCTO -->
|
|
|
|
+ <td style="width:1cm;overflow: auto; text-align: center;">
|
|
|
|
+ <span t-field="l.product_id.id"/>
|
|
|
|
+ </td>
|
|
|
|
+ <!-- CANTIDAD -->
|
|
|
|
+ <td style="width:1.3cm;overflow: auto; text-align: center;">
|
|
|
|
+ <span t-field="l.quantity"/>
|
|
|
|
+ </td>
|
|
|
|
+ <!-- NOMBRE DEL PRODUCTO -->
|
|
|
|
+ <td style="width:9.5cm;overflow: auto;">
|
|
|
|
+ <span t-field="l.name"/>
|
|
|
|
+ </td>
|
|
|
|
+ <!-- PRECIO UNITARIO -->
|
|
|
|
+ <td style="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="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">
|
|
<t t-if="o.currency_id.id == 166">
|
|
- <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
|
|
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
|
|
</t>
|
|
</t>
|
|
<t t-if="o.currency_id.id != 166">
|
|
<t t-if="o.currency_id.id != 166">
|
|
- <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
|
|
|
|
|
|
+ <span t-esc="'{0:,.2f}'.format(l.quantity * l.price_unit)"/>
|
|
</t>
|
|
</t>
|
|
- </td>
|
|
|
|
- <!-- EXENTAS -->
|
|
|
|
- <td style="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>
|
|
|
|
- </td>
|
|
|
|
-
|
|
|
|
- <!-- IVA 5% -->
|
|
|
|
- <td style="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)"/>
|
|
|
|
- </span>
|
|
|
|
- </td>
|
|
|
|
|
|
+ <t t-set="valor_exentas" t-value="valor_exentas+(l.quantity * l.price_unit)"/>
|
|
|
|
+ </span>
|
|
|
|
+ </td>
|
|
|
|
|
|
- <!-- IVA 10% -->
|
|
|
|
- <td style="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]">
|
|
|
|
- <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:1.9cm;padding-right:0.6cm;">
|
|
|
|
- <div style="font-size:9px;">
|
|
|
|
- <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 borderless table-super-condensed">
|
|
|
|
- <tbody>
|
|
|
|
- <!-- LINEA DE SUBTOTALES -->
|
|
|
|
- <tr>
|
|
|
|
- <td style="width:1.0cm;overflow: auto; text-align: center;"></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="width:2.2cm;overflow: auto; text-align: right;">
|
|
|
|
- <t t-if="o.currency_id.id == 166">
|
|
|
|
- <span t-esc="'{0:,.0f}'.format(valor_exentas)"/>
|
|
|
|
- </t>
|
|
|
|
- <t t-if="o.currency_id.id != 166">
|
|
|
|
- <span t-esc="'{0:,.2f}'.format(valor_exentas)"/>
|
|
|
|
- </t>
|
|
|
|
- </td>
|
|
|
|
- <td style="width:1.9cm;overflow: auto; text-align: right;">
|
|
|
|
- <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" />
|
|
|
|
- </td>
|
|
|
|
- <td style="width:2.5cm;overflow: auto; text-align: right;">
|
|
|
|
- <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" />
|
|
|
|
- </td>
|
|
|
|
- </tr>
|
|
|
|
- <!-- LINEA TOTAL EN LETRAS Y TOTAL GENERAL -->
|
|
|
|
- <tr>
|
|
|
|
- <td style="width:1.0cm;overflow: auto; text-align: center;"></td>
|
|
|
|
- <td style="width:1.3cm;overflow: auto; text-align: center;"></td>
|
|
|
|
- <td style="width:9.5cm;overflow: auto; text-align: center;">
|
|
|
|
- <div><span t-esc="o.currency_id.local_name"/> : <span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
|
|
|
|
- </td>
|
|
|
|
- <td style="width:1.7cm;overflow: auto; text-align: center;"></td>
|
|
|
|
- <td style="width:2.2cm;overflow: auto; text-align: right;"></td>
|
|
|
|
- <td style="width:1.9cm;overflow: auto; text-align: right;"></td>
|
|
|
|
- <td style="width:2.5cm;overflow: auto; text-align: right;">
|
|
|
|
|
|
+ <!-- IVA 5% -->
|
|
|
|
+ <td style="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">
|
|
<t t-if="o.currency_id.id == 166">
|
|
- <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
|
|
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
|
|
</t>
|
|
</t>
|
|
<t t-if="o.currency_id.id != 166">
|
|
<t t-if="o.currency_id.id != 166">
|
|
- <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
|
|
|
|
|
|
+ <span t-esc="'{0:,.2f}'.format(l.quantity * l.price_unit)"/>
|
|
</t>
|
|
</t>
|
|
- </td>
|
|
|
|
- </tr>
|
|
|
|
- <!-- TOTAL DE IVA -->
|
|
|
|
- <tr>
|
|
|
|
- <td style="width:1.0cm;overflow: auto; text-align: center;"></td>
|
|
|
|
- <td style="width:1.3cm;overflow: auto; text-align: center;"></td>
|
|
|
|
- <td style="width:9.5cm;overflow: auto; text-align: center;">
|
|
|
|
- <t t-if="o.currency_id.id == 166">
|
|
|
|
- <div>
|
|
|
|
- IVA 5%:
|
|
|
|
- <t t-if="iva_5 != 0">
|
|
|
|
- <span t-esc="'{0:,.0f}'.format(iva_5)"/>
|
|
|
|
- </t>
|
|
|
|
- &nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
- IVA 10%:
|
|
|
|
- <t t-if="iva_10 != 0">
|
|
|
|
- <span t-esc="'{0:,.0f}'.format(iva_10)"/>
|
|
|
|
- </t>
|
|
|
|
- </div>
|
|
|
|
- </t>
|
|
|
|
- <t t-if="o.currency_id.id != 166">
|
|
|
|
- <div>
|
|
|
|
- IVA 5%:
|
|
|
|
- <t t-if="iva_5 != 0">
|
|
|
|
- <span t-esc="'{0:,.2f}'.format(iva_5)"/>
|
|
|
|
- </t>
|
|
|
|
- &nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
- IVA 10%:
|
|
|
|
- <t t-if="iva_10 != 0">
|
|
|
|
- <span t-esc="'{0:,.2f}'.format(iva_10)"/>
|
|
|
|
- </t>
|
|
|
|
- </div>
|
|
|
|
- </t>
|
|
|
|
- </td>
|
|
|
|
- <td style="width:1.7cm;overflow: auto; text-align: center;"></td>
|
|
|
|
- <td style="width:2.2cm;overflow: auto; text-align: right;"></td>
|
|
|
|
- <td style="width:1.9cm;overflow: auto; text-align: right;"></td>
|
|
|
|
- <td style="width:2.5cm;overflow: auto; text-align: right;">
|
|
|
|
|
|
+ <t t-set="valor_5" t-value="valor_5+(l.quantity * l.price_unit)"/>
|
|
|
|
+ </span>
|
|
|
|
+ </td>
|
|
|
|
+
|
|
|
|
+ <!-- IVA 10% -->
|
|
|
|
+ <td style="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]">
|
|
<t t-if="o.currency_id.id == 166">
|
|
<t t-if="o.currency_id.id == 166">
|
|
- <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
|
|
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
|
|
</t>
|
|
</t>
|
|
<t t-if="o.currency_id.id != 166">
|
|
<t t-if="o.currency_id.id != 166">
|
|
- <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
|
|
|
|
|
|
+ <span t-esc="'{0:,.2f}'.format(l.quantity * l.price_unit)"/>
|
|
</t>
|
|
</t>
|
|
- </td>
|
|
|
|
- </tr>
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <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:1.9cm;padding-right:0.6cm;">
|
|
|
|
+ <div style="font-size:9px;">
|
|
|
|
+ <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 borderless table-super-condensed">
|
|
|
|
+ <tbody>
|
|
|
|
+ <!-- LINEA DE SUBTOTALES -->
|
|
|
|
+ <tr>
|
|
|
|
+ <td style="width:1.0cm;overflow: auto; text-align: center;"></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="width:2.2cm;overflow: auto; text-align: right;">
|
|
|
|
+ <t t-if="o.currency_id.id == 166">
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(valor_exentas)"/>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="o.currency_id.id != 166">
|
|
|
|
+ <span t-esc="'{0:,.2f}'.format(valor_exentas)"/>
|
|
|
|
+ </t>
|
|
|
|
+ </td>
|
|
|
|
+ <td style="width:1.9cm;overflow: auto; text-align: right;">
|
|
|
|
+ <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" />
|
|
|
|
+ </td>
|
|
|
|
+ <td style="width:2.5cm;overflow: auto; text-align: right;">
|
|
|
|
+ <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" />
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ <!-- LINEA TOTAL EN LETRAS Y TOTAL GENERAL -->
|
|
|
|
+ <tr>
|
|
|
|
+ <td style="width:1.0cm;overflow: auto; text-align: center;"></td>
|
|
|
|
+ <td style="width:1.3cm;overflow: auto; text-align: center;"></td>
|
|
|
|
+ <td style="width:9.5cm;overflow: auto; text-align: center;">
|
|
|
|
+ <div><span t-esc="o.currency_id.local_name"/> : <span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
|
|
|
|
+ </td>
|
|
|
|
+ <td style="width:1.7cm;overflow: auto; text-align: center;"></td>
|
|
|
|
+ <td style="width:2.2cm;overflow: auto; text-align: right;"></td>
|
|
|
|
+ <td style="width:1.9cm;overflow: auto; text-align: right;"></td>
|
|
|
|
+ <td style="width:2.5cm;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>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ <!-- TOTAL DE IVA -->
|
|
|
|
+ <tr>
|
|
|
|
+ <td style="width:1.0cm;overflow: auto; text-align: center;"></td>
|
|
|
|
+ <td style="width:1.3cm;overflow: auto; text-align: center;"></td>
|
|
|
|
+ <td style="width:9.5cm;overflow: auto; text-align: center;">
|
|
|
|
+ <t t-if="o.currency_id.id == 166">
|
|
|
|
+ <div>
|
|
|
|
+ IVA 5%:
|
|
|
|
+ <t t-if="iva_5 != 0">
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(iva_5)"/>
|
|
|
|
+ </t>
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ IVA 10%:
|
|
|
|
+ <t t-if="iva_10 != 0">
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(iva_10)"/>
|
|
|
|
+ </t>
|
|
|
|
+ </div>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="o.currency_id.id != 166">
|
|
|
|
+ <div>
|
|
|
|
+ IVA 5%:
|
|
|
|
+ <t t-if="iva_5 != 0">
|
|
|
|
+ <span t-esc="'{0:,.2f}'.format(iva_5)"/>
|
|
|
|
+ </t>
|
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
|
+ IVA 10%:
|
|
|
|
+ <t t-if="iva_10 != 0">
|
|
|
|
+ <span t-esc="'{0:,.2f}'.format(iva_10)"/>
|
|
|
|
+ </t>
|
|
|
|
+ </div>
|
|
|
|
+ </t>
|
|
|
|
+ </td>
|
|
|
|
+ <td style="width:1.7cm;overflow: auto; text-align: center;"></td>
|
|
|
|
+ <td style="width:2.2cm;overflow: auto; text-align: right;"></td>
|
|
|
|
+ <td style="width:1.9cm;overflow: auto; text-align: right;"></td>
|
|
|
|
+ <td style="width:2.5cm;overflow: auto; text-align: right;">
|
|
|
|
+ <t t-if="o.currency_id.id == 166">
|
|
|
|
+ <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="o.currency_id.id != 166">
|
|
|
|
+ <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
|
|
|
|
+ </t>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
</div>
|
|
</div>
|
|
- <!--
|
|
|
|
- ======================================================================
|
|
|
|
- INFO
|
|
|
|
- ======================================================================
|
|
|
|
- -->
|
|
|
|
- <t t-if="i != 2">
|
|
|
|
- <div style="height:2.4cm;"></div>
|
|
|
|
- </t>
|
|
|
|
- <t t-if="i == 2">
|
|
|
|
- <div style="height:2.1cm;"></div>
|
|
|
|
- </t>
|
|
|
|
</div>
|
|
</div>
|
|
- </t>
|
|
|
|
- </div>
|
|
|
|
- </t>
|
|
|
|
- </t>
|
|
|
|
|
|
+ <!--
|
|
|
|
+ ======================================================================
|
|
|
|
+ INFO
|
|
|
|
+ ======================================================================
|
|
|
|
+ -->
|
|
|
|
+ <t t-if="i != 2">
|
|
|
|
+ <div style="height:2.4cm;"></div>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-if="i == 2">
|
|
|
|
+ <div style="height:2.1cm;"></div>
|
|
|
|
+ </t>
|
|
|
|
+ </div>
|
|
|
|
+ </t>
|
|
|
|
+ </div>
|
|
|
|
+ </t>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</template>
|
|
|
|
|