Преглед изворни кода

Impresión factura legal Sion retocado

Sebas пре 5 година
родитељ
комит
af14a94f0a
1 измењених фајлова са 11 додато и 11 уклоњено
  1. 11 11
      factura_venta_sion.xml

+ 11 - 11
factura_venta_sion.xml

@@ -73,7 +73,7 @@
                             min-height: 0.4cm;
                         }
                         .ruc_data{
-                            width: 5.5cm;
+                            width: 5.8cm;
                             float: left;
                             padding-left: 0.2cm;
                             min-height: 0.5cm;
@@ -251,19 +251,19 @@
                                     <t t-set="valor_10" t-value="0"/>
                                     <tr t-foreach="o.invoice_line" t-as="l">
                                         <td class="art-col1"><span t-esc="'%.0f'%l.quantity"/></td>
-                                        <td class="art-col2"><span t-field="l.name"/></td>
-                                        <td class="art-col3"><span t-field="l.price_unit"/></td>
+                                        <td class="art-col2"><span t-field="l.product_id.name"/></td>
+                                        <td class="art-col3"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></td>
                                         <td class="art-col4"></td>
                                         <td class="art-col5">
                                             <span t-if="'IVA 5% Venta' in [ilt.name for ilt in l.invoice_line_tax_id] and 'IVA 10% Venta' not in [ilt.name for ilt in l.invoice_line_tax_id]">
-                                                <span t-esc="l.quantity * l.price_unit">
+                                                <span t-esc= "'{0:,.0f}'.format(int(l.quantity * l.price_unit)).replace(',', '.')">
                                                     <span t-value="valor_5+(l.quantity * l.price_unit)"/></span>
                                                     <t t-set="valor_5" t-value="valor_5+(l.quantity * l.price_unit)"/>
                                                 </span>
                                         </td>
                                         <td class="art-col6">
                                             <span t-if="'IVA 10% Venta' in [ilt.name for ilt in l.invoice_line_tax_id]">
-                                                <span t-esc="l.quantity * l.price_unit" >
+                                                <span t-esc= "'{0:,.0f}'.format(int(l.quantity * l.price_unit)).replace(',', '.')">
                                                     <span t-value="valor_10+(l.quantity * l.price_unit)"/></span>
                                                     <t t-set="valor_10" t-value="valor_10+(l.quantity * l.price_unit)"/>
                                                 </span>
@@ -276,21 +276,21 @@
                              <div class="subtotal_data"> </div>
                              <div class="subtotal_excentas"> </div>
                              <div class="subtotal_5">
-                                  <span t-esc="valor_5"></span>
+                                  <span t-esc="'{0:,.0f}'.format(int(valor_5)).replace(',', '.')"></span>
                                   <t t-set="iva_5" t-value="valor_5/21" />
                              </div>
                              <div class="subtotal_10">
-                                 <span t-esc="valor_10"></span>
+                                 <span t-esc="'{0:,.0f}'.format(int(valor_10)).replace(',', '.')"></span>
                                  <t t-set="iva_10" t-value="valor_10/11" />
                              </div>
 
                              <div class="total_pagar_data"><span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
                              <!-- <div class="total_pagar_data"><span t-esc="o.amount_total"/></div> -->
-                             <div class="total_pagar"><span t-esc="o.amount_total"/></div>
+                             <div class="total_pagar"><span t-esc="'{0:,.0f}'.format(int(o.amount_total)).replace(',', '.')"/></div>
 
-                             <div class="iva_5_data"><span t-esc="'%.0f'%iva_5"></span></div>
-                             <div class="iva_10_data"><span t-esc="'%.0f'%iva_10"></span></div>
-                             <div class="iva_total_data"><span t-esc="'%.0f'%o.amount_tax"/></div>
+                             <div class="iva_5_data"><span t-esc="'{0:,.0f}'.format(iva_5)"></span></div>
+                             <div class="iva_10_data"><span t-esc="'{0:,.0f}'.format(iva_10)"></span></div>
+                             <div class="iva_total_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
                         </div>
                        <div class="logo1"> </div>
                     </t>