Commit 64ec9394583af3562d6e54b33c0453dd1bb34e28
1 parent
d2f80b5b35
Exists in
master
and in
2 other branches
seguimiento
Showing
1 changed file
with
11 additions
and
4 deletions
Show diff stats
src/js/controller.js
1 | 1 | angular.module('focaHojaRuta') |
2 | 2 | .controller('listaHojaRutaCtrl', |
3 | 3 | [ |
4 | - '$scope', '$filter', '$uibModal', 'hojaRutaService', | |
5 | - function($scope, $filter, $uibModal, hojaRutaService) { | |
4 | + '$scope', '$filter', '$uibModal', 'hojaRutaService', 'focaSeguimientoService', | |
5 | + function($scope, $filter, $uibModal, hojaRutaService, focaSeguimientoService) { | |
6 | 6 | hojaRutaService.getHojasRuta().then(function(res) { |
7 | 7 | var hojaRuta = res.data.pop(); |
8 | 8 | $scope.hojasRuta = hojaRuta; |
... | ... | @@ -40,8 +40,15 @@ angular.module('focaHojaRuta') |
40 | 40 | size: 'lg' |
41 | 41 | } |
42 | 42 | ); |
43 | - modalInstance.result.then(function() { | |
44 | - | |
43 | + modalInstance.result.then(function(parametros) { | |
44 | + // Al guardar los datos del producto entregado logueamos la | |
45 | + // actividad para su seguimiento. | |
46 | + focaSeguimientoService.guardarPosicion( | |
47 | + 'Entrega de producto', | |
48 | + 'Remito: ' + $scope.puntoVenta + '-' + $scope.comprobante + '<br/>' + | |
49 | + 'Producto: ' + parametros.producto + '<br/>' + | |
50 | + 'Litros: ' + parametros.litros | |
51 | + ); | |
45 | 52 | }); |
46 | 53 | }; |
47 | 54 |