Commit f689421f449a24fd2bf037bcf22c5bc57a3240e5
1 parent
34f75fc292
Exists in
master
and in
1 other branch
Arreglos de espaciado.
Showing
1 changed file
with
6 additions
and
5 deletions
 
Show diff stats
src/js/controller.js
| ... | ... | @@ -435,11 +435,11 @@ angular.module('focaCrearRemito') .controller('remitoController', | 
| 435 | 435 | ); | 
| 436 | 436 | modalInstance.result.then( | 
| 437 | 437 | function(puntosDescarga) { | 
| 438 | - $scope.remito.puntosDescarga = puntosDescarga; | |
| 438 | + $scope.remito.domicilio.puntosDescarga = puntosDescarga; | |
| 439 | 439 | |
| 440 | 440 | $scope.$broadcast('addCabecera', { | 
| 441 | 441 | label: 'Puntos de descarga:', | 
| 442 | - valor: getCabeceraPuntoDescarga(puntosDescarga) | |
| 442 | + valor: getCabeceraPuntoDescarga($scope.remito.domicilio.puntosDescarga) | |
| 443 | 443 | }); | 
| 444 | 444 | }, function() { | 
| 445 | 445 | $scope.abrirModalDomicilios($scope.cliente); | 
| ... | ... | @@ -872,11 +872,11 @@ angular.module('focaCrearRemito') .controller('remitoController', | 
| 872 | 872 | articulo.editCantidad = articulo.editPrecio = false; | 
| 873 | 873 | } | 
| 874 | 874 | }; | 
| 875 | - | |
| 875 | + | |
| 876 | 876 | $scope.cancelarEditar = function(articulo) { | 
| 877 | 877 | $scope.tmpCantidad = articulo.cantidad; | 
| 878 | 878 | $scope.tmpPrecio = articulo.precio; | 
| 879 | - articulo.editCantidad = articulo.editPrecio = false; | |
| 879 | + articulo.editCantidad = articulo.editPrecio = false; | |
| 880 | 880 | }; | 
| 881 | 881 | |
| 882 | 882 | $scope.cambioEdit = function(articulo, propiedad) { | 
| ... | ... | @@ -1054,6 +1054,7 @@ angular.module('focaCrearRemito') .controller('remitoController', | 
| 1054 | 1054 | $scope.puntoVenta = rellenar(remito.sucursal, 4); | 
| 1055 | 1055 | $scope.comprobante = rellenar(remito.numeroRemito, 8); | 
| 1056 | 1056 | $scope.remito = remito; | 
| 1057 | + console.log($scope.remito); | |
| 1057 | 1058 | if ($scope.remito.puntosDescarga) { | 
| 1058 | 1059 | var puntosDescarga = $scope.remito.puntosDescarga; | 
| 1059 | 1060 | cabeceras.push({ | 
| ... | ... | @@ -1082,7 +1083,7 @@ angular.module('focaCrearRemito') .controller('remitoController', | 
| 1082 | 1083 | $scope.$broadcast('removeCabecera', 'Puntos de descarga:'); | 
| 1083 | 1084 | } | 
| 1084 | 1085 | |
| 1085 | - function getCabeceraPuntoDescarga(puntosDescarga){ | |
| 1086 | + function getCabeceraPuntoDescarga(puntosDescarga) { | |
| 1086 | 1087 | var puntosStamp = ''; | 
| 1087 | 1088 | puntosDescarga.forEach(function(punto, idx, arr) { | 
| 1088 | 1089 | puntosStamp += punto.descripcion; |