Commit 00908d6e7242275c876a3bb81874a5782400f1b1
1 parent
b89f9e9f51
Exists in
develop
Fix
Nombre de metodo con acento
Showing
1 changed file
with
10 additions
and
4 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -8,8 +8,8 @@ angular.module('focaLogisticaPedidoRuta').controller('focaLogisticaPedidoRutaCon |
| 8 | 8 | //Datos Pantalla |
| 9 | 9 | $scope.titulo = 'Logistica de Pedidos'; |
| 10 | 10 | |
| 11 | - const transportista = { label: 'Vehículo', image: 'abmChofer.png' }; | |
| 12 | - const fecha = { label: 'Fecha Reparto', image: 'FechaEntrega.png' }; | |
| 11 | + var transportista = { label: 'Vehículo', image: 'abmChofer.png' }; | |
| 12 | + var fecha = { label: 'Fecha Reparto', image: 'FechaEntrega.png' }; | |
| 13 | 13 | $scope.botonera = [fecha, transportista]; |
| 14 | 14 | var cabecera = ''; |
| 15 | 15 | $scope.now = new Date(); |
| ... | ... | @@ -42,7 +42,13 @@ angular.module('focaLogisticaPedidoRuta').controller('focaLogisticaPedidoRutaCon |
| 42 | 42 | |
| 43 | 43 | $scope.cargar = function (idVehiculo, punto) { |
| 44 | 44 | if (!eligioFecha()) return; |
| 45 | - const idRemito = (punto === -1) ? -1 : JSON.parse(punto).notaPedido.remito.id; | |
| 45 | + var idRemito; | |
| 46 | + if (punto === -1) { | |
| 47 | + idRemito = -1; | |
| 48 | + } else { | |
| 49 | + idRemito = JSON.parse(punto).notaPedido.remito.id; | |
| 50 | + } | |
| 51 | + | |
| 46 | 52 | $uibModal.open( |
| 47 | 53 | { |
| 48 | 54 | ariaLabelledBy: 'Busqueda de Vehiculo', |
| ... | ... | @@ -115,7 +121,7 @@ angular.module('focaLogisticaPedidoRuta').controller('focaLogisticaPedidoRutaCon |
| 115 | 121 | getSeguimiento(); |
| 116 | 122 | }; |
| 117 | 123 | |
| 118 | - $scope.seleccionarVehículo = function () { | |
| 124 | + $scope.seleccionarVehiculo = function () { | |
| 119 | 125 | var parametrosModal = { |
| 120 | 126 | titulo: 'Búsqueda de Transportista', |
| 121 | 127 | query: '/transportista', |