|
@@ -15,7 +15,7 @@
|
|
|
<t t-foreach="docs" t-as="o">
|
|
<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:10px;">
|
|
|
|
|
|
|
|
- <!-- Repetir 3 copias en la misma hoja -->
|
|
|
|
|
|
|
+ <!-- Tres copias en la misma hoja -->
|
|
|
<t t-foreach="[1,2,3]" t-as="i">
|
|
<t t-foreach="[1,2,3]" t-as="i">
|
|
|
<div class="copia" style="position:relative; height:9.8cm; width:100%; page-break-inside:avoid;">
|
|
<div class="copia" style="position:relative; height:9.8cm; width:100%; page-break-inside:avoid;">
|
|
|
|
|
|
|
@@ -27,29 +27,35 @@
|
|
|
.iva_5_data{position:absolute; top:8.3cm; left:12.6cm; width:3cm; text-align:right;}
|
|
.iva_5_data{position:absolute; top:8.3cm; left:12.6cm; width:3cm; text-align:right;}
|
|
|
.iva_10_data{position:absolute; top:8.3cm; left:16.4cm; width:3cm; text-align:right;}
|
|
.iva_10_data{position:absolute; top:8.3cm; left:16.4cm; width:3cm; text-align:right;}
|
|
|
.iva_total_data{position:absolute; top:8.3cm; left:19.5cm; width:3cm; text-align:right;}
|
|
.iva_total_data{position:absolute; top:8.3cm; left:19.5cm; width:3cm; text-align:right;}
|
|
|
|
|
+ .xmark{position:absolute; font-weight:bold; font-size:12px;}
|
|
|
</style>
|
|
</style>
|
|
|
|
|
|
|
|
- <!-- Campos principales -->
|
|
|
|
|
|
|
+ <!-- Fecha de emisión -->
|
|
|
<div class="campo" style="top:0.9cm; left:14.8cm;">
|
|
<div class="campo" style="top:0.9cm; left:14.8cm;">
|
|
|
- <span t-field="o.date_invoice" t-field-options='{"format":"dd/MM/yyyy"}'/>
|
|
|
|
|
|
|
+ <span t-field="o.date_invoice" t-field-options='{"format":"dd MMM yyyy"}'/>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div class="campo" style="top:1.8cm; left:2cm; width:10cm;">
|
|
|
|
|
- <span t-field="o.partner_id.name"/>
|
|
|
|
|
|
|
+ <!-- Condición de venta (Contado / Crédito) -->
|
|
|
|
|
+ <div class="xmark" style="top:0.9cm; left:18.3cm;">
|
|
|
|
|
+ <t t-if="o.contado">X</t>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="xmark" style="top:0.9cm; left:19.6cm;">
|
|
|
|
|
+ <t t-if="o.credito">X</t>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div class="campo" style="top:2.4cm; left:2cm; width:9cm;">
|
|
|
|
|
- <span t-field="o.partner_id.ruc"/>
|
|
|
|
|
|
|
+ <!-- Cliente: Nombre y RUC en la misma línea -->
|
|
|
|
|
+ <div class="campo" style="top:1.8cm; left:2cm; width:17cm;">
|
|
|
|
|
+ <span t-field="o.partner_id.name"/> — <span t-field="o.partner_id.ruc"/>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div class="campo" style="top:2.9cm; left:2cm; width:12cm;">
|
|
|
|
|
|
|
+ <!-- Dirección + Teléfono alineados al formato del PDF -->
|
|
|
|
|
+ <div class="campo" style="top:2.85cm; left:2cm; width:19cm;">
|
|
|
<t t-if="o.partner_id.street">
|
|
<t t-if="o.partner_id.street">
|
|
|
<span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/>
|
|
<span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/>
|
|
|
</t>
|
|
</t>
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="campo" style="top:2.9cm; left:15cm; width:5cm;">
|
|
|
|
|
- <span t-field="o.partner_id.mobile"/>
|
|
|
|
|
|
|
+ <span style="position:absolute; left:14.3cm;">
|
|
|
|
|
+ <span t-field="o.partner_id.mobile"/>
|
|
|
|
|
+ </span>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Detalle de líneas -->
|
|
<!-- Detalle de líneas -->
|
|
@@ -80,7 +86,7 @@
|
|
|
|
|
|
|
|
<!-- Totales -->
|
|
<!-- Totales -->
|
|
|
<div class="total_pagar_data">
|
|
<div class="total_pagar_data">
|
|
|
- <span t-esc="convertir(o.amount_total, o.currency_id.en_letras)"/>
|
|
|
|
|
|
|
+ Gs.: <span t-esc="convertir(o.amount_total, o.currency_id.en_letras)"/>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="total_pagar">
|
|
<div class="total_pagar">
|
|
|
<span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
|
|
<span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
|