diff --git a/src/js/controller.js b/src/js/controller.js index 641a3c6..3c7b68c 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -557,6 +557,7 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', ); modalInstanceDomicilio.result.then( function (domicilio) { + $scope.showLoading = true; $scope.notaPedido.domicilio = domicilio; $scope.notaPedido.cliente = { COD: cliente.cod, @@ -602,6 +603,8 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', { label: 'Cliente' })[0].checked = true; $filter('filter')($scope.botonera, { label: 'Domicilio de Entrega' })[0].checked = true; + + $scope.showLoading = false; }) .catch(function (e) { console.log(e); }); }, function () { @@ -630,9 +633,7 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', $scope.seleccionarPreciosYCondiciones = function () { - if (!validarNotaRemitada()) { - return; - } + if (!validarNotaRemitada()) return; if (!$scope.notaPedido.cliente.COD) { focaModalService.alert('Primero seleccione un cliente'); diff --git a/src/views/nota-pedido.html b/src/views/nota-pedido.html index 2cb358d..cc2af37 100644 --- a/src/views/nota-pedido.html +++ b/src/views/nota-pedido.html @@ -422,3 +422,8 @@ +
+
+
+ Cargando informacion... +
\ No newline at end of file