|
|
@@ -13,22 +13,23 @@
|
|
|
<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:11px;">
|
|
|
+ <!-- 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;">
|
|
|
|
|
|
<!-- Tres copias en la misma hoja -->
|
|
|
<t t-foreach="[1,2,3]" t-as="i">
|
|
|
|
|
|
- <!-- Corregido: concatenación en lugar de % -->
|
|
|
- <div class="copia" t-att-style="'position:relative; height:9.7cm; width:100%; page-break-inside:avoid; margin-top:' + ('2' if i in [2,3] else '0') + 'cm;'">
|
|
|
+ <!-- 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;'">
|
|
|
|
|
|
<style type="text/css">
|
|
|
.campo{position:absolute; font-size:10px;}
|
|
|
.detalle{position:absolute; top:3.6cm; left:1.2cm; width:19cm; font-size:10px; line-height:0.47cm;}
|
|
|
.total_pagar_data{position:absolute; top:7.7cm; left:2cm; width:14cm;}
|
|
|
.total_pagar{position:absolute; top:7.7cm; right:1.3cm; text-align:right; width:6cm;}
|
|
|
- .iva_5_data{position:absolute; top:8.3cm; left:7.1cm; 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.9cm; width:3cm; text-align:right; padding-bottom:0.7cm;}
|
|
|
+ .iva_5_data{position:absolute; top:8.2cm; left:7.1cm; width:3cm; text-align:right;}
|
|
|
+ .iva_10_data{position:absolute; top:8.2cm; left:10.4cm; width:3cm; text-align:right;}
|
|
|
+ .iva_total_data{position:absolute; top:8.2cm; left:14.9cm; width:3cm; text-align:right;}
|
|
|
.xmark{position:absolute; font-weight:bold; font-size:12px;}
|
|
|
</style>
|
|
|
|
|
|
@@ -65,11 +66,8 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
|
|
|
- <!-- Espacio antes del detalle -->
|
|
|
- <div style="position:absolute; top:3.3cm;"></div>
|
|
|
-
|
|
|
<!-- Detalle -->
|
|
|
- <div class="detalle" style="top:2.9cm;">
|
|
|
+ <div class="detalle" style="top:2.8cm;">
|
|
|
<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>
|