Commit c93c5a0d3cf40a8e03614075b78b72e7c53be6ab

Authored by Eric Fernandez
Exists in master and in 2 other branches develop, lab

Merge branch 'master' into 'master'

Master

See merge request !12
src/js/controller.js
... ... @@ -281,4 +281,40 @@ angular.module('focaModalDetalleCisternas')
281 281 }
282 282 return true;
283 283 };
  284 +
  285 + $scope.verRemitos = function(data) {
  286 + var parametrosModal = {
  287 + titulo: 'Remitos cargados',
  288 + data: data,
  289 + soloMostrar: true,
  290 + columnas: [
  291 + {
  292 + nombre: 'Fecha',
  293 + propiedad: 'fechaRemito',
  294 + filtro: {
  295 + nombre: 'date',
  296 + parametro:'dd/MM/yyyy'
  297 + }
  298 + },
  299 + {
  300 + nombre: 'Cliente',
  301 + propiedad: 'nombreCliente'
  302 + },
  303 + {
  304 + nombre: 'Comprobante',
  305 + propiedad: ['sucursal', 'numeroRemito'],
  306 + filtro: {
  307 + nombre: 'comprobante'
  308 + }
  309 + },
  310 + {
  311 + nombre: 'Importe',
  312 + propiedad: 'total'
  313 + }
  314 + ]
  315 + };
  316 + focaModalService.modal(parametrosModal).then(function(transportista) {
  317 + $scope.selectVehiculo(transportista.COD, transportista.NOM);
  318 + });
  319 + };
284 320 }]);
src/views/foca-detalle-vehiculo.html
... ... @@ -54,6 +54,7 @@
54 54 <th>Articulo cargado</th>
55 55 <th width="20%">Por asignar</th>
56 56 <th>Cargado / Capacidad Disponible</th>
  57 + <th></th>
57 58 </tr>
58 59 </thead>
59 60 <tbody>
... ... @@ -95,6 +96,13 @@
95 96 </div>
96 97 </div>
97 98 </td>
  99 + <td>
  100 + <button
  101 + class="btn btn-outline-secondary"
  102 + ng-click="verRemitos(cisterna.cisternaCarga.remitos)">
  103 + <i class="fa fa-info" aria-hidden="true"></i>
  104 + </button>
  105 + </td>
98 106 </tr>
99 107 </tbody>
100 108 </table>