Commit 679ada51d99bc898e6b98c077fa43880aada9688
1 parent
1bdae648a5
Exists in
master
precio sugerido
Showing
1 changed file
with
7 additions
and
6 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -6,12 +6,13 @@ angular.module('focaModalEfectivo') |
6 | 6 | 'sugerido', |
7 | 7 | '$timeout', |
8 | 8 | function($scope, $uibModalInstance, sugerido, $timeout) { |
9 | - if(sugerido && sugerido < 0) { | |
10 | - $scope.efectivo = Math.abs(sugerido); | |
11 | - $timeout(function() { | |
12 | - angular.element('#importe')[0].select(); | |
13 | - }); | |
14 | - } | |
9 | + | |
10 | + $scope.efectivo = sugerido; | |
11 | + | |
12 | + $timeout(function() { | |
13 | + angular.element('#importe')[0].select(); | |
14 | + }); | |
15 | + | |
15 | 16 | $scope.aceptar = function(key) { |
16 | 17 | if(key === 13 && parseFloat($scope.efectivo)) { |
17 | 18 | var efectivo = parseFloat($scope.efectivo); |