Commit bd2e8eb4ac7f787e24ec126c1d822effec61aac8

Authored by Nicolás Guarnieri
1 parent 09ad22dc6f
Exists in master

fin de refactor de entidad vendedor-cobrador

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
1 angular.module('focaCrearCobranza') 1 angular.module('focaCrearCobranza')
2 .service('focaCrearCobranzaService', ['$http', 'API_ENDPOINT', function($http, API_ENDPOINT) { 2 .service('focaCrearCobranzaService', ['$http', 'API_ENDPOINT', function($http, API_ENDPOINT) {
3 return { 3 return {
4 getNumeroRecibo: function() { 4 getNumeroRecibo: function() {
5 return $http.get(API_ENDPOINT.URL + '/recibo/numero-siguiente'); 5 return $http.get(API_ENDPOINT.URL + '/recibo/numero-siguiente');
6 }, 6 },
7 getCotizacionByIdMoneda: function(id) { 7 getCotizacionByIdMoneda: function(id) {
8 return $http.get(API_ENDPOINT.URL + '/moneda/' + id); 8 return $http.get(API_ENDPOINT.URL + '/moneda/' + id);
9 }, 9 },
10 getUsuario: function(idUsuario) { 10 getUsuario: function(idUsuario) {
11 return $http.get(API_ENDPOINT.URL + '/vendedores/obtener/' + idUsuario); 11 return $http.get(API_ENDPOINT.URL + '/vendedor-cobrador/' + idUsuario);
12 }, 12 },
13 guardarCobranza: function(cobranza) { 13 guardarCobranza: function(cobranza) {
14 return $http.post(API_ENDPOINT.URL + '/recibo/guardar', cobranza); 14 return $http.post(API_ENDPOINT.URL + '/recibo/guardar', cobranza);
15 }, 15 },
16 getBotonera: function() { 16 getBotonera: function() {
17 return [ 17 return [
18 { 18 {
19 label: 'Cliente', 19 label: 'Cliente',
20 image: 'cliente.png' 20 image: 'cliente.png'
21 }, 21 },
22 { 22 {
23 label: 'Cobrador', 23 label: 'Cobrador',
24 image: 'vendedor.png' 24 image: 'vendedor.png'
25 }, 25 },
26 { 26 {
27 label: 'Comprobantes', 27 label: 'Comprobantes',
28 image: 'precios-condiciones.png' 28 image: 'precios-condiciones.png'
29 }, 29 },
30 { 30 {
31 label: 'Cobros', 31 label: 'Cobros',
32 image: 'precios-condiciones.png' 32 image: 'precios-condiciones.png'
33 }, 33 },
34 { 34 {
35 label: 'Moneda', 35 label: 'Moneda',
36 image: 'moneda.png' 36 image: 'moneda.png'
37 } 37 }
38 ]; 38 ];
39 } 39 }
40 }; 40 };
41 }]); 41 }]);
42 42