|
@@ -0,0 +1,344 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<openerp>
|
|
|
+<data>
|
|
|
+
|
|
|
+ <report id="factura_venta_profesional"
|
|
|
+ model="account.invoice"
|
|
|
+ string="Factura Legal"
|
|
|
+ report_type="qweb-html"
|
|
|
+ name="factura_venta_profesional.report_factura_profesional"
|
|
|
+ file="factura_venta_profesional.report_factura_profesional"
|
|
|
+ />
|
|
|
+
|
|
|
+ <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_profesional">
|
|
|
+ <t t-call="report.html_container">
|
|
|
+ <t t-call="report.external_layout">
|
|
|
+ <t t-foreach="[1,2]" t-as="i">
|
|
|
+ <div class="page">
|
|
|
+ <style type="text/css">
|
|
|
+ body{
|
|
|
+ font-size: 2.8mm;
|
|
|
+ font-family: Arial, Helvetica, sans-serif;
|
|
|
+ }
|
|
|
+ div{
|
|
|
+ padding: 0px;
|
|
|
+ }
|
|
|
+ .pagina{
|
|
|
+ width:19.3cm;
|
|
|
+ }
|
|
|
+ .logo{
|
|
|
+ height: 1.8cm;
|
|
|
+ width: 100%;
|
|
|
+ top: 0px;
|
|
|
+ }
|
|
|
+ .linea1{
|
|
|
+ position: relative;
|
|
|
+ top: -0.12cm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .fecha_emision_data{
|
|
|
+ width: 13cm;
|
|
|
+ font-size: 2.8mm;
|
|
|
+ padding-left: 2.80cm;
|
|
|
+ float: left;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .contado_x{
|
|
|
+ width: 0.6cm;
|
|
|
+ float: left;
|
|
|
+ font-size: 2.8mm;
|
|
|
+ padding-left: 0.3mm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .credito_x{
|
|
|
+ width: 1.0cm;
|
|
|
+ float: right;
|
|
|
+ font-size: 2.8mm;
|
|
|
+ padding-left: 2.6mm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .linea2{
|
|
|
+ position: relative;
|
|
|
+ top: -0.12cm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .razon_data{
|
|
|
+ width: 10.7cm;
|
|
|
+ float: left;
|
|
|
+ font-size: 2.6mm;
|
|
|
+ padding-left: 3.1cm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .ruc_data{
|
|
|
+ width: 6.5cm;
|
|
|
+ font-size: 2.6mm;
|
|
|
+ font-family: Arial;
|
|
|
+ float: left;
|
|
|
+ padding-left: 0.5cm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+
|
|
|
+ .linea3{
|
|
|
+ position: relative;
|
|
|
+ top: -0.12cm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .direccion_data{
|
|
|
+ width: 12.5cm;
|
|
|
+ font-size: 2.5mm;
|
|
|
+ font-family: Arial;
|
|
|
+ float: left;
|
|
|
+ padding-left: 3.1cm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .telefono_data{
|
|
|
+ width: 6.0cm;
|
|
|
+ font-size: 2.5mm;
|
|
|
+ font-family: Arial;
|
|
|
+ float: right;
|
|
|
+ padding-left: 0.5cm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .linea4{
|
|
|
+ position: relative;
|
|
|
+ top: -0.12cm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .obra{
|
|
|
+ width: 15.3cm;
|
|
|
+ float: left;
|
|
|
+ padding-left: 2.5cm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .linea5{
|
|
|
+ position: relative;
|
|
|
+ top: -0.12cm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .local{
|
|
|
+ width: 8.3cm;
|
|
|
+ float: left;
|
|
|
+ padding-left: 2.5cm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .responsable{
|
|
|
+ width: 7.3cm;
|
|
|
+ font-size: 2.6mm;
|
|
|
+ font-family: Arial;
|
|
|
+ float: right;
|
|
|
+ padding-left: 1.1cm;
|
|
|
+ min-height: 0.4cm;
|
|
|
+ }
|
|
|
+ .cab-articulos{
|
|
|
+ height: 0.6cm;
|
|
|
+ clear: both;
|
|
|
+ }
|
|
|
+ .articulos{
|
|
|
+ height: 6.0cm;
|
|
|
+ }
|
|
|
+ .art-col2{
|
|
|
+ padding-left: 0.2mm;
|
|
|
+ width:1cm;
|
|
|
+ text-align: left;
|
|
|
+ }
|
|
|
+ .art-col3{
|
|
|
+ padding-left: 1.0cm;
|
|
|
+ width:10.3cm;
|
|
|
+ }
|
|
|
+ .art-col4{
|
|
|
+ width:1.8cm;
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+ .art-col5{
|
|
|
+ width:2.0cm;
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+ .art-col6{
|
|
|
+ width:2.0cm;
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+ .art-col7{
|
|
|
+ width:2.0cm;
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+ .logo1{
|
|
|
+ height: 2.78cm;
|
|
|
+ width: 100%;
|
|
|
+ top: 0px;
|
|
|
+ }
|
|
|
+ .logo2{
|
|
|
+ height: 2.78cm;
|
|
|
+ width: 100%;
|
|
|
+ top: 0px;
|
|
|
+ }
|
|
|
+ .logo3{
|
|
|
+ height: 2.69cm;
|
|
|
+ width: 100%;
|
|
|
+ top: 0px;
|
|
|
+ }
|
|
|
+ .subtotal_data{
|
|
|
+ width: 6cm;
|
|
|
+ float: left;
|
|
|
+ padding-top: 0.002cm;
|
|
|
+ padding-left: 2.3cm;
|
|
|
+ min-height: 0.2cm;
|
|
|
+ }
|
|
|
+ .subtotal_excentas{
|
|
|
+ width: 1.8cm;
|
|
|
+ float: left;
|
|
|
+ text-align: right;
|
|
|
+ padding-left: 10cm;
|
|
|
+ padding-top: 0.7cm;
|
|
|
+ min-height: 0.2cm;
|
|
|
+ }
|
|
|
+ .subtotal_5{
|
|
|
+ width: 1cm;
|
|
|
+ float: left;
|
|
|
+ padding-left: 1cm;
|
|
|
+ text-align: right;
|
|
|
+ padding-top: 0.7cm;
|
|
|
+ min-height: 0.2cm;
|
|
|
+ }
|
|
|
+ .subtotal_10{
|
|
|
+ width: 2.3cm;
|
|
|
+ float: left;
|
|
|
+ padding-left: 0.8cm;
|
|
|
+ text-align: left;
|
|
|
+ padding-top: 0.7cm;
|
|
|
+ min-height: 0.2cm;
|
|
|
+ }
|
|
|
+ .total_pagar_data{
|
|
|
+ width: 16.4cm;
|
|
|
+ float: left;
|
|
|
+ padding-top: 0.01mm;
|
|
|
+ padding-left: 4.8cm;
|
|
|
+ min-height: 0.5cm;
|
|
|
+ }
|
|
|
+ .total_pagar{
|
|
|
+ width: 2.3cm;
|
|
|
+ float: right;
|
|
|
+ padding-top: 0.01mm;
|
|
|
+ padding-left: 0.8cm;
|
|
|
+ min-height: 0.5cm;
|
|
|
+ }
|
|
|
+ .iva_5_data{
|
|
|
+ width: 5cm;
|
|
|
+ float: left;
|
|
|
+ padding-top: 0.04mm;
|
|
|
+ padding-left: 4.7cm;
|
|
|
+ min-height: 0.25cm;
|
|
|
+ }
|
|
|
+ .iva_10_data{
|
|
|
+ width: 5.2cm;
|
|
|
+ float: left;
|
|
|
+ padding-left: 3.4cm;
|
|
|
+ padding-top: 0.04mm;
|
|
|
+ min-height: 0.25cm;
|
|
|
+ }
|
|
|
+ .iva_total_data{
|
|
|
+ width: 6.6cm;
|
|
|
+ float: left;
|
|
|
+ padding-left: 3.8cm;
|
|
|
+ padding-top: 0.04mm;
|
|
|
+ min-height: 0.25cm;
|
|
|
+ }
|
|
|
+
|
|
|
+ </style>
|
|
|
+ <t t-foreach="docs" t-as="o">
|
|
|
+ <div class="pagina">
|
|
|
+ <div class="logo"> </div>
|
|
|
+ <div class="linea1">
|
|
|
+ <div class="fecha_emision_data"><span t-field="o.date_invoice" t-field-options='{"format": "dd MMM yyyy"}'/></div>
|
|
|
+ <div class="contado_x">
|
|
|
+ <!-- <t t-if="o.contado == True">X</t> -->
|
|
|
+ x
|
|
|
+ </div>
|
|
|
+ <div class="credito_x">
|
|
|
+ <!-- <t t-if="o.credito == True">X</t> -->
|
|
|
+ x
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="linea2">
|
|
|
+ <div class="razon_data"><span t-field="o.partner_id.name"/></div>
|
|
|
+ <div class="ruc_data">80078484-1</div>
|
|
|
+ <!-- <div class="ruc_data"><span t-field="o.partner_id.ruc"/></div> -->
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="linea3">
|
|
|
+ <div class="direccion_data">
|
|
|
+ <t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/></t>
|
|
|
+ <t t-f="not o.partner_id.street"> </t>
|
|
|
+ </div>
|
|
|
+ <!-- <div class="telefono_data"><span t-field="o.partner_id.phone"/></div> -->
|
|
|
+ <div class="telefono_data">(0973) 246823</div>
|
|
|
+ </div>
|
|
|
+ <div class="linea4">
|
|
|
+ <div class="obra">obraobraobraobraobraobraobraobraobraobraobraobraobraobra</div>
|
|
|
+ </div>
|
|
|
+ <div class="linea5">
|
|
|
+ <div class="local">locallocallocallocallocallocallocallocal</div>
|
|
|
+ <div class="responsable">responsableresponsable</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="cab-articulos"> </div>
|
|
|
+ <div class="articulos">
|
|
|
+
|
|
|
+ <table class="tab-articulos">
|
|
|
+ <tr t-foreach="o.invoice_line" t-as="l">
|
|
|
+ <td class="art-col2"><span t-esc="'%.0f'%l.quantity"/></td>
|
|
|
+ <td class="art-col3"><span t-field="l.product_id.name"/></td>
|
|
|
+ <td class="art-col4"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></td>
|
|
|
+ <td class="art-col5"> </td>
|
|
|
+ <td class="art-col6"> </td>
|
|
|
+ <td class="art-col7"><span t-esc="'{0:,.0f}'.format((l.quantity * l.price_unit))"/></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="subtotal_data"> </div>
|
|
|
+ <div class="subtotal_excentas"> </div>
|
|
|
+ <div class="subtotal_5"> </div>
|
|
|
+ <td style="font-size:7.0px;">
|
|
|
+ <div class="subtotal_10"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
|
|
|
+ </td>
|
|
|
+ <div class="total_pagar_data">Gs.: <span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
|
|
|
+ <div class="total_pagar"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
|
|
|
+
|
|
|
+
|
|
|
+ <div class="iva_5_data"> </div>
|
|
|
+ <div class="iva_10_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
|
|
|
+ <div class="iva_total_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
|
|
|
+ </div>
|
|
|
+ <t t-if="i == 1">
|
|
|
+ <div class="logo1"> </div>
|
|
|
+ </t>
|
|
|
+ <t t-if="i == 2">
|
|
|
+ <div class="logo2"> </div>
|
|
|
+ </t>
|
|
|
+
|
|
|
+ </t>
|
|
|
+ </div>
|
|
|
+ </t>
|
|
|
+ </t>
|
|
|
+ </t>
|
|
|
+ </template>
|
|
|
+
|
|
|
+</data>
|
|
|
+</openerp>
|