Commit 1ca3799b066acbaf152b85467270ef92b846144e

Authored by Jose Pinto
1 parent 37289f50ba
Exists in master

correccion bug modal remitos

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/js/controller.js
... ... @@ -283,9 +283,9 @@ angular.module('focaCrearHojaRuta') .controller('hojaRutaCtrl',
283 283  
284 284 // remito.litros = litros;
285 285 // $scope.hojaRuta.litros = $scope.hojaRuta.litros + litros;
286   - $scope.cargarCisterna(remito.id).then(function() {
  286 + $scope.cargarCisterna(remito.id).then(function(response) {
287 287 $scope.hojaRuta.remitosTabla.push(remito);
288   - $scope.seleccionarRemitos();
  288 + if (!response) $scope.seleccionarRemitos();
289 289 }, function() {
290 290 $scope.seleccionarRemitos();
291 291 });