@managesome/eposmatic-toolkit 0.2.597 → 0.2.598
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/helpers/utils/expense.d.ts +0 -1
- package/lib/helpers/utils/expense.js +0 -22
- package/lib/schemas/models/expense_details.d.ts +0 -183
- package/lib/schemas/models/expense_details.js +0 -5
- package/lib/schemas/models/orders.d.ts +228 -228
- package/lib/schemas/models/tenant_purchase_orders.d.ts +228 -228
- package/lib/schemas/models/warehouse_internal_movements.d.ts +12 -12
- package/lib/schemas/models/warehouse_purchase_orders.d.ts +228 -228
- package/lib/schemas/models/warehouse_sale_invoices.d.ts +3 -3
- package/lib/schemas/types/expense_details.d.ts +0 -2
- package/package.json +1 -1
|
@@ -162,67 +162,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
162
162
|
}>;
|
|
163
163
|
price: number;
|
|
164
164
|
order_number: number;
|
|
165
|
-
payments: import("mongoose").Types.DocumentArray<{
|
|
166
|
-
payment_type: string;
|
|
167
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
168
|
-
card_details: {
|
|
169
|
-
transaction_id: string;
|
|
170
|
-
payment_provider_linked_customer_id: string;
|
|
171
|
-
card_number: string;
|
|
172
|
-
card_type: string;
|
|
173
|
-
card_holder_name: string;
|
|
174
|
-
card_charges: number;
|
|
175
|
-
card_country_code: string;
|
|
176
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
177
|
-
};
|
|
178
|
-
amount_paid: number;
|
|
179
|
-
amount_due: number;
|
|
180
|
-
amount_refunded: number;
|
|
181
|
-
payment_id: string;
|
|
182
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
183
|
-
refund_reason?: string | null | undefined;
|
|
184
|
-
note?: string | null | undefined;
|
|
185
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
|
|
186
|
-
payment_type: string;
|
|
187
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
188
|
-
card_details: {
|
|
189
|
-
transaction_id: string;
|
|
190
|
-
payment_provider_linked_customer_id: string;
|
|
191
|
-
card_number: string;
|
|
192
|
-
card_type: string;
|
|
193
|
-
card_holder_name: string;
|
|
194
|
-
card_charges: number;
|
|
195
|
-
card_country_code: string;
|
|
196
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
197
|
-
};
|
|
198
|
-
amount_paid: number;
|
|
199
|
-
amount_due: number;
|
|
200
|
-
amount_refunded: number;
|
|
201
|
-
payment_id: string;
|
|
202
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
203
|
-
refund_reason?: string | null | undefined;
|
|
204
|
-
note?: string | null | undefined;
|
|
205
|
-
}> & {
|
|
206
|
-
payment_type: string;
|
|
207
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
208
|
-
card_details: {
|
|
209
|
-
transaction_id: string;
|
|
210
|
-
payment_provider_linked_customer_id: string;
|
|
211
|
-
card_number: string;
|
|
212
|
-
card_type: string;
|
|
213
|
-
card_holder_name: string;
|
|
214
|
-
card_charges: number;
|
|
215
|
-
card_country_code: string;
|
|
216
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
217
|
-
};
|
|
218
|
-
amount_paid: number;
|
|
219
|
-
amount_due: number;
|
|
220
|
-
amount_refunded: number;
|
|
221
|
-
payment_id: string;
|
|
222
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
223
|
-
refund_reason?: string | null | undefined;
|
|
224
|
-
note?: string | null | undefined;
|
|
225
|
-
}>;
|
|
226
165
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
227
166
|
updatedAt: NativeDate;
|
|
228
167
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -374,6 +313,11 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
374
313
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
375
314
|
}>;
|
|
376
315
|
price: number;
|
|
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;
|
|
377
321
|
payments: import("mongoose").Types.DocumentArray<{
|
|
378
322
|
payment_type: string;
|
|
379
323
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -435,11 +379,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
435
379
|
refund_reason?: string | null | undefined;
|
|
436
380
|
note?: string | null | undefined;
|
|
437
381
|
}>;
|
|
438
|
-
special_instructions: string;
|
|
439
|
-
amount_earned: number;
|
|
440
|
-
grand_total: number;
|
|
441
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
442
|
-
tax_number: string;
|
|
443
382
|
staff_details?: {
|
|
444
383
|
staff_id: string;
|
|
445
384
|
staff_name: string;
|
|
@@ -600,6 +539,11 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
600
539
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
601
540
|
}>;
|
|
602
541
|
price: number;
|
|
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;
|
|
603
547
|
payments: import("mongoose").Types.DocumentArray<{
|
|
604
548
|
payment_type: string;
|
|
605
549
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -661,11 +605,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
661
605
|
refund_reason?: string | null | undefined;
|
|
662
606
|
note?: string | null | undefined;
|
|
663
607
|
}>;
|
|
664
|
-
special_instructions: string;
|
|
665
|
-
amount_earned: number;
|
|
666
|
-
grand_total: number;
|
|
667
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
668
|
-
tax_number: string;
|
|
669
608
|
staff_details?: {
|
|
670
609
|
staff_id: string;
|
|
671
610
|
staff_name: string;
|
|
@@ -826,6 +765,11 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
826
765
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
827
766
|
}>;
|
|
828
767
|
price: number;
|
|
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;
|
|
829
773
|
payments: import("mongoose").Types.DocumentArray<{
|
|
830
774
|
payment_type: string;
|
|
831
775
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -887,11 +831,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
887
831
|
refund_reason?: string | null | undefined;
|
|
888
832
|
note?: string | null | undefined;
|
|
889
833
|
}>;
|
|
890
|
-
special_instructions: string;
|
|
891
|
-
amount_earned: number;
|
|
892
|
-
grand_total: number;
|
|
893
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
894
|
-
tax_number: string;
|
|
895
834
|
staff_details?: {
|
|
896
835
|
staff_id: string;
|
|
897
836
|
staff_name: string;
|
|
@@ -920,6 +859,67 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
920
859
|
tax_number: string;
|
|
921
860
|
vendor_name: string;
|
|
922
861
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
862
|
+
payments: import("mongoose").Types.DocumentArray<{
|
|
863
|
+
payment_type: string;
|
|
864
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
865
|
+
card_details: {
|
|
866
|
+
transaction_id: string;
|
|
867
|
+
payment_provider_linked_customer_id: string;
|
|
868
|
+
card_number: string;
|
|
869
|
+
card_type: string;
|
|
870
|
+
card_holder_name: string;
|
|
871
|
+
card_charges: number;
|
|
872
|
+
card_country_code: string;
|
|
873
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
874
|
+
};
|
|
875
|
+
amount_paid: number;
|
|
876
|
+
amount_due: number;
|
|
877
|
+
amount_refunded: number;
|
|
878
|
+
payment_id: string;
|
|
879
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
880
|
+
refund_reason?: string | null | undefined;
|
|
881
|
+
note?: string | null | undefined;
|
|
882
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
|
|
883
|
+
payment_type: string;
|
|
884
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
885
|
+
card_details: {
|
|
886
|
+
transaction_id: string;
|
|
887
|
+
payment_provider_linked_customer_id: string;
|
|
888
|
+
card_number: string;
|
|
889
|
+
card_type: string;
|
|
890
|
+
card_holder_name: string;
|
|
891
|
+
card_charges: number;
|
|
892
|
+
card_country_code: string;
|
|
893
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
894
|
+
};
|
|
895
|
+
amount_paid: number;
|
|
896
|
+
amount_due: number;
|
|
897
|
+
amount_refunded: number;
|
|
898
|
+
payment_id: string;
|
|
899
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
900
|
+
refund_reason?: string | null | undefined;
|
|
901
|
+
note?: string | null | undefined;
|
|
902
|
+
}> & {
|
|
903
|
+
payment_type: string;
|
|
904
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
905
|
+
card_details: {
|
|
906
|
+
transaction_id: string;
|
|
907
|
+
payment_provider_linked_customer_id: string;
|
|
908
|
+
card_number: string;
|
|
909
|
+
card_type: string;
|
|
910
|
+
card_holder_name: string;
|
|
911
|
+
card_charges: number;
|
|
912
|
+
card_country_code: string;
|
|
913
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
914
|
+
};
|
|
915
|
+
amount_paid: number;
|
|
916
|
+
amount_due: number;
|
|
917
|
+
amount_refunded: number;
|
|
918
|
+
payment_id: string;
|
|
919
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
920
|
+
refund_reason?: string | null | undefined;
|
|
921
|
+
note?: string | null | undefined;
|
|
922
|
+
}>;
|
|
923
923
|
cancel_reason?: string | null | undefined;
|
|
924
924
|
delete_reason?: string | null | undefined;
|
|
925
925
|
is_reopened?: boolean | null | undefined;
|
|
@@ -1086,67 +1086,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1086
1086
|
}>;
|
|
1087
1087
|
price: number;
|
|
1088
1088
|
order_number: number;
|
|
1089
|
-
payments: import("mongoose").Types.DocumentArray<{
|
|
1090
|
-
payment_type: string;
|
|
1091
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
1092
|
-
card_details: {
|
|
1093
|
-
transaction_id: string;
|
|
1094
|
-
payment_provider_linked_customer_id: string;
|
|
1095
|
-
card_number: string;
|
|
1096
|
-
card_type: string;
|
|
1097
|
-
card_holder_name: string;
|
|
1098
|
-
card_charges: number;
|
|
1099
|
-
card_country_code: string;
|
|
1100
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
1101
|
-
};
|
|
1102
|
-
amount_paid: number;
|
|
1103
|
-
amount_due: number;
|
|
1104
|
-
amount_refunded: number;
|
|
1105
|
-
payment_id: string;
|
|
1106
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1107
|
-
refund_reason?: string | null | undefined;
|
|
1108
|
-
note?: string | null | undefined;
|
|
1109
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
|
|
1110
|
-
payment_type: string;
|
|
1111
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
1112
|
-
card_details: {
|
|
1113
|
-
transaction_id: string;
|
|
1114
|
-
payment_provider_linked_customer_id: string;
|
|
1115
|
-
card_number: string;
|
|
1116
|
-
card_type: string;
|
|
1117
|
-
card_holder_name: string;
|
|
1118
|
-
card_charges: number;
|
|
1119
|
-
card_country_code: string;
|
|
1120
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
1121
|
-
};
|
|
1122
|
-
amount_paid: number;
|
|
1123
|
-
amount_due: number;
|
|
1124
|
-
amount_refunded: number;
|
|
1125
|
-
payment_id: string;
|
|
1126
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1127
|
-
refund_reason?: string | null | undefined;
|
|
1128
|
-
note?: string | null | undefined;
|
|
1129
|
-
}> & {
|
|
1130
|
-
payment_type: string;
|
|
1131
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
1132
|
-
card_details: {
|
|
1133
|
-
transaction_id: string;
|
|
1134
|
-
payment_provider_linked_customer_id: string;
|
|
1135
|
-
card_number: string;
|
|
1136
|
-
card_type: string;
|
|
1137
|
-
card_holder_name: string;
|
|
1138
|
-
card_charges: number;
|
|
1139
|
-
card_country_code: string;
|
|
1140
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
1141
|
-
};
|
|
1142
|
-
amount_paid: number;
|
|
1143
|
-
amount_due: number;
|
|
1144
|
-
amount_refunded: number;
|
|
1145
|
-
payment_id: string;
|
|
1146
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1147
|
-
refund_reason?: string | null | undefined;
|
|
1148
|
-
note?: string | null | undefined;
|
|
1149
|
-
}>;
|
|
1150
1089
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
1151
1090
|
updatedAt: NativeDate;
|
|
1152
1091
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -1298,6 +1237,11 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1298
1237
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1299
1238
|
}>;
|
|
1300
1239
|
price: number;
|
|
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;
|
|
1301
1245
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1302
1246
|
payment_type: string;
|
|
1303
1247
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1359,11 +1303,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1359
1303
|
refund_reason?: string | null | undefined;
|
|
1360
1304
|
note?: string | null | undefined;
|
|
1361
1305
|
}>;
|
|
1362
|
-
special_instructions: string;
|
|
1363
|
-
amount_earned: number;
|
|
1364
|
-
grand_total: number;
|
|
1365
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1366
|
-
tax_number: string;
|
|
1367
1306
|
staff_details?: {
|
|
1368
1307
|
staff_id: string;
|
|
1369
1308
|
staff_name: string;
|
|
@@ -1524,6 +1463,11 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1524
1463
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1525
1464
|
}>;
|
|
1526
1465
|
price: number;
|
|
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;
|
|
1527
1471
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1528
1472
|
payment_type: string;
|
|
1529
1473
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1585,11 +1529,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1585
1529
|
refund_reason?: string | null | undefined;
|
|
1586
1530
|
note?: string | null | undefined;
|
|
1587
1531
|
}>;
|
|
1588
|
-
special_instructions: string;
|
|
1589
|
-
amount_earned: number;
|
|
1590
|
-
grand_total: number;
|
|
1591
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1592
|
-
tax_number: string;
|
|
1593
1532
|
staff_details?: {
|
|
1594
1533
|
staff_id: string;
|
|
1595
1534
|
staff_name: string;
|
|
@@ -1750,6 +1689,11 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1750
1689
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1751
1690
|
}>;
|
|
1752
1691
|
price: number;
|
|
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;
|
|
1753
1697
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1754
1698
|
payment_type: string;
|
|
1755
1699
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1811,11 +1755,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1811
1755
|
refund_reason?: string | null | undefined;
|
|
1812
1756
|
note?: string | null | undefined;
|
|
1813
1757
|
}>;
|
|
1814
|
-
special_instructions: string;
|
|
1815
|
-
amount_earned: number;
|
|
1816
|
-
grand_total: number;
|
|
1817
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
1818
|
-
tax_number: string;
|
|
1819
1758
|
staff_details?: {
|
|
1820
1759
|
staff_id: string;
|
|
1821
1760
|
staff_name: string;
|
|
@@ -1844,6 +1783,67 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
1844
1783
|
tax_number: string;
|
|
1845
1784
|
vendor_name: string;
|
|
1846
1785
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
1786
|
+
payments: import("mongoose").Types.DocumentArray<{
|
|
1787
|
+
payment_type: string;
|
|
1788
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
1789
|
+
card_details: {
|
|
1790
|
+
transaction_id: string;
|
|
1791
|
+
payment_provider_linked_customer_id: string;
|
|
1792
|
+
card_number: string;
|
|
1793
|
+
card_type: string;
|
|
1794
|
+
card_holder_name: string;
|
|
1795
|
+
card_charges: number;
|
|
1796
|
+
card_country_code: string;
|
|
1797
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
1798
|
+
};
|
|
1799
|
+
amount_paid: number;
|
|
1800
|
+
amount_due: number;
|
|
1801
|
+
amount_refunded: number;
|
|
1802
|
+
payment_id: string;
|
|
1803
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1804
|
+
refund_reason?: string | null | undefined;
|
|
1805
|
+
note?: string | null | undefined;
|
|
1806
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
|
|
1807
|
+
payment_type: string;
|
|
1808
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
1809
|
+
card_details: {
|
|
1810
|
+
transaction_id: string;
|
|
1811
|
+
payment_provider_linked_customer_id: string;
|
|
1812
|
+
card_number: string;
|
|
1813
|
+
card_type: string;
|
|
1814
|
+
card_holder_name: string;
|
|
1815
|
+
card_charges: number;
|
|
1816
|
+
card_country_code: string;
|
|
1817
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
1818
|
+
};
|
|
1819
|
+
amount_paid: number;
|
|
1820
|
+
amount_due: number;
|
|
1821
|
+
amount_refunded: number;
|
|
1822
|
+
payment_id: string;
|
|
1823
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1824
|
+
refund_reason?: string | null | undefined;
|
|
1825
|
+
note?: string | null | undefined;
|
|
1826
|
+
}> & {
|
|
1827
|
+
payment_type: string;
|
|
1828
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
1829
|
+
card_details: {
|
|
1830
|
+
transaction_id: string;
|
|
1831
|
+
payment_provider_linked_customer_id: string;
|
|
1832
|
+
card_number: string;
|
|
1833
|
+
card_type: string;
|
|
1834
|
+
card_holder_name: string;
|
|
1835
|
+
card_charges: number;
|
|
1836
|
+
card_country_code: string;
|
|
1837
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
1838
|
+
};
|
|
1839
|
+
amount_paid: number;
|
|
1840
|
+
amount_due: number;
|
|
1841
|
+
amount_refunded: number;
|
|
1842
|
+
payment_id: string;
|
|
1843
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1844
|
+
refund_reason?: string | null | undefined;
|
|
1845
|
+
note?: string | null | undefined;
|
|
1846
|
+
}>;
|
|
1847
1847
|
cancel_reason?: string | null | undefined;
|
|
1848
1848
|
delete_reason?: string | null | undefined;
|
|
1849
1849
|
is_reopened?: boolean | null | undefined;
|
|
@@ -2010,67 +2010,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2010
2010
|
}>;
|
|
2011
2011
|
price: number;
|
|
2012
2012
|
order_number: number;
|
|
2013
|
-
payments: import("mongoose").Types.DocumentArray<{
|
|
2014
|
-
payment_type: string;
|
|
2015
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
2016
|
-
card_details: {
|
|
2017
|
-
transaction_id: string;
|
|
2018
|
-
payment_provider_linked_customer_id: string;
|
|
2019
|
-
card_number: string;
|
|
2020
|
-
card_type: string;
|
|
2021
|
-
card_holder_name: string;
|
|
2022
|
-
card_charges: number;
|
|
2023
|
-
card_country_code: string;
|
|
2024
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
2025
|
-
};
|
|
2026
|
-
amount_paid: number;
|
|
2027
|
-
amount_due: number;
|
|
2028
|
-
amount_refunded: number;
|
|
2029
|
-
payment_id: string;
|
|
2030
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2031
|
-
refund_reason?: string | null | undefined;
|
|
2032
|
-
note?: string | null | undefined;
|
|
2033
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
|
|
2034
|
-
payment_type: string;
|
|
2035
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
2036
|
-
card_details: {
|
|
2037
|
-
transaction_id: string;
|
|
2038
|
-
payment_provider_linked_customer_id: string;
|
|
2039
|
-
card_number: string;
|
|
2040
|
-
card_type: string;
|
|
2041
|
-
card_holder_name: string;
|
|
2042
|
-
card_charges: number;
|
|
2043
|
-
card_country_code: string;
|
|
2044
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
2045
|
-
};
|
|
2046
|
-
amount_paid: number;
|
|
2047
|
-
amount_due: number;
|
|
2048
|
-
amount_refunded: number;
|
|
2049
|
-
payment_id: string;
|
|
2050
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2051
|
-
refund_reason?: string | null | undefined;
|
|
2052
|
-
note?: string | null | undefined;
|
|
2053
|
-
}> & {
|
|
2054
|
-
payment_type: string;
|
|
2055
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
2056
|
-
card_details: {
|
|
2057
|
-
transaction_id: string;
|
|
2058
|
-
payment_provider_linked_customer_id: string;
|
|
2059
|
-
card_number: string;
|
|
2060
|
-
card_type: string;
|
|
2061
|
-
card_holder_name: string;
|
|
2062
|
-
card_charges: number;
|
|
2063
|
-
card_country_code: string;
|
|
2064
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
2065
|
-
};
|
|
2066
|
-
amount_paid: number;
|
|
2067
|
-
amount_due: number;
|
|
2068
|
-
amount_refunded: number;
|
|
2069
|
-
payment_id: string;
|
|
2070
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2071
|
-
refund_reason?: string | null | undefined;
|
|
2072
|
-
note?: string | null | undefined;
|
|
2073
|
-
}>;
|
|
2074
2013
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
2075
2014
|
updatedAt: NativeDate;
|
|
2076
2015
|
categories: import("mongoose").Types.DocumentArray<{
|
|
@@ -2222,6 +2161,11 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2222
2161
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2223
2162
|
}>;
|
|
2224
2163
|
price: number;
|
|
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;
|
|
2225
2169
|
payments: import("mongoose").Types.DocumentArray<{
|
|
2226
2170
|
payment_type: string;
|
|
2227
2171
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -2283,11 +2227,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2283
2227
|
refund_reason?: string | null | undefined;
|
|
2284
2228
|
note?: string | null | undefined;
|
|
2285
2229
|
}>;
|
|
2286
|
-
special_instructions: string;
|
|
2287
|
-
amount_earned: number;
|
|
2288
|
-
grand_total: number;
|
|
2289
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2290
|
-
tax_number: string;
|
|
2291
2230
|
staff_details?: {
|
|
2292
2231
|
staff_id: string;
|
|
2293
2232
|
staff_name: string;
|
|
@@ -2448,6 +2387,11 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2448
2387
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2449
2388
|
}>;
|
|
2450
2389
|
price: number;
|
|
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;
|
|
2451
2395
|
payments: import("mongoose").Types.DocumentArray<{
|
|
2452
2396
|
payment_type: string;
|
|
2453
2397
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -2509,11 +2453,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2509
2453
|
refund_reason?: string | null | undefined;
|
|
2510
2454
|
note?: string | null | undefined;
|
|
2511
2455
|
}>;
|
|
2512
|
-
special_instructions: string;
|
|
2513
|
-
amount_earned: number;
|
|
2514
|
-
grand_total: number;
|
|
2515
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2516
|
-
tax_number: string;
|
|
2517
2456
|
staff_details?: {
|
|
2518
2457
|
staff_id: string;
|
|
2519
2458
|
staff_name: string;
|
|
@@ -2674,6 +2613,11 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2674
2613
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2675
2614
|
}>;
|
|
2676
2615
|
price: number;
|
|
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;
|
|
2677
2621
|
payments: import("mongoose").Types.DocumentArray<{
|
|
2678
2622
|
payment_type: string;
|
|
2679
2623
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -2735,11 +2679,6 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2735
2679
|
refund_reason?: string | null | undefined;
|
|
2736
2680
|
note?: string | null | undefined;
|
|
2737
2681
|
}>;
|
|
2738
|
-
special_instructions: string;
|
|
2739
|
-
amount_earned: number;
|
|
2740
|
-
grand_total: number;
|
|
2741
|
-
order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
|
|
2742
|
-
tax_number: string;
|
|
2743
2682
|
staff_details?: {
|
|
2744
2683
|
staff_id: string;
|
|
2745
2684
|
staff_name: string;
|
|
@@ -2768,6 +2707,67 @@ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").M
|
|
|
2768
2707
|
tax_number: string;
|
|
2769
2708
|
vendor_name: string;
|
|
2770
2709
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
2710
|
+
payments: import("mongoose").Types.DocumentArray<{
|
|
2711
|
+
payment_type: string;
|
|
2712
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
2713
|
+
card_details: {
|
|
2714
|
+
transaction_id: string;
|
|
2715
|
+
payment_provider_linked_customer_id: string;
|
|
2716
|
+
card_number: string;
|
|
2717
|
+
card_type: string;
|
|
2718
|
+
card_holder_name: string;
|
|
2719
|
+
card_charges: number;
|
|
2720
|
+
card_country_code: string;
|
|
2721
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
2722
|
+
};
|
|
2723
|
+
amount_paid: number;
|
|
2724
|
+
amount_due: number;
|
|
2725
|
+
amount_refunded: number;
|
|
2726
|
+
payment_id: string;
|
|
2727
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2728
|
+
refund_reason?: string | null | undefined;
|
|
2729
|
+
note?: string | null | undefined;
|
|
2730
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
|
|
2731
|
+
payment_type: string;
|
|
2732
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
2733
|
+
card_details: {
|
|
2734
|
+
transaction_id: string;
|
|
2735
|
+
payment_provider_linked_customer_id: string;
|
|
2736
|
+
card_number: string;
|
|
2737
|
+
card_type: string;
|
|
2738
|
+
card_holder_name: string;
|
|
2739
|
+
card_charges: number;
|
|
2740
|
+
card_country_code: string;
|
|
2741
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
2742
|
+
};
|
|
2743
|
+
amount_paid: number;
|
|
2744
|
+
amount_due: number;
|
|
2745
|
+
amount_refunded: number;
|
|
2746
|
+
payment_id: string;
|
|
2747
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2748
|
+
refund_reason?: string | null | undefined;
|
|
2749
|
+
note?: string | null | undefined;
|
|
2750
|
+
}> & {
|
|
2751
|
+
payment_type: string;
|
|
2752
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
2753
|
+
card_details: {
|
|
2754
|
+
transaction_id: string;
|
|
2755
|
+
payment_provider_linked_customer_id: string;
|
|
2756
|
+
card_number: string;
|
|
2757
|
+
card_type: string;
|
|
2758
|
+
card_holder_name: string;
|
|
2759
|
+
card_charges: number;
|
|
2760
|
+
card_country_code: string;
|
|
2761
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
2762
|
+
};
|
|
2763
|
+
amount_paid: number;
|
|
2764
|
+
amount_due: number;
|
|
2765
|
+
amount_refunded: number;
|
|
2766
|
+
payment_id: string;
|
|
2767
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2768
|
+
refund_reason?: string | null | undefined;
|
|
2769
|
+
note?: string | null | undefined;
|
|
2770
|
+
}>;
|
|
2771
2771
|
cancel_reason?: string | null | undefined;
|
|
2772
2772
|
delete_reason?: string | null | undefined;
|
|
2773
2773
|
is_reopened?: boolean | null | undefined;
|
|
@@ -44,6 +44,10 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
44
44
|
}>;
|
|
45
45
|
ref_id: string;
|
|
46
46
|
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
47
|
+
amount_collected: number;
|
|
48
|
+
is_deleted: boolean;
|
|
49
|
+
amount_earned: number;
|
|
50
|
+
grand_total: number;
|
|
47
51
|
payments: import("mongoose").Types.DocumentArray<{
|
|
48
52
|
payment_type: string;
|
|
49
53
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -105,10 +109,6 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
105
109
|
refund_reason?: string | null | undefined;
|
|
106
110
|
note?: string | null | undefined;
|
|
107
111
|
}>;
|
|
108
|
-
amount_collected: number;
|
|
109
|
-
is_deleted: boolean;
|
|
110
|
-
amount_earned: number;
|
|
111
|
-
grand_total: number;
|
|
112
112
|
created_by: {
|
|
113
113
|
name: string;
|
|
114
114
|
uid: string;
|
|
@@ -232,6 +232,10 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
232
232
|
}>;
|
|
233
233
|
ref_id: string;
|
|
234
234
|
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
235
|
+
amount_collected: number;
|
|
236
|
+
is_deleted: boolean;
|
|
237
|
+
amount_earned: number;
|
|
238
|
+
grand_total: number;
|
|
235
239
|
payments: import("mongoose").Types.DocumentArray<{
|
|
236
240
|
payment_type: string;
|
|
237
241
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -293,10 +297,6 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
293
297
|
refund_reason?: string | null | undefined;
|
|
294
298
|
note?: string | null | undefined;
|
|
295
299
|
}>;
|
|
296
|
-
amount_collected: number;
|
|
297
|
-
is_deleted: boolean;
|
|
298
|
-
amount_earned: number;
|
|
299
|
-
grand_total: number;
|
|
300
300
|
created_by: {
|
|
301
301
|
name: string;
|
|
302
302
|
uid: string;
|
|
@@ -420,6 +420,10 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
420
420
|
}>;
|
|
421
421
|
ref_id: string;
|
|
422
422
|
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
423
|
+
amount_collected: number;
|
|
424
|
+
is_deleted: boolean;
|
|
425
|
+
amount_earned: number;
|
|
426
|
+
grand_total: number;
|
|
423
427
|
payments: import("mongoose").Types.DocumentArray<{
|
|
424
428
|
payment_type: string;
|
|
425
429
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -481,10 +485,6 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
481
485
|
refund_reason?: string | null | undefined;
|
|
482
486
|
note?: string | null | undefined;
|
|
483
487
|
}>;
|
|
484
|
-
amount_collected: number;
|
|
485
|
-
is_deleted: boolean;
|
|
486
|
-
amount_earned: number;
|
|
487
|
-
grand_total: number;
|
|
488
488
|
created_by: {
|
|
489
489
|
name: string;
|
|
490
490
|
uid: string;
|