|
@@ -0,0 +1,332 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<openerp>
|
|
|
+<data>
|
|
|
+
|
|
|
+ <report id="factura_venta_baco_linux"
|
|
|
+ model="account.invoice"
|
|
|
+ string="Factura Legal"
|
|
|
+ report_type="qweb-html"
|
|
|
+ name="factura_venta_baco.report_factura_baco_linux"
|
|
|
+ file="factura_venta_baco.report_factura_baco_linux"
|
|
|
+ />
|
|
|
+
|
|
|
+ <template id="report_factura_baco_linux">
|
|
|
+ <t t-call="report.html_container">
|
|
|
+ <t t-foreach="[1,2,3]" t-as="i">
|
|
|
+ <div class="page">
|
|
|
+ <style type="text/css">
|
|
|
+ body{
|
|
|
+ font-size: 3mm;
|
|
|
+ font-family: Arial, Helvetica, sans-serif;
|
|
|
+ }
|
|
|
+ div{
|
|
|
+ padding: 0px;
|
|
|
+ }
|
|
|
+ .pagina{
|
|
|
+ width:19.3cm;
|
|
|
+ }
|
|
|
+ .logo{
|
|
|
+ height: 1.8cm;
|
|
|
+ width: 100%;
|
|
|
+ top: 0px;
|
|
|
+ }
|
|
|
+ .fecha_emision_data{
|
|
|
+ width: 11.2cm;
|
|
|
+ padding-left: 1.1cm;
|
|
|
+ float: left;
|
|
|
+ min-height: 0cm;
|
|
|
+ }
|
|
|
+ .contado_x{
|
|
|
+ width: 5.7cm;
|
|
|
+ float: left;
|
|
|
+ padding-left: 0.4cm;
|
|
|
+ min-height: 0cm;
|
|
|
+ }
|
|
|
+
|
|
|
+ .razon_data{
|
|
|
+ width: 13cm;
|
|
|
+ float: left;
|
|
|
+ padding-left: 3cm;
|
|
|
+ min-height: 0cm;
|
|
|
+ }
|
|
|
+ .ruc_data{
|
|
|
+ width: 5.7cm;
|
|
|
+ float: left;
|
|
|
+ padding-left: 3.3cm;
|
|
|
+ min-height: 0cm;
|
|
|
+ }
|
|
|
+ .direccion_data{
|
|
|
+ width: 10.8cm;
|
|
|
+ float: left;
|
|
|
+ padding-left: 1.3cm;
|
|
|
+ min-height: 0cm;
|
|
|
+ }
|
|
|
+ .telefono_data{
|
|
|
+ width: 3.5cm;
|
|
|
+ float: right;
|
|
|
+ padding-left: 0.1mm;
|
|
|
+ min-height: 0cm;
|
|
|
+ }
|
|
|
+
|
|
|
+ .cab-articulos{
|
|
|
+ height: 1.1cm;
|
|
|
+ clear: both;
|
|
|
+ }
|
|
|
+ .divisoria-sumatoriacab-articulos{
|
|
|
+ height: 0.2cm;
|
|
|
+ clear: both;
|
|
|
+ }
|
|
|
+ .borderless td, .borderless th {
|
|
|
+ border: none !important;
|
|
|
+ }
|
|
|
+ .table-condensed>tbody>tr>td {
|
|
|
+ padding: 1px !important;
|
|
|
+ }
|
|
|
+ .table-super-condensed>tbody>tr>td {
|
|
|
+ padding: 5px !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .logo1{
|
|
|
+ height: 1.2cm;
|
|
|
+ width: 100%;
|
|
|
+ top: 0px;
|
|
|
+ }
|
|
|
+ .logo2{
|
|
|
+ height: 1.45cm;
|
|
|
+ width: 100%;
|
|
|
+ top: 0px;
|
|
|
+ }
|
|
|
+
|
|
|
+ </style>
|
|
|
+ <t t-foreach="docs" t-as="o">
|
|
|
+ <div class="pagina">
|
|
|
+ <div class="logo"> </div>
|
|
|
+ <tr>
|
|
|
+ <div class="fecha_emision_data"><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
|
|
|
+ <div class="contado_x">
|
|
|
+ <t t-if="o.contado">Contado</t><t t-if="o.credito">Crédito</t>
|
|
|
+ </div>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <div class="razon_data"><span t-field="o.partner_id.name"/></div>
|
|
|
+ <div class="ruc_data"><span t-field="o.partner_id.ruc"/></div>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <div class="direccion_data">
|
|
|
+ <t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/></t>
|
|
|
+ <t t-f="not o.partner_id.street"> </t>
|
|
|
+ </div>
|
|
|
+ <div class="telefono_data">Teléfono: <span t-field="o.partner_id.mobile"/></div>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <div class="cab-articulos"> </div>
|
|
|
+ <div style="height:3.5cm;">
|
|
|
+ <div style="font-family: Arial;">
|
|
|
+ <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="font-size:7.5px;font-family: Arial;width:1.8cm;overflow: auto; text-align: center;">
|
|
|
+ <span t-field="l.product_id.id"/>
|
|
|
+ </td>
|
|
|
+ <!-- CANTIDAD -->
|
|
|
+ <td style="font-size:7.5px;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:7.5px;font-family: Arial;width:9cm;overflow: auto;">
|
|
|
+ <span t-field="l.name"/>
|
|
|
+ </td>
|
|
|
+ <!-- PRECIO UNITARIO -->
|
|
|
+ <td style="font-size:7.5px;font-family: Arial;width:1.6cm;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:7.5px;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>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <!-- IVA 5% -->
|
|
|
+ <td style="font-size:7.5px;font-family: Arial;width:2.2cm;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:7.5px;font-family: Arial;width:2.3cm;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>
|
|
|
+ <div class="div-sumatoria"> </div>
|
|
|
+ <div style="height:1.9cm">
|
|
|
+
|
|
|
+ <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-condensed">
|
|
|
+ <tbody>
|
|
|
+ <!-- LINEA DE SUBTOTALES -->
|
|
|
+ <tr>
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:1.8cm;overflow: auto; text-align: center;"></td>
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;"></td>
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:9cm;overflow: auto; text-align: center;"></td>
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:1.9cm;overflow: auto; text-align: center;"></td>
|
|
|
+ <td style="font-size:10px;font-family: Arial;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="font-size:10px;font-family: Arial;width:2.2cm;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="font-size:10px;font-family: Arial;width:2.3cm;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="font-size:10px;font-family: Arial;width:1.8cm;overflow: auto; text-align: center;"></td>
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;"></td>
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:9cm;overflow: auto; text-align: left;">
|
|
|
+ <t t-if="o.currency_id.id == 166">
|
|
|
+ <div>Guaraníes <span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
|
|
|
+ </t>
|
|
|
+ <t t-if="o.currency_id.id != 166">
|
|
|
+ <div>Dólares <span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
|
|
|
+ </t>
|
|
|
+ </td>
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:1.9cm;overflow: auto; text-align: center;"></td>
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:2.2cm;overflow: auto; text-align: right;"></td>
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:2.2cm;overflow: auto; text-align: right;">
|
|
|
+
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:2.3cm;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>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <!-- TOTAL DE IVA -->
|
|
|
+ <tr>
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:1.8cm;overflow: auto; text-align: center;"></td>
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;"></td>
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:9cm;overflow: auto; text-align: center;">
|
|
|
+ <t t-if="o.currency_id.id == 166">
|
|
|
+ <div>
|
|
|
+ <t t-if="iva_5 != 0">
|
|
|
+ <span t-esc="'{0:,.0f}'.format(iva_5)"/>
|
|
|
+ </t>
|
|
|
+ &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;
|
|
|
+ &nbsp;&nbsp;&nbsp;
|
|
|
+ <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>
|
|
|
+ <t t-if="iva_5 != 0">
|
|
|
+ <span t-esc="'{0:,.2f}'.format(iva_5)"/>
|
|
|
+ </t>
|
|
|
+ &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;
|
|
|
+ &nbsp;&nbsp;&nbsp;
|
|
|
+ <t t-if="iva_10 != 0">
|
|
|
+ <span t-esc="'{0:,.2f}'.format(iva_10)"/>
|
|
|
+ </t>
|
|
|
+ </div>
|
|
|
+ </t>
|
|
|
+ </td>
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:1.6cm;overflow: auto; text-align: center;"></td>
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:2.2cm;overflow: auto; text-align: right;"></td>
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:2.1cm;overflow: auto; text-align: left;">
|
|
|
+ <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>
|
|
|
+ <td style="font-size:10px;font-family: Arial;width:2.3cm;overflow: auto; text-align: right;">
|
|
|
+
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ </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>
|