@managesome/eposmatic-toolkit 0.4.4 → 0.4.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/esm/constants/REPORT_CALENDAR.js +47 -0
- package/esm/constants/index.js +1 -0
- package/esm/helpers/materialized-reports/index.js +2 -0
- package/esm/helpers/materialized-reports/materialized-reports-read-helpers.js +20 -21
- package/esm/helpers/materialized-reports/materialized-reports-scope-group-helpers.js +281 -0
- package/esm/helpers/materialized-reports/materialized-reports-selection-helpers.js +473 -0
- package/esm/helpers/materialized-reports/tenant-sales-overview-formatter.js +126 -7
- package/esm/helpers/materialized-reports/tenant-sales-overview-helpers.js +47 -1
- package/esm/helpers/order/generate-order.js +11 -0
- package/esm/helpers/store/common-order-actions.js +7 -3
- package/esm/helpers/types/index.js +1 -0
- package/esm/helpers/types/materialized-reports-apis.js +1 -1
- package/esm/helpers/types/report-calendar.js +1 -0
- package/lib/constants/REPORT_CALENDAR.d.ts +31 -0
- package/lib/constants/REPORT_CALENDAR.js +50 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/index.js +1 -0
- package/lib/helpers/materialized-reports/index.d.ts +2 -0
- package/lib/helpers/materialized-reports/index.js +2 -0
- package/lib/helpers/materialized-reports/materialized-reports-read-helpers.d.ts +20 -21
- package/lib/helpers/materialized-reports/materialized-reports-read-helpers.js +20 -21
- package/lib/helpers/materialized-reports/materialized-reports-scope-group-helpers.d.ts +58 -0
- package/lib/helpers/materialized-reports/materialized-reports-scope-group-helpers.js +286 -0
- package/lib/helpers/materialized-reports/materialized-reports-selection-helpers.d.ts +25 -0
- package/lib/helpers/materialized-reports/materialized-reports-selection-helpers.js +479 -0
- package/lib/helpers/materialized-reports/tenant-sales-overview-formatter.d.ts +24 -0
- package/lib/helpers/materialized-reports/tenant-sales-overview-formatter.js +127 -7
- package/lib/helpers/materialized-reports/tenant-sales-overview-helpers.js +47 -1
- package/lib/helpers/order/generate-order.d.ts +2 -0
- package/lib/helpers/order/generate-order.js +13 -0
- package/lib/helpers/store/common-order-actions.js +7 -3
- package/lib/helpers/types/index.d.ts +1 -0
- package/lib/helpers/types/index.js +1 -0
- package/lib/helpers/types/materialized-reports-apis.d.ts +117 -25
- package/lib/helpers/types/materialized-reports-apis.js +1 -0
- package/lib/helpers/types/report-calendar.d.ts +20 -0
- package/lib/helpers/types/report-calendar.js +2 -0
- package/lib/schemas/models/internal_invoices.d.ts +3 -3
- package/lib/schemas/models/materialized_tenant_sales_overview_reports.d.ts +6 -6
- package/lib/schemas/models/orders.d.ts +692 -692
- package/lib/schemas/models/tenant_purchase_orders.d.ts +90 -90
- package/lib/schemas/models/tenants.d.ts +9 -9
- package/lib/schemas/models/warehouse_communications.d.ts +3 -3
- package/lib/schemas/models/warehouse_internal_movements.d.ts +48 -48
- package/lib/schemas/models/warehouse_purchase_order_rfqs.d.ts +63 -63
- package/lib/schemas/models/warehouse_purchase_orders.d.ts +96 -96
- package/lib/schemas/models/warehouse_sale_invoices.d.ts +3 -3
- package/lib/schemas/models/warehouse_sale_order_rfqs.d.ts +69 -69
- package/lib/schemas/models/warehouse_sale_orders.d.ts +45 -45
- package/lib/schemas/models/warehouses.d.ts +6 -6
- package/lib/tests/materialized-reports/materialized-reports-scope-group-helpers.test.d.ts +1 -0
- package/lib/tests/materialized-reports/materialized-reports-scope-group-helpers.test.js +275 -0
- package/lib/tests/materialized-reports/materialized-reports-selection-helpers.test.d.ts +1 -0
- package/lib/tests/materialized-reports/materialized-reports-selection-helpers.test.js +166 -0
- package/lib/tests/materialized-reports/tenant-sales-overview-formatter-aggregated.test.d.ts +1 -0
- package/lib/tests/materialized-reports/tenant-sales-overview-formatter-aggregated.test.js +143 -0
- package/lib/tests/materialized-reports/tenant-sales-overview-helpers.test.js +22 -0
- package/lib/tests/num-of-guests-limit.test.d.ts +1 -0
- package/lib/tests/num-of-guests-limit.test.js +76 -0
- package/package.json +1 -1
|
@@ -37,9 +37,6 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
|
|
|
37
37
|
dispatched_qty?: number | null | undefined;
|
|
38
38
|
}>;
|
|
39
39
|
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
40
|
-
amount_collected: number;
|
|
41
|
-
amount_earned: number;
|
|
42
|
-
grand_total: number;
|
|
43
40
|
payments: import("mongoose").Types.DocumentArray<{
|
|
44
41
|
payment_type: string;
|
|
45
42
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -101,6 +98,9 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
|
|
|
101
98
|
refund_reason?: string | null | undefined;
|
|
102
99
|
note?: string | null | undefined;
|
|
103
100
|
}>;
|
|
101
|
+
amount_earned: number;
|
|
102
|
+
grand_total: number;
|
|
103
|
+
amount_collected: number;
|
|
104
104
|
total_items: number;
|
|
105
105
|
total_quantity: number;
|
|
106
106
|
is_gst_inclusive?: boolean | null | undefined;
|
|
@@ -141,9 +141,6 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
|
|
|
141
141
|
dispatched_qty?: number | null | undefined;
|
|
142
142
|
}>;
|
|
143
143
|
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
144
|
-
amount_collected: number;
|
|
145
|
-
amount_earned: number;
|
|
146
|
-
grand_total: number;
|
|
147
144
|
payments: import("mongoose").Types.DocumentArray<{
|
|
148
145
|
payment_type: string;
|
|
149
146
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -205,6 +202,9 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
|
|
|
205
202
|
refund_reason?: string | null | undefined;
|
|
206
203
|
note?: string | null | undefined;
|
|
207
204
|
}>;
|
|
205
|
+
amount_earned: number;
|
|
206
|
+
grand_total: number;
|
|
207
|
+
amount_collected: number;
|
|
208
208
|
total_items: number;
|
|
209
209
|
total_quantity: number;
|
|
210
210
|
is_gst_inclusive?: boolean | null | undefined;
|
|
@@ -245,9 +245,6 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
|
|
|
245
245
|
dispatched_qty?: number | null | undefined;
|
|
246
246
|
}>;
|
|
247
247
|
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
248
|
-
amount_collected: number;
|
|
249
|
-
amount_earned: number;
|
|
250
|
-
grand_total: number;
|
|
251
248
|
payments: import("mongoose").Types.DocumentArray<{
|
|
252
249
|
payment_type: string;
|
|
253
250
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -309,6 +306,9 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
|
|
|
309
306
|
refund_reason?: string | null | undefined;
|
|
310
307
|
note?: string | null | undefined;
|
|
311
308
|
}>;
|
|
309
|
+
amount_earned: number;
|
|
310
|
+
grand_total: number;
|
|
311
|
+
amount_collected: number;
|
|
312
312
|
total_items: number;
|
|
313
313
|
total_quantity: number;
|
|
314
314
|
is_gst_inclusive?: boolean | null | undefined;
|
|
@@ -399,9 +399,6 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
399
399
|
dispatched_qty?: number | null | undefined;
|
|
400
400
|
}>;
|
|
401
401
|
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
402
|
-
amount_collected: number;
|
|
403
|
-
amount_earned: number;
|
|
404
|
-
grand_total: number;
|
|
405
402
|
payments: import("mongoose").Types.DocumentArray<{
|
|
406
403
|
payment_type: string;
|
|
407
404
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -463,6 +460,9 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
463
460
|
refund_reason?: string | null | undefined;
|
|
464
461
|
note?: string | null | undefined;
|
|
465
462
|
}>;
|
|
463
|
+
amount_earned: number;
|
|
464
|
+
grand_total: number;
|
|
465
|
+
amount_collected: number;
|
|
466
466
|
total_items: number;
|
|
467
467
|
total_quantity: number;
|
|
468
468
|
is_gst_inclusive?: boolean | null | undefined;
|
|
@@ -503,9 +503,6 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
503
503
|
dispatched_qty?: number | null | undefined;
|
|
504
504
|
}>;
|
|
505
505
|
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
506
|
-
amount_collected: number;
|
|
507
|
-
amount_earned: number;
|
|
508
|
-
grand_total: number;
|
|
509
506
|
payments: import("mongoose").Types.DocumentArray<{
|
|
510
507
|
payment_type: string;
|
|
511
508
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -567,6 +564,9 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
567
564
|
refund_reason?: string | null | undefined;
|
|
568
565
|
note?: string | null | undefined;
|
|
569
566
|
}>;
|
|
567
|
+
amount_earned: number;
|
|
568
|
+
grand_total: number;
|
|
569
|
+
amount_collected: number;
|
|
570
570
|
total_items: number;
|
|
571
571
|
total_quantity: number;
|
|
572
572
|
is_gst_inclusive?: boolean | null | undefined;
|
|
@@ -607,9 +607,6 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
607
607
|
dispatched_qty?: number | null | undefined;
|
|
608
608
|
}>;
|
|
609
609
|
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
610
|
-
amount_collected: number;
|
|
611
|
-
amount_earned: number;
|
|
612
|
-
grand_total: number;
|
|
613
610
|
payments: import("mongoose").Types.DocumentArray<{
|
|
614
611
|
payment_type: string;
|
|
615
612
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -671,6 +668,9 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
671
668
|
refund_reason?: string | null | undefined;
|
|
672
669
|
note?: string | null | undefined;
|
|
673
670
|
}>;
|
|
671
|
+
amount_earned: number;
|
|
672
|
+
grand_total: number;
|
|
673
|
+
amount_collected: number;
|
|
674
674
|
total_items: number;
|
|
675
675
|
total_quantity: number;
|
|
676
676
|
is_gst_inclusive?: boolean | null | undefined;
|
|
@@ -678,10 +678,6 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
678
678
|
gst_amount?: number | null | undefined;
|
|
679
679
|
notes?: string | null | undefined;
|
|
680
680
|
}>;
|
|
681
|
-
amount_collected: number;
|
|
682
|
-
is_deleted: boolean;
|
|
683
|
-
amount_earned: number;
|
|
684
|
-
grand_total: number;
|
|
685
681
|
payments: import("mongoose").Types.DocumentArray<{
|
|
686
682
|
payment_type: string;
|
|
687
683
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -743,6 +739,10 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
743
739
|
refund_reason?: string | null | undefined;
|
|
744
740
|
note?: string | null | undefined;
|
|
745
741
|
}>;
|
|
742
|
+
amount_earned: number;
|
|
743
|
+
grand_total: number;
|
|
744
|
+
amount_collected: number;
|
|
745
|
+
is_deleted: boolean;
|
|
746
746
|
created_by: {
|
|
747
747
|
name: string;
|
|
748
748
|
uid: string;
|
|
@@ -900,9 +900,6 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
900
900
|
dispatched_qty?: number | null | undefined;
|
|
901
901
|
}>;
|
|
902
902
|
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
903
|
-
amount_collected: number;
|
|
904
|
-
amount_earned: number;
|
|
905
|
-
grand_total: number;
|
|
906
903
|
payments: import("mongoose").Types.DocumentArray<{
|
|
907
904
|
payment_type: string;
|
|
908
905
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -964,6 +961,9 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
964
961
|
refund_reason?: string | null | undefined;
|
|
965
962
|
note?: string | null | undefined;
|
|
966
963
|
}>;
|
|
964
|
+
amount_earned: number;
|
|
965
|
+
grand_total: number;
|
|
966
|
+
amount_collected: number;
|
|
967
967
|
total_items: number;
|
|
968
968
|
total_quantity: number;
|
|
969
969
|
is_gst_inclusive?: boolean | null | undefined;
|
|
@@ -1004,9 +1004,6 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
1004
1004
|
dispatched_qty?: number | null | undefined;
|
|
1005
1005
|
}>;
|
|
1006
1006
|
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
1007
|
-
amount_collected: number;
|
|
1008
|
-
amount_earned: number;
|
|
1009
|
-
grand_total: number;
|
|
1010
1007
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1011
1008
|
payment_type: string;
|
|
1012
1009
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1068,6 +1065,9 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
1068
1065
|
refund_reason?: string | null | undefined;
|
|
1069
1066
|
note?: string | null | undefined;
|
|
1070
1067
|
}>;
|
|
1068
|
+
amount_earned: number;
|
|
1069
|
+
grand_total: number;
|
|
1070
|
+
amount_collected: number;
|
|
1071
1071
|
total_items: number;
|
|
1072
1072
|
total_quantity: number;
|
|
1073
1073
|
is_gst_inclusive?: boolean | null | undefined;
|
|
@@ -1108,9 +1108,6 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
1108
1108
|
dispatched_qty?: number | null | undefined;
|
|
1109
1109
|
}>;
|
|
1110
1110
|
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
1111
|
-
amount_collected: number;
|
|
1112
|
-
amount_earned: number;
|
|
1113
|
-
grand_total: number;
|
|
1114
1111
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1115
1112
|
payment_type: string;
|
|
1116
1113
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1172,6 +1169,9 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
1172
1169
|
refund_reason?: string | null | undefined;
|
|
1173
1170
|
note?: string | null | undefined;
|
|
1174
1171
|
}>;
|
|
1172
|
+
amount_earned: number;
|
|
1173
|
+
grand_total: number;
|
|
1174
|
+
amount_collected: number;
|
|
1175
1175
|
total_items: number;
|
|
1176
1176
|
total_quantity: number;
|
|
1177
1177
|
is_gst_inclusive?: boolean | null | undefined;
|
|
@@ -1179,10 +1179,6 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
1179
1179
|
gst_amount?: number | null | undefined;
|
|
1180
1180
|
notes?: string | null | undefined;
|
|
1181
1181
|
}>;
|
|
1182
|
-
amount_collected: number;
|
|
1183
|
-
is_deleted: boolean;
|
|
1184
|
-
amount_earned: number;
|
|
1185
|
-
grand_total: number;
|
|
1186
1182
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1187
1183
|
payment_type: string;
|
|
1188
1184
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1244,6 +1240,10 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
1244
1240
|
refund_reason?: string | null | undefined;
|
|
1245
1241
|
note?: string | null | undefined;
|
|
1246
1242
|
}>;
|
|
1243
|
+
amount_earned: number;
|
|
1244
|
+
grand_total: number;
|
|
1245
|
+
amount_collected: number;
|
|
1246
|
+
is_deleted: boolean;
|
|
1247
1247
|
created_by: {
|
|
1248
1248
|
name: string;
|
|
1249
1249
|
uid: string;
|
|
@@ -1401,9 +1401,6 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
1401
1401
|
dispatched_qty?: number | null | undefined;
|
|
1402
1402
|
}>;
|
|
1403
1403
|
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
1404
|
-
amount_collected: number;
|
|
1405
|
-
amount_earned: number;
|
|
1406
|
-
grand_total: number;
|
|
1407
1404
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1408
1405
|
payment_type: string;
|
|
1409
1406
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1465,6 +1462,9 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
1465
1462
|
refund_reason?: string | null | undefined;
|
|
1466
1463
|
note?: string | null | undefined;
|
|
1467
1464
|
}>;
|
|
1465
|
+
amount_earned: number;
|
|
1466
|
+
grand_total: number;
|
|
1467
|
+
amount_collected: number;
|
|
1468
1468
|
total_items: number;
|
|
1469
1469
|
total_quantity: number;
|
|
1470
1470
|
is_gst_inclusive?: boolean | null | undefined;
|
|
@@ -1505,9 +1505,6 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
1505
1505
|
dispatched_qty?: number | null | undefined;
|
|
1506
1506
|
}>;
|
|
1507
1507
|
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
1508
|
-
amount_collected: number;
|
|
1509
|
-
amount_earned: number;
|
|
1510
|
-
grand_total: number;
|
|
1511
1508
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1512
1509
|
payment_type: string;
|
|
1513
1510
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1569,6 +1566,9 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
1569
1566
|
refund_reason?: string | null | undefined;
|
|
1570
1567
|
note?: string | null | undefined;
|
|
1571
1568
|
}>;
|
|
1569
|
+
amount_earned: number;
|
|
1570
|
+
grand_total: number;
|
|
1571
|
+
amount_collected: number;
|
|
1572
1572
|
total_items: number;
|
|
1573
1573
|
total_quantity: number;
|
|
1574
1574
|
is_gst_inclusive?: boolean | null | undefined;
|
|
@@ -1609,9 +1609,6 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
1609
1609
|
dispatched_qty?: number | null | undefined;
|
|
1610
1610
|
}>;
|
|
1611
1611
|
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
1612
|
-
amount_collected: number;
|
|
1613
|
-
amount_earned: number;
|
|
1614
|
-
grand_total: number;
|
|
1615
1612
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1616
1613
|
payment_type: string;
|
|
1617
1614
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1673,6 +1670,9 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
1673
1670
|
refund_reason?: string | null | undefined;
|
|
1674
1671
|
note?: string | null | undefined;
|
|
1675
1672
|
}>;
|
|
1673
|
+
amount_earned: number;
|
|
1674
|
+
grand_total: number;
|
|
1675
|
+
amount_collected: number;
|
|
1676
1676
|
total_items: number;
|
|
1677
1677
|
total_quantity: number;
|
|
1678
1678
|
is_gst_inclusive?: boolean | null | undefined;
|
|
@@ -1680,10 +1680,6 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
1680
1680
|
gst_amount?: number | null | undefined;
|
|
1681
1681
|
notes?: string | null | undefined;
|
|
1682
1682
|
}>;
|
|
1683
|
-
amount_collected: number;
|
|
1684
|
-
is_deleted: boolean;
|
|
1685
|
-
amount_earned: number;
|
|
1686
|
-
grand_total: number;
|
|
1687
1683
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1688
1684
|
payment_type: string;
|
|
1689
1685
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1745,6 +1741,10 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
1745
1741
|
refund_reason?: string | null | undefined;
|
|
1746
1742
|
note?: string | null | undefined;
|
|
1747
1743
|
}>;
|
|
1744
|
+
amount_earned: number;
|
|
1745
|
+
grand_total: number;
|
|
1746
|
+
amount_collected: number;
|
|
1747
|
+
is_deleted: boolean;
|
|
1748
1748
|
created_by: {
|
|
1749
1749
|
name: string;
|
|
1750
1750
|
uid: string;
|
|
@@ -153,7 +153,6 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
153
153
|
}>;
|
|
154
154
|
price: number;
|
|
155
155
|
order_number: number;
|
|
156
|
-
warehouse_id: string;
|
|
157
156
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
158
157
|
updatedAt: NativeDate;
|
|
159
158
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -296,20 +295,20 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
296
295
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
297
296
|
}>;
|
|
298
297
|
price: number;
|
|
298
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
299
|
+
amount_earned: number;
|
|
300
|
+
grand_total: number;
|
|
299
301
|
staff_details: {
|
|
300
302
|
staff_id: string;
|
|
301
303
|
staff_name?: string | null | undefined;
|
|
302
304
|
staff_mobile?: string | null | undefined;
|
|
303
305
|
staff_email?: string | null | undefined;
|
|
304
306
|
};
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
307
|
+
special_instructions?: string | null | undefined;
|
|
308
|
+
tax_number?: string | null | undefined;
|
|
308
309
|
is_gst_inclusive?: boolean | null | undefined;
|
|
309
310
|
gst?: number | null | undefined;
|
|
310
311
|
gst_amount?: number | null | undefined;
|
|
311
|
-
special_instructions?: string | null | undefined;
|
|
312
|
-
tax_number?: string | null | undefined;
|
|
313
312
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
314
313
|
updatedAt: NativeDate;
|
|
315
314
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -452,20 +451,20 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
452
451
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
453
452
|
}>;
|
|
454
453
|
price: number;
|
|
454
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
455
|
+
amount_earned: number;
|
|
456
|
+
grand_total: number;
|
|
455
457
|
staff_details: {
|
|
456
458
|
staff_id: string;
|
|
457
459
|
staff_name?: string | null | undefined;
|
|
458
460
|
staff_mobile?: string | null | undefined;
|
|
459
461
|
staff_email?: string | null | undefined;
|
|
460
462
|
};
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
463
|
+
special_instructions?: string | null | undefined;
|
|
464
|
+
tax_number?: string | null | undefined;
|
|
464
465
|
is_gst_inclusive?: boolean | null | undefined;
|
|
465
466
|
gst?: number | null | undefined;
|
|
466
467
|
gst_amount?: number | null | undefined;
|
|
467
|
-
special_instructions?: string | null | undefined;
|
|
468
|
-
tax_number?: string | null | undefined;
|
|
469
468
|
}> & {
|
|
470
469
|
updatedAt: NativeDate;
|
|
471
470
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -608,21 +607,24 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
608
607
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
609
608
|
}>;
|
|
610
609
|
price: number;
|
|
610
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
611
|
+
amount_earned: number;
|
|
612
|
+
grand_total: number;
|
|
611
613
|
staff_details: {
|
|
612
614
|
staff_id: string;
|
|
613
615
|
staff_name?: string | null | undefined;
|
|
614
616
|
staff_mobile?: string | null | undefined;
|
|
615
617
|
staff_email?: string | null | undefined;
|
|
616
618
|
};
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
619
|
+
special_instructions?: string | null | undefined;
|
|
620
|
+
tax_number?: string | null | undefined;
|
|
620
621
|
is_gst_inclusive?: boolean | null | undefined;
|
|
621
622
|
gst?: number | null | undefined;
|
|
622
623
|
gst_amount?: number | null | undefined;
|
|
623
|
-
special_instructions?: string | null | undefined;
|
|
624
|
-
tax_number?: string | null | undefined;
|
|
625
624
|
}>;
|
|
625
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
626
|
+
amount_earned: number;
|
|
627
|
+
grand_total: number;
|
|
626
628
|
is_deleted: boolean;
|
|
627
629
|
order_status_updated_at: NativeDate;
|
|
628
630
|
staff_details: {
|
|
@@ -631,18 +633,16 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
631
633
|
staff_mobile?: string | null | undefined;
|
|
632
634
|
staff_email?: string | null | undefined;
|
|
633
635
|
};
|
|
634
|
-
|
|
635
|
-
grand_total: number;
|
|
636
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
636
|
+
warehouse_id: string;
|
|
637
637
|
payment_terms: number;
|
|
638
638
|
cancel_reason?: string | null | undefined;
|
|
639
|
+
special_instructions?: string | null | undefined;
|
|
640
|
+
tax_number?: string | null | undefined;
|
|
639
641
|
delete_reason?: string | null | undefined;
|
|
640
642
|
is_reopened?: boolean | null | undefined;
|
|
641
643
|
is_gst_inclusive?: boolean | null | undefined;
|
|
642
644
|
gst?: number | null | undefined;
|
|
643
645
|
gst_amount?: number | null | undefined;
|
|
644
|
-
special_instructions?: string | null | undefined;
|
|
645
|
-
tax_number?: string | null | undefined;
|
|
646
646
|
vendor_name?: string | null | undefined;
|
|
647
647
|
vendor_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
648
648
|
requested_vendors?: Map<string, {
|
|
@@ -802,7 +802,6 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
802
802
|
}>;
|
|
803
803
|
price: number;
|
|
804
804
|
order_number: number;
|
|
805
|
-
warehouse_id: string;
|
|
806
805
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
807
806
|
updatedAt: NativeDate;
|
|
808
807
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -945,20 +944,20 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
945
944
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
946
945
|
}>;
|
|
947
946
|
price: number;
|
|
947
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
948
|
+
amount_earned: number;
|
|
949
|
+
grand_total: number;
|
|
948
950
|
staff_details: {
|
|
949
951
|
staff_id: string;
|
|
950
952
|
staff_name?: string | null | undefined;
|
|
951
953
|
staff_mobile?: string | null | undefined;
|
|
952
954
|
staff_email?: string | null | undefined;
|
|
953
955
|
};
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
956
|
+
special_instructions?: string | null | undefined;
|
|
957
|
+
tax_number?: string | null | undefined;
|
|
957
958
|
is_gst_inclusive?: boolean | null | undefined;
|
|
958
959
|
gst?: number | null | undefined;
|
|
959
960
|
gst_amount?: number | null | undefined;
|
|
960
|
-
special_instructions?: string | null | undefined;
|
|
961
|
-
tax_number?: string | null | undefined;
|
|
962
961
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
963
962
|
updatedAt: NativeDate;
|
|
964
963
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -1101,20 +1100,20 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
1101
1100
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1102
1101
|
}>;
|
|
1103
1102
|
price: number;
|
|
1103
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
1104
|
+
amount_earned: number;
|
|
1105
|
+
grand_total: number;
|
|
1104
1106
|
staff_details: {
|
|
1105
1107
|
staff_id: string;
|
|
1106
1108
|
staff_name?: string | null | undefined;
|
|
1107
1109
|
staff_mobile?: string | null | undefined;
|
|
1108
1110
|
staff_email?: string | null | undefined;
|
|
1109
1111
|
};
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
1112
|
+
special_instructions?: string | null | undefined;
|
|
1113
|
+
tax_number?: string | null | undefined;
|
|
1113
1114
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1114
1115
|
gst?: number | null | undefined;
|
|
1115
1116
|
gst_amount?: number | null | undefined;
|
|
1116
|
-
special_instructions?: string | null | undefined;
|
|
1117
|
-
tax_number?: string | null | undefined;
|
|
1118
1117
|
}> & {
|
|
1119
1118
|
updatedAt: NativeDate;
|
|
1120
1119
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -1257,21 +1256,24 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
1257
1256
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1258
1257
|
}>;
|
|
1259
1258
|
price: number;
|
|
1259
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
1260
|
+
amount_earned: number;
|
|
1261
|
+
grand_total: number;
|
|
1260
1262
|
staff_details: {
|
|
1261
1263
|
staff_id: string;
|
|
1262
1264
|
staff_name?: string | null | undefined;
|
|
1263
1265
|
staff_mobile?: string | null | undefined;
|
|
1264
1266
|
staff_email?: string | null | undefined;
|
|
1265
1267
|
};
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
1268
|
+
special_instructions?: string | null | undefined;
|
|
1269
|
+
tax_number?: string | null | undefined;
|
|
1269
1270
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1270
1271
|
gst?: number | null | undefined;
|
|
1271
1272
|
gst_amount?: number | null | undefined;
|
|
1272
|
-
special_instructions?: string | null | undefined;
|
|
1273
|
-
tax_number?: string | null | undefined;
|
|
1274
1273
|
}>;
|
|
1274
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
1275
|
+
amount_earned: number;
|
|
1276
|
+
grand_total: number;
|
|
1275
1277
|
is_deleted: boolean;
|
|
1276
1278
|
order_status_updated_at: NativeDate;
|
|
1277
1279
|
staff_details: {
|
|
@@ -1280,18 +1282,16 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
1280
1282
|
staff_mobile?: string | null | undefined;
|
|
1281
1283
|
staff_email?: string | null | undefined;
|
|
1282
1284
|
};
|
|
1283
|
-
|
|
1284
|
-
grand_total: number;
|
|
1285
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
1285
|
+
warehouse_id: string;
|
|
1286
1286
|
payment_terms: number;
|
|
1287
1287
|
cancel_reason?: string | null | undefined;
|
|
1288
|
+
special_instructions?: string | null | undefined;
|
|
1289
|
+
tax_number?: string | null | undefined;
|
|
1288
1290
|
delete_reason?: string | null | undefined;
|
|
1289
1291
|
is_reopened?: boolean | null | undefined;
|
|
1290
1292
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1291
1293
|
gst?: number | null | undefined;
|
|
1292
1294
|
gst_amount?: number | null | undefined;
|
|
1293
|
-
special_instructions?: string | null | undefined;
|
|
1294
|
-
tax_number?: string | null | undefined;
|
|
1295
1295
|
vendor_name?: string | null | undefined;
|
|
1296
1296
|
vendor_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1297
1297
|
requested_vendors?: Map<string, {
|
|
@@ -1451,7 +1451,6 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
1451
1451
|
}>;
|
|
1452
1452
|
price: number;
|
|
1453
1453
|
order_number: number;
|
|
1454
|
-
warehouse_id: string;
|
|
1455
1454
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
1456
1455
|
updatedAt: NativeDate;
|
|
1457
1456
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -1594,20 +1593,20 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
1594
1593
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1595
1594
|
}>;
|
|
1596
1595
|
price: number;
|
|
1596
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
1597
|
+
amount_earned: number;
|
|
1598
|
+
grand_total: number;
|
|
1597
1599
|
staff_details: {
|
|
1598
1600
|
staff_id: string;
|
|
1599
1601
|
staff_name?: string | null | undefined;
|
|
1600
1602
|
staff_mobile?: string | null | undefined;
|
|
1601
1603
|
staff_email?: string | null | undefined;
|
|
1602
1604
|
};
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
1605
|
+
special_instructions?: string | null | undefined;
|
|
1606
|
+
tax_number?: string | null | undefined;
|
|
1606
1607
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1607
1608
|
gst?: number | null | undefined;
|
|
1608
1609
|
gst_amount?: number | null | undefined;
|
|
1609
|
-
special_instructions?: string | null | undefined;
|
|
1610
|
-
tax_number?: string | null | undefined;
|
|
1611
1610
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
1612
1611
|
updatedAt: NativeDate;
|
|
1613
1612
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -1750,20 +1749,20 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
1750
1749
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1751
1750
|
}>;
|
|
1752
1751
|
price: number;
|
|
1752
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
1753
|
+
amount_earned: number;
|
|
1754
|
+
grand_total: number;
|
|
1753
1755
|
staff_details: {
|
|
1754
1756
|
staff_id: string;
|
|
1755
1757
|
staff_name?: string | null | undefined;
|
|
1756
1758
|
staff_mobile?: string | null | undefined;
|
|
1757
1759
|
staff_email?: string | null | undefined;
|
|
1758
1760
|
};
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
1761
|
+
special_instructions?: string | null | undefined;
|
|
1762
|
+
tax_number?: string | null | undefined;
|
|
1762
1763
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1763
1764
|
gst?: number | null | undefined;
|
|
1764
1765
|
gst_amount?: number | null | undefined;
|
|
1765
|
-
special_instructions?: string | null | undefined;
|
|
1766
|
-
tax_number?: string | null | undefined;
|
|
1767
1766
|
}> & {
|
|
1768
1767
|
updatedAt: NativeDate;
|
|
1769
1768
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -1906,21 +1905,24 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
1906
1905
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1907
1906
|
}>;
|
|
1908
1907
|
price: number;
|
|
1908
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
1909
|
+
amount_earned: number;
|
|
1910
|
+
grand_total: number;
|
|
1909
1911
|
staff_details: {
|
|
1910
1912
|
staff_id: string;
|
|
1911
1913
|
staff_name?: string | null | undefined;
|
|
1912
1914
|
staff_mobile?: string | null | undefined;
|
|
1913
1915
|
staff_email?: string | null | undefined;
|
|
1914
1916
|
};
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
1917
|
+
special_instructions?: string | null | undefined;
|
|
1918
|
+
tax_number?: string | null | undefined;
|
|
1918
1919
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1919
1920
|
gst?: number | null | undefined;
|
|
1920
1921
|
gst_amount?: number | null | undefined;
|
|
1921
|
-
special_instructions?: string | null | undefined;
|
|
1922
|
-
tax_number?: string | null | undefined;
|
|
1923
1922
|
}>;
|
|
1923
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
1924
|
+
amount_earned: number;
|
|
1925
|
+
grand_total: number;
|
|
1924
1926
|
is_deleted: boolean;
|
|
1925
1927
|
order_status_updated_at: NativeDate;
|
|
1926
1928
|
staff_details: {
|
|
@@ -1929,18 +1931,16 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
1929
1931
|
staff_mobile?: string | null | undefined;
|
|
1930
1932
|
staff_email?: string | null | undefined;
|
|
1931
1933
|
};
|
|
1932
|
-
|
|
1933
|
-
grand_total: number;
|
|
1934
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
1934
|
+
warehouse_id: string;
|
|
1935
1935
|
payment_terms: number;
|
|
1936
1936
|
cancel_reason?: string | null | undefined;
|
|
1937
|
+
special_instructions?: string | null | undefined;
|
|
1938
|
+
tax_number?: string | null | undefined;
|
|
1937
1939
|
delete_reason?: string | null | undefined;
|
|
1938
1940
|
is_reopened?: boolean | null | undefined;
|
|
1939
1941
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1940
1942
|
gst?: number | null | undefined;
|
|
1941
1943
|
gst_amount?: number | null | undefined;
|
|
1942
|
-
special_instructions?: string | null | undefined;
|
|
1943
|
-
tax_number?: string | null | undefined;
|
|
1944
1944
|
vendor_name?: string | null | undefined;
|
|
1945
1945
|
vendor_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1946
1946
|
requested_vendors?: Map<string, {
|