|
|
@@ -13,7 +13,7 @@
|
|
|
<template id="report_factura_conecta5">
|
|
|
<t t-call="report.html_container">
|
|
|
<t t-foreach="docs" t-as="o">
|
|
|
- <div class="page" style="width:21cm; height:29.7cm; margin:0; padding:0; font-family:Arial,Helvetica,sans-serif; font-size:10px;">
|
|
|
+ <div class="page" style="width:21cm; height:29.7cm; margin:0; padding:0; font-family:Arial,Helvetica,sans-serif; font-size:12px;">
|
|
|
|
|
|
<!-- Tres copias en la misma hoja -->
|
|
|
<t t-foreach="[1,2,3]" t-as="i">
|
|
|
@@ -22,28 +22,28 @@
|
|
|
.campo{position:absolute; font-size:10px;}
|
|
|
.detalle{position:absolute; top:3.6cm; left:1.2cm; width:19cm; font-size:9.5px; line-height:0.47cm;}
|
|
|
.total_pagar_data{position:absolute; top:7.7cm; left:2cm; width:14cm;}
|
|
|
- .total_pagar{position:absolute; top:7.7cm; right:2.2cm; text-align:right; width:3cm;}
|
|
|
- .iva_5_data{position:absolute; top:8.3cm; left:9.6cm; width:3cm; text-align:right;padding-bottom:0.7cm;}
|
|
|
- .iva_10_data{position:absolute; top:8.3cm; left:12.4cm; width:3cm; text-align:right;padding-bottom:0.7cm;}
|
|
|
- .iva_total_data{position:absolute; top:8.3cm; left:18.5cm; width:3cm; text-align:right;padding-bottom:0.7cm;}
|
|
|
+ .total_pagar{position:absolute; top:7.7cm; right:2.8cm; text-align:right; width:3cm;}
|
|
|
+ .iva_5_data{position:absolute; top:8.3cm; left:7.6cm; width:3cm; text-align:right;padding-bottom:0.7cm;}
|
|
|
+ .iva_10_data{position:absolute; top:8.3cm; left:10.4cm; width:3cm; text-align:right;padding-bottom:0.7cm;}
|
|
|
+ .iva_total_data{position:absolute; top:8.3cm; left:14.5cm; width:3cm; text-align:right;padding-bottom:0.7cm;}
|
|
|
.xmark{position:absolute; font-weight:bold; font-size:12px;}
|
|
|
</style>
|
|
|
|
|
|
<!-- Fecha de emisión -->
|
|
|
- <div class="campo" style="top:0.4cm; left:7.8cm;">
|
|
|
+ <div class="campo" style="top:0.1cm; left:7.8cm;">
|
|
|
<span t-field="o.date_invoice" t-field-options='{"format":"dd MMM yyyy"}'/>
|
|
|
</div>
|
|
|
|
|
|
<!-- Condición de venta (Contado / Crédito) -->
|
|
|
- <div class="xmark" style="top:0.4cm; left:18.3cm;">
|
|
|
+ <div class="xmark" style="top:0.1cm; left:18.7cm;">
|
|
|
<t t-if="o.contado">X</t>
|
|
|
</div>
|
|
|
- <div class="xmark" style="top:0.4cm; left:19.6cm;">
|
|
|
+ <div class="xmark" style="top:0.1cm; left:19.2cm;">
|
|
|
<t t-if="o.credito">X</t>
|
|
|
</div>
|
|
|
|
|
|
<!-- Cliente: Nombre y RUC en la misma línea -->
|
|
|
- <div class="campo" style="top:1.1cm; left:2cm; width:19cm;">
|
|
|
+ <div class="campo" style="top:0.8cm; left:3cm; width:19cm;">
|
|
|
<t t-if="o.partner_id.street">
|
|
|
<span t-field="o.partner_id.name"/>
|
|
|
</t>
|
|
|
@@ -53,11 +53,11 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- Dirección + Teléfono alineados al formato del PDF -->
|
|
|
- <div class="campo" style="top:1.8cm; left:2cm; width:19cm;">
|
|
|
+ <div class="campo" style="top:1.3cm; left:2.5cm; width:19cm;">
|
|
|
<t t-if="o.partner_id.street">
|
|
|
<span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/>
|
|
|
</t>
|
|
|
- <span style="position:absolute; left:14.3cm;">
|
|
|
+ <span style="position:absolute; left:14.0cm;">
|
|
|
<span t-field="o.partner_id.mobile"/>
|
|
|
</span>
|
|
|
</div>
|
|
|
@@ -67,10 +67,10 @@
|
|
|
<div class="detalle" style="top:3.3cm;">
|
|
|
<t t-foreach="o.invoice_line" t-as="l">
|
|
|
<div style="display:flex;">
|
|
|
- <div style="width:1.3cm; text-align:center;"><span t-esc="'{0:,.2f}'.format(l.quantity)"/></div>
|
|
|
- <div style="width:11cm;"><span t-field="l.product_id.name"/></div>
|
|
|
+ <div style="width:1.8cm; text-align:center;"><span t-esc="'{0:,.2f}'.format(l.quantity)"/></div>
|
|
|
+ <div style="width:9.5cm;"><span t-field="l.product_id.name"/></div>
|
|
|
<div style="width:2.3cm; text-align:right;"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></div>
|
|
|
- <div style="width:2.2cm; text-align:right;">
|
|
|
+ <div style="width:2.7cm; text-align:right;">
|
|
|
<t t-if="l.invoice_line_tax_id and l.invoice_line_tax_id[0].amount == 0">
|
|
|
<span t-esc="'{0:,.0f}'.format(l.price_subtotal)"/>
|
|
|
</t>
|