Commit 52d99a2f7b8e02deb72df20272bc12b6729144e6
1 parent
9ada384d5c
Exists in
master
and in
2 other branches
guardo seguimiento al rechazar remito
Showing
1 changed file
with
8 additions
and
4 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -160,10 +160,14 @@ angular.module('focaModalDetalleHojaRuta') |
160 | 160 | remitoRechazado.motivoRechazo = motivo; |
161 | 161 | remitoRechazado.fechaRemito = |
162 | 162 | remitoRechazado.fechaRemito.slice(0, 19).replace('T', ' '); |
163 | - focaModalDetalleHojaRutaService | |
164 | - .rechazarRemito(remitoRechazado) | |
165 | - .then(success) | |
166 | - .catch(error) | |
163 | + Promise.all([ | |
164 | + focaModalDetalleHojaRutaService | |
165 | + .rechazarRemito(remitoRechazado), | |
166 | + focaSeguimientoService.guardarPosicion( | |
167 | + 'Entrega de producto', | |
168 | + remitoRechazado.id, | |
169 | + motivo) | |
170 | + ]).then(success).catch(error); | |
167 | 171 | $scope.readonly = true; |
168 | 172 | }); |
169 | 173 | }; |