Pārlūkot izejas kodu

Módulo para factura y nota legal de conecta5

SEBAS 7 mēneši atpakaļ
vecāks
revīzija
1547e09b5a
1 mainītis faili ar 9 papildinājumiem un 4 dzēšanām
  1. 9 4
      factura_venta_conecta5.xml

+ 9 - 4
factura_venta_conecta5.xml

@@ -31,7 +31,7 @@
                             </style>
 
                             <!-- Fecha de emisión -->
-                            <div class="campo" style="top:0.9cm; left:14.8cm;">
+                            <div class="campo" style="top:0.9cm; left:7.8cm;">
                                 <span t-field="o.date_invoice" t-field-options='{"format":"dd MMM yyyy"}'/>
                             </div>
 
@@ -44,8 +44,13 @@
                             </div>
 
                             <!-- 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 class="campo" style="top:1.8cm; left:2cm; width:19cm;">
+                              <t t-if="o.partner_id.street">
+                                  <span t-field="o.partner_id.name"/>
+                              </t>
+                              <span style="position:absolute; left:14.3cm;">
+                                  <span t-field="o.partner_id.ruc"/>
+                              </span>
                             </div>
 
                             <!-- Dirección + Teléfono alineados al formato del PDF -->
@@ -86,7 +91,7 @@
 
                             <!-- Totales -->
                             <div class="total_pagar_data">
-                                Gs.: <span t-esc="convertir(o.amount_total, o.currency_id.en_letras)"/>
+                                <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)"/>