Commit 4f4f5aa1efc0c71f27cdb390bd1413c6851101ce

Authored by Luigi
1 parent 7750f3b503
Exists in master

Boton busqueda domicilio

Showing 2 changed files with 14 additions and 0 deletions   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 () {
... ... @@ -78,6 +78,10 @@ angular.module('focaCrearNotaPedido')
78 78 image: 'productos.png'
79 79 },
80 80 {
  81 + label: 'Domicilio de Entrega',
  82 + image: 'domicilioDeEntrega.png'
  83 + },
  84 + {
81 85 label: 'Observaciones',
82 86 image: 'botonObservaciones.png'
83 87 }