@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
|
@@ -153,9 +153,6 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
153
153
|
}>;
|
|
154
154
|
price: number;
|
|
155
155
|
order_number: number;
|
|
156
|
-
warehouse_id: string;
|
|
157
|
-
client_name: string;
|
|
158
|
-
client_id: import("mongoose").Types.ObjectId;
|
|
159
156
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
160
157
|
updatedAt: NativeDate;
|
|
161
158
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -298,17 +295,17 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
298
295
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
299
296
|
}>;
|
|
300
297
|
price: number;
|
|
298
|
+
special_instructions: string;
|
|
299
|
+
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
300
|
+
tax_number: string;
|
|
301
|
+
amount_earned: number;
|
|
302
|
+
grand_total: number;
|
|
301
303
|
staff_details: {
|
|
302
304
|
staff_id: string;
|
|
303
305
|
staff_name: string;
|
|
304
306
|
staff_mobile: string;
|
|
305
307
|
staff_email: string;
|
|
306
308
|
};
|
|
307
|
-
special_instructions: string;
|
|
308
|
-
amount_earned: number;
|
|
309
|
-
grand_total: number;
|
|
310
|
-
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
311
|
-
tax_number: string;
|
|
312
309
|
is_gst_inclusive?: boolean | null | undefined;
|
|
313
310
|
gst?: number | null | undefined;
|
|
314
311
|
gst_amount?: number | null | undefined;
|
|
@@ -454,17 +451,17 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
454
451
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
455
452
|
}>;
|
|
456
453
|
price: number;
|
|
454
|
+
special_instructions: string;
|
|
455
|
+
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
456
|
+
tax_number: string;
|
|
457
|
+
amount_earned: number;
|
|
458
|
+
grand_total: number;
|
|
457
459
|
staff_details: {
|
|
458
460
|
staff_id: string;
|
|
459
461
|
staff_name: string;
|
|
460
462
|
staff_mobile: string;
|
|
461
463
|
staff_email: string;
|
|
462
464
|
};
|
|
463
|
-
special_instructions: string;
|
|
464
|
-
amount_earned: number;
|
|
465
|
-
grand_total: number;
|
|
466
|
-
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
467
|
-
tax_number: string;
|
|
468
465
|
is_gst_inclusive?: boolean | null | undefined;
|
|
469
466
|
gst?: number | null | undefined;
|
|
470
467
|
gst_amount?: number | null | undefined;
|
|
@@ -610,21 +607,26 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
610
607
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
611
608
|
}>;
|
|
612
609
|
price: number;
|
|
610
|
+
special_instructions: string;
|
|
611
|
+
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
612
|
+
tax_number: string;
|
|
613
|
+
amount_earned: number;
|
|
614
|
+
grand_total: number;
|
|
613
615
|
staff_details: {
|
|
614
616
|
staff_id: string;
|
|
615
617
|
staff_name: string;
|
|
616
618
|
staff_mobile: string;
|
|
617
619
|
staff_email: string;
|
|
618
620
|
};
|
|
619
|
-
special_instructions: string;
|
|
620
|
-
amount_earned: number;
|
|
621
|
-
grand_total: number;
|
|
622
|
-
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
623
|
-
tax_number: string;
|
|
624
621
|
is_gst_inclusive?: boolean | null | undefined;
|
|
625
622
|
gst?: number | null | undefined;
|
|
626
623
|
gst_amount?: number | null | undefined;
|
|
627
624
|
}>;
|
|
625
|
+
special_instructions: string;
|
|
626
|
+
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
627
|
+
tax_number: string;
|
|
628
|
+
amount_earned: number;
|
|
629
|
+
grand_total: number;
|
|
628
630
|
is_deleted: boolean;
|
|
629
631
|
order_status_updated_at: NativeDate;
|
|
630
632
|
staff_details: {
|
|
@@ -633,11 +635,9 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
633
635
|
staff_mobile: string;
|
|
634
636
|
staff_email: string;
|
|
635
637
|
};
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
640
|
-
tax_number: string;
|
|
638
|
+
warehouse_id: string;
|
|
639
|
+
client_name: string;
|
|
640
|
+
client_id: import("mongoose").Types.ObjectId;
|
|
641
641
|
payment_terms: number;
|
|
642
642
|
cancel_reason?: string | null | undefined;
|
|
643
643
|
delete_reason?: string | null | undefined;
|
|
@@ -802,9 +802,6 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
802
802
|
}>;
|
|
803
803
|
price: number;
|
|
804
804
|
order_number: number;
|
|
805
|
-
warehouse_id: string;
|
|
806
|
-
client_name: string;
|
|
807
|
-
client_id: import("mongoose").Types.ObjectId;
|
|
808
805
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
809
806
|
updatedAt: NativeDate;
|
|
810
807
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -947,17 +944,17 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
947
944
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
948
945
|
}>;
|
|
949
946
|
price: number;
|
|
947
|
+
special_instructions: string;
|
|
948
|
+
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
949
|
+
tax_number: string;
|
|
950
|
+
amount_earned: number;
|
|
951
|
+
grand_total: number;
|
|
950
952
|
staff_details: {
|
|
951
953
|
staff_id: string;
|
|
952
954
|
staff_name: string;
|
|
953
955
|
staff_mobile: string;
|
|
954
956
|
staff_email: string;
|
|
955
957
|
};
|
|
956
|
-
special_instructions: string;
|
|
957
|
-
amount_earned: number;
|
|
958
|
-
grand_total: number;
|
|
959
|
-
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
960
|
-
tax_number: string;
|
|
961
958
|
is_gst_inclusive?: boolean | null | undefined;
|
|
962
959
|
gst?: number | null | undefined;
|
|
963
960
|
gst_amount?: number | null | undefined;
|
|
@@ -1103,17 +1100,17 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
1103
1100
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1104
1101
|
}>;
|
|
1105
1102
|
price: number;
|
|
1103
|
+
special_instructions: string;
|
|
1104
|
+
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
1105
|
+
tax_number: string;
|
|
1106
|
+
amount_earned: number;
|
|
1107
|
+
grand_total: number;
|
|
1106
1108
|
staff_details: {
|
|
1107
1109
|
staff_id: string;
|
|
1108
1110
|
staff_name: string;
|
|
1109
1111
|
staff_mobile: string;
|
|
1110
1112
|
staff_email: string;
|
|
1111
1113
|
};
|
|
1112
|
-
special_instructions: string;
|
|
1113
|
-
amount_earned: number;
|
|
1114
|
-
grand_total: number;
|
|
1115
|
-
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
1116
|
-
tax_number: string;
|
|
1117
1114
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1118
1115
|
gst?: number | null | undefined;
|
|
1119
1116
|
gst_amount?: number | null | undefined;
|
|
@@ -1259,21 +1256,26 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
1259
1256
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1260
1257
|
}>;
|
|
1261
1258
|
price: number;
|
|
1259
|
+
special_instructions: string;
|
|
1260
|
+
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
1261
|
+
tax_number: string;
|
|
1262
|
+
amount_earned: number;
|
|
1263
|
+
grand_total: number;
|
|
1262
1264
|
staff_details: {
|
|
1263
1265
|
staff_id: string;
|
|
1264
1266
|
staff_name: string;
|
|
1265
1267
|
staff_mobile: string;
|
|
1266
1268
|
staff_email: string;
|
|
1267
1269
|
};
|
|
1268
|
-
special_instructions: string;
|
|
1269
|
-
amount_earned: number;
|
|
1270
|
-
grand_total: number;
|
|
1271
|
-
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
1272
|
-
tax_number: string;
|
|
1273
1270
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1274
1271
|
gst?: number | null | undefined;
|
|
1275
1272
|
gst_amount?: number | null | undefined;
|
|
1276
1273
|
}>;
|
|
1274
|
+
special_instructions: string;
|
|
1275
|
+
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
1276
|
+
tax_number: string;
|
|
1277
|
+
amount_earned: number;
|
|
1278
|
+
grand_total: number;
|
|
1277
1279
|
is_deleted: boolean;
|
|
1278
1280
|
order_status_updated_at: NativeDate;
|
|
1279
1281
|
staff_details: {
|
|
@@ -1282,11 +1284,9 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
1282
1284
|
staff_mobile: string;
|
|
1283
1285
|
staff_email: string;
|
|
1284
1286
|
};
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
1289
|
-
tax_number: string;
|
|
1287
|
+
warehouse_id: string;
|
|
1288
|
+
client_name: string;
|
|
1289
|
+
client_id: import("mongoose").Types.ObjectId;
|
|
1290
1290
|
payment_terms: number;
|
|
1291
1291
|
cancel_reason?: string | null | undefined;
|
|
1292
1292
|
delete_reason?: string | null | undefined;
|
|
@@ -1451,9 +1451,6 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
1451
1451
|
}>;
|
|
1452
1452
|
price: number;
|
|
1453
1453
|
order_number: number;
|
|
1454
|
-
warehouse_id: string;
|
|
1455
|
-
client_name: string;
|
|
1456
|
-
client_id: import("mongoose").Types.ObjectId;
|
|
1457
1454
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
1458
1455
|
updatedAt: NativeDate;
|
|
1459
1456
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -1596,17 +1593,17 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
1596
1593
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1597
1594
|
}>;
|
|
1598
1595
|
price: number;
|
|
1596
|
+
special_instructions: string;
|
|
1597
|
+
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
1598
|
+
tax_number: string;
|
|
1599
|
+
amount_earned: number;
|
|
1600
|
+
grand_total: number;
|
|
1599
1601
|
staff_details: {
|
|
1600
1602
|
staff_id: string;
|
|
1601
1603
|
staff_name: string;
|
|
1602
1604
|
staff_mobile: string;
|
|
1603
1605
|
staff_email: string;
|
|
1604
1606
|
};
|
|
1605
|
-
special_instructions: string;
|
|
1606
|
-
amount_earned: number;
|
|
1607
|
-
grand_total: number;
|
|
1608
|
-
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
1609
|
-
tax_number: string;
|
|
1610
1607
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1611
1608
|
gst?: number | null | undefined;
|
|
1612
1609
|
gst_amount?: number | null | undefined;
|
|
@@ -1752,17 +1749,17 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
1752
1749
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1753
1750
|
}>;
|
|
1754
1751
|
price: number;
|
|
1752
|
+
special_instructions: string;
|
|
1753
|
+
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
1754
|
+
tax_number: string;
|
|
1755
|
+
amount_earned: number;
|
|
1756
|
+
grand_total: number;
|
|
1755
1757
|
staff_details: {
|
|
1756
1758
|
staff_id: string;
|
|
1757
1759
|
staff_name: string;
|
|
1758
1760
|
staff_mobile: string;
|
|
1759
1761
|
staff_email: string;
|
|
1760
1762
|
};
|
|
1761
|
-
special_instructions: string;
|
|
1762
|
-
amount_earned: number;
|
|
1763
|
-
grand_total: number;
|
|
1764
|
-
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
1765
|
-
tax_number: string;
|
|
1766
1763
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1767
1764
|
gst?: number | null | undefined;
|
|
1768
1765
|
gst_amount?: number | null | undefined;
|
|
@@ -1908,21 +1905,26 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
1908
1905
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1909
1906
|
}>;
|
|
1910
1907
|
price: number;
|
|
1908
|
+
special_instructions: string;
|
|
1909
|
+
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
1910
|
+
tax_number: string;
|
|
1911
|
+
amount_earned: number;
|
|
1912
|
+
grand_total: number;
|
|
1911
1913
|
staff_details: {
|
|
1912
1914
|
staff_id: string;
|
|
1913
1915
|
staff_name: string;
|
|
1914
1916
|
staff_mobile: string;
|
|
1915
1917
|
staff_email: string;
|
|
1916
1918
|
};
|
|
1917
|
-
special_instructions: string;
|
|
1918
|
-
amount_earned: number;
|
|
1919
|
-
grand_total: number;
|
|
1920
|
-
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
1921
|
-
tax_number: string;
|
|
1922
1919
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1923
1920
|
gst?: number | null | undefined;
|
|
1924
1921
|
gst_amount?: number | null | undefined;
|
|
1925
1922
|
}>;
|
|
1923
|
+
special_instructions: string;
|
|
1924
|
+
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
1925
|
+
tax_number: string;
|
|
1926
|
+
amount_earned: number;
|
|
1927
|
+
grand_total: number;
|
|
1926
1928
|
is_deleted: boolean;
|
|
1927
1929
|
order_status_updated_at: NativeDate;
|
|
1928
1930
|
staff_details: {
|
|
@@ -1931,11 +1933,9 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
1931
1933
|
staff_mobile: string;
|
|
1932
1934
|
staff_email: string;
|
|
1933
1935
|
};
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
order_status: WAREHOUSE_SALE_ORDER_RFQ_STATUS_ENUM;
|
|
1938
|
-
tax_number: string;
|
|
1936
|
+
warehouse_id: string;
|
|
1937
|
+
client_name: string;
|
|
1938
|
+
client_id: import("mongoose").Types.ObjectId;
|
|
1939
1939
|
payment_terms: number;
|
|
1940
1940
|
cancel_reason?: string | null | undefined;
|
|
1941
1941
|
delete_reason?: string | null | undefined;
|
|
@@ -153,9 +153,6 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
153
153
|
}>;
|
|
154
154
|
price: number;
|
|
155
155
|
order_number: number;
|
|
156
|
-
warehouse_id: string;
|
|
157
|
-
client_name: string;
|
|
158
|
-
client_id: import("mongoose").Types.ObjectId;
|
|
159
156
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
160
157
|
updatedAt: NativeDate;
|
|
161
158
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -299,10 +296,10 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
299
296
|
}>;
|
|
300
297
|
price: number;
|
|
301
298
|
special_instructions: string;
|
|
302
|
-
amount_earned: number;
|
|
303
|
-
grand_total: number;
|
|
304
299
|
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
305
300
|
tax_number: string;
|
|
301
|
+
amount_earned: number;
|
|
302
|
+
grand_total: number;
|
|
306
303
|
staff_details?: {
|
|
307
304
|
staff_id: string;
|
|
308
305
|
staff_name: string;
|
|
@@ -455,10 +452,10 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
455
452
|
}>;
|
|
456
453
|
price: number;
|
|
457
454
|
special_instructions: string;
|
|
458
|
-
amount_earned: number;
|
|
459
|
-
grand_total: number;
|
|
460
455
|
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
461
456
|
tax_number: string;
|
|
457
|
+
amount_earned: number;
|
|
458
|
+
grand_total: number;
|
|
462
459
|
staff_details?: {
|
|
463
460
|
staff_id: string;
|
|
464
461
|
staff_name: string;
|
|
@@ -611,10 +608,10 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
611
608
|
}>;
|
|
612
609
|
price: number;
|
|
613
610
|
special_instructions: string;
|
|
614
|
-
amount_earned: number;
|
|
615
|
-
grand_total: number;
|
|
616
611
|
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
617
612
|
tax_number: string;
|
|
613
|
+
amount_earned: number;
|
|
614
|
+
grand_total: number;
|
|
618
615
|
staff_details?: {
|
|
619
616
|
staff_id: string;
|
|
620
617
|
staff_name: string;
|
|
@@ -625,6 +622,11 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
625
622
|
gst?: number | null | undefined;
|
|
626
623
|
gst_amount?: number | null | undefined;
|
|
627
624
|
}>;
|
|
625
|
+
special_instructions: string;
|
|
626
|
+
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
627
|
+
tax_number: string;
|
|
628
|
+
amount_earned: number;
|
|
629
|
+
grand_total: number;
|
|
628
630
|
amount_collected: number;
|
|
629
631
|
is_deleted: boolean;
|
|
630
632
|
order_status_updated_at: NativeDate;
|
|
@@ -636,18 +638,16 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
636
638
|
staff_mobile: string;
|
|
637
639
|
staff_email: string;
|
|
638
640
|
};
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
643
|
-
tax_number: string;
|
|
641
|
+
warehouse_id: string;
|
|
642
|
+
client_name: string;
|
|
643
|
+
client_id: import("mongoose").Types.ObjectId;
|
|
644
644
|
cancel_reason?: string | null | undefined;
|
|
645
|
-
rfq_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
646
645
|
delete_reason?: string | null | undefined;
|
|
647
646
|
is_reopened?: boolean | null | undefined;
|
|
648
647
|
is_gst_inclusive?: boolean | null | undefined;
|
|
649
648
|
gst?: number | null | undefined;
|
|
650
649
|
gst_amount?: number | null | undefined;
|
|
650
|
+
rfq_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
651
651
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
652
652
|
createdAt: NativeDate;
|
|
653
653
|
updatedAt: NativeDate;
|
|
@@ -797,9 +797,6 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
797
797
|
}>;
|
|
798
798
|
price: number;
|
|
799
799
|
order_number: number;
|
|
800
|
-
warehouse_id: string;
|
|
801
|
-
client_name: string;
|
|
802
|
-
client_id: import("mongoose").Types.ObjectId;
|
|
803
800
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
804
801
|
updatedAt: NativeDate;
|
|
805
802
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -943,10 +940,10 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
943
940
|
}>;
|
|
944
941
|
price: number;
|
|
945
942
|
special_instructions: string;
|
|
946
|
-
amount_earned: number;
|
|
947
|
-
grand_total: number;
|
|
948
943
|
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
949
944
|
tax_number: string;
|
|
945
|
+
amount_earned: number;
|
|
946
|
+
grand_total: number;
|
|
950
947
|
staff_details?: {
|
|
951
948
|
staff_id: string;
|
|
952
949
|
staff_name: string;
|
|
@@ -1099,10 +1096,10 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1099
1096
|
}>;
|
|
1100
1097
|
price: number;
|
|
1101
1098
|
special_instructions: string;
|
|
1102
|
-
amount_earned: number;
|
|
1103
|
-
grand_total: number;
|
|
1104
1099
|
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
1105
1100
|
tax_number: string;
|
|
1101
|
+
amount_earned: number;
|
|
1102
|
+
grand_total: number;
|
|
1106
1103
|
staff_details?: {
|
|
1107
1104
|
staff_id: string;
|
|
1108
1105
|
staff_name: string;
|
|
@@ -1255,10 +1252,10 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1255
1252
|
}>;
|
|
1256
1253
|
price: number;
|
|
1257
1254
|
special_instructions: string;
|
|
1258
|
-
amount_earned: number;
|
|
1259
|
-
grand_total: number;
|
|
1260
1255
|
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
1261
1256
|
tax_number: string;
|
|
1257
|
+
amount_earned: number;
|
|
1258
|
+
grand_total: number;
|
|
1262
1259
|
staff_details?: {
|
|
1263
1260
|
staff_id: string;
|
|
1264
1261
|
staff_name: string;
|
|
@@ -1269,6 +1266,11 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1269
1266
|
gst?: number | null | undefined;
|
|
1270
1267
|
gst_amount?: number | null | undefined;
|
|
1271
1268
|
}>;
|
|
1269
|
+
special_instructions: string;
|
|
1270
|
+
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
1271
|
+
tax_number: string;
|
|
1272
|
+
amount_earned: number;
|
|
1273
|
+
grand_total: number;
|
|
1272
1274
|
amount_collected: number;
|
|
1273
1275
|
is_deleted: boolean;
|
|
1274
1276
|
order_status_updated_at: NativeDate;
|
|
@@ -1280,18 +1282,16 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1280
1282
|
staff_mobile: string;
|
|
1281
1283
|
staff_email: string;
|
|
1282
1284
|
};
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
1287
|
-
tax_number: string;
|
|
1285
|
+
warehouse_id: string;
|
|
1286
|
+
client_name: string;
|
|
1287
|
+
client_id: import("mongoose").Types.ObjectId;
|
|
1288
1288
|
cancel_reason?: string | null | undefined;
|
|
1289
|
-
rfq_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1290
1289
|
delete_reason?: string | null | undefined;
|
|
1291
1290
|
is_reopened?: boolean | null | undefined;
|
|
1292
1291
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1293
1292
|
gst?: number | null | undefined;
|
|
1294
1293
|
gst_amount?: number | null | undefined;
|
|
1294
|
+
rfq_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1295
1295
|
}>> & import("mongoose").FlatRecord<{
|
|
1296
1296
|
createdAt: NativeDate;
|
|
1297
1297
|
updatedAt: NativeDate;
|
|
@@ -1441,9 +1441,6 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1441
1441
|
}>;
|
|
1442
1442
|
price: number;
|
|
1443
1443
|
order_number: number;
|
|
1444
|
-
warehouse_id: string;
|
|
1445
|
-
client_name: string;
|
|
1446
|
-
client_id: import("mongoose").Types.ObjectId;
|
|
1447
1444
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
1448
1445
|
updatedAt: NativeDate;
|
|
1449
1446
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -1587,10 +1584,10 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1587
1584
|
}>;
|
|
1588
1585
|
price: number;
|
|
1589
1586
|
special_instructions: string;
|
|
1590
|
-
amount_earned: number;
|
|
1591
|
-
grand_total: number;
|
|
1592
1587
|
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
1593
1588
|
tax_number: string;
|
|
1589
|
+
amount_earned: number;
|
|
1590
|
+
grand_total: number;
|
|
1594
1591
|
staff_details?: {
|
|
1595
1592
|
staff_id: string;
|
|
1596
1593
|
staff_name: string;
|
|
@@ -1743,10 +1740,10 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1743
1740
|
}>;
|
|
1744
1741
|
price: number;
|
|
1745
1742
|
special_instructions: string;
|
|
1746
|
-
amount_earned: number;
|
|
1747
|
-
grand_total: number;
|
|
1748
1743
|
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
1749
1744
|
tax_number: string;
|
|
1745
|
+
amount_earned: number;
|
|
1746
|
+
grand_total: number;
|
|
1750
1747
|
staff_details?: {
|
|
1751
1748
|
staff_id: string;
|
|
1752
1749
|
staff_name: string;
|
|
@@ -1899,10 +1896,10 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1899
1896
|
}>;
|
|
1900
1897
|
price: number;
|
|
1901
1898
|
special_instructions: string;
|
|
1902
|
-
amount_earned: number;
|
|
1903
|
-
grand_total: number;
|
|
1904
1899
|
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
1905
1900
|
tax_number: string;
|
|
1901
|
+
amount_earned: number;
|
|
1902
|
+
grand_total: number;
|
|
1906
1903
|
staff_details?: {
|
|
1907
1904
|
staff_id: string;
|
|
1908
1905
|
staff_name: string;
|
|
@@ -1913,6 +1910,11 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1913
1910
|
gst?: number | null | undefined;
|
|
1914
1911
|
gst_amount?: number | null | undefined;
|
|
1915
1912
|
}>;
|
|
1913
|
+
special_instructions: string;
|
|
1914
|
+
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
1915
|
+
tax_number: string;
|
|
1916
|
+
amount_earned: number;
|
|
1917
|
+
grand_total: number;
|
|
1916
1918
|
amount_collected: number;
|
|
1917
1919
|
is_deleted: boolean;
|
|
1918
1920
|
order_status_updated_at: NativeDate;
|
|
@@ -1924,18 +1926,16 @@ export declare const WarehouseSaleOrdersSchema: Schema<any, import("mongoose").M
|
|
|
1924
1926
|
staff_mobile: string;
|
|
1925
1927
|
staff_email: string;
|
|
1926
1928
|
};
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
order_status: WAREHOUSE_SALES_ORDER_STATUS_ENUM;
|
|
1931
|
-
tax_number: string;
|
|
1929
|
+
warehouse_id: string;
|
|
1930
|
+
client_name: string;
|
|
1931
|
+
client_id: import("mongoose").Types.ObjectId;
|
|
1932
1932
|
cancel_reason?: string | null | undefined;
|
|
1933
|
-
rfq_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1934
1933
|
delete_reason?: string | null | undefined;
|
|
1935
1934
|
is_reopened?: boolean | null | undefined;
|
|
1936
1935
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1937
1936
|
gst?: number | null | undefined;
|
|
1938
1937
|
gst_amount?: number | null | undefined;
|
|
1938
|
+
rfq_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1939
1939
|
}> & Required<{
|
|
1940
1940
|
_id: import("mongoose").Types.ObjectId;
|
|
1941
1941
|
}> & {
|
|
@@ -52,9 +52,9 @@ export declare const WarehouseSchema: Schema<any, import("mongoose").Model<any,
|
|
|
52
52
|
enable_lot_serial_tracking: boolean;
|
|
53
53
|
default_removal_strategy: WAREHOUSE_REMOVAL_STRATEGY_ENUM;
|
|
54
54
|
invoice_custom_payment_types: string[];
|
|
55
|
-
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
56
|
-
is_gst_inclusive?: boolean | null | undefined;
|
|
57
55
|
exclude_discount_from_gst?: boolean | null | undefined;
|
|
56
|
+
is_gst_inclusive?: boolean | null | undefined;
|
|
57
|
+
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
58
58
|
hide_gst_value?: boolean | null | undefined;
|
|
59
59
|
tax_invoice_generation_id?: string | null | undefined;
|
|
60
60
|
_tax_invoice_generation_token?: string | null | undefined;
|
|
@@ -106,9 +106,9 @@ export declare const WarehouseSchema: Schema<any, import("mongoose").Model<any,
|
|
|
106
106
|
enable_lot_serial_tracking: boolean;
|
|
107
107
|
default_removal_strategy: WAREHOUSE_REMOVAL_STRATEGY_ENUM;
|
|
108
108
|
invoice_custom_payment_types: string[];
|
|
109
|
-
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
110
|
-
is_gst_inclusive?: boolean | null | undefined;
|
|
111
109
|
exclude_discount_from_gst?: boolean | null | undefined;
|
|
110
|
+
is_gst_inclusive?: boolean | null | undefined;
|
|
111
|
+
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
112
112
|
hide_gst_value?: boolean | null | undefined;
|
|
113
113
|
tax_invoice_generation_id?: string | null | undefined;
|
|
114
114
|
_tax_invoice_generation_token?: string | null | undefined;
|
|
@@ -160,9 +160,9 @@ export declare const WarehouseSchema: Schema<any, import("mongoose").Model<any,
|
|
|
160
160
|
enable_lot_serial_tracking: boolean;
|
|
161
161
|
default_removal_strategy: WAREHOUSE_REMOVAL_STRATEGY_ENUM;
|
|
162
162
|
invoice_custom_payment_types: string[];
|
|
163
|
-
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
164
|
-
is_gst_inclusive?: boolean | null | undefined;
|
|
165
163
|
exclude_discount_from_gst?: boolean | null | undefined;
|
|
164
|
+
is_gst_inclusive?: boolean | null | undefined;
|
|
165
|
+
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
166
166
|
hide_gst_value?: boolean | null | undefined;
|
|
167
167
|
tax_invoice_generation_id?: string | null | undefined;
|
|
168
168
|
_tax_invoice_generation_token?: string | null | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|