Commit d1640d9de7f7a0886979685c9b11d0815d30c776
Exists in
master
Merge branch 'master' into 'develop'
Master See merge request !104
Showing
2 changed files
Show diff stats
src/js/controller.js
| ... | ... | @@ -356,6 +356,14 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', |
| 356 | 356 | } |
| 357 | 357 | }; |
| 358 | 358 | |
| 359 | + $scope.seleccionarDomicilioDeEntrega = function () { | |
| 360 | + if (!$scope.notaPedido.cliente.COD) { | |
| 361 | + focaModalService.alert('Seleccione un Cliente'); | |
| 362 | + return; | |
| 363 | + } else { | |
| 364 | + $scope.abrirModalDomicilios($scope.cliente); | |
| 365 | + } | |
| 366 | + }; | |
| 359 | 367 | $scope.seleccionarProveedor = function () { |
| 360 | 368 | $scope.abrirModalProveedores(function () { |
| 361 | 369 | if (validarNotaRemitada()) { |
| ... | ... | @@ -584,6 +592,8 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', |
| 584 | 592 | // Seteo checked en botonera |
| 585 | 593 | $filter('filter')($scope.botonera, |
| 586 | 594 | { label: 'Cliente' })[0].checked = true; |
| 595 | + $filter('filter')($scope.botonera, | |
| 596 | + { label: 'Domicilio de Entrega' })[0].checked = true; | |
| 587 | 597 | }) |
| 588 | 598 | .catch(function (e) { console.log(e); }); |
| 589 | 599 | }, function () { |
src/js/service.js