Commit 8774501e3d097bbd8f90147a2b75a5afb4353485
1 parent
7d84c0a4a0
Exists in
master
and in
1 other branch
Codigo indentado.
Showing
1 changed file
with
9 additions
and
9 deletions
Show diff stats
src/js/service.js
| 1 | 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 | 3 | return { |
| 4 | - obtenerClientesPorNombreOCuitByVendedor: function(nombreOCuit, idVendedor) { | |
| 4 | + obtenerClientesPorNombreOCuitByVendedor: function (nombreOCuit, idVendedor) { | |
| 5 | 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 | 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 | 13 | return $http.post(API_ENDPOINT.URL + '/cliente/listar', |
| 14 | - {nombreOCuit: nombreOCuit}); | |
| 14 | + { nombreOCuit: nombreOCuit }); | |
| 15 | 15 | }, |
| 16 | - guardarCliente: function(cliente) { | |
| 17 | - return $http.post(API_ENDPOINT.URL + '/cliente', {cliente: cliente}); | |
| 16 | + guardarCliente: function (cliente) { | |
| 17 | + return $http.post(API_ENDPOINT.URL + '/cliente', { cliente: cliente }); | |
| 18 | 18 | } |
| 19 | 19 | }; |
| 20 | 20 | }]); |