diff --git a/src/js/controllerDetalleVehiculo.js b/src/js/controllerDetalleVehiculo.js index f33a7b8..b4aa186 100644 --- a/src/js/controllerDetalleVehiculo.js +++ b/src/js/controllerDetalleVehiculo.js @@ -163,8 +163,9 @@ angular.module('focaLogisticaPedidoRuta') } return cisterna; }; - $scope.rellenarInput = function(input = 0) { + $scope.rellenarInput = function(input) { if(!$scope.articuloSeleccionado) return; + if(!input) input = 0; input = parseFloat(input); if(input === $scope.articuloSeleccionado.cantidad || $scope.articuloSeleccionado.cantidad -