Commit 4e40dffdce24858853838dc4fb307272ed32b2f2
Exists in
master
Merge branch 'master' into 'master'
Master(efernandez) See merge request modulos-npm/foca-crear-nota-pedido!52
Showing
1 changed file
Show diff stats
src/js/controller.js
... | ... | @@ -292,21 +292,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
292 | 292 | ); |
293 | 293 | modalInstance.result.then( |
294 | 294 | function(cliente) { |
295 | - crearNotaPedidoService.getDomiciliosByIdCliente(cliente.cod).then( | |
296 | - function(data) { | |
297 | - if(data.data.length === 0){ | |
298 | - focaModalService | |
299 | - .alert('El cliente no tienen domicilios de entrega') | |
300 | - .then( | |
301 | - function() { | |
302 | - $scope.seleccionarCliente(); | |
303 | - } | |
304 | - ); | |
305 | - return; | |
306 | - } | |
307 | - $scope.abrirModalDomicilios(cliente); | |
308 | - } | |
309 | - ); | |
295 | + $scope.abrirModalDomicilios(cliente); | |
310 | 296 | }, function() { |
311 | 297 | |
312 | 298 | } |