Commit 2c2517be1b75847130dab8eabafd1a97ae85eaf0

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'develop'

Cambio de icono

See merge request !71
1 angular.module('focaCrearCobranza') 1 angular.module('focaCrearCobranza')
2 .service('focaCrearCobranzaService', ['$http', 'API_ENDPOINT', 2 .service('focaCrearCobranzaService', ['$http', 'API_ENDPOINT',
3 function($http, API_ENDPOINT) { 3 function($http, API_ENDPOINT) {
4 return { 4 return {
5 getNumeroRecibo: function() { 5 getNumeroRecibo: function() {
6 return $http.get(API_ENDPOINT.URL + '/recibo/numero-siguiente'); 6 return $http.get(API_ENDPOINT.URL + '/recibo/numero-siguiente');
7 }, 7 },
8 getCotizacionByIdMoneda: function(id) { 8 getCotizacionByIdMoneda: function(id) {
9 return $http.get(API_ENDPOINT.URL + '/moneda/' + id); 9 return $http.get(API_ENDPOINT.URL + '/moneda/' + id);
10 }, 10 },
11 guardarCobranza: function(cobranza) { 11 guardarCobranza: function(cobranza) {
12 return $http.post(API_ENDPOINT.URL + '/recibo/guardar', cobranza); 12 return $http.post(API_ENDPOINT.URL + '/recibo/guardar', cobranza);
13 }, 13 },
14 getCobradorById: function(id) { 14 getCobradorById: function(id) {
15 return $http.get(API_ENDPOINT.URL + '/vendedor-cobrador/' + id); 15 return $http.get(API_ENDPOINT.URL + '/vendedor-cobrador/' + id);
16 }, 16 },
17 actualizarEmail: function(mail, idCliente) { 17 actualizarEmail: function(mail, idCliente) {
18 return $http.post(API_ENDPOINT.URL + '/cliente/update/email', 18 return $http.post(API_ENDPOINT.URL + '/cliente/update/email',
19 {mail: mail, id: idCliente}); 19 {mail: mail, id: idCliente});
20 }, 20 },
21 getBotonera: function() { 21 getBotonera: function() {
22 var result = [ 22 var result = [
23 { 23 {
24 label: 'Cliente', 24 label: 'Cliente',
25 image: 'cliente.png' 25 image: 'cliente.png'
26 }, 26 },
27 { 27 {
28 label: 'Comprobantes', 28 label: 'Comprobantes',
29 image: 'comprobante.png' 29 image: 'comprobante.png'
30 }, 30 },
31 { 31 {
32 label: 'Cobros', 32 label: 'Cobros',
33 image: 'cobros.png' 33 image: 'cobros.png'
34 }, 34 },
35 { 35 {
36 label: 'Moneda', 36 label: 'Moneda',
37 image: 'moneda.png' 37 image: 'moneda.png'
38 }, 38 },
39 { 39 {
40 label: 'Resumen de cuenta', 40 label: 'Resumen de cuenta',
41 image: 'moneda.png' 41 image: 'resumen.png'
42 } 42 }
43 ]; 43 ];
44 return result; 44 return result;
45 } 45 }
46 }; 46 };
47 }]); 47 }]);
48 48