Commit bf8b15bf38f9ab301f2684c8b138e68287e55b01

Authored by Jose Pinto
1 parent 3e41ead801
Exists in master

boton observaciones

Showing 2 changed files with 13 additions and 0 deletions   Show diff stats
src/js/controller.js
... ... @@ -168,6 +168,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
168 168 bomba: $scope.notaPedido.bomba,
169 169 kilometros: $scope.notaPedido.kilometros,
170 170 domicilioStamp: $scope.notaPedido.domicilioStamp,
  171 + observaciones: $scope.notaPedido.observaciones,
171 172 estado: 0,
172 173 total: $scope.getTotal()
173 174 };
... ... @@ -743,6 +744,14 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
743 744 }
744 745 };
745 746  
  747 + $scope.seleccionarObservaciones = function() {
  748 + focaModalService
  749 + .prompt('Ingrese observaciones', $scope.notaPedido.observaciones, true)
  750 + .then(function(observaciones) {
  751 + $scope.notaPedido.observaciones = observaciones;
  752 + });
  753 + };
  754 +
746 755 $scope.abrirModalCotizacion = function(moneda) {
747 756 var modalInstance = $uibModal.open(
748 757 {
... ... @@ -80,6 +80,10 @@ angular.module('focaCrearNotaPedido')
80 80 {
81 81 label: 'Productos',
82 82 image: 'productos.png'
  83 + },
  84 + {
  85 + label: 'Observaciones',
  86 + image: 'productos.png'
83 87 }
84 88 ];
85 89