@nomalism-com/types 0.9.521 → 0.9.523
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/dist/modules/stock/savedEmPicking/interfaces.d.ts +1 -1
- package/dist/modules/stock/savedEmPicking/route.schema.js +1 -1
- package/dist/modules/supply/documentLine/interfaces.d.ts +2 -2
- package/dist/modules/supply/documentLine/route.schema.js +2 -2
- package/dist/modules/supply/documentLine/tests.js +2 -2
- package/dist/shared/entities/stock.d.ts +5 -2
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ export type ISavedEmPickingData = Pick<IUnfinishedPickingLineGroupExtended, 'cli
|
|
|
9
9
|
export interface ICreateRequest {
|
|
10
10
|
provider_id: string;
|
|
11
11
|
document_header_id: string;
|
|
12
|
-
|
|
12
|
+
document_line_group_id: string;
|
|
13
13
|
data: ISavedEmPickingData;
|
|
14
14
|
}
|
|
15
15
|
export interface IRepository {
|
|
@@ -85,7 +85,7 @@ var entradaDeMaterialDocumentHeaderBody = joi_1.default
|
|
|
85
85
|
var createBodyKeys = {
|
|
86
86
|
provider_id: joi_1.default.string().uuid().required(),
|
|
87
87
|
document_header_id: joi_1.default.string().uuid().required(),
|
|
88
|
-
|
|
88
|
+
document_line_group_id: joi_1.default.string().uuid().required(),
|
|
89
89
|
data: entradaDeMaterialDocumentHeaderBody,
|
|
90
90
|
};
|
|
91
91
|
exports.createBody = joi_1.default.object().keys(createBodyKeys).messages(messages_1.messages);
|
|
@@ -146,7 +146,7 @@ export interface ICreateRequest extends Omit<IDocumentLineAssoc.ICreateRequest,
|
|
|
146
146
|
provider_tax: number;
|
|
147
147
|
provider_discount: number;
|
|
148
148
|
document_line_folder_id: string | null;
|
|
149
|
-
|
|
149
|
+
document_line_group_id?: string;
|
|
150
150
|
data: IData;
|
|
151
151
|
metadata: IMetadata;
|
|
152
152
|
}
|
|
@@ -160,7 +160,7 @@ export interface IUpdateRequest {
|
|
|
160
160
|
provider_tax?: number;
|
|
161
161
|
provider_discount?: number;
|
|
162
162
|
document_line_folder_id?: string | null;
|
|
163
|
-
|
|
163
|
+
document_line_group_id?: string;
|
|
164
164
|
sent_to_client?: boolean;
|
|
165
165
|
sent_to_provider?: boolean;
|
|
166
166
|
}
|
|
@@ -30,7 +30,7 @@ var createBodyKeys = {
|
|
|
30
30
|
.default(0)
|
|
31
31
|
.max(99)
|
|
32
32
|
.required(),
|
|
33
|
-
|
|
33
|
+
document_line_group_id: joi_1.default.string().optional(),
|
|
34
34
|
data: joi_1.default
|
|
35
35
|
.object()
|
|
36
36
|
.pattern(joi_1.default.string(), joi_1.default.object().keys({
|
|
@@ -53,7 +53,7 @@ var updateBodyKeys = {
|
|
|
53
53
|
preco_custo: joi_1.default.number().positive().allow(0).optional(),
|
|
54
54
|
provider_tax: joi_1.default.number().positive().allow(0).optional(),
|
|
55
55
|
provider_discount: joi_1.default.number().positive().allow(0).max(99).optional(),
|
|
56
|
-
|
|
56
|
+
document_line_group_id: joi_1.default.string().optional(),
|
|
57
57
|
sent_to_client: joi_1.default.boolean().optional(),
|
|
58
58
|
sent_to_provider: joi_1.default.boolean().optional(),
|
|
59
59
|
};
|
|
@@ -11,7 +11,7 @@ exports.postBodyValidator = joi_1.default.object().keys({
|
|
|
11
11
|
document_header_id: joi_1.default.string().uuid().required(),
|
|
12
12
|
index: joi_1.default.number().integer().default(0).optional(),
|
|
13
13
|
document_line_folder_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
14
|
-
|
|
14
|
+
document_line_group_id: joi_1.default.number().integer().allow(null).optional(),
|
|
15
15
|
quantity: joi_1.default.number().positive().allow(0).default(0).optional(),
|
|
16
16
|
debit: joi_1.default.number().positive().allow(0).default(0).optional(),
|
|
17
17
|
credit: joi_1.default.number().positive().allow(0).default(0).optional(),
|
|
@@ -24,7 +24,7 @@ exports.putBodyValidator = joi_1.default.object().keys({
|
|
|
24
24
|
document_header_id: joi_1.default.string().uuid().required(),
|
|
25
25
|
index: joi_1.default.number().optional(),
|
|
26
26
|
document_line_folder_id: joi_1.default.string().uuid().allow(null).optional(),
|
|
27
|
-
|
|
27
|
+
document_line_group_id: joi_1.default.number().integer().allow(null).optional(),
|
|
28
28
|
quantity: joi_1.default.number().positive().allow(0).optional(),
|
|
29
29
|
debit: joi_1.default.number().positive().allow(0).optional(),
|
|
30
30
|
credit: joi_1.default.number().positive().allow(0).optional(),
|
|
@@ -575,7 +575,7 @@ export type DocumentLine = {
|
|
|
575
575
|
product: IProduct.IEntityExtended | null;
|
|
576
576
|
product_id: string | null;
|
|
577
577
|
plot_id: string | null;
|
|
578
|
-
|
|
578
|
+
document_line_group_id: string | null;
|
|
579
579
|
document_line_folder_id: string | null;
|
|
580
580
|
index: number;
|
|
581
581
|
data: IDocumentLine.IData;
|
|
@@ -1064,11 +1064,14 @@ export type ProviderProductView = {
|
|
|
1064
1064
|
last_em_date: Date | null;
|
|
1065
1065
|
notation: string;
|
|
1066
1066
|
};
|
|
1067
|
+
export type DocumentLineGroup = {
|
|
1068
|
+
id: string;
|
|
1069
|
+
};
|
|
1067
1070
|
export type SavedEmPicking = {
|
|
1068
1071
|
id: string;
|
|
1069
1072
|
provider_id: string;
|
|
1070
1073
|
document_header_id: string;
|
|
1071
|
-
|
|
1074
|
+
document_line_group_id: string;
|
|
1072
1075
|
data: ISavedEmPickingData;
|
|
1073
1076
|
created_at: Date;
|
|
1074
1077
|
updated_at: Date;
|