Commit 1ad71773eaa5bff74c2a4009959c361f15c47a49

Authored by Luigi
1 parent f6ad6f4a20
Exists in master

eliminar variable

Showing 1 changed file with 2 additions and 3 deletions   Show diff stats
src/js/controller.js
... ... @@ -260,7 +260,7 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl',
260 260 };
261 261  
262 262 $scope.seleccionarProductos = function () {
263   - if ($scope.notaPedido.idListaPrecio === undefined) {
  263 + if ($scope.idLista === undefined) {
264 264 focaModalService.alert('Primero seleccione una lista de precio y condición');
265 265 return;
266 266 } else if (!validarNotaRemitada()) {
... ... @@ -274,7 +274,7 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl',
274 274 controller: 'modalBusquedaProductosCtrl',
275 275 resolve: {
276 276 parametroProducto: {
277   - idLista: $scope.notaPedido.idListaPrecio,
  277 + idLista: $scope.idLista,
278 278 cotizacion: $scope.notaPedido.cotizacion.VENDEDOR,
279 279 simbolo: $scope.notaPedido.cotizacion.moneda.SIMBOLO
280 280 }
... ... @@ -688,7 +688,6 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl',
688 688 valor: $scope.idLista + ' - ' + precioCondicion.listaPrecio.DES + ' ' +
689 689 notaPedidoBusinessService.plazoToString(precioCondicion.plazoPago)
690 690 });
691   - $scope.notaPedido.idListaPrecio = $scope.idLista;
692 691  
693 692 $filter('filter')($scope.botonera,
694 693 { label: 'Precios y Condiciones' })[0].checked = true;