Commit 77c0c102e3b6bdd7d8eb0b3cb44ced48c68d5687
1 parent
872b9fa563
Exists in
master
searchtext modales
Showing
1 changed file
with
11 additions
and
2 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -118,9 +118,9 @@ angular.module('focaBusquedaCliente') |
118 | 118 | }; |
119 | 119 | |
120 | 120 | $scope.cancel = function() { |
121 | - if($scope.ingreso) { | |
121 | + if ($scope.ingreso) { | |
122 | 122 | $scope.ingreso = false; |
123 | - }else { | |
123 | + } else { | |
124 | 124 | $uibModalInstance.dismiss('cancel'); |
125 | 125 | } |
126 | 126 | }; |
... | ... | @@ -160,6 +160,7 @@ angular.module('focaBusquedaCliente') |
160 | 160 | $scope.seleccionarProvincia = function(key) { |
161 | 161 | if(key === 13) { |
162 | 162 | var parametrosModal = { |
163 | + searchText: $scope.cliente.provincia.NOMBRE, | |
163 | 164 | query: '/provincia', |
164 | 165 | columnas: [ |
165 | 166 | { |
... | ... | @@ -195,6 +196,7 @@ angular.module('focaBusquedaCliente') |
195 | 196 | } |
196 | 197 | if(key === 13) { |
197 | 198 | var parametrosModal = { |
199 | + searchText: $scope.cliente.localidad.NOMBRE, | |
198 | 200 | query: '/localidad/' + $scope.cliente.provincia.ID, |
199 | 201 | columnas: [ |
200 | 202 | { |
... | ... | @@ -226,6 +228,7 @@ angular.module('focaBusquedaCliente') |
226 | 228 | $scope.seleccionarIva = function(key) { |
227 | 229 | if(key === 13) { |
228 | 230 | var parametrosModal = { |
231 | + searchText: $scope.cliente.iva.NOMBRE, | |
229 | 232 | query: '/iva', |
230 | 233 | columnas: [ |
231 | 234 | { |
... | ... | @@ -258,6 +261,7 @@ angular.module('focaBusquedaCliente') |
258 | 261 | $scope.seleccionarActividad = function(key) { |
259 | 262 | if(key === 13) { |
260 | 263 | var parametrosModal = { |
264 | + searchText: $scope.cliente.actividad.NOM, | |
261 | 265 | query: '/actividad', |
262 | 266 | columnas: [ |
263 | 267 | { |
... | ... | @@ -290,6 +294,7 @@ angular.module('focaBusquedaCliente') |
290 | 294 | $scope.seleccionarZona = function(key) { |
291 | 295 | if(key === 13) { |
292 | 296 | var parametrosModal = { |
297 | + searchText: $scope.cliente.zona.NOM, | |
293 | 298 | query: '/zona', |
294 | 299 | columnas: [ |
295 | 300 | { |
... | ... | @@ -322,6 +327,7 @@ angular.module('focaBusquedaCliente') |
322 | 327 | $scope.seleccionarTipoFactura = function(key) { |
323 | 328 | if(key === 13) { |
324 | 329 | var parametrosModal = { |
330 | + searchText: $scope.cliente.tipoFactura.NOMBRE, | |
325 | 331 | query: '/tipo-factura', |
326 | 332 | columnas: [ |
327 | 333 | { |
... | ... | @@ -350,6 +356,7 @@ angular.module('focaBusquedaCliente') |
350 | 356 | $scope.seleccionarTipoComprobante = function(key) { |
351 | 357 | if(key === 13) { |
352 | 358 | var parametrosModal = { |
359 | + searchText: $scope.cliente.tipoComprobante.NOMBRE, | |
353 | 360 | query: '/tipo-comprobante', |
354 | 361 | columnas: [ |
355 | 362 | { |
... | ... | @@ -378,6 +385,7 @@ angular.module('focaBusquedaCliente') |
378 | 385 | $scope.seleccionarFormaPago = function(key) { |
379 | 386 | if(key === 13) { |
380 | 387 | var parametrosModal = { |
388 | + searchText: $scope.cliente.formaPago.NOMBRE, | |
381 | 389 | query: '/forma-pago', |
382 | 390 | columnas: [ |
383 | 391 | { |
... | ... | @@ -407,6 +415,7 @@ angular.module('focaBusquedaCliente') |
407 | 415 | $scope.seleccionarCobrador = function(key) { |
408 | 416 | if(key === 13) { |
409 | 417 | var parametrosModal = { |
418 | + searchText: $scope.cliente.cobrador.NOM, | |
410 | 419 | query: '/cobrador', |
411 | 420 | columnas: [ |
412 | 421 | { |