Переглянути джерело

Módulo para factura y nota legal de conecta5

SEBAS 6 місяців тому
батько
коміт
7e9a897830
1 змінених файлів з 12 додано та 12 видалено
  1. 12 12
      factura_venta_conecta5.xml

+ 12 - 12
factura_venta_conecta5.xml

@@ -25,20 +25,20 @@
                                 .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: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;}
+                                .total_pagar{position:absolute; top:7.7cm; right:3.3cm; text-align:right; width:3cm;}
+                                .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.5cm; 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;}
                                 .xmark{position:absolute; font-weight:bold; font-size:12px;}
                             </style>
 
                             <!-- Fecha de emisión -->
-                            <div class="campo" style="top:0.1cm; left:7.8cm;">
+                            <div class="campo" style="top:1.8cm; left:3.7cm;">
                                 <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.1cm; left:18.7cm;">
+                            <div class="xmark" style="top:0.1cm; left:18.4cm;">
                                 <t t-if="o.contado">X</t>
                             </div>
                             <div class="xmark" style="top:0.1cm; left:19.2cm;">
@@ -46,11 +46,11 @@
                             </div>
 
                             <!-- Cliente: Nombre y RUC -->
-                            <div class="campo" style="top:0.8cm; left:3cm; width:19cm;">
+                            <div class="campo" style="top:0.8cm; left:3.5cm; 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 style="position:absolute; left:13.5cm;">
                                     <span t-field="o.partner_id.ruc"/>
                                 </span>
                             </div>
@@ -69,19 +69,19 @@
                             <div style="position:absolute; top:3.3cm;"></div>
 
                             <!-- Detalle -->
-                            <div class="detalle" style="top:3.3cm;">
+                            <div class="detalle" style="top:2.9cm;">
                                 <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:,.2f}'.format(l.quantity)"/></div>
-                                        <div style="width:9.5cm;"><span t-field="l.product_id.name"/></div>
+                                        <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:2.3cm; text-align:right;"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></div>
                                         <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>
                                         </div>
-                                        <div style="width:2.2cm; text-align:right;"></div>
-                                        <div style="width:2.2cm; text-align:right;">
+                                        <div style="width:2.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>
                                     </div>