diff --git a/src/app/services/impresora.service.spec.ts b/src/app/services/impresora.service.spec.ts new file mode 100644 index 0000000..a291fdf --- /dev/null +++ b/src/app/services/impresora.service.spec.ts @@ -0,0 +1,12 @@ +import { TestBed } from '@angular/core/testing'; + +import { ImpresoraService } from './impresora.service'; + +describe('ImpresoraService', () => { + beforeEach(() => TestBed.configureTestingModule({})); + + it('should be created', () => { + const service: ImpresoraService = TestBed.get(ImpresoraService); + expect(service).toBeTruthy(); + }); +}); diff --git a/src/app/services/impresora.service.ts b/src/app/services/impresora.service.ts new file mode 100644 index 0000000..fac66bb --- /dev/null +++ b/src/app/services/impresora.service.ts @@ -0,0 +1,22 @@ +import { Injectable } from '@angular/core'; +import { appSettings } from 'src/etc/AppSettings'; +import { HttpClient } from '@angular/common/http'; +import { Observable } from 'rxjs/internal/Observable'; + +@Injectable({ + providedIn: 'root' +}) +export class ImpresoraService { + + private apiAutoservicio = appSettings.apiUrl; + + constructor( + private http: HttpClient, + ) { } + + getAll(): Observable { + + return this.http.get(`${this.apiAutoservicio}/get/impresoras`); + } + +} diff --git a/src/app/services/punto-venta.service.spec.ts b/src/app/services/punto-venta.service.spec.ts new file mode 100644 index 0000000..551a263 --- /dev/null +++ b/src/app/services/punto-venta.service.spec.ts @@ -0,0 +1,12 @@ +import { TestBed } from '@angular/core/testing'; + +import { PuntoVentaService } from './punto-venta.service'; + +describe('PuntoVentaService', () => { + beforeEach(() => TestBed.configureTestingModule({})); + + it('should be created', () => { + const service: PuntoVentaService = TestBed.get(PuntoVentaService); + expect(service).toBeTruthy(); + }); +}); diff --git a/src/app/services/punto-venta.service.ts b/src/app/services/punto-venta.service.ts new file mode 100644 index 0000000..d43d7cc --- /dev/null +++ b/src/app/services/punto-venta.service.ts @@ -0,0 +1,32 @@ +import { Injectable } from '@angular/core'; +import { Observable } from 'rxjs/internal/Observable'; +import { appSettings } from 'src/etc/AppSettings'; +import { HttpClient } from '@angular/common/http'; + +@Injectable({ + providedIn: 'root' +}) +export class PuntoVentaService { + + private apiAutoservico = appSettings.apiUrl; + + constructor( + private http: HttpClient + ) { } + + getAll(): Observable { + + return this.http.get(`${this.apiAutoservico}/get/puntos-venta`); + } + + getByID(id: number): Observable { + + return this.http.get(`${this.apiAutoservico}/get/punto-venta/${id}`); + } + + getVendedor(filter: any = {}): Observable { + + return this.http.get(`${this.apiAutoservico}/get/vendedor/${JSON.stringify(filter)}`); + } + +} diff --git a/src/app/wrappers/impresora.ts b/src/app/wrappers/impresora.ts new file mode 100644 index 0000000..a7c2f9e --- /dev/null +++ b/src/app/wrappers/impresora.ts @@ -0,0 +1,66 @@ +export interface Impresora { + PVE: number; + TIP: string; + MAR: string; + DES: string; + IMP: string; + PVM: number; + COM: string; + LPT: string; + LRE: string; + CAJ: boolean; + NUI: string; + EFA: boolean; + NCA: number; + OPE: number; + EJE: number; + IDF: number; + POS: number; + UCZ: Date; + MIH: number; + EPS: boolean; + BAU: number; + RSP: string; + ERR: string; + HAC: boolean; + CAI: string; + FCAI: Date; + PNFF: boolean; + PVERS: boolean; + NOIMPCYNC: boolean; + H23L_CC: number; + SINCRO: boolean; + COM_CTRLM: number; + TCAE: boolean; + USA_FT_NC: boolean; + RNFH: boolean; + NDF: boolean; + MAX_ITEM: string; + CTRL_NUM: boolean; + MULTI_PV: boolean; + MOD_SLIP: boolean; + NCC_FISCAL: boolean; + CT_FISCAL: boolean; + CPI: number; + E_HD: string; + C_HD: string; + ITEM_EXT_PR4: boolean; + BMAIL: boolean; + RE_PDF_ELEC: boolean; + LX300_DIR3: number; + TIP_AP_CAJ: number; + RNREU: boolean; + PUERTO: number; + IP: string; + AUTORIZA_CAE_MANUAL: boolean; + MUE_FEV_IMP: boolean; + FAC_LX300: boolean; + IMAGEN_FE_A: string; + IMAGEN_FE_B: string; + CanItemRem: number; + TCAEA: boolean; + CaCoRe: number; + RCUYT: boolean; + CanItemFE: string; + ImprimeElecTermica: boolean; +} diff --git a/src/app/wrappers/puntoVenta.ts b/src/app/wrappers/puntoVenta.ts new file mode 100644 index 0000000..30a108f --- /dev/null +++ b/src/app/wrappers/puntoVenta.ts @@ -0,0 +1,41 @@ +export interface PuntoVenta { + ID: number; + NOM: string; + DES: string; + LUG: string; + EST: string; + MAR: string; + NSE: string; + MOD: string; + MEM: number; + OBS: string; + PVE: number; + EJE: number; + OPE: number; + IDC: boolean; + TER_TOUCH: boolean; + ARQ_PENDIENTE: boolean; + FAT: boolean; + COM_VISOR: number; + TIPO_VISOR: number; + DireccionNavegador: string; + ES_FE: boolean; + LECTORHUELLA_TER: boolean; + MK_TIPOTRX: string; + INTERFAZ_TC: number; + PUERTO_PRISMA: string; + PVOS: boolean; + RutaExp: string; + ImpRenParc: boolean; + PUERTO_POSNET: string; + EXTRACASH: boolean; + FIRMA_DIGITAL: boolean; + contactless: boolean; + MensajeExtraCash: boolean; + PLA: number; + FON: number; + PVE_CI: number; + PVE_RE: number; + GRP_PLA: number; + ImpRecCob: boolean; +}