Commit dc9232fb8567627830d428a8df068e08dc4ed219
1 parent
59676d2f30
Exists in
master
and in
2 other branches
Arreglo en busqueda de notas de pedido
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -123,8 +123,8 @@ angular.module('focaCrearRemito').controller('remitoController', |
| 123 | 123 | function (notaPedido) { |
| 124 | 124 | //añado cabeceras |
| 125 | 125 | $scope.remitoIsDirty = true; |
| 126 | - $scope.notaPedido.id = notaPedido.id; | |
| 127 | 126 | $scope.notaPedido = notaPedido; |
| 127 | + $scope.notaPedido.id = notaPedido.id; | |
| 128 | 128 | $scope.cliente = notaPedido.cliente; |
| 129 | 129 | $scope.$broadcast('removeCabecera', 'Bomba:'); |
| 130 | 130 | $scope.$broadcast('removeCabecera', 'Kilometros:'); |
| ... | ... | @@ -228,9 +228,8 @@ angular.module('focaCrearRemito').controller('remitoController', |
| 228 | 228 | cabeceras.push(cabeceraBomba); |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | - delete notaPedido.id; | |
| 232 | 231 | $scope.remito = notaPedido; |
| 233 | - $scope.remito.id = 0; | |
| 232 | + $scope.remito.id = notaPedido.id; | |
| 234 | 233 | $scope.remito.remitoPlazo = notaPedido.notaPedidoPlazo; |
| 235 | 234 | $scope.remito.remitoPuntoDescarga = notaPedido.notaPedidoPuntoDescarga; |
| 236 | 235 | |
| ... | ... | @@ -414,6 +413,7 @@ angular.module('focaCrearRemito').controller('remitoController', |
| 414 | 413 | } |
| 415 | 414 | ); |
| 416 | 415 | }; |
| 416 | + | |
| 417 | 417 | $scope.seleccionarProductos = function () { |
| 418 | 418 | if ($scope.idLista === undefined) { |
| 419 | 419 | focaModalService.alert( |
| ... | ... | @@ -516,6 +516,7 @@ angular.module('focaCrearRemito').controller('remitoController', |
| 516 | 516 | ); |
| 517 | 517 | } |
| 518 | 518 | }; |
| 519 | + | |
| 519 | 520 | $scope.seleccionarCliente = function () { |
| 520 | 521 | if (varlidarRemitoFacturado()) { |
| 521 | 522 | var modalInstance = $uibModal.open( |