Commit e10322e0797ed2b8ba1e0214ec82e815bbd6e513
1 parent
1e9c24f2d0
Exists in
master
botones con imagenes
Showing
1 changed file
with
22 additions
and
1 deletions
Show diff stats
src/js/service.js
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 + '/vendedores/obtener/' + 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 ['Cliente', 'Cobrador', 'Comprobantes', 'Cobros', 'Moneda']; | 17 | return [ |
18 | { | ||
19 | label: 'Cliente', | ||
20 | image: 'cliente.png' | ||
21 | }, | ||
22 | { | ||
23 | label: 'Cobrador', | ||
24 | image: 'vendedor.png' | ||
25 | }, | ||
26 | { | ||
27 | label: 'Comprobantes', | ||
28 | image: 'precios-condiciones.png' | ||
29 | }, | ||
30 | { | ||
31 | label: 'Cobros', | ||
32 | image: 'precios-condiciones.png' | ||
33 | }, | ||
34 | { | ||
35 | label: 'Moneda', | ||
36 | image: 'moneda.png' | ||
37 | } | ||
38 | ]; | ||
18 | } | 39 | } |
19 | }; | 40 | }; |
20 | }]); | 41 | }]); |
21 | 42 |