Commit 639fa6c522d9d0a036906d1bc9962eaadad8efad
1 parent
ab2668b53e
Exists in
master
Paso el idCliente y lo seteo a la vista
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -186,14 +186,14 @@ angular.module('focaAbmCliente') |
186 | 186 | controller: 'focaModalListaPreciosController', |
187 | 187 | size: 'lg', |
188 | 188 | resolve : { |
189 | - idListaPrecio : function () { | |
190 | - return $scope.cliente.MOD || null; | |
191 | - } | |
189 | + idListaPrecio : function () { return $scope.cliente.MOD || null; }, | |
190 | + idCliente : function () { return $scope.cliente.COD; } | |
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) + |