@openbox/shared-types 0.5.31 → 0.5.33
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.
- package/lib/invoices/Calculation/CalculateSingle/Response.d.ts +4 -4
- package/lib/invoices/Invoices/CreateSingle/Request.d.ts +8 -2
- package/lib/invoices/Invoices/invoices.types.d.ts +4 -3
- package/package.json +1 -1
- package/src/invoices/Calculation/CalculateSingle/Response.ts +4 -4
- package/src/invoices/Invoices/CreateSingle/Request.ts +19 -2
- package/src/invoices/Invoices/invoices.types.ts +4 -3
|
@@ -45,20 +45,20 @@ export type InvoicesCalculationsTotalsItem = {
|
|
|
45
45
|
type?: 'currency' | 'percentage';
|
|
46
46
|
};
|
|
47
47
|
export interface InvoicesCalculationsTotalsResponse {
|
|
48
|
-
totalNoSuj: InvoicesCalculationsTotalsItem;
|
|
49
48
|
totalExenta: InvoicesCalculationsTotalsItem;
|
|
49
|
+
totalNoSuj: InvoicesCalculationsTotalsItem;
|
|
50
50
|
totalGravada: InvoicesCalculationsTotalsItem;
|
|
51
51
|
subTotalVentas: InvoicesCalculationsTotalsItem;
|
|
52
|
-
descuNoSuj: InvoicesCalculationsTotalsItem;
|
|
53
52
|
descuExenta: InvoicesCalculationsTotalsItem;
|
|
53
|
+
descuNoSuj: InvoicesCalculationsTotalsItem;
|
|
54
54
|
descuGravada: InvoicesCalculationsTotalsItem;
|
|
55
|
-
porcentajeDescuento: InvoicesCalculationsTotalsItem;
|
|
56
55
|
totalDescu: InvoicesCalculationsTotalsItem;
|
|
56
|
+
porcentajeDescuento: InvoicesCalculationsTotalsItem;
|
|
57
|
+
totalIva: InvoicesCalculationsTotalsItem;
|
|
57
58
|
subTotal: InvoicesCalculationsTotalsItem;
|
|
58
59
|
ivaRete1: InvoicesCalculationsTotalsItem;
|
|
59
60
|
reteRenta: InvoicesCalculationsTotalsItem;
|
|
60
61
|
montoTotalOperacion: InvoicesCalculationsTotalsItem;
|
|
61
|
-
totalIva: InvoicesCalculationsTotalsItem;
|
|
62
62
|
totalPagar: InvoicesCalculationsTotalsItem;
|
|
63
63
|
}
|
|
64
64
|
export type InvoicesCalculationsCalculateSingleResponse = {
|
|
@@ -13,15 +13,21 @@ export type InvoicesCreateSingleHeader = {
|
|
|
13
13
|
creditFor?: string;
|
|
14
14
|
};
|
|
15
15
|
export type InvoicesCreateSingleTotals = {
|
|
16
|
+
totalExenta: number;
|
|
17
|
+
totalNoSuj: number;
|
|
18
|
+
totalGravada: number;
|
|
16
19
|
subTotalVentas: number;
|
|
20
|
+
descuExenta?: number;
|
|
21
|
+
descuNoSuj?: number;
|
|
22
|
+
descuGravada?: number;
|
|
23
|
+
totalDescu?: number;
|
|
24
|
+
porcentajeDescuento?: number;
|
|
17
25
|
totalIva: number;
|
|
18
26
|
subTotal: number;
|
|
19
27
|
ivaRete1: number;
|
|
20
28
|
ivaPercibido?: number;
|
|
21
29
|
renta5?: number;
|
|
22
30
|
renta10?: number;
|
|
23
|
-
totalExenta: number;
|
|
24
|
-
totalNoSuj: number;
|
|
25
31
|
totalPagar: number;
|
|
26
32
|
};
|
|
27
33
|
export type InvoicesCreateSingleDetail = {
|
|
@@ -24,15 +24,16 @@ export type Invoices = {
|
|
|
24
24
|
customerNrc: string;
|
|
25
25
|
customerGiro: string;
|
|
26
26
|
customerPassport: string;
|
|
27
|
+
totalExenta: number;
|
|
28
|
+
totalNoSuj: number;
|
|
29
|
+
totalGravada: number;
|
|
27
30
|
subTotalVentas: number;
|
|
28
31
|
totalIva: number;
|
|
32
|
+
subTotal: number;
|
|
29
33
|
ivaPercibido: number;
|
|
30
34
|
renta5: number;
|
|
31
35
|
renta10: number;
|
|
32
|
-
subTotal: number;
|
|
33
36
|
ivaRete1: number;
|
|
34
|
-
totalExenta: number;
|
|
35
|
-
totalNoSuj: number;
|
|
36
37
|
totalPagar: number;
|
|
37
38
|
totalPagarText: string;
|
|
38
39
|
origin: string;
|
package/package.json
CHANGED
|
@@ -73,24 +73,24 @@ export type InvoicesCalculationsTotalsItem = {
|
|
|
73
73
|
|
|
74
74
|
export interface InvoicesCalculationsTotalsResponse {
|
|
75
75
|
// Totales antes de impuestos
|
|
76
|
-
totalNoSuj: InvoicesCalculationsTotalsItem // previously ventasNoSujetas
|
|
77
76
|
totalExenta: InvoicesCalculationsTotalsItem // previously ventasExentas
|
|
77
|
+
totalNoSuj: InvoicesCalculationsTotalsItem // previously ventasNoSujetas
|
|
78
78
|
totalGravada: InvoicesCalculationsTotalsItem
|
|
79
79
|
subTotalVentas: InvoicesCalculationsTotalsItem // previously sum
|
|
80
80
|
|
|
81
81
|
// Descuentos
|
|
82
|
-
descuNoSuj: InvoicesCalculationsTotalsItem
|
|
83
82
|
descuExenta: InvoicesCalculationsTotalsItem
|
|
83
|
+
descuNoSuj: InvoicesCalculationsTotalsItem
|
|
84
84
|
descuGravada: InvoicesCalculationsTotalsItem
|
|
85
|
-
porcentajeDescuento: InvoicesCalculationsTotalsItem
|
|
86
85
|
totalDescu: InvoicesCalculationsTotalsItem
|
|
86
|
+
porcentajeDescuento: InvoicesCalculationsTotalsItem
|
|
87
87
|
|
|
88
88
|
// Totales con impuestos
|
|
89
|
+
totalIva: InvoicesCalculationsTotalsItem // previously iva
|
|
89
90
|
subTotal: InvoicesCalculationsTotalsItem // previously subtotal
|
|
90
91
|
ivaRete1: InvoicesCalculationsTotalsItem // previously ivaRetenido
|
|
91
92
|
reteRenta: InvoicesCalculationsTotalsItem
|
|
92
93
|
montoTotalOperacion: InvoicesCalculationsTotalsItem
|
|
93
|
-
totalIva: InvoicesCalculationsTotalsItem // previously iva
|
|
94
94
|
totalPagar: InvoicesCalculationsTotalsItem // previously ventaTotal
|
|
95
95
|
}
|
|
96
96
|
|
|
@@ -15,15 +15,32 @@ export type InvoicesCreateSingleHeader = {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export type InvoicesCreateSingleTotals = {
|
|
18
|
+
// Summary values
|
|
19
|
+
totalExenta: number // previously ventasExentas
|
|
20
|
+
totalNoSuj: number // previously ventasNoSujetas
|
|
21
|
+
totalGravada: number
|
|
18
22
|
subTotalVentas: number // previously sum
|
|
23
|
+
|
|
24
|
+
// Discounts values
|
|
25
|
+
descuExenta?: number
|
|
26
|
+
descuNoSuj?: number
|
|
27
|
+
descuGravada?: number
|
|
28
|
+
totalDescu?: number
|
|
29
|
+
porcentajeDescuento?: number
|
|
30
|
+
|
|
31
|
+
// Tax values
|
|
19
32
|
totalIva: number // previously iva
|
|
33
|
+
|
|
34
|
+
// Subtotal values
|
|
20
35
|
subTotal: number // previously subtotal
|
|
36
|
+
|
|
37
|
+
// Other retention values
|
|
21
38
|
ivaRete1: number // previously ivaRetenido
|
|
22
39
|
ivaPercibido?: number
|
|
23
40
|
renta5?: number
|
|
24
41
|
renta10?: number
|
|
25
|
-
|
|
26
|
-
|
|
42
|
+
|
|
43
|
+
// Total values
|
|
27
44
|
totalPagar: number // previously ventaTotal
|
|
28
45
|
}
|
|
29
46
|
|
|
@@ -25,15 +25,16 @@ export type Invoices = {
|
|
|
25
25
|
customerNrc: string
|
|
26
26
|
customerGiro: string
|
|
27
27
|
customerPassport: string
|
|
28
|
+
totalExenta: number // previously ventasExentas
|
|
29
|
+
totalNoSuj: number // previously ventasNoSujetas
|
|
30
|
+
totalGravada: number
|
|
28
31
|
subTotalVentas: number // previously sum
|
|
29
32
|
totalIva: number // previously iva
|
|
33
|
+
subTotal: number // previously subtotal
|
|
30
34
|
ivaPercibido: number
|
|
31
35
|
renta5: number
|
|
32
36
|
renta10: number
|
|
33
|
-
subTotal: number // previously subtotal
|
|
34
37
|
ivaRete1: number // previously ivaRetenido
|
|
35
|
-
totalExenta: number // previously ventasExentas
|
|
36
|
-
totalNoSuj: number // previously ventasNoSujetas
|
|
37
38
|
totalPagar: number // previously ventaTotal
|
|
38
39
|
totalPagarText: string // previously ventaTotalText
|
|
39
40
|
origin: string
|