Commit 1ae7fadfdc36e3737696d307df6194368dcd9bbd

Authored by Jose Pinto
Exists in master

Merge branch 'master' into 'master'

Master(efernandez)

See merge request !2
src/js/controller.js
... ... @@ -3,7 +3,11 @@ angular.module('focaModalEfectivo')
3 3 [
4 4 '$scope',
5 5 '$uibModalInstance',
6   - function($scope, $uibModalInstance) {
  6 + 'sugerido',
  7 + function($scope, $uibModalInstance, sugerido) {
  8 + if(sugerido && sugerido < 0) {
  9 + $scope.efectivo = Math.abs(sugerido);
  10 + }
7 11 $scope.aceptar = function(key) {
8 12 if(key === 13 && $scope.efectivo) {
9 13 var efectivo = parseFloat($scope.efectivo);