@openbox/shared-types 0.4.87 → 0.4.88
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 +3 -9
- package/lib/invoices/Calculation/CalculateSingle/Response.js +0 -1
- package/lib/invoices/Calculation/CalculateSingle/Response.js.map +1 -1
- package/package.json +1 -1
- package/src/invoices/Calculation/CalculateSingle/Response.ts +18 -17
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InvoicesDocumentTypesEnum } from '../../invoices.enums';
|
|
2
1
|
export type InvoicesCalculationsDetailsResponse = {
|
|
3
2
|
id?: string;
|
|
4
3
|
service: string;
|
|
@@ -41,19 +40,14 @@ export interface InvoicesCalculationsTotalsResponse {
|
|
|
41
40
|
descuGravada: InvoicesCalculationsTotalsItem;
|
|
42
41
|
porcentajeDescuento: InvoicesCalculationsTotalsItem;
|
|
43
42
|
totalDescu: InvoicesCalculationsTotalsItem;
|
|
44
|
-
}
|
|
45
|
-
export interface InvoicesCalculationsTotalsResponseFCF extends InvoicesCalculationsTotalsResponse {
|
|
46
43
|
subTotal: InvoicesCalculationsTotalsItem;
|
|
47
44
|
ivaRete1: InvoicesCalculationsTotalsItem;
|
|
48
45
|
reteRenta: InvoicesCalculationsTotalsItem;
|
|
49
46
|
montoTotalOperacion: InvoicesCalculationsTotalsItem;
|
|
50
47
|
totalPagar: InvoicesCalculationsTotalsItem;
|
|
48
|
+
totalIva: InvoicesCalculationsTotalsItem;
|
|
51
49
|
}
|
|
52
|
-
type
|
|
53
|
-
[InvoicesDocumentTypesEnum.FCF]: InvoicesCalculationsTotalsResponseFCF;
|
|
54
|
-
};
|
|
55
|
-
export type InvoicesCalculationsCalculateSingleResponse<T extends keyof TotalsByType> = {
|
|
50
|
+
export type InvoicesCalculationsCalculateSingleResponse = {
|
|
56
51
|
details: InvoicesCalculationsDetailsResponse[];
|
|
57
|
-
totals:
|
|
52
|
+
totals: InvoicesCalculationsTotalsResponse;
|
|
58
53
|
};
|
|
59
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/invoices/Calculation/CalculateSingle/Response.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/invoices/Calculation/CalculateSingle/Response.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { InvoicesDocumentTypesEnum } from '../../invoices.enums'
|
|
2
|
-
|
|
3
1
|
export type InvoicesCalculationsDetailsResponse = {
|
|
4
2
|
// Returns the same information received
|
|
5
3
|
id?: string
|
|
@@ -39,10 +37,23 @@ export type InvoicesCalculationsTotalsItem = {
|
|
|
39
37
|
show: true | false
|
|
40
38
|
}
|
|
41
39
|
|
|
40
|
+
// export type InvoicesCalculationsTotalsResponse = {
|
|
41
|
+
// sum: InvoicesCalculationsTotalsItem
|
|
42
|
+
// iva: InvoicesCalculationsTotalsItem
|
|
43
|
+
// subtotal: InvoicesCalculationsTotalsItem
|
|
44
|
+
// ivaRetenido: InvoicesCalculationsTotalsItem
|
|
45
|
+
// ivaPercibido: InvoicesCalculationsTotalsItem
|
|
46
|
+
// renta5: InvoicesCalculationsTotalsItem
|
|
47
|
+
// renta10: InvoicesCalculationsTotalsItem
|
|
48
|
+
// ventasExentas: InvoicesCalculationsTotalsItem
|
|
49
|
+
// ventasNoSujetas: InvoicesCalculationsTotalsItem
|
|
50
|
+
// ventaTotal: InvoicesCalculationsTotalsItem
|
|
51
|
+
// }
|
|
52
|
+
|
|
42
53
|
export interface InvoicesCalculationsTotalsResponse {
|
|
43
54
|
// Totales antes de impuestos
|
|
44
|
-
totalNoSuj: InvoicesCalculationsTotalsItem
|
|
45
|
-
totalExenta: InvoicesCalculationsTotalsItem
|
|
55
|
+
totalNoSuj: InvoicesCalculationsTotalsItem // ventasNoSujetas
|
|
56
|
+
totalExenta: InvoicesCalculationsTotalsItem // ventasExentas
|
|
46
57
|
totalGravada: InvoicesCalculationsTotalsItem
|
|
47
58
|
subTotalVentas: InvoicesCalculationsTotalsItem
|
|
48
59
|
|
|
@@ -52,27 +63,17 @@ export interface InvoicesCalculationsTotalsResponse {
|
|
|
52
63
|
descuGravada: InvoicesCalculationsTotalsItem
|
|
53
64
|
porcentajeDescuento: InvoicesCalculationsTotalsItem
|
|
54
65
|
totalDescu: InvoicesCalculationsTotalsItem
|
|
55
|
-
}
|
|
56
66
|
|
|
57
|
-
export interface InvoicesCalculationsTotalsResponseFCF extends InvoicesCalculationsTotalsResponse {
|
|
58
67
|
// Totales con impuestos
|
|
59
68
|
subTotal: InvoicesCalculationsTotalsItem
|
|
60
69
|
ivaRete1: InvoicesCalculationsTotalsItem
|
|
61
70
|
reteRenta: InvoicesCalculationsTotalsItem
|
|
62
71
|
montoTotalOperacion: InvoicesCalculationsTotalsItem
|
|
63
72
|
totalPagar: InvoicesCalculationsTotalsItem
|
|
73
|
+
totalIva: InvoicesCalculationsTotalsItem // iva
|
|
64
74
|
}
|
|
65
75
|
|
|
66
|
-
type
|
|
67
|
-
[InvoicesDocumentTypesEnum.FCF]: InvoicesCalculationsTotalsResponseFCF
|
|
68
|
-
// [InvoicesDocumentTypesEnum.CCF]: InvoicesCalculationsTotalsResponse // si no hay campos extra
|
|
69
|
-
// [InvoicesDocumentTypesEnum.FEX]: InvoicesCalculationsTotalsResponse // etc...
|
|
70
|
-
// [InvoicesDocumentTypesEnum.NC]: InvoicesCalculationsTotalsResponse
|
|
71
|
-
// [InvoicesDocumentTypesEnum.ND]: InvoicesCalculationsTotalsResponse
|
|
72
|
-
// [InvoicesDocumentTypesEnum.FC]: InvoicesCalculationsTotalsResponse
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export type InvoicesCalculationsCalculateSingleResponse<T extends keyof TotalsByType> = {
|
|
76
|
+
export type InvoicesCalculationsCalculateSingleResponse = {
|
|
76
77
|
details: InvoicesCalculationsDetailsResponse[]
|
|
77
|
-
totals:
|
|
78
|
+
totals: InvoicesCalculationsTotalsResponse
|
|
78
79
|
}
|