@openbox/shared-types 0.5.28 → 0.5.30

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.
@@ -12,16 +12,16 @@ export type InvoicesCreateSingleHeader = {
12
12
  creditFor?: string;
13
13
  };
14
14
  export type InvoicesCreateSingleTotals = {
15
- sum: number;
16
- iva: number;
17
- subtotal: number;
18
- ivaRetenido: number;
15
+ subTotalVentas: number;
16
+ totalIva: number;
17
+ subTotal: number;
18
+ ivaRete1: number;
19
19
  ivaPercibido: number;
20
20
  renta5: number;
21
21
  renta10: number;
22
- ventasExentas: number;
23
- ventasNoSujetas: number;
24
- ventaTotal: number;
22
+ totalExenta: number;
23
+ totalNoSuj: number;
24
+ totalPagar: number;
25
25
  };
26
26
  export type InvoicesCreateSingleDetail = {
27
27
  service: string;
@@ -24,17 +24,17 @@ export type Invoices = {
24
24
  customerNrc: string;
25
25
  customerGiro: string;
26
26
  customerPassport: string;
27
- sum: number;
28
- iva: number;
27
+ subTotalVentas: number;
28
+ totalIva: number;
29
29
  ivaPercibido: number;
30
30
  renta5: number;
31
31
  renta10: number;
32
- subtotal: number;
33
- ivaRetenido: number;
34
- ventasExentas: number;
35
- ventasNoSujetas: number;
36
- ventaTotal: number;
37
- ventaTotalText: string;
32
+ subTotal: number;
33
+ ivaRete1: number;
34
+ totalExenta: number;
35
+ totalNoSuj: number;
36
+ totalPagar: number;
37
+ totalPagarText: string;
38
38
  origin: string;
39
39
  invoiceDate: Date;
40
40
  paymentConditionName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.5.28",
3
+ "version": "0.5.30",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -73,10 +73,10 @@ export type InvoicesCalculationsTotalsItem = {
73
73
 
74
74
  export interface InvoicesCalculationsTotalsResponse {
75
75
  // Totales antes de impuestos
76
- totalNoSuj: InvoicesCalculationsTotalsItem // ventasNoSujetas
77
- totalExenta: InvoicesCalculationsTotalsItem // ventasExentas
76
+ totalNoSuj: InvoicesCalculationsTotalsItem // previously ventasNoSujetas
77
+ totalExenta: InvoicesCalculationsTotalsItem // previously ventasExentas
78
78
  totalGravada: InvoicesCalculationsTotalsItem
79
- subTotalVentas: InvoicesCalculationsTotalsItem // sum
79
+ subTotalVentas: InvoicesCalculationsTotalsItem // previously sum
80
80
 
81
81
  // Descuentos
82
82
  descuNoSuj: InvoicesCalculationsTotalsItem
@@ -86,12 +86,12 @@ export interface InvoicesCalculationsTotalsResponse {
86
86
  totalDescu: InvoicesCalculationsTotalsItem
87
87
 
88
88
  // Totales con impuestos
89
- subTotal: InvoicesCalculationsTotalsItem // subtotal
90
- ivaRete1: InvoicesCalculationsTotalsItem // ivaRetenido
89
+ subTotal: InvoicesCalculationsTotalsItem // previously subtotal
90
+ ivaRete1: InvoicesCalculationsTotalsItem // previously ivaRetenido
91
91
  reteRenta: InvoicesCalculationsTotalsItem
92
92
  montoTotalOperacion: InvoicesCalculationsTotalsItem
93
- totalIva: InvoicesCalculationsTotalsItem // iva
94
- totalPagar: InvoicesCalculationsTotalsItem // ventaTotal
93
+ totalIva: InvoicesCalculationsTotalsItem // previously iva
94
+ totalPagar: InvoicesCalculationsTotalsItem // previously ventaTotal
95
95
  }
96
96
 
97
97
  export type InvoicesCalculationsCalculateSingleResponse = {
@@ -13,16 +13,16 @@ export type InvoicesCreateSingleHeader = {
13
13
  }
14
14
 
15
15
  export type InvoicesCreateSingleTotals = {
16
- sum: number
17
- iva: number
18
- subtotal: number
19
- ivaRetenido: number
16
+ subTotalVentas: number // previously sum
17
+ totalIva: number // previously iva
18
+ subTotal: number // previously subtotal
19
+ ivaRete1: number // previously ivaRetenido
20
20
  ivaPercibido: number
21
21
  renta5: number
22
22
  renta10: number
23
- ventasExentas: number
24
- ventasNoSujetas: number
25
- ventaTotal: number
23
+ totalExenta: number // previously ventasExentas
24
+ totalNoSuj: number // previously ventasNoSujetas
25
+ totalPagar: number // previously ventaTotal
26
26
  }
27
27
 
28
28
  export type InvoicesCreateSingleDetail = {
@@ -25,17 +25,17 @@ export type Invoices = {
25
25
  customerNrc: string
26
26
  customerGiro: string
27
27
  customerPassport: string
28
- sum: number
29
- iva: number
28
+ subTotalVentas: number // previously sum
29
+ totalIva: number // previously iva
30
30
  ivaPercibido: number
31
31
  renta5: number
32
32
  renta10: number
33
- subtotal: number
34
- ivaRetenido: number
35
- ventasExentas: number
36
- ventasNoSujetas: number
37
- ventaTotal: number
38
- ventaTotalText: string
33
+ subTotal: number // previously subtotal
34
+ ivaRete1: number // previously ivaRetenido
35
+ totalExenta: number // previously ventasExentas
36
+ totalNoSuj: number // previously ventasNoSujetas
37
+ totalPagar: number // previously ventaTotal
38
+ totalPagarText: string // previously ventaTotalText
39
39
  origin: string
40
40
  invoiceDate: Date
41
41
  paymentConditionName: string