angular.module('focaCrearFactura') .service('crearFacturaService', ['$http', 'API_ENDPOINT', function ($http, API_ENDPOINT) { var route = API_ENDPOINT.URL; return { guardarFactura: function (factura) { return $http.post(route + '/factura/guardar', factura); }, getParametros: function () { return $http.get(API_ENDPOINT.URL + '/parametros/factura'); }, validarPlanillaVendedor: function (idVendedor) { return $http.get(route + '/turnos/validar-planilla/' + idVendedor); }, getProductosByPlanilla: function (numeroPlanilla) { return $http.get(route + '/turnos/productos/' + numeroPlanilla); }, setearDespachoOcupado: function (parametros) { return $http.post(route + '/turnos/despacho-en-uso', parametros); }, setearDespachoDesocupado: function (parametros) { return $http.post(route + '/turnos/depacho-sin-uso', parametros); }, getResumenCuenta: function (idCliente) { return $http.get('http://10.231.45.194:9900' + '/cliente/resumen-cuenta/' + idCliente); }, getBotonera: function () { return [ { label: 'Vendedor', image: 'vendedor.png' }, { label: 'Cliente', image: 'cliente.png' }, { label: 'Moneda', image: 'moneda.png' }, { label: 'Observaciones', image: 'botonObservaciones.png' } ]; } }; } ]);