Commit d58c9381ac2a0ef7f7d478b6eaeb25d00b223362
Exists in
master
and in
2 other branches
Merge branch 'master' into 'master'
Master(efernandez) See merge request !7
Showing
2 changed files
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" |