Commit eb7391290428cb22d9e8406526e47bafa76e9df0
1 parent
639fa6c522
Exists in
master
Paso un solo objeto
Showing
1 changed file
with
2 additions
and
2 deletions
 
Show diff stats
src/js/controller.js
| ... | ... | @@ -179,6 +179,7 @@ angular.module('focaAbmCliente') | 
| 179 | 179 | focaModalService.alert('Seleccione cliente'); | 
| 180 | 180 | return; | 
| 181 | 181 | } | 
| 182 | + var parametros = { idListaPrecio: $scope.cliente.MOD, idCliente: $scope.cliente.COD }; | |
| 182 | 183 | var modalInstance = $uibModal.open( | 
| 183 | 184 | { | 
| 184 | 185 | ariaLabelledBy: 'Precio-Condicion: Listas', | 
| ... | ... | @@ -186,8 +187,7 @@ angular.module('focaAbmCliente') | 
| 186 | 187 | controller: 'focaModalListaPreciosController', | 
| 187 | 188 | size: 'lg', | 
| 188 | 189 | resolve : { | 
| 189 | - idListaPrecio : function () { return $scope.cliente.MOD || null; }, | |
| 190 | - idCliente : function () { return $scope.cliente.COD; } | |
| 190 | + parametros: function () { return parametros; } | |
| 191 | 191 | } | 
| 192 | 192 | } | 
| 193 | 193 | ); |