@openbox/shared-types 0.3.5 → 0.3.7
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/customers/Branches/UpdateSingle/Request.d.ts +1 -1
- package/lib/customers/Customers/UpdateSingle/Request.d.ts +1 -1
- package/lib/invoices/Calculation/Single/Response.d.ts +16 -15
- package/lib/invoices/DocumentTypes/GetMany/Request.d.ts +11 -0
- package/lib/invoices/DocumentTypes/GetMany/Request.js +3 -0
- package/lib/invoices/DocumentTypes/GetMany/Request.js.map +1 -0
- package/package.json +1 -1
- package/src/customers/Branches/UpdateSingle/Request.ts +2 -1
- package/src/customers/Customers/UpdateSingle/Request.ts +2 -1
- package/src/invoices/Calculation/Single/Response.ts +21 -16
- package/src/invoices/DocumentTypes/GetMany/Request.ts +12 -0
|
@@ -2,6 +2,6 @@ import { SystemDirectoryUpdateSingleRequest } from '../../../system';
|
|
|
2
2
|
import { CustomersBranchesRequest } from '../customers.branches.types';
|
|
3
3
|
export type CustomersBranchesUpdateSingleRequest = Omit<Partial<CustomersBranchesRequest>, 'directory'> & {
|
|
4
4
|
directory?: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> & {
|
|
5
|
-
id
|
|
5
|
+
id?: string;
|
|
6
6
|
}[];
|
|
7
7
|
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { ServicesSellingTypesResponse } from '../../../services/SellingTypes/services.selling-types.types';
|
|
2
|
-
import { ServicesResponse } from '../../../services/Services/services.types';
|
|
3
1
|
export type InvoicesCalculationsDetailsResponse = {
|
|
4
|
-
|
|
2
|
+
service: string;
|
|
5
3
|
quantity: number;
|
|
6
|
-
|
|
4
|
+
chargeDescription: string;
|
|
5
|
+
price: number;
|
|
7
6
|
incIva: boolean;
|
|
8
7
|
incRenta5: boolean;
|
|
9
8
|
incRenta10: boolean;
|
|
9
|
+
unitPrice: number;
|
|
10
|
+
ivaPrice: number;
|
|
10
11
|
ventaPrice: number;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
vNoSujeta: number;
|
|
13
|
+
vExenta: number;
|
|
14
|
+
vGravada: number;
|
|
15
|
+
totalIvaPrice: number;
|
|
16
|
+
renta5Price: number;
|
|
17
|
+
renta10Price: number;
|
|
18
|
+
sellingType: number;
|
|
19
|
+
showUnitPrice: number;
|
|
20
|
+
showExenta: number;
|
|
21
|
+
showvNoSujeta: number;
|
|
22
|
+
showvGravada: number;
|
|
22
23
|
};
|
|
23
24
|
export type InvoicesCalculationsTotalsResponse = {
|
|
24
25
|
name: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GetManyRequest } from '../../../interfaces';
|
|
2
|
+
export type InvoicesDocumentTypesGetManyRequest = GetManyRequest & {
|
|
3
|
+
documentType?: number;
|
|
4
|
+
customer?: string;
|
|
5
|
+
seller?: string;
|
|
6
|
+
zone?: string;
|
|
7
|
+
service?: string;
|
|
8
|
+
status?: number;
|
|
9
|
+
startDate?: Date;
|
|
10
|
+
endDate?: Date;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/invoices/DocumentTypes/GetMany/Request.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -5,5 +5,6 @@ export type CustomersBranchesUpdateSingleRequest = Omit<
|
|
|
5
5
|
Partial<CustomersBranchesRequest>,
|
|
6
6
|
'directory'
|
|
7
7
|
> & {
|
|
8
|
-
directory?: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> &
|
|
8
|
+
directory?: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> &
|
|
9
|
+
{ id?: string }[]
|
|
9
10
|
}
|
|
@@ -9,5 +9,6 @@ export type CustomersUpdateSingleRequest = Omit<
|
|
|
9
9
|
branch?: CustomersBranchesUpdateSingleRequest & {
|
|
10
10
|
id?: string
|
|
11
11
|
}
|
|
12
|
-
directory?: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> &
|
|
12
|
+
directory?: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> &
|
|
13
|
+
{ id?: string }[]
|
|
13
14
|
}
|
|
@@ -1,25 +1,30 @@
|
|
|
1
|
-
import { ServicesSellingTypesResponse } from '../../../services/SellingTypes/services.selling-types.types'
|
|
2
|
-
import { ServicesResponse } from '../../../services/Services/services.types'
|
|
3
|
-
|
|
4
1
|
export type InvoicesCalculationsDetailsResponse = {
|
|
5
|
-
|
|
2
|
+
// Returns the same information received
|
|
3
|
+
service: string
|
|
6
4
|
quantity: number
|
|
7
|
-
|
|
5
|
+
chargeDescription: string
|
|
6
|
+
price: number
|
|
8
7
|
incIva: boolean
|
|
9
8
|
incRenta5: boolean
|
|
10
9
|
incRenta10: boolean
|
|
10
|
+
|
|
11
|
+
// Returns the calculated information
|
|
12
|
+
unitPrice: number
|
|
13
|
+
ivaPrice: number
|
|
11
14
|
ventaPrice: number
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
vNoSujeta: number
|
|
16
|
+
vExenta: number
|
|
17
|
+
vGravada: number
|
|
18
|
+
totalIvaPrice: number
|
|
19
|
+
renta5Price: number
|
|
20
|
+
renta10Price: number
|
|
21
|
+
sellingType: number
|
|
22
|
+
|
|
23
|
+
// Returns values to show in details table
|
|
24
|
+
showUnitPrice: number
|
|
25
|
+
showExenta: number
|
|
26
|
+
showvNoSujeta: number
|
|
27
|
+
showvGravada: number
|
|
23
28
|
}
|
|
24
29
|
|
|
25
30
|
export type InvoicesCalculationsTotalsResponse = {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GetManyRequest } from '../../../interfaces'
|
|
2
|
+
|
|
3
|
+
export type InvoicesDocumentTypesGetManyRequest = GetManyRequest & {
|
|
4
|
+
documentType?: number
|
|
5
|
+
customer?: string
|
|
6
|
+
seller?: string
|
|
7
|
+
zone?: string
|
|
8
|
+
service?: string
|
|
9
|
+
status?: number
|
|
10
|
+
startDate?: Date
|
|
11
|
+
endDate?: Date
|
|
12
|
+
}
|