Commit 28c29de84199eb5fdc792dcde000abbd7885c99b
Exists in
master
Merge branch 'master' into 'develop'
Master See merge request !112
Showing
1 changed file
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 | } |