@openbox/shared-types 0.2.80 → 0.2.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
type InvoicesDocumentsLayoutHelpers = {
|
|
1
|
+
export type InvoicesDocumentsLayoutHelpers = {
|
|
2
2
|
x: number;
|
|
3
|
-
y
|
|
4
|
-
l
|
|
3
|
+
y?: number;
|
|
4
|
+
l?: number;
|
|
5
5
|
show: true | false;
|
|
6
|
+
type: string;
|
|
7
|
+
value: string;
|
|
6
8
|
};
|
|
7
9
|
type InvoicesDocumentsLayoutResolution = {
|
|
8
10
|
width: number;
|
|
@@ -10,134 +12,44 @@ type InvoicesDocumentsLayoutResolution = {
|
|
|
10
12
|
};
|
|
11
13
|
type InvoicesDocumentsLayoutHeader = {
|
|
12
14
|
fontSize: number;
|
|
13
|
-
authorization: InvoicesDocumentsLayoutHelpers
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
address1: InvoicesDocumentsLayoutHelpers & {
|
|
30
|
-
type: 'text';
|
|
31
|
-
value: 'Direccion 1';
|
|
32
|
-
};
|
|
33
|
-
address2: InvoicesDocumentsLayoutHelpers & {
|
|
34
|
-
type: 'text';
|
|
35
|
-
value: 'Direccion 2';
|
|
36
|
-
};
|
|
37
|
-
nrc: InvoicesDocumentsLayoutHelpers & {
|
|
38
|
-
type: 'text';
|
|
39
|
-
value: 'NRC';
|
|
40
|
-
};
|
|
41
|
-
nit: InvoicesDocumentsLayoutHelpers & {
|
|
42
|
-
type: 'text';
|
|
43
|
-
value: 'NIT';
|
|
44
|
-
};
|
|
45
|
-
dui: InvoicesDocumentsLayoutHelpers & {
|
|
46
|
-
type: 'text';
|
|
47
|
-
value: 'DUI';
|
|
48
|
-
};
|
|
49
|
-
country: InvoicesDocumentsLayoutHelpers & {
|
|
50
|
-
type: 'text';
|
|
51
|
-
value: 'Pais';
|
|
52
|
-
};
|
|
53
|
-
state: InvoicesDocumentsLayoutHelpers & {
|
|
54
|
-
type: 'text';
|
|
55
|
-
value: 'Estado';
|
|
56
|
-
};
|
|
57
|
-
city: InvoicesDocumentsLayoutHelpers & {
|
|
58
|
-
type: 'text';
|
|
59
|
-
value: 'Ciudad';
|
|
60
|
-
};
|
|
61
|
-
giro: InvoicesDocumentsLayoutHelpers & {
|
|
62
|
-
type: 'text';
|
|
63
|
-
value: 'Giro';
|
|
64
|
-
};
|
|
65
|
-
seller: InvoicesDocumentsLayoutHelpers & {
|
|
66
|
-
type: 'text';
|
|
67
|
-
value: 'Venta a cuenta de';
|
|
68
|
-
};
|
|
69
|
-
paymentCondition: InvoicesDocumentsLayoutHelpers & {
|
|
70
|
-
type: 'text';
|
|
71
|
-
value: 'Condicion de pago';
|
|
72
|
-
};
|
|
15
|
+
authorization: InvoicesDocumentsLayoutHelpers;
|
|
16
|
+
sequence: InvoicesDocumentsLayoutHelpers;
|
|
17
|
+
date: InvoicesDocumentsLayoutHelpers;
|
|
18
|
+
customer: InvoicesDocumentsLayoutHelpers;
|
|
19
|
+
address1: InvoicesDocumentsLayoutHelpers;
|
|
20
|
+
address2: InvoicesDocumentsLayoutHelpers;
|
|
21
|
+
nrc: InvoicesDocumentsLayoutHelpers;
|
|
22
|
+
nit: InvoicesDocumentsLayoutHelpers;
|
|
23
|
+
dui: InvoicesDocumentsLayoutHelpers;
|
|
24
|
+
country: InvoicesDocumentsLayoutHelpers;
|
|
25
|
+
state: InvoicesDocumentsLayoutHelpers;
|
|
26
|
+
city: InvoicesDocumentsLayoutHelpers;
|
|
27
|
+
giro: InvoicesDocumentsLayoutHelpers;
|
|
28
|
+
seller: InvoicesDocumentsLayoutHelpers;
|
|
29
|
+
paymentCondition: InvoicesDocumentsLayoutHelpers;
|
|
73
30
|
};
|
|
74
31
|
type InvoicesDocumentsLayoutDetails = {
|
|
75
32
|
fontSize: number;
|
|
76
33
|
height: number;
|
|
77
34
|
y: number;
|
|
78
|
-
quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
value: 'Descripción';
|
|
85
|
-
};
|
|
86
|
-
price: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
87
|
-
type: 'money';
|
|
88
|
-
value: 'Precio unitario';
|
|
89
|
-
};
|
|
90
|
-
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
91
|
-
type: 'money';
|
|
92
|
-
value: 'Venta no sujeta';
|
|
93
|
-
};
|
|
94
|
-
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
95
|
-
type: 'money';
|
|
96
|
-
value: 'Venta exenta';
|
|
97
|
-
};
|
|
98
|
-
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
99
|
-
type: 'money';
|
|
100
|
-
value: 'Venta gravada';
|
|
101
|
-
};
|
|
35
|
+
quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
36
|
+
description: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
37
|
+
price: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
38
|
+
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
39
|
+
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
40
|
+
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
102
41
|
};
|
|
103
42
|
type InvoicesDocumentsLayoutTotals = {
|
|
104
43
|
fontSize: number;
|
|
105
|
-
sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
type: 'money';
|
|
115
|
-
value: 'Subtotal';
|
|
116
|
-
};
|
|
117
|
-
retenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
118
|
-
type: 'money';
|
|
119
|
-
value: 'IVA Retenido';
|
|
120
|
-
};
|
|
121
|
-
percibido: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
122
|
-
type: 'money';
|
|
123
|
-
value: 'IVA Percibido';
|
|
124
|
-
};
|
|
125
|
-
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
126
|
-
type: 'money';
|
|
127
|
-
value: 'Venta no sujeta';
|
|
128
|
-
};
|
|
129
|
-
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
130
|
-
type: 'money';
|
|
131
|
-
value: 'Venta exenta';
|
|
132
|
-
};
|
|
133
|
-
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
134
|
-
type: 'money';
|
|
135
|
-
value: 'Venta gravada';
|
|
136
|
-
};
|
|
137
|
-
vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
138
|
-
type: 'text';
|
|
139
|
-
value: 'Venta total (texto)';
|
|
140
|
-
};
|
|
44
|
+
sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
45
|
+
taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
46
|
+
subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
47
|
+
retenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
48
|
+
percibido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
49
|
+
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
50
|
+
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
51
|
+
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
52
|
+
vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
141
53
|
};
|
|
142
54
|
export type InvoicesDocumentsLayout = {
|
|
143
55
|
resolution: InvoicesDocumentsLayoutResolution;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.type';
|
|
2
|
+
import { InvoicesDocumentsLayout } from './Layout';
|
|
2
3
|
export type InvoicesDocuments = {
|
|
3
4
|
id: string;
|
|
4
5
|
authorization?: string;
|
|
@@ -9,4 +10,5 @@ export type InvoicesDocuments = {
|
|
|
9
10
|
used: boolean;
|
|
10
11
|
isCurrentDocument: boolean;
|
|
11
12
|
documentType: Pick<InvoicesDocumentTypes, 'id' | 'name' | 'code'>;
|
|
13
|
+
layout: InvoicesDocumentsLayout;
|
|
12
14
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
type InvoicesDocumentsLayoutHelpers = {
|
|
1
|
+
export type InvoicesDocumentsLayoutHelpers = {
|
|
2
2
|
x: number
|
|
3
|
-
y
|
|
4
|
-
l
|
|
3
|
+
y?: number
|
|
4
|
+
l?: number
|
|
5
5
|
show: true | false
|
|
6
|
+
type: string
|
|
7
|
+
value: string
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
type InvoicesDocumentsLayoutResolution = {
|
|
@@ -12,97 +14,46 @@ type InvoicesDocumentsLayoutResolution = {
|
|
|
12
14
|
|
|
13
15
|
type InvoicesDocumentsLayoutHeader = {
|
|
14
16
|
fontSize: number
|
|
15
|
-
authorization: InvoicesDocumentsLayoutHelpers
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
giro: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Giro' }
|
|
31
|
-
seller: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Venta a cuenta de' }
|
|
32
|
-
paymentCondition: InvoicesDocumentsLayoutHelpers & {
|
|
33
|
-
type: 'text'
|
|
34
|
-
value: 'Condicion de pago'
|
|
35
|
-
}
|
|
17
|
+
authorization: InvoicesDocumentsLayoutHelpers
|
|
18
|
+
sequence: InvoicesDocumentsLayoutHelpers
|
|
19
|
+
date: InvoicesDocumentsLayoutHelpers
|
|
20
|
+
customer: InvoicesDocumentsLayoutHelpers
|
|
21
|
+
address1: InvoicesDocumentsLayoutHelpers
|
|
22
|
+
address2: InvoicesDocumentsLayoutHelpers
|
|
23
|
+
nrc: InvoicesDocumentsLayoutHelpers
|
|
24
|
+
nit: InvoicesDocumentsLayoutHelpers
|
|
25
|
+
dui: InvoicesDocumentsLayoutHelpers
|
|
26
|
+
country: InvoicesDocumentsLayoutHelpers
|
|
27
|
+
state: InvoicesDocumentsLayoutHelpers
|
|
28
|
+
city: InvoicesDocumentsLayoutHelpers
|
|
29
|
+
giro: InvoicesDocumentsLayoutHelpers
|
|
30
|
+
seller: InvoicesDocumentsLayoutHelpers
|
|
31
|
+
paymentCondition: InvoicesDocumentsLayoutHelpers
|
|
36
32
|
}
|
|
37
33
|
|
|
38
34
|
type InvoicesDocumentsLayoutDetails = {
|
|
39
35
|
fontSize: number
|
|
40
36
|
height: number
|
|
41
37
|
y: number
|
|
42
|
-
quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
value: 'Descripción'
|
|
49
|
-
}
|
|
50
|
-
price: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
51
|
-
type: 'money'
|
|
52
|
-
value: 'Precio unitario'
|
|
53
|
-
}
|
|
54
|
-
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
55
|
-
type: 'money'
|
|
56
|
-
value: 'Venta no sujeta'
|
|
57
|
-
}
|
|
58
|
-
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
59
|
-
type: 'money'
|
|
60
|
-
value: 'Venta exenta'
|
|
61
|
-
}
|
|
62
|
-
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
63
|
-
type: 'money'
|
|
64
|
-
value: 'Venta gravada'
|
|
65
|
-
}
|
|
38
|
+
quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
|
|
39
|
+
description: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
|
|
40
|
+
price: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
|
|
41
|
+
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
|
|
42
|
+
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
|
|
43
|
+
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
|
|
66
44
|
}
|
|
67
45
|
|
|
68
46
|
type InvoicesDocumentsLayoutTotals = {
|
|
69
47
|
fontSize: number
|
|
70
|
-
sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
type: 'money'
|
|
80
|
-
value: 'Subtotal'
|
|
81
|
-
}
|
|
82
|
-
retenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
83
|
-
type: 'money'
|
|
84
|
-
value: 'IVA Retenido'
|
|
85
|
-
}
|
|
86
|
-
percibido: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
87
|
-
type: 'money'
|
|
88
|
-
value: 'IVA Percibido'
|
|
89
|
-
}
|
|
90
|
-
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
91
|
-
type: 'money'
|
|
92
|
-
value: 'Venta no sujeta'
|
|
93
|
-
}
|
|
94
|
-
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
95
|
-
type: 'money'
|
|
96
|
-
value: 'Venta exenta'
|
|
97
|
-
}
|
|
98
|
-
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
99
|
-
type: 'money'
|
|
100
|
-
value: 'Venta gravada'
|
|
101
|
-
}
|
|
102
|
-
vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
103
|
-
type: 'text'
|
|
104
|
-
value: 'Venta total (texto)'
|
|
105
|
-
}
|
|
48
|
+
sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
49
|
+
taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
50
|
+
subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
51
|
+
retenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
52
|
+
percibido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
53
|
+
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
54
|
+
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
55
|
+
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
56
|
+
vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
106
57
|
}
|
|
107
58
|
|
|
108
59
|
export type InvoicesDocumentsLayout = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.type'
|
|
2
|
+
import { InvoicesDocumentsLayout } from './Layout'
|
|
2
3
|
|
|
3
4
|
export type InvoicesDocuments = {
|
|
4
5
|
id: string
|
|
@@ -10,4 +11,5 @@ export type InvoicesDocuments = {
|
|
|
10
11
|
used: boolean
|
|
11
12
|
isCurrentDocument: boolean
|
|
12
13
|
documentType: Pick<InvoicesDocumentTypes, 'id' | 'name' | 'code'>
|
|
14
|
+
layout: InvoicesDocumentsLayout
|
|
13
15
|
}
|