Commit 556b440b8842eda62551473f82fb978c34e0be8e

Authored by Luigi
1 parent 4fadda5a86
Exists in master

accion del boton precio y condicion

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
src/js/controller.js
... ... @@ -649,6 +649,8 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl',
649 649 abrirModal();
650 650 }
651 651 function abrirModal() {
  652 + var parametros = { idCliente: $scope.notaPedido.cliente.COD, idListaPrecio : $scope.notaPedido.cliente.MOD};
  653 +
1
652 654 var modalInstance = $uibModal.open(
653 655 {
654 656 ariaLabelledBy: 'Busqueda de Precio Condición',
... ... @@ -656,8 +658,7 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl',
656 658 controller: 'focaModalPrecioCondicionController',
657 659 size: 'lg',
658 660 resolve: {
659   - idListaPrecio: function () { return $scope.notaPedido.cliente.MOD || null; },
660   - idCliente: function () { return $scope.notaPedido.cliente.COD }
  661 + parametros: function () { return parametros; },
661 662 }
662 663 }
663 664 );