123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <report id="factura_venta_suceso"
- model="account.invoice"
- string="Factura Legal"
- report_type="qweb-html"
- name="factura_venta_suceso.report_factura_suceso"
- file="factura_venta_suceso.report_factura_suceso"
- />
- <template id="report_factura_suceso">
- <t t-call="report.html_container">
- <t t-foreach="[1,2,3]" t-as="i">
- <div class="page">
- <style>
- .logo{
- height: 1.71cm;
- width: 100%;
- top: 0px;
- }
- .table-condensed>tbody>tr>td {
- padding: 1px !important;
- }
- .borderless td, .borderless th {
- border: none !important;
- }
- .logo1{
- height: 2.61cm;
- width: 100%;
- top: 0px;
- }
- .logo2{
- height: 3.30cm;
- width: 100%;
- top: 0px;
- }
- </style>
- <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>
- <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"/>
- <tbody>
- <tr t-foreach="o.invoice_line" t-as="l">
- <!-- CANTIDAD -->
- <td style="font-size:11px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;">
- <span t-esc="'%.0f'%l.quantity"/>
- </td>
- <!-- 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>
- </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)"/>
- </span>
- </td>
- <!-- IVA 10% -->
- <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]">
- <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;">
- <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:2cm;overflow: auto; text-align: center;">
- </td>
- <td style="font-size:11px;font-family: Arial;width:8.8cm;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:1.9cm;overflow: auto; text-align: right;">
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <!--
- ======================================================================
- TABLA
- ======================================================================
- -->
- <div style="height:0.5cm;">
- <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>
- <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>
- </div>
- </t>
- <t t-if="i == 1">
- <div class="logo1"> </div>
- </t>
- <t t-if="i == 2">
- <div class="logo2"> </div>
- </t>
- </div>
- </t>
- </t>
- </template>
- </data>
- </openerp>
|