-
Notifications
You must be signed in to change notification settings - Fork 2
/
fiscalStructures.h
78 lines (67 loc) · 1.17 KB
/
fiscalStructures.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*/
* Fiscal parser primitive structures
/*/
typedef enum {
// 1 Is prefix of Hasar
FIS_MODEL_H615 = 1615,
FIS_MODEL_H715 = 1715,
FIS_MODEL_H320 = 1320,
/*/
* Agregar un nuevo codigo interno unico del modelo.
/*/
FIS_MODEL_H441 = 1441
} FIS_MODELS;
typedef enum {
FIS_TICKET = 1,
FIS_REPORTE_X = 2,
FIS_REPORTE_Z = 3,
FIS_RESUMEN = 4
} FIS_ACTION;
typedef enum {
FACTURA_B = 1,
FACTURA_A = 2
} FIS_TICKET_TYPE;
typedef enum {
CUIT = 1,
CUIL = 2
} FIS_ID_TYPE;
typedef enum {
RESPONSABLE_INSCRIPTO = 1,
MONOTRIBUTISTA = 2,
CONSUMIDOR_FINAL = 3
} FIS_REGIMEN;
typedef struct {
FIS_MODELS model;
} FisPrinter;
typedef struct {
char title[50];
float price;
float quantity;
float iva;
float discount;
} ItemTicket;
typedef struct {
char name[100];
char address[100];
char id[20];
FIS_ID_TYPE idType;
FIS_REGIMEN regimen;
} ClientTicket;
typedef struct {
char text[60];
int itemsCount;
float discount;
FIS_TICKET_TYPE type;
ItemTicket *items;
ClientTicket client;
} Ticket;
typedef struct {
char from[6];
char to[6];
} Report;
typedef struct {
FisPrinter printer;
FIS_ACTION action;
Ticket ticket;
Report report;
} FisCommand;