From 639fa6c522d9d0a036906d1bc9962eaadad8efad Mon Sep 17 00:00:00 2001 From: Luigi Date: Mon, 1 Jul 2019 12:41:06 -0300 Subject: [PATCH] Paso el idCliente y lo seteo a la vista --- src/js/controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index 805e61f..2f6755f 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -186,14 +186,14 @@ angular.module('focaAbmCliente') controller: 'focaModalListaPreciosController', size: 'lg', resolve : { - idListaPrecio : function () { - return $scope.cliente.MOD || null; - } + idListaPrecio : function () { return $scope.cliente.MOD || null; }, + idCliente : function () { return $scope.cliente.COD; } } } ); modalInstance.result.then( function (data) { if (data) { + $scope.cliente.MOD = data.listaPrecio.ID; $scope.$broadcast('addCabecera', { label: 'Precio y Condicion:', valor: $filter('rellenarDigitos')(parseInt(data.listaPrecio.ID), 4) + -- 1.9.1