Commit f8dd86067a2f8abb8958a811378a352854e34830
1 parent
9a56f837a0
Exists in
master
arreglo lista precio
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -427,7 +427,7 @@ angular.module('focaCrearRemito').controller('remitoController', |
427 | 427 | if ($scope.notaPedido.id !== 0) { |
428 | 428 | $scope.idLista = parseInt($scope.notaPedido.idListaPrecio) |
429 | 429 | } |
430 | - if ($scope.remito.idListaPrecio === undefined) { | |
430 | + if ($scope.idLista === undefined) { | |
431 | 431 | focaModalService.alert( |
432 | 432 | 'Primero seleccione una lista de precio y condicion'); |
433 | 433 | return; |
... | ... | @@ -439,7 +439,7 @@ angular.module('focaCrearRemito').controller('remitoController', |
439 | 439 | controller: 'modalBusquedaProductosCtrl', |
440 | 440 | resolve: { |
441 | 441 | parametroProducto: { |
442 | - idLista: $scope.idLista || parseInt($scope.remito.idListaPrecio), | |
442 | + idLista: $scope.idLista, | |
443 | 443 | cotizacion: $scope.remito.cotizacion.VENDEDOR, |
444 | 444 | simbolo: $scope.remito.cotizacion.moneda.SIMBOLO |
445 | 445 | } |