Commit 8c554e03bb498567c23b3a00f7b7a4fcc75662ae

Authored by Eric Fernandez
1 parent 358a1bae1c
Exists in master

valido que no se ingrese 0

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/js/controller.js
... ... @@ -9,7 +9,7 @@ angular.module('focaModalEfectivo')
9 9 $scope.efectivo = Math.abs(sugerido);
10 10 }
11 11 $scope.aceptar = function(key) {
12   - if(key === 13 && $scope.efectivo) {
  12 + if(key === 13 && parseFloat($scope.efectivo)) {
13 13 var efectivo = parseFloat($scope.efectivo);
14 14 $uibModalInstance.close(efectivo);
15 15 }