123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <report id="factura_venta_jemachuca"
- model="account.invoice"
- string="Factura Legal"
- report_type="qweb-html"
- name="factura_venta_jemachuca.report_invoice_jemachuca"
- file="factura_venta_jemachuca.report_invoice_jemachuca"
- />
- <template id="report_invoice_jemachuca">
- <t t-call="report.html_container">
- <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>
- </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;">
- <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">
- <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>
- <!-- 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;">
- <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>
- </t>
- </div>
- </t>
- </t>
- </template>
- </data>
- </openerp>
|