Browse Source

Factura venta Baco descuento iva

Sebas 6 years ago
parent
commit
495471e8a1
1 changed files with 7 additions and 5 deletions
  1. 7 5
      factura_venta_baco_linux.xml

+ 7 - 5
factura_venta_baco_linux.xml

@@ -203,11 +203,12 @@
                                 </div>
                             </div>
                             <div style="height:1.9cm;padding-left:1.5cm;">
-
+                                    <t t-set="total_exentas" t-value="0"/>
                                     <t t-set="total_5" t-value="0"/>
                                     <t t-set="total_10" t-value="0"/>
                                     <t t-set="iva_5" t-value="0"/>
                                     <t t-set="iva_10" t-value="0"/>
+                                    <t t-set="iva_exentas" t-value="0"/>
                                     <table class="table borderless table-condensed">
                                         <tbody>
                                             <!-- LINEA DE SUBTOTALES -->
@@ -223,6 +224,7 @@
                                                     <t t-if="o.currency_id.id != 166">
                                                         <span t-esc="'{0:,.2f}'.format(valor_exentas)"/>
                                                     </t>
+                                                    <t t-set="iva_exentas" t-value="valor_exentas"/>
                                                 </td>
                                                 <td style="font-size:10px;font-family: Arial;width:2.2cm;overflow: auto; text-align: right;">
                                                     <t t-if="o.currency_id.id == 166">
@@ -235,12 +237,12 @@
                                                 </td>
                                                 <td style="font-size:10px;font-family: Arial;width:2.5cm;overflow: auto; text-align: right;">
                                                     <t t-if="o.currency_id.id == 166">
-                                                        <span t-esc="'{0:,.0f}'.format(valor_exentas+valor_10)"/>
+                                                        <span t-esc="'{0:,.0f}'.format(valor_10)"/>
                                                     </t>
                                                     <t t-if="o.currency_id.id != 166">
                                                         <span t-esc="'{0:,.2f}'.format(valor_exentas+valor_10)"/>
                                                     </t>
-                                                    <t t-set="iva_10" t-value="valor_exentas+valor_10/11" />
+                                                    <t t-set="iva_10" t-value="(valor_exentas+valor_10)/11" />
                                                 </td>
                                             </tr>
                                             <!-- LINEA TOTAL EN LETRAS Y TOTAL GENERAL -->
@@ -308,10 +310,10 @@
                                                 <td style="font-size:10px;font-family: Arial;width:2.2cm;overflow: auto; text-align: right;"></td>
                                                 <td style="font-size:10px;font-family: Arial;width:2.1cm;overflow: auto; text-align: center;">
                                                     <t t-if="o.currency_id.id == 166">
-                                                        <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
+                                                        <span t-esc="'{0:,.0f}'.format(iva_5+iva_10)"/>
                                                     </t>
                                                     <t t-if="o.currency_id.id != 166">
-                                                        <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
+                                                        <span t-esc="'{0:,.2f}'.format(iva_5+iva_10)"/>
                                                     </t>
                                                 </td>
                                                 <td style="font-size:10px;font-family: Arial;width:2.3cm;overflow: auto; text-align: right;">