Pārlūkot izejas kodu

Ajuste css y interes solo pagados

deisy 5 gadi atpakaļ
vecāks
revīzija
1678b417f1

+ 1 - 1
static/src/js/reports/report_liquidacion_mensual_inmobiliaria.js

@@ -195,8 +195,8 @@ function report_liquidacion_mensual_inmobiliaria(reporting){
         fetchAccountInterestLine: function () {
             var self = this;
             var defer = $.Deferred();
-            var domain = [];
             var field =['id', 'interest_id', 'amount_interest','state'];
+            var domain = [['state','=','paid']];
             var AccountInterestLine = new model.web.Model('account.interest.line');
             AccountInterestLine.query(field).filter(domain).all().then(function (results) {
                 defer.resolve(results);

+ 46 - 12
static/src/reports/report_liquidacion_mensual_inmobiliaria.xml

@@ -43,8 +43,42 @@
                 <div id="toolbar">
                     <button class="myButton print-report" value="pdf">Imprimir Informe</button>
                 </div>
-                <div class="container"  style="width:90%;">
+                <div class="container">
+                  <style>
+                      [data-field="t_nro"] .th-inner {
+                        width: 70px
+                      }
+                      [data-field="t_manzana"] .th-inner {
+                        width: 60px
+                      }
+                      [data-field="t_lote"] .th-inner {
+                        width: 50px
+                      }
+                      [data-field="cuota_total"] .th-inner {
+                        width: 80px
+                      }
+                      [data-field="cuotas_pagadas"] .th-inner {
+                        width: 130px
+                      }
+                      [data-field="cuotas_atrasadas"] .th-inner {
+                        width: 130px
+                      }
+                      [data-field="suma_comision_vendedor"] .th-inner {
+                        width: 130px
+                      }
+                      [data-field="suma_comision_inmobiliaria"] .th-inner {
+                        width: 130px
+                      }
+                      [data-field="suma_comision_total"] .th-inner {
+                        width: 130px
+                      }
+                      [data-field="saldo"] .th-inner {
+                        width: 100px
+                      }
+
+                  </style>
                     <table id="table"
+                        data-height="auto"
                         data-pagination="true"
                         data-toggle="table"
                         data-toolbar="#toolbar"
@@ -65,7 +99,7 @@
                         >
                         <thead style="background:none;">
                             <tr>
-                                <th data-field="t_nro" data-align="left" data-width="40" data-footer-formatter="Totales">Nº</th>
+                              <th data-field="t_nro" data-align="left" data-width="40" data-footer-formatter="Totales">Nº</th>
                                 <th data-field="t_manzana" data-align="left" data-width="40">Manz.</th>
                                 <th data-field="t_lote" data-align="left" data-width="40">Lote</th>
                                 <th data-field="date_start" data-align="center" data-width="90">Fecha Inicial</th>
@@ -75,18 +109,17 @@
                                 <th data-field="cuotas_atrasadas" data-align="center" data-width="70">Cuotas Atrasadas</th>
                                 <th data-field="precio_cuota" data-align="right" data-width="70" data-footer-formatter="TotalCuota">Monto Cuota</th>
                                 <th data-field="interes" data-align="right" data-width="70" data-footer-formatter="TotalInteres">Interés</th>
-                                <th data-field="suma_comision_vendedor" data-align="center" data-width="70" data-footer-formatter="TotalComisionVendedor">Comisión Vendedor</th>
-                                <th data-field="suma_comision_inmobiliaria" data-align="center" data-width="70" data-footer-formatter="TotalComisionEmpresa">Comisión Empresa</th>
-                                <th data-field="suma_comision_total" data-align="center" data-width="70" data-footer-formatter="TotalComision">Desc Comisiones</th>
-                                <th data-field="saldo" data-align="center" data-width="70" data-footer-formatter="TotalSaldo">Saldo</th>
+                                <th data-field="suma_comision_vendedor" data-align="right" data-width="70" data-footer-formatter="TotalComisionVendedor">Comisión Vendedor</th>
+                                <th data-field="suma_comision_inmobiliaria" data-align="right" data-width="70" data-footer-formatter="TotalComisionEmpresa">Comisión Empresa</th>
+                                <th data-field="suma_comision_total" data-align="right" data-width="70" data-footer-formatter="TotalComision">Desc Comisiones</th>
+                                <th data-field="saldo" data-align="right" data-width="70" data-footer-formatter="TotalSaldo">Saldo</th>
                             </tr>
                         </thead>
                     </table>
                 </div>
             </div>
             <script>
-
-                <!--
+              <!--
                     TOTAL
                 -->
                 function TotalCuota(rowsTable) {
@@ -334,12 +367,14 @@
                 <!--
                     FOOTER STYLE
                 -->
-                function footerStyle(row, index) {
+                function footerStyle() {
                     return {
+
                         css: {
-                          "font-weight": "bold"
+                          "font-weight": "bold",
                         }
-                    };
+
+                    }
                 }
 
                 <!-- numero a letras -->
@@ -502,7 +537,6 @@
                   else
                     return Millones(data.enteros) + " " + data.letrasMonedaPlural + " " + data.letrasCentavos;
                 }
-
             </script>
         </div>
     </t>