Commit 94969fae0570427ffc283b0b4e5d2db98f29998f
1 parent
c93664d299
Exists in
master
and in
1 other branch
Boton para domicilio de Entrega
Showing
2 changed files
with
15 additions
and
0 deletions
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 |