Commit 78630a96dcf74488660abe0ad484c9ec681ff8bf
1 parent
b50408f194
Exists in
master
and in
1 other branch
nro remito
Showing
2 changed files
with
9 additions
and
4 deletions
Show diff stats
gulpfile.js
src/js/controller.js
| ... | ... | @@ -314,14 +314,20 @@ angular.module('focaCrearRemito') .controller('remitoController', |
| 314 | 314 | |
| 315 | 315 | crearRemitoService.crearRemito(save).then( |
| 316 | 316 | function(data) { |
| 317 | - remitoBusinessService.addArticulos($scope.remito.articulosRemito, | |
| 318 | - data.data.id, $scope.remito.cotizacion.COTIZACION); | |
| 319 | 317 | |
| 320 | 318 | focaBotoneraLateralService.endGuardar(true); |
| 321 | 319 | $scope.saveLoading = false; |
| 322 | 320 | |
| 323 | - //TODO: updatear plazos | |
| 321 | + // TODO: updatear plazos | |
| 324 | 322 | if ($scope.remito.id === 0) { |
| 323 | + | |
| 324 | + $scope.remito.id = data.data.id; | |
| 325 | + $scope.puntoVenta = data.data.sucursal; | |
| 326 | + $scope.numeroRemito = data.data.numero; | |
| 327 | + | |
| 328 | + remitoBusinessService.addArticulos($scope.remito.articulosRemito, | |
| 329 | + $scope.remito.id, $scope.remito.cotizacion.COTIZACION); | |
| 330 | + | |
| 325 | 331 | var plazos = $scope.remito.remitoPlazo; |
| 326 | 332 | |
| 327 | 333 | for(var j = 0; j < plazos.length; j++) { |