Commit 4d8b804210c3d17ec4b0bd0bbcef0c19e61c429f
Exists in
master
and in
1 other branch
Merge branch 'master' into 'develop'
Master See merge request !98
Showing
2 changed files
Show diff stats
src/js/controller.js
| ... | ... | @@ -588,6 +588,15 @@ angular.module('focaCrearRemito').controller('remitoController', |
| 588 | 588 | } |
| 589 | 589 | }; |
| 590 | 590 | |
| 591 | + $scope.seleccionarDomicilioDeEntrega = function () { | |
| 592 | + if (!$scope.remito.cliente.COD) { | |
| 593 | + focaModalService.alert('Seleccione un Cliente'); | |
| 594 | + return; | |
| 595 | + } else { | |
| 596 | + $scope.abrirModalDomicilios($scope.cliente); | |
| 597 | + } | |
| 598 | + }; | |
| 599 | + | |
| 591 | 600 | $scope.abrirModalDomicilios = function (cliente) { |
| 592 | 601 | var modalInstanceDomicilio = $uibModal.open( |
| 593 | 602 | { |
| ... | ... | @@ -652,6 +661,8 @@ angular.module('focaCrearRemito').controller('remitoController', |
| 652 | 661 | |
| 653 | 662 | $filter('filter')($scope.botonera, |
| 654 | 663 | { label: 'Cliente' })[0].checked = true; |
| 664 | + $filter('filter')($scope.botonera, | |
| 665 | + { label: 'Domicilio de Entrega' })[0].checked = true; | |
| 655 | 666 | }) |
| 656 | 667 | .catch(function (e) { console.log(e); }); |
| 657 | 668 | }, function () { |
src/js/service.js
| ... | ... | @@ -112,6 +112,10 @@ angular.module('focaCrearRemito') |
| 112 | 112 | image: 'productos.png' |
| 113 | 113 | }, |
| 114 | 114 | { |
| 115 | + label: 'Domicilio de Entrega', | |
| 116 | + image: 'domicilioDeEntrega.png' | |
| 117 | + }, | |
| 118 | + { | |
| 115 | 119 | label: 'Observaciones', |
| 116 | 120 | image: 'botonObservaciones.png', |
| 117 | 121 | disable: true |