Commit f9733a66b27e3542b7d3b17b039e63ea219fef5b
1 parent
088b4ef186
Exists in
master
upstream
Showing
1 changed file
with
2 additions
and
31 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -87,13 +87,6 @@ angular.module('focaCrearRemito') .controller('remitoController', |
87 | 87 | ariaLabelledBy: 'Busqueda de Nota de Pedido', |
88 | 88 | templateUrl: 'foca-modal-nota-pedido.html', |
89 | 89 | controller: 'focaModalNotaPedidoController', |
90 | - resolve: { | |
91 | - parametroNotaPedido: { | |
92 | - idLista: $scope.idLista, | |
93 | - cotizacion: $scope.remito.cotizacion.COTIZACION, | |
94 | - simbolo: $scope.remito.moneda.simbolo | |
95 | - } | |
96 | - }, | |
97 | 90 | size: 'lg' |
98 | 91 | } |
99 | 92 | ); |
... | ... | @@ -182,34 +175,12 @@ angular.module('focaCrearRemito') .controller('remitoController', |
182 | 175 | ariaLabelledBy: 'Busqueda de Remito', |
183 | 176 | templateUrl: 'foca-modal-remito.html', |
184 | 177 | controller: 'focaModalRemitoController', |
185 | - resolve: { | |
186 | - parametroRemito: { | |
187 | - idLista: $scope.idLista, | |
188 | - cotizacion: $scope.remito.cotizacion.COTIZACION, | |
189 | - simbolo: $scope.remito.moneda.simbolo | |
190 | - } | |
191 | - }, | |
192 | 178 | size: 'lg' |
193 | 179 | } |
194 | 180 | ); |
195 | 181 | modalInstance.result.then( |
196 | - function(producto) { | |
197 | - var newArt = | |
198 | - { | |
199 | - id: 0, | |
200 | - codigo: producto.codigo, | |
201 | - sector: producto.sector, | |
202 | - sectorCodigo: producto.sector + '-' + producto.codigo, | |
203 | - descripcion: producto.descripcion, | |
204 | - item: $scope.articulosTabla.length + 1, | |
205 | - nombre: producto.descripcion, | |
206 | - precio: parseFloat(producto.precio.toFixed(4)), | |
207 | - costoUnitario: producto.costo, | |
208 | - editCantidad: false, | |
209 | - editPrecio: false | |
210 | - }; | |
211 | - $scope.articuloACargar = newArt; | |
212 | - $scope.cargando = false; | |
182 | + function() { | |
183 | + // TODO: Implementar carga remito | |
213 | 184 | }, function() { |
214 | 185 | // funcion ejecutada cuando se cancela el modal |
215 | 186 | } |