Commit fbe64cc5fb46312ede79ed072ead516b29f0e2f6
Exists in
master
Merge branch 'master' into 'master'
Master(efernandez) See merge request !3
Showing
2 changed files
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 | } |
src/views/modal-efectivo.html
... | ... | @@ -17,6 +17,10 @@ |
17 | 17 | ng-keypress="aceptar($event.keyCode)" |
18 | 18 | > |
19 | 19 | </div> |
20 | + <br> | |
21 | + <div class="alert alert-warning"> | |
22 | + Si ya ha ingresado efectivo, el monto que ingrese se sumará o restará al ya ingresado. | |
23 | + </div> | |
20 | 24 | </form> |
21 | 25 | </div> |
22 | 26 | <div class="modal-footer"> |