@managesome/eposmatic-toolkit 0.4.4 → 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/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 +9 -9
- 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/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,7 +153,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
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<{
|
|
@@ -297,10 +296,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
297
296
|
}>;
|
|
298
297
|
price: number;
|
|
299
298
|
special_instructions: string;
|
|
300
|
-
amount_earned: number;
|
|
301
|
-
grand_total: number;
|
|
302
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
303
|
-
tax_number: string;
|
|
304
299
|
payments: import("mongoose").Types.DocumentArray<{
|
|
305
300
|
payment_type: string;
|
|
306
301
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -362,6 +357,10 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
362
357
|
refund_reason?: string | null | undefined;
|
|
363
358
|
note?: string | null | undefined;
|
|
364
359
|
}>;
|
|
360
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
361
|
+
tax_number: string;
|
|
362
|
+
amount_earned: number;
|
|
363
|
+
grand_total: number;
|
|
365
364
|
staff_details?: {
|
|
366
365
|
staff_id: string;
|
|
367
366
|
staff_name: string;
|
|
@@ -514,10 +513,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
514
513
|
}>;
|
|
515
514
|
price: number;
|
|
516
515
|
special_instructions: string;
|
|
517
|
-
amount_earned: number;
|
|
518
|
-
grand_total: number;
|
|
519
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
520
|
-
tax_number: string;
|
|
521
516
|
payments: import("mongoose").Types.DocumentArray<{
|
|
522
517
|
payment_type: string;
|
|
523
518
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -579,6 +574,10 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
579
574
|
refund_reason?: string | null | undefined;
|
|
580
575
|
note?: string | null | undefined;
|
|
581
576
|
}>;
|
|
577
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
578
|
+
tax_number: string;
|
|
579
|
+
amount_earned: number;
|
|
580
|
+
grand_total: number;
|
|
582
581
|
staff_details?: {
|
|
583
582
|
staff_id: string;
|
|
584
583
|
staff_name: string;
|
|
@@ -731,10 +730,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
731
730
|
}>;
|
|
732
731
|
price: number;
|
|
733
732
|
special_instructions: string;
|
|
734
|
-
amount_earned: number;
|
|
735
|
-
grand_total: number;
|
|
736
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
737
|
-
tax_number: string;
|
|
738
733
|
payments: import("mongoose").Types.DocumentArray<{
|
|
739
734
|
payment_type: string;
|
|
740
735
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -796,6 +791,10 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
796
791
|
refund_reason?: string | null | undefined;
|
|
797
792
|
note?: string | null | undefined;
|
|
798
793
|
}>;
|
|
794
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
795
|
+
tax_number: string;
|
|
796
|
+
amount_earned: number;
|
|
797
|
+
grand_total: number;
|
|
799
798
|
staff_details?: {
|
|
800
799
|
staff_id: string;
|
|
801
800
|
staff_name: string;
|
|
@@ -806,24 +805,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
806
805
|
gst?: number | null | undefined;
|
|
807
806
|
gst_amount?: number | null | undefined;
|
|
808
807
|
}>;
|
|
809
|
-
amount_collected: number;
|
|
810
|
-
is_deleted: boolean;
|
|
811
|
-
order_status_updated_at: NativeDate;
|
|
812
|
-
order_settled_at: NativeDate;
|
|
813
|
-
order_settled_at_mins: number;
|
|
814
|
-
staff_details: {
|
|
815
|
-
staff_id: string;
|
|
816
|
-
staff_name: string;
|
|
817
|
-
staff_mobile: string;
|
|
818
|
-
staff_email: string;
|
|
819
|
-
};
|
|
820
808
|
special_instructions: string;
|
|
821
|
-
amount_earned: number;
|
|
822
|
-
grand_total: number;
|
|
823
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
824
|
-
tax_number: string;
|
|
825
|
-
vendor_name: string;
|
|
826
|
-
vendor_id: import("mongoose").Types.ObjectId;
|
|
827
809
|
payments: import("mongoose").Types.DocumentArray<{
|
|
828
810
|
payment_type: string;
|
|
829
811
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -885,14 +867,32 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
885
867
|
refund_reason?: string | null | undefined;
|
|
886
868
|
note?: string | null | undefined;
|
|
887
869
|
}>;
|
|
870
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
871
|
+
tax_number: string;
|
|
872
|
+
amount_earned: number;
|
|
873
|
+
grand_total: number;
|
|
874
|
+
amount_collected: number;
|
|
875
|
+
is_deleted: boolean;
|
|
876
|
+
order_status_updated_at: NativeDate;
|
|
877
|
+
order_settled_at: NativeDate;
|
|
878
|
+
order_settled_at_mins: number;
|
|
879
|
+
staff_details: {
|
|
880
|
+
staff_id: string;
|
|
881
|
+
staff_name: string;
|
|
882
|
+
staff_mobile: string;
|
|
883
|
+
staff_email: string;
|
|
884
|
+
};
|
|
885
|
+
warehouse_id: string;
|
|
886
|
+
vendor_name: string;
|
|
887
|
+
vendor_id: import("mongoose").Types.ObjectId;
|
|
888
888
|
cancel_reason?: string | null | undefined;
|
|
889
|
-
rfq_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
890
889
|
delete_reason?: string | null | undefined;
|
|
891
890
|
is_reopened?: boolean | null | undefined;
|
|
891
|
+
deferred_settlement?: boolean | null | undefined;
|
|
892
892
|
is_gst_inclusive?: boolean | null | undefined;
|
|
893
893
|
gst?: number | null | undefined;
|
|
894
894
|
gst_amount?: number | null | undefined;
|
|
895
|
-
|
|
895
|
+
rfq_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
896
896
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
897
897
|
createdAt: NativeDate;
|
|
898
898
|
updatedAt: NativeDate;
|
|
@@ -1042,7 +1042,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1042
1042
|
}>;
|
|
1043
1043
|
price: number;
|
|
1044
1044
|
order_number: number;
|
|
1045
|
-
warehouse_id: string;
|
|
1046
1045
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
1047
1046
|
updatedAt: NativeDate;
|
|
1048
1047
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -1186,10 +1185,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1186
1185
|
}>;
|
|
1187
1186
|
price: number;
|
|
1188
1187
|
special_instructions: string;
|
|
1189
|
-
amount_earned: number;
|
|
1190
|
-
grand_total: number;
|
|
1191
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
1192
|
-
tax_number: string;
|
|
1193
1188
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1194
1189
|
payment_type: string;
|
|
1195
1190
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1251,6 +1246,10 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1251
1246
|
refund_reason?: string | null | undefined;
|
|
1252
1247
|
note?: string | null | undefined;
|
|
1253
1248
|
}>;
|
|
1249
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
1250
|
+
tax_number: string;
|
|
1251
|
+
amount_earned: number;
|
|
1252
|
+
grand_total: number;
|
|
1254
1253
|
staff_details?: {
|
|
1255
1254
|
staff_id: string;
|
|
1256
1255
|
staff_name: string;
|
|
@@ -1403,10 +1402,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1403
1402
|
}>;
|
|
1404
1403
|
price: number;
|
|
1405
1404
|
special_instructions: string;
|
|
1406
|
-
amount_earned: number;
|
|
1407
|
-
grand_total: number;
|
|
1408
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
1409
|
-
tax_number: string;
|
|
1410
1405
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1411
1406
|
payment_type: string;
|
|
1412
1407
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1468,6 +1463,10 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1468
1463
|
refund_reason?: string | null | undefined;
|
|
1469
1464
|
note?: string | null | undefined;
|
|
1470
1465
|
}>;
|
|
1466
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
1467
|
+
tax_number: string;
|
|
1468
|
+
amount_earned: number;
|
|
1469
|
+
grand_total: number;
|
|
1471
1470
|
staff_details?: {
|
|
1472
1471
|
staff_id: string;
|
|
1473
1472
|
staff_name: string;
|
|
@@ -1620,10 +1619,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1620
1619
|
}>;
|
|
1621
1620
|
price: number;
|
|
1622
1621
|
special_instructions: string;
|
|
1623
|
-
amount_earned: number;
|
|
1624
|
-
grand_total: number;
|
|
1625
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
1626
|
-
tax_number: string;
|
|
1627
1622
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1628
1623
|
payment_type: string;
|
|
1629
1624
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1685,6 +1680,10 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1685
1680
|
refund_reason?: string | null | undefined;
|
|
1686
1681
|
note?: string | null | undefined;
|
|
1687
1682
|
}>;
|
|
1683
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
1684
|
+
tax_number: string;
|
|
1685
|
+
amount_earned: number;
|
|
1686
|
+
grand_total: number;
|
|
1688
1687
|
staff_details?: {
|
|
1689
1688
|
staff_id: string;
|
|
1690
1689
|
staff_name: string;
|
|
@@ -1695,24 +1694,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1695
1694
|
gst?: number | null | undefined;
|
|
1696
1695
|
gst_amount?: number | null | undefined;
|
|
1697
1696
|
}>;
|
|
1698
|
-
amount_collected: number;
|
|
1699
|
-
is_deleted: boolean;
|
|
1700
|
-
order_status_updated_at: NativeDate;
|
|
1701
|
-
order_settled_at: NativeDate;
|
|
1702
|
-
order_settled_at_mins: number;
|
|
1703
|
-
staff_details: {
|
|
1704
|
-
staff_id: string;
|
|
1705
|
-
staff_name: string;
|
|
1706
|
-
staff_mobile: string;
|
|
1707
|
-
staff_email: string;
|
|
1708
|
-
};
|
|
1709
1697
|
special_instructions: string;
|
|
1710
|
-
amount_earned: number;
|
|
1711
|
-
grand_total: number;
|
|
1712
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
1713
|
-
tax_number: string;
|
|
1714
|
-
vendor_name: string;
|
|
1715
|
-
vendor_id: import("mongoose").Types.ObjectId;
|
|
1716
1698
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1717
1699
|
payment_type: string;
|
|
1718
1700
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1774,14 +1756,32 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1774
1756
|
refund_reason?: string | null | undefined;
|
|
1775
1757
|
note?: string | null | undefined;
|
|
1776
1758
|
}>;
|
|
1759
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
1760
|
+
tax_number: string;
|
|
1761
|
+
amount_earned: number;
|
|
1762
|
+
grand_total: number;
|
|
1763
|
+
amount_collected: number;
|
|
1764
|
+
is_deleted: boolean;
|
|
1765
|
+
order_status_updated_at: NativeDate;
|
|
1766
|
+
order_settled_at: NativeDate;
|
|
1767
|
+
order_settled_at_mins: number;
|
|
1768
|
+
staff_details: {
|
|
1769
|
+
staff_id: string;
|
|
1770
|
+
staff_name: string;
|
|
1771
|
+
staff_mobile: string;
|
|
1772
|
+
staff_email: string;
|
|
1773
|
+
};
|
|
1774
|
+
warehouse_id: string;
|
|
1775
|
+
vendor_name: string;
|
|
1776
|
+
vendor_id: import("mongoose").Types.ObjectId;
|
|
1777
1777
|
cancel_reason?: string | null | undefined;
|
|
1778
|
-
rfq_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1779
1778
|
delete_reason?: string | null | undefined;
|
|
1780
1779
|
is_reopened?: boolean | null | undefined;
|
|
1780
|
+
deferred_settlement?: boolean | null | undefined;
|
|
1781
1781
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1782
1782
|
gst?: number | null | undefined;
|
|
1783
1783
|
gst_amount?: number | null | undefined;
|
|
1784
|
-
|
|
1784
|
+
rfq_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1785
1785
|
}>> & import("mongoose").FlatRecord<{
|
|
1786
1786
|
createdAt: NativeDate;
|
|
1787
1787
|
updatedAt: NativeDate;
|
|
@@ -1931,7 +1931,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1931
1931
|
}>;
|
|
1932
1932
|
price: number;
|
|
1933
1933
|
order_number: number;
|
|
1934
|
-
warehouse_id: string;
|
|
1935
1934
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
1936
1935
|
updatedAt: NativeDate;
|
|
1937
1936
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -2075,10 +2074,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2075
2074
|
}>;
|
|
2076
2075
|
price: number;
|
|
2077
2076
|
special_instructions: string;
|
|
2078
|
-
amount_earned: number;
|
|
2079
|
-
grand_total: number;
|
|
2080
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
2081
|
-
tax_number: string;
|
|
2082
2077
|
payments: import("mongoose").Types.DocumentArray<{
|
|
2083
2078
|
payment_type: string;
|
|
2084
2079
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -2140,6 +2135,10 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2140
2135
|
refund_reason?: string | null | undefined;
|
|
2141
2136
|
note?: string | null | undefined;
|
|
2142
2137
|
}>;
|
|
2138
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
2139
|
+
tax_number: string;
|
|
2140
|
+
amount_earned: number;
|
|
2141
|
+
grand_total: number;
|
|
2143
2142
|
staff_details?: {
|
|
2144
2143
|
staff_id: string;
|
|
2145
2144
|
staff_name: string;
|
|
@@ -2292,10 +2291,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2292
2291
|
}>;
|
|
2293
2292
|
price: number;
|
|
2294
2293
|
special_instructions: string;
|
|
2295
|
-
amount_earned: number;
|
|
2296
|
-
grand_total: number;
|
|
2297
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
2298
|
-
tax_number: string;
|
|
2299
2294
|
payments: import("mongoose").Types.DocumentArray<{
|
|
2300
2295
|
payment_type: string;
|
|
2301
2296
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -2357,6 +2352,10 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2357
2352
|
refund_reason?: string | null | undefined;
|
|
2358
2353
|
note?: string | null | undefined;
|
|
2359
2354
|
}>;
|
|
2355
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
2356
|
+
tax_number: string;
|
|
2357
|
+
amount_earned: number;
|
|
2358
|
+
grand_total: number;
|
|
2360
2359
|
staff_details?: {
|
|
2361
2360
|
staff_id: string;
|
|
2362
2361
|
staff_name: string;
|
|
@@ -2509,10 +2508,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2509
2508
|
}>;
|
|
2510
2509
|
price: number;
|
|
2511
2510
|
special_instructions: string;
|
|
2512
|
-
amount_earned: number;
|
|
2513
|
-
grand_total: number;
|
|
2514
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
2515
|
-
tax_number: string;
|
|
2516
2511
|
payments: import("mongoose").Types.DocumentArray<{
|
|
2517
2512
|
payment_type: string;
|
|
2518
2513
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -2574,6 +2569,10 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2574
2569
|
refund_reason?: string | null | undefined;
|
|
2575
2570
|
note?: string | null | undefined;
|
|
2576
2571
|
}>;
|
|
2572
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
2573
|
+
tax_number: string;
|
|
2574
|
+
amount_earned: number;
|
|
2575
|
+
grand_total: number;
|
|
2577
2576
|
staff_details?: {
|
|
2578
2577
|
staff_id: string;
|
|
2579
2578
|
staff_name: string;
|
|
@@ -2584,24 +2583,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2584
2583
|
gst?: number | null | undefined;
|
|
2585
2584
|
gst_amount?: number | null | undefined;
|
|
2586
2585
|
}>;
|
|
2587
|
-
amount_collected: number;
|
|
2588
|
-
is_deleted: boolean;
|
|
2589
|
-
order_status_updated_at: NativeDate;
|
|
2590
|
-
order_settled_at: NativeDate;
|
|
2591
|
-
order_settled_at_mins: number;
|
|
2592
|
-
staff_details: {
|
|
2593
|
-
staff_id: string;
|
|
2594
|
-
staff_name: string;
|
|
2595
|
-
staff_mobile: string;
|
|
2596
|
-
staff_email: string;
|
|
2597
|
-
};
|
|
2598
2586
|
special_instructions: string;
|
|
2599
|
-
amount_earned: number;
|
|
2600
|
-
grand_total: number;
|
|
2601
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
2602
|
-
tax_number: string;
|
|
2603
|
-
vendor_name: string;
|
|
2604
|
-
vendor_id: import("mongoose").Types.ObjectId;
|
|
2605
2587
|
payments: import("mongoose").Types.DocumentArray<{
|
|
2606
2588
|
payment_type: string;
|
|
2607
2589
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -2663,14 +2645,32 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2663
2645
|
refund_reason?: string | null | undefined;
|
|
2664
2646
|
note?: string | null | undefined;
|
|
2665
2647
|
}>;
|
|
2648
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
2649
|
+
tax_number: string;
|
|
2650
|
+
amount_earned: number;
|
|
2651
|
+
grand_total: number;
|
|
2652
|
+
amount_collected: number;
|
|
2653
|
+
is_deleted: boolean;
|
|
2654
|
+
order_status_updated_at: NativeDate;
|
|
2655
|
+
order_settled_at: NativeDate;
|
|
2656
|
+
order_settled_at_mins: number;
|
|
2657
|
+
staff_details: {
|
|
2658
|
+
staff_id: string;
|
|
2659
|
+
staff_name: string;
|
|
2660
|
+
staff_mobile: string;
|
|
2661
|
+
staff_email: string;
|
|
2662
|
+
};
|
|
2663
|
+
warehouse_id: string;
|
|
2664
|
+
vendor_name: string;
|
|
2665
|
+
vendor_id: import("mongoose").Types.ObjectId;
|
|
2666
2666
|
cancel_reason?: string | null | undefined;
|
|
2667
|
-
rfq_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2668
2667
|
delete_reason?: string | null | undefined;
|
|
2669
2668
|
is_reopened?: boolean | null | undefined;
|
|
2669
|
+
deferred_settlement?: boolean | null | undefined;
|
|
2670
2670
|
is_gst_inclusive?: boolean | null | undefined;
|
|
2671
2671
|
gst?: number | null | undefined;
|
|
2672
2672
|
gst_amount?: number | null | undefined;
|
|
2673
|
-
|
|
2673
|
+
rfq_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2674
2674
|
}> & Required<{
|
|
2675
2675
|
_id: import("mongoose").Types.ObjectId;
|
|
2676
2676
|
}> & {
|
|
@@ -33,8 +33,8 @@ export declare const WarehouseSaleOrderInvoiceSchema: Schema<any, import("mongoo
|
|
|
33
33
|
}>;
|
|
34
34
|
status: import("../../constants").WAREHOUSE_SALE_ORDER_INVOICE_PAYMENT_STATUS_ENUM | import("../../constants").WAREHOUSE_SALE_ORDER_CREDIT_NOTE_STATUS_ENUM;
|
|
35
35
|
amount: number;
|
|
36
|
-
warehouse_id: string;
|
|
37
36
|
payments: any[];
|
|
37
|
+
warehouse_id: string;
|
|
38
38
|
doc_kind: import("../../constants").WAREHOUSE_SALE_ORDER_FIN_DOC_KIND_ENUM;
|
|
39
39
|
sale_order_id: import("mongoose").Types.ObjectId;
|
|
40
40
|
doc_number: number;
|
|
@@ -105,8 +105,8 @@ export declare const WarehouseSaleOrderInvoiceSchema: Schema<any, import("mongoo
|
|
|
105
105
|
}>;
|
|
106
106
|
status: import("../../constants").WAREHOUSE_SALE_ORDER_INVOICE_PAYMENT_STATUS_ENUM | import("../../constants").WAREHOUSE_SALE_ORDER_CREDIT_NOTE_STATUS_ENUM;
|
|
107
107
|
amount: number;
|
|
108
|
-
warehouse_id: string;
|
|
109
108
|
payments: any[];
|
|
109
|
+
warehouse_id: string;
|
|
110
110
|
doc_kind: import("../../constants").WAREHOUSE_SALE_ORDER_FIN_DOC_KIND_ENUM;
|
|
111
111
|
sale_order_id: import("mongoose").Types.ObjectId;
|
|
112
112
|
doc_number: number;
|
|
@@ -177,8 +177,8 @@ export declare const WarehouseSaleOrderInvoiceSchema: Schema<any, import("mongoo
|
|
|
177
177
|
}>;
|
|
178
178
|
status: import("../../constants").WAREHOUSE_SALE_ORDER_INVOICE_PAYMENT_STATUS_ENUM | import("../../constants").WAREHOUSE_SALE_ORDER_CREDIT_NOTE_STATUS_ENUM;
|
|
179
179
|
amount: number;
|
|
180
|
-
warehouse_id: string;
|
|
181
180
|
payments: any[];
|
|
181
|
+
warehouse_id: string;
|
|
182
182
|
doc_kind: import("../../constants").WAREHOUSE_SALE_ORDER_FIN_DOC_KIND_ENUM;
|
|
183
183
|
sale_order_id: import("mongoose").Types.ObjectId;
|
|
184
184
|
doc_number: number;
|