Commit 0fb22da469f03aa04c7cf6425c3cea056557d167
1 parent
c21402d5bc
Exists in
master
nuevas imgs botonera
Showing
1 changed file
with
3 additions
and
3 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 [ | 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: 'cobrador.png' |
25 | }, | 25 | }, |
26 | { | 26 | { |
27 | label: 'Comprobantes', | 27 | label: 'Comprobantes', |
28 | image: 'precios-condiciones.png' | 28 | image: 'comprobante.png' |
29 | }, | 29 | }, |
30 | { | 30 | { |
31 | label: 'Cobros', | 31 | label: 'Cobros', |
32 | image: 'precios-condiciones.png' | 32 | image: 'cobros.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 |