Commit 0e6b5fe45b211d846e7650c2d276e0d4c2b335fd
Exists in
master
Merge branch 'master' into 'master'
Master (pmarco) See merge request modulos-npm/foca-crear-remito!6
Showing
1 changed file
Show diff stats
src/js/controller.js
... | ... | @@ -87,34 +87,12 @@ 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 | ); |
100 | 93 | modalInstance.result.then( |
101 | - function(producto) { | |
102 | - var newArt = | |
103 | - { | |
104 | - id: 0, | |
105 | - codigo: producto.codigo, | |
106 | - sector: producto.sector, | |
107 | - sectorCodigo: producto.sector + '-' + producto.codigo, | |
108 | - descripcion: producto.descripcion, | |
109 | - item: $scope.articulosTabla.length + 1, | |
110 | - nombre: producto.descripcion, | |
111 | - precio: parseFloat(producto.precio.toFixed(4)), | |
112 | - costoUnitario: producto.costo, | |
113 | - editCantidad: false, | |
114 | - editPrecio: false | |
115 | - }; | |
116 | - $scope.articuloACargar = newArt; | |
117 | - $scope.cargando = false; | |
94 | + { | |
95 | + // TODO: Implementar nota de pedido | |
118 | 96 | }, function() { |
119 | 97 | // funcion ejecutada cuando se cancela el modal |
120 | 98 | } |