Commit c0a40582d124fac7bfb6e2397a72fb8cbc486e69
Exists in
master
conflics
Showing
1 changed file
Show diff stats
src/js/controller.js
... | ... | @@ -132,7 +132,7 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', |
132 | 132 | if (!$scope.notaPedido.cliente.COD) { |
133 | 133 | focaModalService.alert('Ingrese Cliente'); |
134 | 134 | return; |
135 | - } | |
135 | + } | |
136 | 136 | if (!$scope.notaPedido.vendedor.id) { |
137 | 137 | focaModalService.alert('Este cliente no tiene vendedor asignado'); |
138 | 138 | return; |
... | ... | @@ -488,11 +488,13 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', |
488 | 488 | templateUrl: 'foca-busqueda-cliente-modal.html', |
489 | 489 | controller: 'focaBusquedaClienteModalController', |
490 | 490 | resolve: { |
491 | - vendedor: function () { return { id: $scope.idVendedor }; }, | |
492 | - cobrador: function () { return null; }, | |
493 | - searchText: function () { | |
494 | - return $scope.cliente ? $scope.cliente.nom : ''; | |
495 | - } | |
491 | + parametros: function () { | |
492 | + return { | |
493 | + vendedor: $scope.idVendedor, | |
494 | + cobrador: null, | |
495 | + searchText: $scope.cliente ? $scope.cliente.nom : '' | |
496 | + }; | |
497 | + }, | |
496 | 498 | }, |
497 | 499 | size: 'lg' |
498 | 500 | } |