Commit 86ce187a594c33816a4ede4b38f8960e1652d628
1 parent
948cdeb9e1
Exists in
master
and in
1 other branch
arreglo modal agregar cliente
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/js/service.js
1 | angular.module('focaBusquedaCliente') | 1 | angular.module('focaBusquedaCliente') |
2 | .service('focaBusquedaClienteService', ['$http', 'API_ENDPOINT', | 2 | .service('focaBusquedaClienteService', ['$http', 'API_ENDPOINT', |
3 | function ($http, API_ENDPOINT) { | 3 | function ($http, API_ENDPOINT) { |
4 | return { | 4 | return { |
5 | obtenerClientesPorNombreOCuitByVendedor: function (nombreOCuit, idVendedor) { | 5 | obtenerClientesPorNombreOCuitByVendedor: function (nombreOCuit, idVendedor) { |
6 | return $http.post(API_ENDPOINT.URL + '/cliente/listar', | 6 | return $http.post(API_ENDPOINT.URL + '/cliente/listar', |
7 | { nombreOCuit: nombreOCuit, idVendedor: idVendedor }); | 7 | { nombreOCuit: nombreOCuit, idVendedor: idVendedor }); |
8 | }, | 8 | }, |
9 | obtenerClientesPorNombreOCuitByCobrador: function (nombreOCuit, idCobrador) { | 9 | obtenerClientesPorNombreOCuitByCobrador: function (nombreOCuit, idCobrador) { |
10 | return $http.post(API_ENDPOINT.URL + '/cliente/listar', | 10 | return $http.post(API_ENDPOINT.URL + '/cliente/listar', |
11 | { nombreOCuit: nombreOCuit, idCobrador: idCobrador }); | 11 | { nombreOCuit: nombreOCuit, idCobrador: idCobrador }); |
12 | }, | 12 | }, |
13 | obtenerClientesPorNombreOCuit: function (nombreOCuit) { | 13 | obtenerClientesPorNombreOCuit: function (nombreOCuit) { |
14 | return $http.post(API_ENDPOINT.URL + '/cliente/listar', | 14 | return $http.post(API_ENDPOINT.URL + '/cliente/listar', |
15 | { nombreOCuit: nombreOCuit }); | 15 | { nombreOCuit: nombreOCuit }); |
16 | }, | 16 | }, |
17 | obtenerClientePorCodigo: function (cod) { | 17 | obtenerClientePorCodigo: function (cod) { |
18 | return $http.get(API_ENDPOINT.URL + '/cliente-codigo/' + cod ); | 18 | return $http.get(API_ENDPOINT.URL + '/cliente-codigo/' + cod ); |
19 | }, | 19 | }, |
20 | guardarCliente: function (cliente) { | 20 | guardarCliente: function (cliente) { |
21 | return $http.post(API_ENDPOINT.URL + '/cliente', { cliente:cliente }); | 21 | return $http.post(API_ENDPOINT.URL + '/cliente', { cliente: cliente }); |
22 | } | 22 | } |
23 | }; | 23 | }; |
24 | }]); | 24 | }]); |
25 | 25 |