@openbox/shared-types 0.5.17 → 0.5.19
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,3 +1,4 @@
|
|
|
1
|
+
import { ServicesSellingTypes } from '../../services/SellingTypes/services.selling-types.types';
|
|
1
2
|
import { InventoriesUnits } from '../Units';
|
|
2
3
|
export type InventoriesProducts = {
|
|
3
4
|
id: string;
|
|
@@ -8,8 +9,11 @@ export type InventoriesProducts = {
|
|
|
8
9
|
threshold?: number;
|
|
9
10
|
trackInventory?: boolean;
|
|
10
11
|
unit: InventoriesUnits;
|
|
12
|
+
incIva: boolean;
|
|
13
|
+
sellingType: ServicesSellingTypes;
|
|
11
14
|
};
|
|
12
|
-
export type InventoriesProductsRequest = Omit<InventoriesProducts, 'id' | 'unit'> & {
|
|
15
|
+
export type InventoriesProductsRequest = Omit<InventoriesProducts, 'id' | 'unit' | 'sellingType'> & {
|
|
13
16
|
unit: string;
|
|
17
|
+
sellingType: number;
|
|
14
18
|
};
|
|
15
19
|
export type InventoriesProductsResponse = InventoriesProducts;
|
|
@@ -123,9 +123,24 @@ export type PartnersV1InvoicesCreateSingleRequestDataDetails = {
|
|
|
123
123
|
totalIvaPrice: number;
|
|
124
124
|
sellingType: PartnersV1InvoicesCreateSingleRequestDataDetailsSellingType;
|
|
125
125
|
};
|
|
126
|
+
export type PartnersV1InvoicesCreateSingleRequestDataTotals = {
|
|
127
|
+
totalNoSuj: number;
|
|
128
|
+
totalExenta: number;
|
|
129
|
+
totalGravada: number;
|
|
130
|
+
subTotalVentas: number;
|
|
131
|
+
porcentajeDescuento: number;
|
|
132
|
+
totalDescu: number;
|
|
133
|
+
subTotal: number;
|
|
134
|
+
ivaRete1: number;
|
|
135
|
+
reteRenta: number;
|
|
136
|
+
montoTotalOperacion: number;
|
|
137
|
+
totalIva: number;
|
|
138
|
+
totalPagar: number;
|
|
139
|
+
};
|
|
126
140
|
export type PartnersV1InvoicesCreateSingleRequestData = {
|
|
127
141
|
header: PartnersV1InvoicesCreateSingleRequestDataHeader;
|
|
128
142
|
details: Array<PartnersV1InvoicesCreateSingleRequestDataDetails>;
|
|
143
|
+
totals: PartnersV1InvoicesCreateSingleRequestDataTotals;
|
|
129
144
|
};
|
|
130
145
|
export type PartnersV1InvoicesCreateSingleRequest = {
|
|
131
146
|
settings: PartnersV1InvoicesCreateSingleRequestSettings;
|
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ServicesSellingTypes } from '../../services/SellingTypes/services.selling-types.types'
|
|
1
2
|
import { InventoriesUnits } from '../Units'
|
|
2
3
|
|
|
3
4
|
export type InventoriesProducts = {
|
|
@@ -9,9 +10,15 @@ export type InventoriesProducts = {
|
|
|
9
10
|
threshold?: number
|
|
10
11
|
trackInventory?: boolean
|
|
11
12
|
unit: InventoriesUnits
|
|
13
|
+
incIva: boolean
|
|
14
|
+
sellingType: ServicesSellingTypes
|
|
12
15
|
}
|
|
13
16
|
|
|
14
|
-
export type InventoriesProductsRequest = Omit<
|
|
17
|
+
export type InventoriesProductsRequest = Omit<
|
|
18
|
+
InventoriesProducts,
|
|
19
|
+
'id' | 'unit' | 'sellingType'
|
|
20
|
+
> & {
|
|
15
21
|
unit: string
|
|
22
|
+
sellingType: number
|
|
16
23
|
}
|
|
17
24
|
export type InventoriesProductsResponse = InventoriesProducts
|
|
@@ -143,9 +143,25 @@ export type PartnersV1InvoicesCreateSingleRequestDataDetails = {
|
|
|
143
143
|
sellingType: PartnersV1InvoicesCreateSingleRequestDataDetailsSellingType
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
+
export type PartnersV1InvoicesCreateSingleRequestDataTotals = {
|
|
147
|
+
totalNoSuj: number
|
|
148
|
+
totalExenta: number
|
|
149
|
+
totalGravada: number
|
|
150
|
+
subTotalVentas: number
|
|
151
|
+
porcentajeDescuento: number
|
|
152
|
+
totalDescu: number
|
|
153
|
+
subTotal: number
|
|
154
|
+
ivaRete1: number
|
|
155
|
+
reteRenta: number
|
|
156
|
+
montoTotalOperacion: number
|
|
157
|
+
totalIva: number
|
|
158
|
+
totalPagar: number
|
|
159
|
+
}
|
|
160
|
+
|
|
146
161
|
export type PartnersV1InvoicesCreateSingleRequestData = {
|
|
147
162
|
header: PartnersV1InvoicesCreateSingleRequestDataHeader
|
|
148
163
|
details: Array<PartnersV1InvoicesCreateSingleRequestDataDetails>
|
|
164
|
+
totals: PartnersV1InvoicesCreateSingleRequestDataTotals
|
|
149
165
|
}
|
|
150
166
|
|
|
151
167
|
export type PartnersV1InvoicesCreateSingleRequest = {
|