Commit b2922d83786c4e311162ed0e809bbe214ee07e13
Exists in
master
and in
1 other branch
Merge branch 'master' into 'master'
Master (pmarco) See merge request modulos-npm/foca-crear-remito!5
Showing
1 changed file
Show diff stats
src/js/controller.js
| ... | ... | @@ -127,34 +127,12 @@ angular.module('focaCrearRemito') .controller('remitoController', |
| 127 | 127 | ariaLabelledBy: 'Busqueda de Remito', |
| 128 | 128 | templateUrl: 'foca-modal-remito.html', |
| 129 | 129 | controller: 'focaModalRemitoController', |
| 130 | - resolve: { | |
| 131 | - parametroRemito: { | |
| 132 | - idLista: $scope.idLista, | |
| 133 | - cotizacion: $scope.remito.cotizacion.COTIZACION, | |
| 134 | - simbolo: $scope.remito.moneda.simbolo | |
| 135 | - } | |
| 136 | - }, | |
| 137 | 130 | size: 'lg' |
| 138 | 131 | } |
| 139 | 132 | ); |
| 140 | 133 | modalInstance.result.then( |
| 141 | - function(producto) { | |
| 142 | - var newArt = | |
| 143 | - { | |
| 144 | - id: 0, | |
| 145 | - codigo: producto.codigo, | |
| 146 | - sector: producto.sector, | |
| 147 | - sectorCodigo: producto.sector + '-' + producto.codigo, | |
| 148 | - descripcion: producto.descripcion, | |
| 149 | - item: $scope.articulosTabla.length + 1, | |
| 150 | - nombre: producto.descripcion, | |
| 151 | - precio: parseFloat(producto.precio.toFixed(4)), | |
| 152 | - costoUnitario: producto.costo, | |
| 153 | - editCantidad: false, | |
| 154 | - editPrecio: false | |
| 155 | - }; | |
| 156 | - $scope.articuloACargar = newArt; | |
| 157 | - $scope.cargando = false; | |
| 134 | + function(remito) { | |
| 135 | + // TODO: Implementar carga remito | |
| 158 | 136 | }, function() { |
| 159 | 137 | // funcion ejecutada cuando se cancela el modal |
| 160 | 138 | } |