Commit cd56de95b0a3bbe113272e7954979548af43f65b
1 parent
558186a93f
Exists in
master
Borrado de console.log
Showing
1 changed file
with
0 additions
and
1 deletions
Show diff stats
src/js/controllerEstadoCuenta.js
1 | angular.module('focaCrearFactura') | 1 | angular.module('focaCrearFactura') |
2 | .controller('focaModalEstadoCuentaController', [ | 2 | .controller('focaModalEstadoCuentaController', [ |
3 | '$scope', '$uibModalInstance', 'crearFacturaService', 'parametros', | 3 | '$scope', '$uibModalInstance', 'crearFacturaService', 'parametros', |
4 | function ($scope, $uibModalInstance, crearFacturaService, parametros) { | 4 | function ($scope, $uibModalInstance, crearFacturaService, parametros) { |
5 | 5 | ||
6 | $scope.estadoCuenta = { | 6 | $scope.estadoCuenta = { |
7 | autorizado: 0.0, | 7 | autorizado: 0.0, |
8 | extracciones: 0.0, | 8 | extracciones: 0.0, |
9 | saldo: 0.0, | 9 | saldo: 0.0, |
10 | situacion: false, | 10 | situacion: false, |
11 | facturasVencidas: 0.0 | 11 | facturasVencidas: 0.0 |
12 | }; | 12 | }; |
13 | 13 | ||
14 | init(); | 14 | init(); |
15 | 15 | ||
16 | function init() { | 16 | function init() { |
17 | crearFacturaService.getResumenCuenta(parametros.idCliente) | 17 | crearFacturaService.getResumenCuenta(parametros.idCliente) |
18 | .then(function (res) { | 18 | .then(function (res) { |
19 | console.log(res); | ||
20 | $scope.estadoCuenta = res.data; | 19 | $scope.estadoCuenta = res.data; |
21 | }) | 20 | }) |
22 | .catch(function (e) { console.error(e); }); | 21 | .catch(function (e) { console.error(e); }); |
23 | } | 22 | } |
24 | 23 | ||
25 | $scope.elegirTipoDePago = function (tipoDePago) { | 24 | $scope.elegirTipoDePago = function (tipoDePago) { |
26 | $uibModalInstance.close(tipoDePago); | 25 | $uibModalInstance.close(tipoDePago); |
27 | }; | 26 | }; |
28 | 27 | ||
29 | $scope.cancel = function () { | 28 | $scope.cancel = function () { |
30 | $uibModalInstance.dismiss('cancel'); | 29 | $uibModalInstance.dismiss('cancel'); |
31 | }; | 30 | }; |
32 | } | 31 | } |
33 | ]); | 32 | ]); |
34 | 33 |