Commit 96570b7a76dcb8f2c12397f3bb51ee5330b7113d
Exists in
master
and in
1 other branch
Merge branch 'master' into 'develop'
Master See merge request !7
Showing
1 changed file
Show diff stats
src/js/controller.js
... | ... | @@ -179,6 +179,7 @@ angular.module('focaAbmCliente') |
179 | 179 | focaModalService.alert('Seleccione cliente'); |
180 | 180 | return; |
181 | 181 | } |
182 | + var parametros = { idListaPrecio: $scope.cliente.MOD, idCliente: $scope.cliente.COD }; | |
182 | 183 | var modalInstance = $uibModal.open( |
183 | 184 | { |
184 | 185 | ariaLabelledBy: 'Precio-Condicion: Listas', |
... | ... | @@ -186,14 +187,13 @@ angular.module('focaAbmCliente') |
186 | 187 | controller: 'focaModalListaPreciosController', |
187 | 188 | size: 'lg', |
188 | 189 | resolve : { |
189 | - idListaPrecio : function () { | |
190 | - return $scope.cliente.MOD || null; | |
191 | - } | |
190 | + parametros: function () { return parametros; } | |
192 | 191 | } |
193 | 192 | } |
194 | 193 | ); |
195 | 194 | modalInstance.result.then( function (data) { |
196 | 195 | if (data) { |
196 | + $scope.cliente.MOD = data.listaPrecio.ID; | |
197 | 197 | $scope.$broadcast('addCabecera', { |
198 | 198 | label: 'Precio y Condicion:', |
199 | 199 | valor: $filter('rellenarDigitos')(parseInt(data.listaPrecio.ID), 4) + |