Commit 189481565ee82e5de0bfd95a7832d1b43b30e73f
1 parent
28d144ab4e
Exists in
master
and in
2 other branches
no rellena si es menor a 0
Showing
1 changed file
with
1 additions
and
0 deletions
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 | } |