Commit bd9543280c48e1eb84d1eb1964040cbb6a76dabc

Authored by Eric Fernandez
1 parent 82e7210ad8
Exists in master

Implementación agregar domicilio

Showing 1 changed file with 1 additions and 15 deletions   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 }