123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <report id="factura_venta_sion"
- model="account.invoice"
- string="Factura Legal"
- report_type="qweb-html"
- name="factura_venta_sion.report_factura_sion"
- file="factura_venta_sion.report_factura_sion"
- />
- <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_sion">
- <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 type="text/css">
- body{
- font-size: 2.7mm;
- font-family: Arial, Helvetica, sans-serif;
- }
- div{
- padding: 0px;
- }
- .pagina{
- width:19.3cm;
- }
- .logo{
- height: 0.4cm;
- width: 100%;
- top: 0px;
- }
- .espacio{
- height: 0.2cm;
- width: 100%;
- }
- .fecha_emision_data{
- width: 11.5cm;
- padding-left: 5.2cm;
- float: left;
- min-height: 0.5cm;
- }
- .contado_x{
- width: 1.8cm;
- float: left;
- padding-left: 9cm;
- min-height: 0.5cm;
- }
- .linea2{
- position: relative;
- top: -0.12cm;
- min-height: 0.5cm;
- }
- .razon_data{
- width: 15cm;
- float: left;
- padding-left: 5.2cm;
- min-height: 0.4cm;
- }
- .ruc_data{
- width: 5.8cm;
- float: left;
- padding-left: 0.2cm;
- min-height: 0.5cm;
- }
- .linea3{
- position: relative;
- top: -0.12cm;
- min-height: 0.3cm;
- }
- .direccion_data{
- width: 14cm;
- float: left;
- padding-left: 5.2cm;
- min-height: 0.4cm;
- }
- .linea4{
- position: relative;
- top: -0.12cm;
- min-height: 0.3cm;
- }
- .telefono_data{
- width: 9cm;
- float: left;
- padding-left: 5.2cm;
- min-height: 0.4cm;
- }
- .contado_x{
- width: 9cm;
- float: left;
- padding-left: 0.2cm;
- min-height: 0.4cm;
- }
- .cab-articulos{
- height: 1.1cm;
- clear: both;
- }
- .articulos{
- height: 4.8cm;
- }
- .art-col1{
- width:0.5cm;
- text-align: center;
- }
- .art-col2{
- padding-left: 1.2cm;
- width:10.7cm;
- }
- .art-col3{
- width:2.7cm;
- padding-left: 0.3cm;
- text-align: right;
- }
- .art-col4{
- width:2.4cm;
- padding-left: 0.3cm;
- text-align: right;
- }
- .art-col5{
- width:2.6cm;
- padding-left: 0.2cm;
- text-align: right;
- }
- .art-col6{
- width:2.5cm;
- text-align: right;
- }
- .logo1{
- height: 2.5cm;
- width: 100%;
- top: 0px;
- }
- .subtotal_data{
- width: 6cm;
- font-size: 2.9mm;
- float: left;
- padding-top: 0.002cm;
- padding-left: 2.3cm;
- min-height: 0.2cm;
- }
- .subtotal_excentas{
- width: 2cm;
- float: left;
- text-align: right;
- font-size: 2.9mm;
- padding-left: 8.3cm;
- padding-top: 0.6cm;
- min-height: 0.2cm;
- }
- .subtotal_5{
- width: 2.5cm;
- float: left;
- padding-left: 0.6cm;
- font-size: 2.9mm;
- text-align: right;
- padding-top: 0.6cm;
- min-height: 0.2cm;
- }
- .subtotal_10{
- width: 2.5cm;
- float: left;
- padding-left: 0.9cm;
- font-size: 2.9mm;
- text-align: right;
- padding-top: 0.6cm;
- min-height: 0.2cm;
- }
- .total_pagar_data{
- width: 16.7cm;
- float: left;
- font-size: 3.2mm;
- padding-top: 0.1cm;
- padding-left: 5cm;
- min-height: 0.2cm;
- }
- .total_pagar{
- width: 2.4cm;
- float: left;
- padding-left: 0cm;
- font-size: 3.2mm;
- text-align: right;
- padding-top: 0.1cm;
- min-height: 0.2cm;
- }
- .iva_5_data{
- width: 4.5cm;
- float: left;
- padding-left: 2.8cm;
- min-height: 0.25cm;
- }
- .iva_10_data{
- width: 4.7cm;
- float: left;
- padding-left: 0.2cm;
- min-height: 0.25cm;
- }
- .iva_total_data{
- width: 6cm;
- float: left;
- padding-left: 0.2cm;
- min-height: 0.25cm;
- }
- </style>
- <t t-foreach="docs" t-as="o">
- <div class="pagina">
- <div class="logo"> </div>
- <div class="espacio"> </div>
- <div class="linea1">
- <div class="fecha_emision_data">Ciudad del Este,<span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
- <div class="ruc_data"><b>R.U.C. N°: </b><span t-field="o.partner_id.ruc"/></div>
- </div>
- <div class="linea2">
- <div class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></div>
- </div>
- <div class="linea3">
- <div class="direccion_data"><b>Dirección: </b>
- <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>
- <div class="linea4">
- <div class="telefono_data"><b>Teléfono: </b><span t-field="o.partner_id.phone"/></div>
- <div class="contado_x"><b>Condición de pago: </b>
- <t t-if="o.contado == True">Contado</t>
- <t t-if="o.contado == False">Crédito</t>
- </div>
- </div>
- <div class="cab-articulos"> </div>
- <div class="articulos">
- <table class="tab-articulos">
- <t t-set="valor_exenta" t-value="0"/>
- <t t-set="valor_5" t-value="0"/>
- <t t-set="valor_10" t-value="0"/>
- <tr t-foreach="o.invoice_line" t-as="l">
- <td class="art-col1"><span t-esc="'%.0f'%l.quantity"/></td>
- <td class="art-col2"><span t-field="l.product_id.name"/></td>
- <td class="art-col3"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></td>
- <td class="art-col4"></td>
- <td class="art-col5">
- <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]">
- <span t-esc= "'{0:,.0f}'.format(int(l.quantity * l.price_unit)).replace(',', '.')">
- <span t-value="valor_5+(l.quantity * l.price_unit)"/></span>
- <t t-set="valor_5" t-value="valor_5+(l.quantity * l.price_unit)"/>
- </span>
- </td>
- <td class="art-col6">
- <span t-if="'IVA 10% Venta' in [ilt.name for ilt in l.invoice_line_tax_id]">
- <span t-esc= "'{0:,.0f}'.format(int(l.quantity * l.price_unit)).replace(',', '.')">
- <span t-value="valor_10+(l.quantity * l.price_unit)"/></span>
- <t t-set="valor_10" t-value="valor_10+(l.quantity * l.price_unit)"/>
- </span>
- </td>
- </tr>
- </table>
- </div>
- <t t-set="iva_5" t-value="0"/>
- <t t-set="iva_10" t-value="0"/>
- <div class="subtotal_data"> </div>
- <div class="subtotal_excentas"> </div>
- <div class="subtotal_5">
- <span t-esc="'{0:,.0f}'.format(int(valor_5)).replace(',', '.')"></span>
- <t t-set="iva_5" t-value="valor_5/21" />
- </div>
- <div class="subtotal_10">
- <span t-esc="'{0:,.0f}'.format(int(valor_10)).replace(',', '.')"></span>
- <t t-set="iva_10" t-value="valor_10/11" />
- </div>
- <div class="total_pagar_data"><b><span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></b></div>
- <!-- <div class="total_pagar_data"><span t-esc="o.amount_total"/></div> -->
- <div class="total_pagar"><b><span t-esc="'{0:,.0f}'.format(int(o.amount_total)).replace(',', '.')"/></b></div>
- <div class="iva_5_data"><span t-esc="'{0:,.0f}'.format(iva_5)"></span></div>
- <div class="iva_10_data"><span t-esc="'{0:,.0f}'.format(iva_10)"></span></div>
- <div class="iva_total_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
- </div>
- <div class="logo1"> </div>
- </t>
- </div>
- </t>
- </t>
- </t>
- </template>
- </data>
- </openerp>
|