@managesome/eposmatic-toolkit 0.2.547 → 0.2.548
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/helpers/order/generate-warehouse-purchase-order-rfq.js +1 -1
- package/lib/helpers/order/generate-warehouse-purchase-order.js +1 -1
- package/lib/helpers/order/generate-warehouse-sale-order-rfq.js +1 -1
- package/lib/helpers/order/generate-warehouse-sale-order.js +1 -1
- package/lib/helpers/store/common-tenant-purchase-order-actions.js +2 -2
- package/lib/helpers/types/warehouse-purchase-order-cart-actions.d.ts +1 -1
- package/lib/helpers/types/warehouse-purchase-order-rfq-cart-actions.d.ts +1 -1
- package/lib/helpers/types/warehouse-sale-order-cart-actions.d.ts +1 -1
- package/lib/helpers/types/warehouse-sale-order-rfq-cart-actions.d.ts +1 -1
- package/lib/schemas/models/tenant_purchase_orders.d.ts +36 -36
- package/lib/schemas/models/tenant_purchase_orders.js +2 -1
- package/lib/schemas/models/warehouse_items.d.ts +3 -3
- package/lib/schemas/models/warehouse_items.js +2 -1
- package/lib/schemas/models/warehouse_purchase_order_rfqs.d.ts +36 -36
- package/lib/schemas/models/warehouse_purchase_order_rfqs.js +2 -1
- package/lib/schemas/models/warehouse_purchase_orders.d.ts +36 -36
- package/lib/schemas/models/warehouse_purchase_orders.js +2 -1
- package/lib/schemas/models/warehouse_sale_order_rfqs.d.ts +36 -36
- package/lib/schemas/models/warehouse_sale_order_rfqs.js +2 -1
- package/lib/schemas/models/warehouse_sale_orders.d.ts +36 -36
- package/lib/schemas/models/warehouse_sale_orders.js +2 -1
- package/lib/schemas/types/tenant_purchase_orders.d.ts +1 -1
- package/lib/schemas/types/warehouse_items.d.ts +1 -1
- package/lib/schemas/types/warehouse_purchase_order_rfqs.d.ts +1 -1
- package/lib/schemas/types/warehouse_purchase_orders.d.ts +1 -1
- package/lib/schemas/types/warehouse_sale_order_rfqs.d.ts +1 -1
- package/lib/schemas/types/warehouse_sale_orders.d.ts +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,6 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
14
14
|
updatedAt: NativeDate;
|
|
15
15
|
categories: import("mongoose").Types.DocumentArray<{
|
|
16
16
|
name: string;
|
|
17
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
18
17
|
items: import("mongoose").Types.DocumentArray<{
|
|
19
18
|
_id: import("mongoose").Types.ObjectId;
|
|
20
19
|
name: string;
|
|
@@ -58,9 +57,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
58
57
|
is_ready?: boolean | null | undefined;
|
|
59
58
|
void_reason?: string | null | undefined;
|
|
60
59
|
}>;
|
|
60
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
61
61
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
62
62
|
name: string;
|
|
63
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
64
63
|
items: import("mongoose").Types.DocumentArray<{
|
|
65
64
|
_id: import("mongoose").Types.ObjectId;
|
|
66
65
|
name: string;
|
|
@@ -104,9 +103,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
104
103
|
is_ready?: boolean | null | undefined;
|
|
105
104
|
void_reason?: string | null | undefined;
|
|
106
105
|
}>;
|
|
106
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
107
107
|
}> & {
|
|
108
108
|
name: string;
|
|
109
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
110
109
|
items: import("mongoose").Types.DocumentArray<{
|
|
111
110
|
_id: import("mongoose").Types.ObjectId;
|
|
112
111
|
name: string;
|
|
@@ -150,6 +149,7 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
150
149
|
is_ready?: boolean | null | undefined;
|
|
151
150
|
void_reason?: string | null | undefined;
|
|
152
151
|
}>;
|
|
152
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
153
153
|
}>;
|
|
154
154
|
price: number;
|
|
155
155
|
order_number: number;
|
|
@@ -162,7 +162,6 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
162
162
|
updatedAt: NativeDate;
|
|
163
163
|
categories: import("mongoose").Types.DocumentArray<{
|
|
164
164
|
name: string;
|
|
165
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
166
165
|
items: import("mongoose").Types.DocumentArray<{
|
|
167
166
|
_id: import("mongoose").Types.ObjectId;
|
|
168
167
|
name: string;
|
|
@@ -206,9 +205,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
206
205
|
is_ready?: boolean | null | undefined;
|
|
207
206
|
void_reason?: string | null | undefined;
|
|
208
207
|
}>;
|
|
208
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
209
209
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
210
210
|
name: string;
|
|
211
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
212
211
|
items: import("mongoose").Types.DocumentArray<{
|
|
213
212
|
_id: import("mongoose").Types.ObjectId;
|
|
214
213
|
name: string;
|
|
@@ -252,9 +251,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
252
251
|
is_ready?: boolean | null | undefined;
|
|
253
252
|
void_reason?: string | null | undefined;
|
|
254
253
|
}>;
|
|
254
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
255
255
|
}> & {
|
|
256
256
|
name: string;
|
|
257
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
258
257
|
items: import("mongoose").Types.DocumentArray<{
|
|
259
258
|
_id: import("mongoose").Types.ObjectId;
|
|
260
259
|
name: string;
|
|
@@ -298,6 +297,7 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
298
297
|
is_ready?: boolean | null | undefined;
|
|
299
298
|
void_reason?: string | null | undefined;
|
|
300
299
|
}>;
|
|
300
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
301
301
|
}>;
|
|
302
302
|
price: number;
|
|
303
303
|
special_instructions: string;
|
|
@@ -318,7 +318,6 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
318
318
|
updatedAt: NativeDate;
|
|
319
319
|
categories: import("mongoose").Types.DocumentArray<{
|
|
320
320
|
name: string;
|
|
321
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
322
321
|
items: import("mongoose").Types.DocumentArray<{
|
|
323
322
|
_id: import("mongoose").Types.ObjectId;
|
|
324
323
|
name: string;
|
|
@@ -362,9 +361,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
362
361
|
is_ready?: boolean | null | undefined;
|
|
363
362
|
void_reason?: string | null | undefined;
|
|
364
363
|
}>;
|
|
364
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
365
365
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
366
366
|
name: string;
|
|
367
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
368
367
|
items: import("mongoose").Types.DocumentArray<{
|
|
369
368
|
_id: import("mongoose").Types.ObjectId;
|
|
370
369
|
name: string;
|
|
@@ -408,9 +407,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
408
407
|
is_ready?: boolean | null | undefined;
|
|
409
408
|
void_reason?: string | null | undefined;
|
|
410
409
|
}>;
|
|
410
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
411
411
|
}> & {
|
|
412
412
|
name: string;
|
|
413
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
414
413
|
items: import("mongoose").Types.DocumentArray<{
|
|
415
414
|
_id: import("mongoose").Types.ObjectId;
|
|
416
415
|
name: string;
|
|
@@ -454,6 +453,7 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
454
453
|
is_ready?: boolean | null | undefined;
|
|
455
454
|
void_reason?: string | null | undefined;
|
|
456
455
|
}>;
|
|
456
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
457
457
|
}>;
|
|
458
458
|
price: number;
|
|
459
459
|
special_instructions: string;
|
|
@@ -474,7 +474,6 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
474
474
|
updatedAt: NativeDate;
|
|
475
475
|
categories: import("mongoose").Types.DocumentArray<{
|
|
476
476
|
name: string;
|
|
477
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
478
477
|
items: import("mongoose").Types.DocumentArray<{
|
|
479
478
|
_id: import("mongoose").Types.ObjectId;
|
|
480
479
|
name: string;
|
|
@@ -518,9 +517,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
518
517
|
is_ready?: boolean | null | undefined;
|
|
519
518
|
void_reason?: string | null | undefined;
|
|
520
519
|
}>;
|
|
520
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
521
521
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
522
522
|
name: string;
|
|
523
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
524
523
|
items: import("mongoose").Types.DocumentArray<{
|
|
525
524
|
_id: import("mongoose").Types.ObjectId;
|
|
526
525
|
name: string;
|
|
@@ -564,9 +563,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
564
563
|
is_ready?: boolean | null | undefined;
|
|
565
564
|
void_reason?: string | null | undefined;
|
|
566
565
|
}>;
|
|
566
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
567
567
|
}> & {
|
|
568
568
|
name: string;
|
|
569
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
570
569
|
items: import("mongoose").Types.DocumentArray<{
|
|
571
570
|
_id: import("mongoose").Types.ObjectId;
|
|
572
571
|
name: string;
|
|
@@ -610,6 +609,7 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
610
609
|
is_ready?: boolean | null | undefined;
|
|
611
610
|
void_reason?: string | null | undefined;
|
|
612
611
|
}>;
|
|
612
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
613
613
|
}>;
|
|
614
614
|
price: number;
|
|
615
615
|
special_instructions: string;
|
|
@@ -658,7 +658,6 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
658
658
|
updatedAt: NativeDate;
|
|
659
659
|
categories: import("mongoose").Types.DocumentArray<{
|
|
660
660
|
name: string;
|
|
661
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
662
661
|
items: import("mongoose").Types.DocumentArray<{
|
|
663
662
|
_id: import("mongoose").Types.ObjectId;
|
|
664
663
|
name: string;
|
|
@@ -702,9 +701,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
702
701
|
is_ready?: boolean | null | undefined;
|
|
703
702
|
void_reason?: string | null | undefined;
|
|
704
703
|
}>;
|
|
704
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
705
705
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
706
706
|
name: string;
|
|
707
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
708
707
|
items: import("mongoose").Types.DocumentArray<{
|
|
709
708
|
_id: import("mongoose").Types.ObjectId;
|
|
710
709
|
name: string;
|
|
@@ -748,9 +747,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
748
747
|
is_ready?: boolean | null | undefined;
|
|
749
748
|
void_reason?: string | null | undefined;
|
|
750
749
|
}>;
|
|
750
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
751
751
|
}> & {
|
|
752
752
|
name: string;
|
|
753
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
754
753
|
items: import("mongoose").Types.DocumentArray<{
|
|
755
754
|
_id: import("mongoose").Types.ObjectId;
|
|
756
755
|
name: string;
|
|
@@ -794,6 +793,7 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
794
793
|
is_ready?: boolean | null | undefined;
|
|
795
794
|
void_reason?: string | null | undefined;
|
|
796
795
|
}>;
|
|
796
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
797
797
|
}>;
|
|
798
798
|
price: number;
|
|
799
799
|
order_number: number;
|
|
@@ -806,7 +806,6 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
806
806
|
updatedAt: NativeDate;
|
|
807
807
|
categories: import("mongoose").Types.DocumentArray<{
|
|
808
808
|
name: string;
|
|
809
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
810
809
|
items: import("mongoose").Types.DocumentArray<{
|
|
811
810
|
_id: import("mongoose").Types.ObjectId;
|
|
812
811
|
name: string;
|
|
@@ -850,9 +849,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
850
849
|
is_ready?: boolean | null | undefined;
|
|
851
850
|
void_reason?: string | null | undefined;
|
|
852
851
|
}>;
|
|
852
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
853
853
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
854
854
|
name: string;
|
|
855
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
856
855
|
items: import("mongoose").Types.DocumentArray<{
|
|
857
856
|
_id: import("mongoose").Types.ObjectId;
|
|
858
857
|
name: string;
|
|
@@ -896,9 +895,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
896
895
|
is_ready?: boolean | null | undefined;
|
|
897
896
|
void_reason?: string | null | undefined;
|
|
898
897
|
}>;
|
|
898
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
899
899
|
}> & {
|
|
900
900
|
name: string;
|
|
901
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
902
901
|
items: import("mongoose").Types.DocumentArray<{
|
|
903
902
|
_id: import("mongoose").Types.ObjectId;
|
|
904
903
|
name: string;
|
|
@@ -942,6 +941,7 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
942
941
|
is_ready?: boolean | null | undefined;
|
|
943
942
|
void_reason?: string | null | undefined;
|
|
944
943
|
}>;
|
|
944
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
945
945
|
}>;
|
|
946
946
|
price: number;
|
|
947
947
|
special_instructions: string;
|
|
@@ -962,7 +962,6 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
962
962
|
updatedAt: NativeDate;
|
|
963
963
|
categories: import("mongoose").Types.DocumentArray<{
|
|
964
964
|
name: string;
|
|
965
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
966
965
|
items: import("mongoose").Types.DocumentArray<{
|
|
967
966
|
_id: import("mongoose").Types.ObjectId;
|
|
968
967
|
name: string;
|
|
@@ -1006,9 +1005,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1006
1005
|
is_ready?: boolean | null | undefined;
|
|
1007
1006
|
void_reason?: string | null | undefined;
|
|
1008
1007
|
}>;
|
|
1008
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1009
1009
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
1010
1010
|
name: string;
|
|
1011
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1012
1011
|
items: import("mongoose").Types.DocumentArray<{
|
|
1013
1012
|
_id: import("mongoose").Types.ObjectId;
|
|
1014
1013
|
name: string;
|
|
@@ -1052,9 +1051,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1052
1051
|
is_ready?: boolean | null | undefined;
|
|
1053
1052
|
void_reason?: string | null | undefined;
|
|
1054
1053
|
}>;
|
|
1054
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1055
1055
|
}> & {
|
|
1056
1056
|
name: string;
|
|
1057
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1058
1057
|
items: import("mongoose").Types.DocumentArray<{
|
|
1059
1058
|
_id: import("mongoose").Types.ObjectId;
|
|
1060
1059
|
name: string;
|
|
@@ -1098,6 +1097,7 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1098
1097
|
is_ready?: boolean | null | undefined;
|
|
1099
1098
|
void_reason?: string | null | undefined;
|
|
1100
1099
|
}>;
|
|
1100
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1101
1101
|
}>;
|
|
1102
1102
|
price: number;
|
|
1103
1103
|
special_instructions: string;
|
|
@@ -1118,7 +1118,6 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1118
1118
|
updatedAt: NativeDate;
|
|
1119
1119
|
categories: import("mongoose").Types.DocumentArray<{
|
|
1120
1120
|
name: string;
|
|
1121
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1122
1121
|
items: import("mongoose").Types.DocumentArray<{
|
|
1123
1122
|
_id: import("mongoose").Types.ObjectId;
|
|
1124
1123
|
name: string;
|
|
@@ -1162,9 +1161,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1162
1161
|
is_ready?: boolean | null | undefined;
|
|
1163
1162
|
void_reason?: string | null | undefined;
|
|
1164
1163
|
}>;
|
|
1164
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1165
1165
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
1166
1166
|
name: string;
|
|
1167
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1168
1167
|
items: import("mongoose").Types.DocumentArray<{
|
|
1169
1168
|
_id: import("mongoose").Types.ObjectId;
|
|
1170
1169
|
name: string;
|
|
@@ -1208,9 +1207,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1208
1207
|
is_ready?: boolean | null | undefined;
|
|
1209
1208
|
void_reason?: string | null | undefined;
|
|
1210
1209
|
}>;
|
|
1210
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1211
1211
|
}> & {
|
|
1212
1212
|
name: string;
|
|
1213
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1214
1213
|
items: import("mongoose").Types.DocumentArray<{
|
|
1215
1214
|
_id: import("mongoose").Types.ObjectId;
|
|
1216
1215
|
name: string;
|
|
@@ -1254,6 +1253,7 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1254
1253
|
is_ready?: boolean | null | undefined;
|
|
1255
1254
|
void_reason?: string | null | undefined;
|
|
1256
1255
|
}>;
|
|
1256
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1257
1257
|
}>;
|
|
1258
1258
|
price: number;
|
|
1259
1259
|
special_instructions: string;
|
|
@@ -1302,7 +1302,6 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1302
1302
|
updatedAt: NativeDate;
|
|
1303
1303
|
categories: import("mongoose").Types.DocumentArray<{
|
|
1304
1304
|
name: string;
|
|
1305
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1306
1305
|
items: import("mongoose").Types.DocumentArray<{
|
|
1307
1306
|
_id: import("mongoose").Types.ObjectId;
|
|
1308
1307
|
name: string;
|
|
@@ -1346,9 +1345,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1346
1345
|
is_ready?: boolean | null | undefined;
|
|
1347
1346
|
void_reason?: string | null | undefined;
|
|
1348
1347
|
}>;
|
|
1348
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1349
1349
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
1350
1350
|
name: string;
|
|
1351
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1352
1351
|
items: import("mongoose").Types.DocumentArray<{
|
|
1353
1352
|
_id: import("mongoose").Types.ObjectId;
|
|
1354
1353
|
name: string;
|
|
@@ -1392,9 +1391,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1392
1391
|
is_ready?: boolean | null | undefined;
|
|
1393
1392
|
void_reason?: string | null | undefined;
|
|
1394
1393
|
}>;
|
|
1394
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1395
1395
|
}> & {
|
|
1396
1396
|
name: string;
|
|
1397
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1398
1397
|
items: import("mongoose").Types.DocumentArray<{
|
|
1399
1398
|
_id: import("mongoose").Types.ObjectId;
|
|
1400
1399
|
name: string;
|
|
@@ -1438,6 +1437,7 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1438
1437
|
is_ready?: boolean | null | undefined;
|
|
1439
1438
|
void_reason?: string | null | undefined;
|
|
1440
1439
|
}>;
|
|
1440
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1441
1441
|
}>;
|
|
1442
1442
|
price: number;
|
|
1443
1443
|
order_number: number;
|
|
@@ -1450,7 +1450,6 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1450
1450
|
updatedAt: NativeDate;
|
|
1451
1451
|
categories: import("mongoose").Types.DocumentArray<{
|
|
1452
1452
|
name: string;
|
|
1453
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1454
1453
|
items: import("mongoose").Types.DocumentArray<{
|
|
1455
1454
|
_id: import("mongoose").Types.ObjectId;
|
|
1456
1455
|
name: string;
|
|
@@ -1494,9 +1493,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1494
1493
|
is_ready?: boolean | null | undefined;
|
|
1495
1494
|
void_reason?: string | null | undefined;
|
|
1496
1495
|
}>;
|
|
1496
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1497
1497
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
1498
1498
|
name: string;
|
|
1499
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1500
1499
|
items: import("mongoose").Types.DocumentArray<{
|
|
1501
1500
|
_id: import("mongoose").Types.ObjectId;
|
|
1502
1501
|
name: string;
|
|
@@ -1540,9 +1539,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1540
1539
|
is_ready?: boolean | null | undefined;
|
|
1541
1540
|
void_reason?: string | null | undefined;
|
|
1542
1541
|
}>;
|
|
1542
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1543
1543
|
}> & {
|
|
1544
1544
|
name: string;
|
|
1545
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1546
1545
|
items: import("mongoose").Types.DocumentArray<{
|
|
1547
1546
|
_id: import("mongoose").Types.ObjectId;
|
|
1548
1547
|
name: string;
|
|
@@ -1586,6 +1585,7 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1586
1585
|
is_ready?: boolean | null | undefined;
|
|
1587
1586
|
void_reason?: string | null | undefined;
|
|
1588
1587
|
}>;
|
|
1588
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1589
1589
|
}>;
|
|
1590
1590
|
price: number;
|
|
1591
1591
|
special_instructions: string;
|
|
@@ -1606,7 +1606,6 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1606
1606
|
updatedAt: NativeDate;
|
|
1607
1607
|
categories: import("mongoose").Types.DocumentArray<{
|
|
1608
1608
|
name: string;
|
|
1609
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1610
1609
|
items: import("mongoose").Types.DocumentArray<{
|
|
1611
1610
|
_id: import("mongoose").Types.ObjectId;
|
|
1612
1611
|
name: string;
|
|
@@ -1650,9 +1649,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1650
1649
|
is_ready?: boolean | null | undefined;
|
|
1651
1650
|
void_reason?: string | null | undefined;
|
|
1652
1651
|
}>;
|
|
1652
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1653
1653
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
1654
1654
|
name: string;
|
|
1655
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1656
1655
|
items: import("mongoose").Types.DocumentArray<{
|
|
1657
1656
|
_id: import("mongoose").Types.ObjectId;
|
|
1658
1657
|
name: string;
|
|
@@ -1696,9 +1695,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1696
1695
|
is_ready?: boolean | null | undefined;
|
|
1697
1696
|
void_reason?: string | null | undefined;
|
|
1698
1697
|
}>;
|
|
1698
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1699
1699
|
}> & {
|
|
1700
1700
|
name: string;
|
|
1701
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1702
1701
|
items: import("mongoose").Types.DocumentArray<{
|
|
1703
1702
|
_id: import("mongoose").Types.ObjectId;
|
|
1704
1703
|
name: string;
|
|
@@ -1742,6 +1741,7 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1742
1741
|
is_ready?: boolean | null | undefined;
|
|
1743
1742
|
void_reason?: string | null | undefined;
|
|
1744
1743
|
}>;
|
|
1744
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1745
1745
|
}>;
|
|
1746
1746
|
price: number;
|
|
1747
1747
|
special_instructions: string;
|
|
@@ -1762,7 +1762,6 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1762
1762
|
updatedAt: NativeDate;
|
|
1763
1763
|
categories: import("mongoose").Types.DocumentArray<{
|
|
1764
1764
|
name: string;
|
|
1765
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1766
1765
|
items: import("mongoose").Types.DocumentArray<{
|
|
1767
1766
|
_id: import("mongoose").Types.ObjectId;
|
|
1768
1767
|
name: string;
|
|
@@ -1806,9 +1805,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1806
1805
|
is_ready?: boolean | null | undefined;
|
|
1807
1806
|
void_reason?: string | null | undefined;
|
|
1808
1807
|
}>;
|
|
1808
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1809
1809
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
1810
1810
|
name: string;
|
|
1811
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1812
1811
|
items: import("mongoose").Types.DocumentArray<{
|
|
1813
1812
|
_id: import("mongoose").Types.ObjectId;
|
|
1814
1813
|
name: string;
|
|
@@ -1852,9 +1851,9 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1852
1851
|
is_ready?: boolean | null | undefined;
|
|
1853
1852
|
void_reason?: string | null | undefined;
|
|
1854
1853
|
}>;
|
|
1854
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1855
1855
|
}> & {
|
|
1856
1856
|
name: string;
|
|
1857
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
1858
1857
|
items: import("mongoose").Types.DocumentArray<{
|
|
1859
1858
|
_id: import("mongoose").Types.ObjectId;
|
|
1860
1859
|
name: string;
|
|
@@ -1898,6 +1897,7 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1898
1897
|
is_ready?: boolean | null | undefined;
|
|
1899
1898
|
void_reason?: string | null | undefined;
|
|
1900
1899
|
}>;
|
|
1900
|
+
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1901
1901
|
}>;
|
|
1902
1902
|
price: number;
|
|
1903
1903
|
special_instructions: string;
|
|
@@ -96,7 +96,8 @@ const WarehouseSaleOrderItemsSchema = new mongoose_1.Schema({
|
|
|
96
96
|
const WarehouseSaleOrderCategoriesSchema = new mongoose_1.Schema({
|
|
97
97
|
category_id: {
|
|
98
98
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
99
|
-
required:
|
|
99
|
+
required: false,
|
|
100
|
+
default: null,
|
|
100
101
|
immutable: true,
|
|
101
102
|
ref: warehouse_categories_1.WAREHOUSE_CATEGORY_COLLECTION_NAME,
|
|
102
103
|
},
|
|
@@ -19,7 +19,7 @@ export interface ITenantPurchaseOrderItem {
|
|
|
19
19
|
}
|
|
20
20
|
export interface ITenantPurchaseOrderCategory {
|
|
21
21
|
name: string;
|
|
22
|
-
category_id: string;
|
|
22
|
+
category_id: string | null;
|
|
23
23
|
items: ITenantPurchaseOrderItem[];
|
|
24
24
|
}
|
|
25
25
|
interface ITenantPurchaseOrderIterationBase<TCategory, TStatus> {
|
|
@@ -17,7 +17,7 @@ export type IWarehousePurchaseOrderRFQItem = {
|
|
|
17
17
|
};
|
|
18
18
|
export type IWarehousePurchaseOrderRFQCategory = {
|
|
19
19
|
name: string;
|
|
20
|
-
category_id: string;
|
|
20
|
+
category_id: string | null;
|
|
21
21
|
items: IWarehousePurchaseOrderRFQItem[];
|
|
22
22
|
};
|
|
23
23
|
export interface IWarehousePurchaseOrderRFQIteration {
|
|
@@ -17,7 +17,7 @@ export type IWarehousePurchaseOrderItem = {
|
|
|
17
17
|
};
|
|
18
18
|
export type IWarehousePurchaseOrderCategory = {
|
|
19
19
|
name: string;
|
|
20
|
-
category_id: string;
|
|
20
|
+
category_id: string | null;
|
|
21
21
|
items: IWarehousePurchaseOrderItem[];
|
|
22
22
|
};
|
|
23
23
|
export interface IWarehousePurchaseOrderIteration {
|
|
@@ -24,7 +24,7 @@ export type IWarehouseSaleOrderRFQItem = {
|
|
|
24
24
|
};
|
|
25
25
|
export type IWarehouseSaleOrderRFQCategory = {
|
|
26
26
|
name: string;
|
|
27
|
-
category_id: string;
|
|
27
|
+
category_id: string | null;
|
|
28
28
|
items: IWarehouseSaleOrderRFQItem[];
|
|
29
29
|
};
|
|
30
30
|
export interface IWarehouseSaleOrderRFQIteration {
|