123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <report id="factura_venta_dentalg"
- model="account.invoice"
- string="Factura Legal"
- report_type="qweb-html"
- name="factura_venta_dentalg.report_factura_dentalg"
- file="factura_venta_dentalg.report_factura_dentalg"
- />
- <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_dentalg">
- <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.67mm;
- font-family: Arial, Helvetica, sans-serif;
- }
- div{
- padding: 0px;
- }
- .pagina{
- width:19.3cm;
- }
- .logo{
- height: 2.6cm;
- width: 100%;
- top: 0px;
- }
- .cab-articulos8{
- height: 0.9cm;
- clear: both;
- }
- .art-col11{
- width:0.9cm;
- text-align: center;
- }
- .art-col12{
- padding-left: 0.8cm;
- width:0.2cm;
- text-align: center;
- }
- .art-col13{
- padding-left: 1.7cm;
- width:9.4cm;
- }
- .art-col15{
- width:6.5cm;
- text-align: center;
- }
- .art-col16{
- width:2.3cm;
- text-align: right;
- }
- .articulos2{
- height: 0.15cm;
- }
- .art-col21{
- width:3.9cm;
- text-align: center;
- }
- .art-col22{
- padding-left: 0.8cm;
- width:5.0cm;
- text-align: left;
- }
- .art-col23{
- padding-left: 1cm;
- width:9.4cm;
- }
- .art-col24{
- width:1.9cm;
- text-align: right;
- }
- .art-col31{
- width:0.9cm;
- text-align: center;
- }
- .art-col32{
- padding-left: 0.8cm;
- width:1cm;
- text-align: center;
- }
- .art-col33{
- padding-left: 1cm;
- width:9.4cm;
- text-align: left;
- }
- .art-col34{
- width:1.9cm;
- text-align: right;
- }
- .art-col35{
- width:2.2cm;
- text-align: right;
- }
- .art-col36{
- width:2.3cm;
- text-align: left;
- }
- .art-col37{
- width:1.9cm;
- text-align: right;
- }
- .fecha_emision_data{
- width: 13.1cm;
- padding-left: 2.9cm;
- float: left;
- min-height: 0.5cm;
- }
- .linea2{
- position: relative;
- top: -0.12cm;
- min-height: 0.4cm;
- }
- .razon_data{
- width: 12cm;
- float: left;
- padding-left: 3.95cm;
- min-height: 0.5cm;
- }
- .ruc_data{
- width: 6.0cm;
- float: right;
- padding-left: 0.14cm;
- min-height: 0.5cm;
- }
- .linea3{
- position: relative;
- top: -0.12cm;
- min-height: 0.4cm;
- }
- .direccion_data{
- width: 13.5cm;
- float: left;
- padding-left: 3.1cm;
- min-height: 0.5cm;
- }
- .telefono_data{
- width: 6.8cm;
- float: left;
- padding-left: 0.3cm;
- min-height: 0.5cm;
- }
- .linea4{
- position: relative;
- top: -0.12cm;
- min-height: 0.5cm;
- }
- .contado_x{
- width: 0.4cm;
- float: left;
- padding-left: 2.0cm;
- min-height: 0.5cm;
- }
- .credito_x{
- width: 0.2cm;
- float: left;
- padding-left: 0.5cm;
- min-height: 0.5cm;
- }
- .cab-articulos{
- height: 0.9cm;
- clear: both;
- }
- .articulos{
- height: 3.15cm;
- }
- .art-col1{
- width:0.9cm;
- text-align: center;
- }
- .art-col2{
- padding-left: 0.8cm;
- width:1cm;
- text-align: center;
- }
- .art-col3{
- padding-left: 1cm;
- width:9.4cm;
- }
- .art-col4{
- width:1.9cm;
- text-align: right;
- }
- .art-col5{
- width:2.2cm;
- text-align: right;
- }
- .art-col6{
- width:2.3cm;
- text-align: right;
- }
- .art-col7{
- width:1.9cm;
- text-align: right;
- }
- .logo1{
- height: 2.55cm;
- width: 100%;
- top: 0px;
- }
- .logo2{
- height: 2.56cm;
- 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.3cm;
- }
- .total_pagar{
- width: 2.3cm;
- float: right;
- padding-top: 0.01mm;
- padding-left: 0.8cm;
- min-height: 0.3cm;
- }
- .iva_5_data{
- width: 5cm;
- float: left;
- padding-left: 4.7cm;
- min-height: 0.25cm;
- }
- .iva_10_data{
- width: 5.2cm;
- float: left;
- padding-left: 3.8cm;
- min-height: 0.25cm;
- }
- .iva_total_data{
- width: 7cm;
- float: left;
- padding-left: 3.3cm;
- 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>
- <table class="tab-articulos">
- <div class="articulos2">
- <td class="art-col11">
- </td>
- <td class="art-col12">
- </td>
- <td class="art-col13">
- <div class="razon_data"><span t-field="o.partner_id.name"/></div>
- </td>
- <td class="art-col14"></td>
- <td class="art-col15">
- <div class="ruc_data"><span t-field="o.partner_id.ruc"/></div>
- </td>
- <td class="art-col16">
- </td>
- <td class="art-col17"></td>
- </div>
- </table>
- <table class="tab-articulos">
- <div class="articulos2">
- <td class="art-col31">
- </td>
- <td class="art-col32">
- </td>
- <td class="art-col33">
- <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>
- </td>
- <td class="art-col34"></td>
- <td class="art-col35"> </td>
- <td class="art-col36">
- <div class="telefono_data"><span t-field="o.partner_id.phone"/></div>
- </td>
- <td class="art-col37"></td>
- </div>
- </table>
- <table class="tab-articulos">
- <div class="articulos2">
- <td class="art-col21">
- </td>
- <td class="art-col22">
- <div class="contado_x">
- <t t-if="o.contado == True">X</t>
- <t t-if="o.contado == False"></t>
- </div>
- <div class="credito_x">
- <t t-if="o.credito == True">X</t>
- <t t-if="o.credito == False"></t>
- </div>
- </td>
- <td class="art-col23">
- </td>
- <td class="art-col24">
- </td>
- </div>
- </table>
- <div class="cab-articulos"> </div>
- <div class="articulos">
- <table class="tab-articulos">
- <tr t-foreach="o.invoice_line" t-as="l">
- <td class="art-col1"><span t-field="l.product_id.default_code"/></td>
- <td class="art-col2"><span t-esc="'{0:,.0f}'.format(l.quantity )"/></td>
- <td class="art-col3"><span t-field="l.product_id.name"/></td>
- <td class="art-col4"></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>
|