Commit 6d06dd1ca2f70c0b4d905f91f8d17d1327c698e2

Authored by Eric Fernandez
1 parent c763583dd4
Exists in master

recibo precio sugerido

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
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);