Commit 8774501e3d097bbd8f90147a2b75a5afb4353485

Authored by Marcelo Puebla
1 parent 7d84c0a4a0
Exists in master

Codigo indentado.

Showing 1 changed file with 9 additions and 9 deletions   Show diff stats
1 angular.module('focaBusquedaCliente') 1 angular.module('focaBusquedaCliente')
2 .service('focaBusquedaClienteService', ['$http', 'API_ENDPOINT', function($http, API_ENDPOINT) { 2 .service('focaBusquedaClienteService', ['$http', 'API_ENDPOINT', function ($http, API_ENDPOINT) {
3 return { 3 return {
4 obtenerClientesPorNombreOCuitByVendedor: function(nombreOCuit, idVendedor) { 4 obtenerClientesPorNombreOCuitByVendedor: function (nombreOCuit, idVendedor) {
5 return $http.post(API_ENDPOINT.URL + '/cliente/listar', 5 return $http.post(API_ENDPOINT.URL + '/cliente/listar',
6 {nombreOCuit: nombreOCuit, idVendedor: idVendedor}); 6 { nombreOCuit: nombreOCuit, idVendedor: idVendedor });
7 }, 7 },
8 obtenerClientesPorNombreOCuitByCobrador: function(nombreOCuit, idCobrador) { 8 obtenerClientesPorNombreOCuitByCobrador: function (nombreOCuit, idCobrador) {
9 return $http.post(API_ENDPOINT.URL + '/cliente/listar', 9 return $http.post(API_ENDPOINT.URL + '/cliente/listar',
10 {nombreOCuit: nombreOCuit, idCobrador: idCobrador}); 10 { nombreOCuit: nombreOCuit, idCobrador: idCobrador });
11 }, 11 },
12 obtenerClientesPorNombreOCuit: function(nombreOCuit) { 12 obtenerClientesPorNombreOCuit: function (nombreOCuit) {
13 return $http.post(API_ENDPOINT.URL + '/cliente/listar', 13 return $http.post(API_ENDPOINT.URL + '/cliente/listar',
14 {nombreOCuit: nombreOCuit}); 14 { nombreOCuit: nombreOCuit });
15 }, 15 },
16 guardarCliente: function(cliente) { 16 guardarCliente: function (cliente) {
17 return $http.post(API_ENDPOINT.URL + '/cliente', {cliente: cliente}); 17 return $http.post(API_ENDPOINT.URL + '/cliente', { cliente: cliente });
18 } 18 }
19 }; 19 };
20 }]); 20 }]);
21 21