Commit cc7b48e00f9fa67ee2f483ad6daa9df50b6dfbe4
Exists in
master
and in
2 other branches
Merge branch 'master' into 'master'
Master(efernandez) See merge request !16
Showing
1 changed file
Show diff stats
src/js/controllerDetalleVehiculo.js
... | ... | @@ -163,8 +163,9 @@ angular.module('focaLogisticaPedidoRuta') |
163 | 163 | } |
164 | 164 | return cisterna; |
165 | 165 | }; |
166 | - $scope.rellenarInput = function(input = 0) { | |
166 | + $scope.rellenarInput = function(input) { | |
167 | 167 | if(!$scope.articuloSeleccionado) return; |
168 | + if(!input) input = 0; | |
168 | 169 | input = parseFloat(input); |
169 | 170 | if(input === $scope.articuloSeleccionado.cantidad || |
170 | 171 | $scope.articuloSeleccionado.cantidad - |