|
|
@@ -14,22 +14,22 @@
|
|
|
<t t-call="report.html_container">
|
|
|
<t t-foreach="docs" t-as="o">
|
|
|
<!-- A4 = 29.7cm alto, dejamos 3cm arriba de margen -->
|
|
|
- <div class="page" style="width:21cm; height:29.7cm; margin:0; padding-top:3cm; font-family:Arial,Helvetica,sans-serif; font-size:11px; box-sizing:border-box;">
|
|
|
+ <div class="page" style="width:21cm; height:29.7cm; margin:0; padding-top:2cm; font-family:Arial,Helvetica,sans-serif; font-size:11px; box-sizing:border-box;">
|
|
|
|
|
|
<!-- Tres copias en la misma hoja -->
|
|
|
<t t-foreach="[1,2,3]" t-as="i">
|
|
|
|
|
|
<!-- Cada copia ocupa ~8.8cm de alto (3x8.8 + 3cm margen = 29.7cm) -->
|
|
|
- <div class="copia" t-att-style="'position:relative; height:8.8cm; width:100%; page-break-inside:avoid; margin-top:' + ('0.5' if i > 1 else '0') + 'cm;'">
|
|
|
+ <div class="copia" t-att-style="'position:relative; height:8.8cm; width:100%; page-break-inside:avoid; margin-top:' + ('1.5' if i > 1 else '0') + 'cm;'">
|
|
|
|
|
|
<style type="text/css">
|
|
|
.campo{position:absolute; font-size:10px;color:red;}
|
|
|
.detalle{position:absolute; top:3.6cm; left:1.2cm; width:19cm; font-size:10px; line-height:0.47cm;color:red;}
|
|
|
- .total_pagar_data{position:absolute; top:7.7cm; left:2cm; width:14cm;color:red;}
|
|
|
- .total_pagar{position:absolute; top:7.7cm; right:1.3cm; text-align:right; width:6cm;color:red;}
|
|
|
- .iva_5_data{position:absolute; top:8.2cm; left:7.1cm; width:3cm; text-align:right;color:red;}
|
|
|
- .iva_10_data{position:absolute; top:8.2cm; left:10.4cm; width:3cm; text-align:right;color:red;}
|
|
|
- .iva_total_data{position:absolute; top:8.2cm; left:14.9cm; width:3cm; text-align:right;color:red;}
|
|
|
+ .total_pagar_data{position:absolute; top:7.4cm; left:2cm; width:14cm;color:red;}
|
|
|
+ .total_pagar{position:absolute; top:7.4cm; right:1.3cm; text-align:right; width:6cm;color:red;}
|
|
|
+ .iva_5_data{position:absolute; top:8.0cm; left:7.1cm; width:3cm; text-align:right;color:red;}
|
|
|
+ .iva_10_data{position:absolute; top:8.0cm; left:10.4cm; width:3cm; text-align:right;color:red;}
|
|
|
+ .iva_total_data{position:absolute; top:8.0cm; left:14.9cm; width:3cm; text-align:right;color:red;}
|
|
|
.xmark{position:absolute; font-weight:bold; font-size:12px;color:red;}
|
|
|
</style>
|
|
|
|
|
|
@@ -39,15 +39,15 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- Condición de venta (Contado / Crédito) -->
|
|
|
- <div class="xmark" style="top:0.1cm; left:18.4cm;">
|
|
|
+ <div class="xmark" style="top:0.1cm; left:17.8cm;">
|
|
|
<t t-if="o.contado">X</t>
|
|
|
</div>
|
|
|
- <div class="xmark" style="top:0.1cm; left:19.2cm;">
|
|
|
+ <div class="xmark" style="top:0.1cm; left:18.4cm;">
|
|
|
<t t-if="o.credito">X</t>
|
|
|
</div>
|
|
|
|
|
|
<!-- Cliente: Nombre y RUC -->
|
|
|
- <div class="campo" style="top:0.8cm; left:3.5cm; width:19cm;">
|
|
|
+ <div class="campo" style="top:0.6cm; left:3.5cm; width:19cm;">
|
|
|
<t t-if="o.partner_id.street">
|
|
|
<span t-field="o.partner_id.name"/>
|
|
|
</t>
|
|
|
@@ -57,7 +57,7 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- Dirección + Teléfono -->
|
|
|
- <div class="campo" style="top:1.3cm; left:2.5cm; width:19cm;">
|
|
|
+ <div class="campo" style="top:1.1cm; 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>
|
|
|
@@ -71,14 +71,14 @@
|
|
|
<t t-foreach="o.invoice_line" t-as="l">
|
|
|
<div style="display:flex;">
|
|
|
<div style="width:1.8cm; text-align:center;"><span t-esc="'{0:,.0f}'.format(l.quantity)"/></div>
|
|
|
- <div style="width:9.2cm;"><span t-field="l.product_id.name"/></div>
|
|
|
+ <div style="width:7.2cm;"><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.7cm; text-align:right;">
|
|
|
+ <div style="width:3.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>
|
|
|
</div>
|
|
|
- <div style="width:2.5cm; text-align:right;"></div>
|
|
|
+ <div style="width:3.5cm; text-align:right;"></div>
|
|
|
<div style="width:2.5cm; text-align:right;">
|
|
|
<span t-esc="'{0:,.0f}'.format((l.quantity * l.price_unit))"/>
|
|
|
</div>
|