Commit 9ada384d5cf8f608e0f27a49c1c4b12dcd39c936
1 parent
3ff3ddf4fe
Exists in
master
and in
2 other branches
permite descargar menos de lo indicado
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -135,7 +135,8 @@ angular.module('focaModalDetalleHojaRuta') |
135 | 135 | }; |
136 | 136 | |
137 | 137 | $scope.distribucionDisponible = function() { |
138 | - return $scope.articuloSeleccionado.cantidadDescargada === | |
138 | + return $scope.articuloSeleccionado.cantidadDescargada && | |
139 | + $scope.articuloSeleccionado.cantidadDescargada <= | |
139 | 140 | $scope.articuloSeleccionado.cantidad; |
140 | 141 | }; |
141 | 142 |
src/views/modal-detalle-hoja-ruta.html
... | ... | @@ -131,7 +131,7 @@ |
131 | 131 | ng-disabled="readonly" |
132 | 132 | ng-model="numeroRecibo" |
133 | 133 | ng-keypress="descargar($event.keyCode)" |
134 | - foca-focus="distribucionDisponible()"> | |
134 | + foca-focus="articuloSeleccionado.cantidadDescargada === articuloSeleccionado.cantidad"> | |
135 | 135 | <button |
136 | 136 | class="ml-4 form-control-sm btn btn-success col-4" |
137 | 137 | ladda="cargando" |