@managesome/eposmatic-toolkit 0.4.3 → 0.4.5
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/helpers/materialized-reports/index.js +1 -0
- package/esm/helpers/materialized-reports/materialized-reports-read-helpers.js +96 -22
- package/esm/helpers/materialized-reports/materialized-reports-scope-group-helpers.js +281 -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/materialized-reports-apis.js +1 -1
- package/esm/schemas/models/materialized_tenant_sales_overview_reports.js +20 -26
- package/lib/helpers/materialized-reports/index.d.ts +1 -0
- package/lib/helpers/materialized-reports/index.js +1 -0
- package/lib/helpers/materialized-reports/materialized-reports-read-helpers.d.ts +50 -21
- package/lib/helpers/materialized-reports/materialized-reports-read-helpers.js +96 -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/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/materialized-reports-apis.d.ts +115 -25
- package/lib/helpers/types/materialized-reports-apis.js +1 -0
- package/lib/schemas/models/internal_invoices.d.ts +3 -3
- package/lib/schemas/models/materialized_tenant_sales_overview_reports.d.ts +26 -34
- package/lib/schemas/models/materialized_tenant_sales_overview_reports.js +20 -26
- 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-read-helpers.test.d.ts +1 -0
- package/lib/tests/materialized-reports/materialized-reports-read-helpers.test.js +100 -0
- 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-tenant-sales-overview-reports-schema.test.js +11 -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
|
@@ -314,10 +314,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
314
314
|
}>;
|
|
315
315
|
price: number;
|
|
316
316
|
special_instructions: string;
|
|
317
|
-
amount_earned: number;
|
|
318
|
-
grand_total: number;
|
|
319
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
320
|
-
tax_number: string;
|
|
321
317
|
payments: import("mongoose").Types.DocumentArray<{
|
|
322
318
|
payment_type: string;
|
|
323
319
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -379,6 +375,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
379
375
|
refund_reason?: string | null | undefined;
|
|
380
376
|
note?: string | null | undefined;
|
|
381
377
|
}>;
|
|
378
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
379
|
+
tax_number: string;
|
|
380
|
+
amount_earned: number;
|
|
381
|
+
grand_total: number;
|
|
382
382
|
staff_details?: {
|
|
383
383
|
staff_id: string;
|
|
384
384
|
staff_name: string;
|
|
@@ -540,10 +540,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
540
540
|
}>;
|
|
541
541
|
price: number;
|
|
542
542
|
special_instructions: string;
|
|
543
|
-
amount_earned: number;
|
|
544
|
-
grand_total: number;
|
|
545
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
546
|
-
tax_number: string;
|
|
547
543
|
payments: import("mongoose").Types.DocumentArray<{
|
|
548
544
|
payment_type: string;
|
|
549
545
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -605,6 +601,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
605
601
|
refund_reason?: string | null | undefined;
|
|
606
602
|
note?: string | null | undefined;
|
|
607
603
|
}>;
|
|
604
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
605
|
+
tax_number: string;
|
|
606
|
+
amount_earned: number;
|
|
607
|
+
grand_total: number;
|
|
608
608
|
staff_details?: {
|
|
609
609
|
staff_id: string;
|
|
610
610
|
staff_name: string;
|
|
@@ -766,10 +766,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
766
766
|
}>;
|
|
767
767
|
price: number;
|
|
768
768
|
special_instructions: string;
|
|
769
|
-
amount_earned: number;
|
|
770
|
-
grand_total: number;
|
|
771
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
772
|
-
tax_number: string;
|
|
773
769
|
payments: import("mongoose").Types.DocumentArray<{
|
|
774
770
|
payment_type: string;
|
|
775
771
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -831,6 +827,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
831
827
|
refund_reason?: string | null | undefined;
|
|
832
828
|
note?: string | null | undefined;
|
|
833
829
|
}>;
|
|
830
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
831
|
+
tax_number: string;
|
|
832
|
+
amount_earned: number;
|
|
833
|
+
grand_total: number;
|
|
834
834
|
staff_details?: {
|
|
835
835
|
staff_id: string;
|
|
836
836
|
staff_name: string;
|
|
@@ -841,24 +841,7 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
841
841
|
gst?: number | null | undefined;
|
|
842
842
|
gst_amount?: number | null | undefined;
|
|
843
843
|
}>;
|
|
844
|
-
amount_collected: number;
|
|
845
|
-
is_deleted: boolean;
|
|
846
|
-
order_status_updated_at: NativeDate;
|
|
847
|
-
order_settled_at: NativeDate;
|
|
848
|
-
order_settled_at_mins: number;
|
|
849
|
-
staff_details: {
|
|
850
|
-
staff_id: string;
|
|
851
|
-
staff_name: string;
|
|
852
|
-
staff_mobile: string;
|
|
853
|
-
staff_email: string;
|
|
854
|
-
};
|
|
855
844
|
special_instructions: string;
|
|
856
|
-
amount_earned: number;
|
|
857
|
-
grand_total: number;
|
|
858
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
859
|
-
tax_number: string;
|
|
860
|
-
vendor_name: string;
|
|
861
|
-
vendor_id: import("mongoose").Types.ObjectId;
|
|
862
845
|
payments: import("mongoose").Types.DocumentArray<{
|
|
863
846
|
payment_type: string;
|
|
864
847
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -920,13 +903,30 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
920
903
|
refund_reason?: string | null | undefined;
|
|
921
904
|
note?: string | null | undefined;
|
|
922
905
|
}>;
|
|
906
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
907
|
+
tax_number: string;
|
|
908
|
+
amount_earned: number;
|
|
909
|
+
grand_total: number;
|
|
910
|
+
amount_collected: number;
|
|
911
|
+
is_deleted: boolean;
|
|
912
|
+
order_status_updated_at: NativeDate;
|
|
913
|
+
order_settled_at: NativeDate;
|
|
914
|
+
order_settled_at_mins: number;
|
|
915
|
+
staff_details: {
|
|
916
|
+
staff_id: string;
|
|
917
|
+
staff_name: string;
|
|
918
|
+
staff_mobile: string;
|
|
919
|
+
staff_email: string;
|
|
920
|
+
};
|
|
921
|
+
vendor_name: string;
|
|
922
|
+
vendor_id: import("mongoose").Types.ObjectId;
|
|
923
923
|
cancel_reason?: string | null | undefined;
|
|
924
924
|
delete_reason?: string | null | undefined;
|
|
925
925
|
is_reopened?: boolean | null | undefined;
|
|
926
|
+
deferred_settlement?: boolean | null | undefined;
|
|
926
927
|
is_gst_inclusive?: boolean | null | undefined;
|
|
927
928
|
gst?: number | null | undefined;
|
|
928
929
|
gst_amount?: number | null | undefined;
|
|
929
|
-
deferred_settlement?: boolean | null | undefined;
|
|
930
930
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
931
931
|
createdAt: NativeDate;
|
|
932
932
|
updatedAt: NativeDate;
|
|
@@ -1238,10 +1238,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1238
1238
|
}>;
|
|
1239
1239
|
price: number;
|
|
1240
1240
|
special_instructions: string;
|
|
1241
|
-
amount_earned: number;
|
|
1242
|
-
grand_total: number;
|
|
1243
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1244
|
-
tax_number: string;
|
|
1245
1241
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1246
1242
|
payment_type: string;
|
|
1247
1243
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1303,6 +1299,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1303
1299
|
refund_reason?: string | null | undefined;
|
|
1304
1300
|
note?: string | null | undefined;
|
|
1305
1301
|
}>;
|
|
1302
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1303
|
+
tax_number: string;
|
|
1304
|
+
amount_earned: number;
|
|
1305
|
+
grand_total: number;
|
|
1306
1306
|
staff_details?: {
|
|
1307
1307
|
staff_id: string;
|
|
1308
1308
|
staff_name: string;
|
|
@@ -1464,10 +1464,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1464
1464
|
}>;
|
|
1465
1465
|
price: number;
|
|
1466
1466
|
special_instructions: string;
|
|
1467
|
-
amount_earned: number;
|
|
1468
|
-
grand_total: number;
|
|
1469
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1470
|
-
tax_number: string;
|
|
1471
1467
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1472
1468
|
payment_type: string;
|
|
1473
1469
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1529,6 +1525,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1529
1525
|
refund_reason?: string | null | undefined;
|
|
1530
1526
|
note?: string | null | undefined;
|
|
1531
1527
|
}>;
|
|
1528
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1529
|
+
tax_number: string;
|
|
1530
|
+
amount_earned: number;
|
|
1531
|
+
grand_total: number;
|
|
1532
1532
|
staff_details?: {
|
|
1533
1533
|
staff_id: string;
|
|
1534
1534
|
staff_name: string;
|
|
@@ -1690,10 +1690,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1690
1690
|
}>;
|
|
1691
1691
|
price: number;
|
|
1692
1692
|
special_instructions: string;
|
|
1693
|
-
amount_earned: number;
|
|
1694
|
-
grand_total: number;
|
|
1695
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1696
|
-
tax_number: string;
|
|
1697
1693
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1698
1694
|
payment_type: string;
|
|
1699
1695
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1755,6 +1751,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1755
1751
|
refund_reason?: string | null | undefined;
|
|
1756
1752
|
note?: string | null | undefined;
|
|
1757
1753
|
}>;
|
|
1754
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1755
|
+
tax_number: string;
|
|
1756
|
+
amount_earned: number;
|
|
1757
|
+
grand_total: number;
|
|
1758
1758
|
staff_details?: {
|
|
1759
1759
|
staff_id: string;
|
|
1760
1760
|
staff_name: string;
|
|
@@ -1765,24 +1765,7 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1765
1765
|
gst?: number | null | undefined;
|
|
1766
1766
|
gst_amount?: number | null | undefined;
|
|
1767
1767
|
}>;
|
|
1768
|
-
amount_collected: number;
|
|
1769
|
-
is_deleted: boolean;
|
|
1770
|
-
order_status_updated_at: NativeDate;
|
|
1771
|
-
order_settled_at: NativeDate;
|
|
1772
|
-
order_settled_at_mins: number;
|
|
1773
|
-
staff_details: {
|
|
1774
|
-
staff_id: string;
|
|
1775
|
-
staff_name: string;
|
|
1776
|
-
staff_mobile: string;
|
|
1777
|
-
staff_email: string;
|
|
1778
|
-
};
|
|
1779
1768
|
special_instructions: string;
|
|
1780
|
-
amount_earned: number;
|
|
1781
|
-
grand_total: number;
|
|
1782
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1783
|
-
tax_number: string;
|
|
1784
|
-
vendor_name: string;
|
|
1785
|
-
vendor_id: import("mongoose").Types.ObjectId;
|
|
1786
1769
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1787
1770
|
payment_type: string;
|
|
1788
1771
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1844,13 +1827,30 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1844
1827
|
refund_reason?: string | null | undefined;
|
|
1845
1828
|
note?: string | null | undefined;
|
|
1846
1829
|
}>;
|
|
1830
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1831
|
+
tax_number: string;
|
|
1832
|
+
amount_earned: number;
|
|
1833
|
+
grand_total: number;
|
|
1834
|
+
amount_collected: number;
|
|
1835
|
+
is_deleted: boolean;
|
|
1836
|
+
order_status_updated_at: NativeDate;
|
|
1837
|
+
order_settled_at: NativeDate;
|
|
1838
|
+
order_settled_at_mins: number;
|
|
1839
|
+
staff_details: {
|
|
1840
|
+
staff_id: string;
|
|
1841
|
+
staff_name: string;
|
|
1842
|
+
staff_mobile: string;
|
|
1843
|
+
staff_email: string;
|
|
1844
|
+
};
|
|
1845
|
+
vendor_name: string;
|
|
1846
|
+
vendor_id: import("mongoose").Types.ObjectId;
|
|
1847
1847
|
cancel_reason?: string | null | undefined;
|
|
1848
1848
|
delete_reason?: string | null | undefined;
|
|
1849
1849
|
is_reopened?: boolean | null | undefined;
|
|
1850
|
+
deferred_settlement?: boolean | null | undefined;
|
|
1850
1851
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1851
1852
|
gst?: number | null | undefined;
|
|
1852
1853
|
gst_amount?: number | null | undefined;
|
|
1853
|
-
deferred_settlement?: boolean | null | undefined;
|
|
1854
1854
|
}>> & import("mongoose").FlatRecord<{
|
|
1855
1855
|
createdAt: NativeDate;
|
|
1856
1856
|
updatedAt: NativeDate;
|
|
@@ -2162,10 +2162,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2162
2162
|
}>;
|
|
2163
2163
|
price: number;
|
|
2164
2164
|
special_instructions: string;
|
|
2165
|
-
amount_earned: number;
|
|
2166
|
-
grand_total: number;
|
|
2167
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2168
|
-
tax_number: string;
|
|
2169
2165
|
payments: import("mongoose").Types.DocumentArray<{
|
|
2170
2166
|
payment_type: string;
|
|
2171
2167
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -2227,6 +2223,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2227
2223
|
refund_reason?: string | null | undefined;
|
|
2228
2224
|
note?: string | null | undefined;
|
|
2229
2225
|
}>;
|
|
2226
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2227
|
+
tax_number: string;
|
|
2228
|
+
amount_earned: number;
|
|
2229
|
+
grand_total: number;
|
|
2230
2230
|
staff_details?: {
|
|
2231
2231
|
staff_id: string;
|
|
2232
2232
|
staff_name: string;
|
|
@@ -2388,10 +2388,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2388
2388
|
}>;
|
|
2389
2389
|
price: number;
|
|
2390
2390
|
special_instructions: string;
|
|
2391
|
-
amount_earned: number;
|
|
2392
|
-
grand_total: number;
|
|
2393
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2394
|
-
tax_number: string;
|
|
2395
2391
|
payments: import("mongoose").Types.DocumentArray<{
|
|
2396
2392
|
payment_type: string;
|
|
2397
2393
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -2453,6 +2449,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2453
2449
|
refund_reason?: string | null | undefined;
|
|
2454
2450
|
note?: string | null | undefined;
|
|
2455
2451
|
}>;
|
|
2452
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2453
|
+
tax_number: string;
|
|
2454
|
+
amount_earned: number;
|
|
2455
|
+
grand_total: number;
|
|
2456
2456
|
staff_details?: {
|
|
2457
2457
|
staff_id: string;
|
|
2458
2458
|
staff_name: string;
|
|
@@ -2614,10 +2614,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2614
2614
|
}>;
|
|
2615
2615
|
price: number;
|
|
2616
2616
|
special_instructions: string;
|
|
2617
|
-
amount_earned: number;
|
|
2618
|
-
grand_total: number;
|
|
2619
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2620
|
-
tax_number: string;
|
|
2621
2617
|
payments: import("mongoose").Types.DocumentArray<{
|
|
2622
2618
|
payment_type: string;
|
|
2623
2619
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -2679,6 +2675,10 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2679
2675
|
refund_reason?: string | null | undefined;
|
|
2680
2676
|
note?: string | null | undefined;
|
|
2681
2677
|
}>;
|
|
2678
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2679
|
+
tax_number: string;
|
|
2680
|
+
amount_earned: number;
|
|
2681
|
+
grand_total: number;
|
|
2682
2682
|
staff_details?: {
|
|
2683
2683
|
staff_id: string;
|
|
2684
2684
|
staff_name: string;
|
|
@@ -2689,24 +2689,7 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2689
2689
|
gst?: number | null | undefined;
|
|
2690
2690
|
gst_amount?: number | null | undefined;
|
|
2691
2691
|
}>;
|
|
2692
|
-
amount_collected: number;
|
|
2693
|
-
is_deleted: boolean;
|
|
2694
|
-
order_status_updated_at: NativeDate;
|
|
2695
|
-
order_settled_at: NativeDate;
|
|
2696
|
-
order_settled_at_mins: number;
|
|
2697
|
-
staff_details: {
|
|
2698
|
-
staff_id: string;
|
|
2699
|
-
staff_name: string;
|
|
2700
|
-
staff_mobile: string;
|
|
2701
|
-
staff_email: string;
|
|
2702
|
-
};
|
|
2703
2692
|
special_instructions: string;
|
|
2704
|
-
amount_earned: number;
|
|
2705
|
-
grand_total: number;
|
|
2706
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2707
|
-
tax_number: string;
|
|
2708
|
-
vendor_name: string;
|
|
2709
|
-
vendor_id: import("mongoose").Types.ObjectId;
|
|
2710
2693
|
payments: import("mongoose").Types.DocumentArray<{
|
|
2711
2694
|
payment_type: string;
|
|
2712
2695
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -2768,13 +2751,30 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2768
2751
|
refund_reason?: string | null | undefined;
|
|
2769
2752
|
note?: string | null | undefined;
|
|
2770
2753
|
}>;
|
|
2754
|
+
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2755
|
+
tax_number: string;
|
|
2756
|
+
amount_earned: number;
|
|
2757
|
+
grand_total: number;
|
|
2758
|
+
amount_collected: number;
|
|
2759
|
+
is_deleted: boolean;
|
|
2760
|
+
order_status_updated_at: NativeDate;
|
|
2761
|
+
order_settled_at: NativeDate;
|
|
2762
|
+
order_settled_at_mins: number;
|
|
2763
|
+
staff_details: {
|
|
2764
|
+
staff_id: string;
|
|
2765
|
+
staff_name: string;
|
|
2766
|
+
staff_mobile: string;
|
|
2767
|
+
staff_email: string;
|
|
2768
|
+
};
|
|
2769
|
+
vendor_name: string;
|
|
2770
|
+
vendor_id: import("mongoose").Types.ObjectId;
|
|
2771
2771
|
cancel_reason?: string | null | undefined;
|
|
2772
2772
|
delete_reason?: string | null | undefined;
|
|
2773
2773
|
is_reopened?: boolean | null | undefined;
|
|
2774
|
+
deferred_settlement?: boolean | null | undefined;
|
|
2774
2775
|
is_gst_inclusive?: boolean | null | undefined;
|
|
2775
2776
|
gst?: number | null | undefined;
|
|
2776
2777
|
gst_amount?: number | null | undefined;
|
|
2777
|
-
deferred_settlement?: boolean | null | undefined;
|
|
2778
2778
|
}> & Required<{
|
|
2779
2779
|
_id: import("mongoose").Types.ObjectId;
|
|
2780
2780
|
}> & {
|
|
@@ -18,9 +18,9 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
18
18
|
city: string;
|
|
19
19
|
country_code: COUNTRY_CODE_ENUM;
|
|
20
20
|
delivery_free_over: number;
|
|
21
|
+
packaging_charges: number;
|
|
21
22
|
currency_symbol: CURRENCY_SYMBOL_ENUM;
|
|
22
23
|
country_alpha_2: COUNTRY_ALPHA_2_ENUM;
|
|
23
|
-
packaging_charges: number;
|
|
24
24
|
delivery_min_cost: number;
|
|
25
25
|
restaurant_address: string;
|
|
26
26
|
support_email: string;
|
|
@@ -123,14 +123,14 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
123
123
|
exempt_gst_for_platforms: PLATFORMS_ENUM[];
|
|
124
124
|
enabled_rating_types: import("../../constants").RATING_TYPE_ENUM[];
|
|
125
125
|
order_completion_type: ORDER_COMPLETION_TYPE_ENUM;
|
|
126
|
-
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
127
|
-
is_gst_inclusive?: boolean | null | undefined;
|
|
128
126
|
is_surcharge_percentage?: boolean | null | undefined;
|
|
129
127
|
is_surcharge_taxable?: boolean | null | undefined;
|
|
130
128
|
is_service_fee_percentage?: boolean | null | undefined;
|
|
131
129
|
is_service_fee_taxable?: boolean | null | undefined;
|
|
132
130
|
exclude_discount_from_gst?: boolean | null | undefined;
|
|
133
131
|
apply_service_fee_on_original_price?: boolean | null | undefined;
|
|
132
|
+
is_gst_inclusive?: boolean | null | undefined;
|
|
133
|
+
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
134
134
|
takeaway_is_pickup?: boolean | null | undefined;
|
|
135
135
|
hide_gst_value?: boolean | null | undefined;
|
|
136
136
|
receipt_qr_type?: import("../../constants").RECEIPT_QR_CODE_TYPE_ENUM | null | undefined;
|
|
@@ -199,9 +199,9 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
199
199
|
city: string;
|
|
200
200
|
country_code: COUNTRY_CODE_ENUM;
|
|
201
201
|
delivery_free_over: number;
|
|
202
|
+
packaging_charges: number;
|
|
202
203
|
currency_symbol: CURRENCY_SYMBOL_ENUM;
|
|
203
204
|
country_alpha_2: COUNTRY_ALPHA_2_ENUM;
|
|
204
|
-
packaging_charges: number;
|
|
205
205
|
delivery_min_cost: number;
|
|
206
206
|
restaurant_address: string;
|
|
207
207
|
support_email: string;
|
|
@@ -304,14 +304,14 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
304
304
|
exempt_gst_for_platforms: PLATFORMS_ENUM[];
|
|
305
305
|
enabled_rating_types: import("../../constants").RATING_TYPE_ENUM[];
|
|
306
306
|
order_completion_type: ORDER_COMPLETION_TYPE_ENUM;
|
|
307
|
-
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
308
|
-
is_gst_inclusive?: boolean | null | undefined;
|
|
309
307
|
is_surcharge_percentage?: boolean | null | undefined;
|
|
310
308
|
is_surcharge_taxable?: boolean | null | undefined;
|
|
311
309
|
is_service_fee_percentage?: boolean | null | undefined;
|
|
312
310
|
is_service_fee_taxable?: boolean | null | undefined;
|
|
313
311
|
exclude_discount_from_gst?: boolean | null | undefined;
|
|
314
312
|
apply_service_fee_on_original_price?: boolean | null | undefined;
|
|
313
|
+
is_gst_inclusive?: boolean | null | undefined;
|
|
314
|
+
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
315
315
|
takeaway_is_pickup?: boolean | null | undefined;
|
|
316
316
|
hide_gst_value?: boolean | null | undefined;
|
|
317
317
|
receipt_qr_type?: import("../../constants").RECEIPT_QR_CODE_TYPE_ENUM | null | undefined;
|
|
@@ -380,9 +380,9 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
380
380
|
city: string;
|
|
381
381
|
country_code: COUNTRY_CODE_ENUM;
|
|
382
382
|
delivery_free_over: number;
|
|
383
|
+
packaging_charges: number;
|
|
383
384
|
currency_symbol: CURRENCY_SYMBOL_ENUM;
|
|
384
385
|
country_alpha_2: COUNTRY_ALPHA_2_ENUM;
|
|
385
|
-
packaging_charges: number;
|
|
386
386
|
delivery_min_cost: number;
|
|
387
387
|
restaurant_address: string;
|
|
388
388
|
support_email: string;
|
|
@@ -485,14 +485,14 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
485
485
|
exempt_gst_for_platforms: PLATFORMS_ENUM[];
|
|
486
486
|
enabled_rating_types: import("../../constants").RATING_TYPE_ENUM[];
|
|
487
487
|
order_completion_type: ORDER_COMPLETION_TYPE_ENUM;
|
|
488
|
-
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
489
|
-
is_gst_inclusive?: boolean | null | undefined;
|
|
490
488
|
is_surcharge_percentage?: boolean | null | undefined;
|
|
491
489
|
is_surcharge_taxable?: boolean | null | undefined;
|
|
492
490
|
is_service_fee_percentage?: boolean | null | undefined;
|
|
493
491
|
is_service_fee_taxable?: boolean | null | undefined;
|
|
494
492
|
exclude_discount_from_gst?: boolean | null | undefined;
|
|
495
493
|
apply_service_fee_on_original_price?: boolean | null | undefined;
|
|
494
|
+
is_gst_inclusive?: boolean | null | undefined;
|
|
495
|
+
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
496
496
|
takeaway_is_pickup?: boolean | null | undefined;
|
|
497
497
|
hide_gst_value?: boolean | null | undefined;
|
|
498
498
|
receipt_qr_type?: import("../../constants").RECEIPT_QR_CODE_TYPE_ENUM | null | undefined;
|
|
@@ -19,8 +19,8 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
|
|
|
19
19
|
communication_channel: COMMUNICATION_CHANNEL_ENUM;
|
|
20
20
|
subject: string;
|
|
21
21
|
metadata: {
|
|
22
|
-
currency_symbol: string;
|
|
23
22
|
grand_total: number;
|
|
23
|
+
currency_symbol: string;
|
|
24
24
|
subtotal: number;
|
|
25
25
|
support_email: string;
|
|
26
26
|
warehouse_name: string;
|
|
@@ -91,8 +91,8 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
|
|
|
91
91
|
communication_channel: COMMUNICATION_CHANNEL_ENUM;
|
|
92
92
|
subject: string;
|
|
93
93
|
metadata: {
|
|
94
|
-
currency_symbol: string;
|
|
95
94
|
grand_total: number;
|
|
95
|
+
currency_symbol: string;
|
|
96
96
|
subtotal: number;
|
|
97
97
|
support_email: string;
|
|
98
98
|
warehouse_name: string;
|
|
@@ -163,8 +163,8 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
|
|
|
163
163
|
communication_channel: COMMUNICATION_CHANNEL_ENUM;
|
|
164
164
|
subject: string;
|
|
165
165
|
metadata: {
|
|
166
|
-
currency_symbol: string;
|
|
167
166
|
grand_total: number;
|
|
167
|
+
currency_symbol: string;
|
|
168
168
|
subtotal: number;
|
|
169
169
|
support_email: string;
|
|
170
170
|
warehouse_name: string;
|