Commit 04844c0a54c3635ae23abba525a4081dec97d681
1 parent
4d9ec829f4
Exists in
master
Espacios
Showing
1 changed file
with
3 additions
and
14 deletions
Show diff stats
src/js/controllerCliente.js
... | ... | @@ -2,10 +2,8 @@ angular.module('focaAbmCliente') |
2 | 2 | .controller('focaModalClienteController', [ |
3 | 3 | '$scope', '$timeout', '$uibModalInstance', 'focaModalService', |
4 | 4 | 'focaAbmClienteService', 'idCliente', |
5 | - | |
6 | 5 | function ($scope, $timeout, $uibModalInstance, focaModalService, |
7 | 6 | focaAbmClienteService, idCliente) { |
8 | - | |
9 | 7 | $scope.cliente = { |
10 | 8 | provincia: {}, |
11 | 9 | localidad: {}, |
... | ... | @@ -19,7 +17,6 @@ angular.module('focaAbmCliente') |
19 | 17 | formaPago: {} |
20 | 18 | }; |
21 | 19 | $scope.regexCuit = new RegExp(/\b(20|23|24|27|30|33|34)(\D)?[0-9]{8}(\D)?[0-9]/); |
22 | - | |
23 | 20 | $scope.vendedor = {}; |
24 | 21 | |
25 | 22 | focaAbmClienteService.obtenerClientePorCodigo(idCliente) |
... | ... | @@ -57,16 +54,10 @@ angular.module('focaAbmCliente') |
57 | 54 | $scope.cliente.formaPago.ID = data.formaPago.ID; |
58 | 55 | $scope.cliente.ES_PROS = data.ES_PROS; |
59 | 56 | $scope.cliente.ES_MAY = data.ES_MAY; |
60 | - | |
61 | - | |
62 | 57 | $scope.editando = true; |
63 | - | |
64 | 58 | }) |
65 | 59 | .catch(function (e) { console.log(e); }); |
66 | - | |
67 | - | |
68 | - | |
69 | - | |
60 | + | |
70 | 61 | $scope.cancel = function () { |
71 | 62 | $uibModalInstance.dismiss('cancel'); |
72 | 63 | }; |
... | ... | @@ -127,11 +118,8 @@ angular.module('focaAbmCliente') |
127 | 118 | focaModalService.alert('Seleccione una forma de pago'); |
128 | 119 | return; |
129 | 120 | } |
130 | - | |
131 | 121 | $scope.cliente.actividad.ID = parseInt($scope.cliente.actividad.ID); |
132 | - | |
133 | 122 | var cliente = crearCopia(); |
134 | - | |
135 | 123 | focaAbmClienteService |
136 | 124 | .guardarCliente(cliente) |
137 | 125 | .then(function () { |
... | ... | @@ -530,4 +518,5 @@ angular.module('focaAbmCliente') |
530 | 518 | return result; |
531 | 519 | } |
532 | 520 | |
533 | - }]); | |
534 | 521 | \ No newline at end of file |
522 | + }]); | |
523 | + | |
535 | 524 | \ No newline at end of file |