Commit 7f5fbe599f65c6c308145b5b0cfe2f27e1b3f4c3
Exists in
master
and in
2 other branches
Merge branch 'master' into 'master'
Master See merge request !9
Showing
1 changed file
Show diff stats
src/js/controller.js
... | ... | @@ -224,6 +224,7 @@ angular.module('focaModalDetalleCisternas') |
224 | 224 | input = parseFloat(input); |
225 | 225 | input += parseFloat($scope.articuloSeleccionado.cantidad - |
226 | 226 | $scope.articuloSeleccionado.cantidadCargada); |
227 | + if(input <= 0) return; | |
227 | 228 | if(input > cisterna.disponible) { |
228 | 229 | input = cisterna.disponible; |
229 | 230 | } |