@managesome/eposmatic-toolkit 0.2.596 → 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/store/catalog-actions.js +5 -2
- 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
|
@@ -153,67 +153,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
153
153
|
}>;
|
|
154
154
|
price: number;
|
|
155
155
|
order_number: number;
|
|
156
|
-
payments: import("mongoose").Types.DocumentArray<{
|
|
157
|
-
payment_type: string;
|
|
158
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
159
|
-
card_details: {
|
|
160
|
-
transaction_id: string;
|
|
161
|
-
payment_provider_linked_customer_id: string;
|
|
162
|
-
card_number: string;
|
|
163
|
-
card_type: string;
|
|
164
|
-
card_holder_name: string;
|
|
165
|
-
card_charges: number;
|
|
166
|
-
card_country_code: string;
|
|
167
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
168
|
-
};
|
|
169
|
-
amount_paid: number;
|
|
170
|
-
amount_due: number;
|
|
171
|
-
amount_refunded: number;
|
|
172
|
-
payment_id: string;
|
|
173
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
174
|
-
refund_reason?: string | null | undefined;
|
|
175
|
-
note?: string | null | undefined;
|
|
176
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
|
|
177
|
-
payment_type: string;
|
|
178
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
179
|
-
card_details: {
|
|
180
|
-
transaction_id: string;
|
|
181
|
-
payment_provider_linked_customer_id: string;
|
|
182
|
-
card_number: string;
|
|
183
|
-
card_type: string;
|
|
184
|
-
card_holder_name: string;
|
|
185
|
-
card_charges: number;
|
|
186
|
-
card_country_code: string;
|
|
187
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
188
|
-
};
|
|
189
|
-
amount_paid: number;
|
|
190
|
-
amount_due: number;
|
|
191
|
-
amount_refunded: number;
|
|
192
|
-
payment_id: string;
|
|
193
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
194
|
-
refund_reason?: string | null | undefined;
|
|
195
|
-
note?: string | null | undefined;
|
|
196
|
-
}> & {
|
|
197
|
-
payment_type: string;
|
|
198
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
199
|
-
card_details: {
|
|
200
|
-
transaction_id: string;
|
|
201
|
-
payment_provider_linked_customer_id: string;
|
|
202
|
-
card_number: string;
|
|
203
|
-
card_type: string;
|
|
204
|
-
card_holder_name: string;
|
|
205
|
-
card_charges: number;
|
|
206
|
-
card_country_code: string;
|
|
207
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
208
|
-
};
|
|
209
|
-
amount_paid: number;
|
|
210
|
-
amount_due: number;
|
|
211
|
-
amount_refunded: number;
|
|
212
|
-
payment_id: string;
|
|
213
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
214
|
-
refund_reason?: string | null | undefined;
|
|
215
|
-
note?: string | null | undefined;
|
|
216
|
-
}>;
|
|
217
156
|
warehouse_id: string;
|
|
218
157
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
219
158
|
updatedAt: NativeDate;
|
|
@@ -357,6 +296,11 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
357
296
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
358
297
|
}>;
|
|
359
298
|
price: number;
|
|
299
|
+
special_instructions: string;
|
|
300
|
+
amount_earned: number;
|
|
301
|
+
grand_total: number;
|
|
302
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
303
|
+
tax_number: string;
|
|
360
304
|
payments: import("mongoose").Types.DocumentArray<{
|
|
361
305
|
payment_type: string;
|
|
362
306
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -418,11 +362,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
418
362
|
refund_reason?: string | null | undefined;
|
|
419
363
|
note?: string | null | undefined;
|
|
420
364
|
}>;
|
|
421
|
-
special_instructions: string;
|
|
422
|
-
amount_earned: number;
|
|
423
|
-
grand_total: number;
|
|
424
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
425
|
-
tax_number: string;
|
|
426
365
|
staff_details?: {
|
|
427
366
|
staff_id: string;
|
|
428
367
|
staff_name: string;
|
|
@@ -574,6 +513,11 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
574
513
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
575
514
|
}>;
|
|
576
515
|
price: number;
|
|
516
|
+
special_instructions: string;
|
|
517
|
+
amount_earned: number;
|
|
518
|
+
grand_total: number;
|
|
519
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
520
|
+
tax_number: string;
|
|
577
521
|
payments: import("mongoose").Types.DocumentArray<{
|
|
578
522
|
payment_type: string;
|
|
579
523
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -635,11 +579,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
635
579
|
refund_reason?: string | null | undefined;
|
|
636
580
|
note?: string | null | undefined;
|
|
637
581
|
}>;
|
|
638
|
-
special_instructions: string;
|
|
639
|
-
amount_earned: number;
|
|
640
|
-
grand_total: number;
|
|
641
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
642
|
-
tax_number: string;
|
|
643
582
|
staff_details?: {
|
|
644
583
|
staff_id: string;
|
|
645
584
|
staff_name: string;
|
|
@@ -791,6 +730,11 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
791
730
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
792
731
|
}>;
|
|
793
732
|
price: number;
|
|
733
|
+
special_instructions: string;
|
|
734
|
+
amount_earned: number;
|
|
735
|
+
grand_total: number;
|
|
736
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
737
|
+
tax_number: string;
|
|
794
738
|
payments: import("mongoose").Types.DocumentArray<{
|
|
795
739
|
payment_type: string;
|
|
796
740
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -852,11 +796,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
852
796
|
refund_reason?: string | null | undefined;
|
|
853
797
|
note?: string | null | undefined;
|
|
854
798
|
}>;
|
|
855
|
-
special_instructions: string;
|
|
856
|
-
amount_earned: number;
|
|
857
|
-
grand_total: number;
|
|
858
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
859
|
-
tax_number: string;
|
|
860
799
|
staff_details?: {
|
|
861
800
|
staff_id: string;
|
|
862
801
|
staff_name: string;
|
|
@@ -885,6 +824,67 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
885
824
|
tax_number: string;
|
|
886
825
|
vendor_name: string;
|
|
887
826
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
827
|
+
payments: import("mongoose").Types.DocumentArray<{
|
|
828
|
+
payment_type: string;
|
|
829
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
830
|
+
card_details: {
|
|
831
|
+
transaction_id: string;
|
|
832
|
+
payment_provider_linked_customer_id: string;
|
|
833
|
+
card_number: string;
|
|
834
|
+
card_type: string;
|
|
835
|
+
card_holder_name: string;
|
|
836
|
+
card_charges: number;
|
|
837
|
+
card_country_code: string;
|
|
838
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
839
|
+
};
|
|
840
|
+
amount_paid: number;
|
|
841
|
+
amount_due: number;
|
|
842
|
+
amount_refunded: number;
|
|
843
|
+
payment_id: string;
|
|
844
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
845
|
+
refund_reason?: string | null | undefined;
|
|
846
|
+
note?: string | null | undefined;
|
|
847
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
|
|
848
|
+
payment_type: string;
|
|
849
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
850
|
+
card_details: {
|
|
851
|
+
transaction_id: string;
|
|
852
|
+
payment_provider_linked_customer_id: string;
|
|
853
|
+
card_number: string;
|
|
854
|
+
card_type: string;
|
|
855
|
+
card_holder_name: string;
|
|
856
|
+
card_charges: number;
|
|
857
|
+
card_country_code: string;
|
|
858
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
859
|
+
};
|
|
860
|
+
amount_paid: number;
|
|
861
|
+
amount_due: number;
|
|
862
|
+
amount_refunded: number;
|
|
863
|
+
payment_id: string;
|
|
864
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
865
|
+
refund_reason?: string | null | undefined;
|
|
866
|
+
note?: string | null | undefined;
|
|
867
|
+
}> & {
|
|
868
|
+
payment_type: string;
|
|
869
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
870
|
+
card_details: {
|
|
871
|
+
transaction_id: string;
|
|
872
|
+
payment_provider_linked_customer_id: string;
|
|
873
|
+
card_number: string;
|
|
874
|
+
card_type: string;
|
|
875
|
+
card_holder_name: string;
|
|
876
|
+
card_charges: number;
|
|
877
|
+
card_country_code: string;
|
|
878
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
879
|
+
};
|
|
880
|
+
amount_paid: number;
|
|
881
|
+
amount_due: number;
|
|
882
|
+
amount_refunded: number;
|
|
883
|
+
payment_id: string;
|
|
884
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
885
|
+
refund_reason?: string | null | undefined;
|
|
886
|
+
note?: string | null | undefined;
|
|
887
|
+
}>;
|
|
888
888
|
cancel_reason?: string | null | undefined;
|
|
889
889
|
rfq_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
890
890
|
delete_reason?: string | null | undefined;
|
|
@@ -1042,67 +1042,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1042
1042
|
}>;
|
|
1043
1043
|
price: number;
|
|
1044
1044
|
order_number: number;
|
|
1045
|
-
payments: import("mongoose").Types.DocumentArray<{
|
|
1046
|
-
payment_type: string;
|
|
1047
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
1048
|
-
card_details: {
|
|
1049
|
-
transaction_id: string;
|
|
1050
|
-
payment_provider_linked_customer_id: string;
|
|
1051
|
-
card_number: string;
|
|
1052
|
-
card_type: string;
|
|
1053
|
-
card_holder_name: string;
|
|
1054
|
-
card_charges: number;
|
|
1055
|
-
card_country_code: string;
|
|
1056
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
1057
|
-
};
|
|
1058
|
-
amount_paid: number;
|
|
1059
|
-
amount_due: number;
|
|
1060
|
-
amount_refunded: number;
|
|
1061
|
-
payment_id: string;
|
|
1062
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1063
|
-
refund_reason?: string | null | undefined;
|
|
1064
|
-
note?: string | null | undefined;
|
|
1065
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
|
|
1066
|
-
payment_type: string;
|
|
1067
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
1068
|
-
card_details: {
|
|
1069
|
-
transaction_id: string;
|
|
1070
|
-
payment_provider_linked_customer_id: string;
|
|
1071
|
-
card_number: string;
|
|
1072
|
-
card_type: string;
|
|
1073
|
-
card_holder_name: string;
|
|
1074
|
-
card_charges: number;
|
|
1075
|
-
card_country_code: string;
|
|
1076
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
1077
|
-
};
|
|
1078
|
-
amount_paid: number;
|
|
1079
|
-
amount_due: number;
|
|
1080
|
-
amount_refunded: number;
|
|
1081
|
-
payment_id: string;
|
|
1082
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1083
|
-
refund_reason?: string | null | undefined;
|
|
1084
|
-
note?: string | null | undefined;
|
|
1085
|
-
}> & {
|
|
1086
|
-
payment_type: string;
|
|
1087
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
1088
|
-
card_details: {
|
|
1089
|
-
transaction_id: string;
|
|
1090
|
-
payment_provider_linked_customer_id: string;
|
|
1091
|
-
card_number: string;
|
|
1092
|
-
card_type: string;
|
|
1093
|
-
card_holder_name: string;
|
|
1094
|
-
card_charges: number;
|
|
1095
|
-
card_country_code: string;
|
|
1096
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
1097
|
-
};
|
|
1098
|
-
amount_paid: number;
|
|
1099
|
-
amount_due: number;
|
|
1100
|
-
amount_refunded: number;
|
|
1101
|
-
payment_id: string;
|
|
1102
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1103
|
-
refund_reason?: string | null | undefined;
|
|
1104
|
-
note?: string | null | undefined;
|
|
1105
|
-
}>;
|
|
1106
1045
|
warehouse_id: string;
|
|
1107
1046
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
1108
1047
|
updatedAt: NativeDate;
|
|
@@ -1246,6 +1185,11 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1246
1185
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1247
1186
|
}>;
|
|
1248
1187
|
price: number;
|
|
1188
|
+
special_instructions: string;
|
|
1189
|
+
amount_earned: number;
|
|
1190
|
+
grand_total: number;
|
|
1191
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
1192
|
+
tax_number: string;
|
|
1249
1193
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1250
1194
|
payment_type: string;
|
|
1251
1195
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1307,11 +1251,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1307
1251
|
refund_reason?: string | null | undefined;
|
|
1308
1252
|
note?: string | null | undefined;
|
|
1309
1253
|
}>;
|
|
1310
|
-
special_instructions: string;
|
|
1311
|
-
amount_earned: number;
|
|
1312
|
-
grand_total: number;
|
|
1313
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
1314
|
-
tax_number: string;
|
|
1315
1254
|
staff_details?: {
|
|
1316
1255
|
staff_id: string;
|
|
1317
1256
|
staff_name: string;
|
|
@@ -1463,6 +1402,11 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1463
1402
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1464
1403
|
}>;
|
|
1465
1404
|
price: number;
|
|
1405
|
+
special_instructions: string;
|
|
1406
|
+
amount_earned: number;
|
|
1407
|
+
grand_total: number;
|
|
1408
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
1409
|
+
tax_number: string;
|
|
1466
1410
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1467
1411
|
payment_type: string;
|
|
1468
1412
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1524,11 +1468,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1524
1468
|
refund_reason?: string | null | undefined;
|
|
1525
1469
|
note?: string | null | undefined;
|
|
1526
1470
|
}>;
|
|
1527
|
-
special_instructions: string;
|
|
1528
|
-
amount_earned: number;
|
|
1529
|
-
grand_total: number;
|
|
1530
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
1531
|
-
tax_number: string;
|
|
1532
1471
|
staff_details?: {
|
|
1533
1472
|
staff_id: string;
|
|
1534
1473
|
staff_name: string;
|
|
@@ -1680,6 +1619,11 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1680
1619
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1681
1620
|
}>;
|
|
1682
1621
|
price: number;
|
|
1622
|
+
special_instructions: string;
|
|
1623
|
+
amount_earned: number;
|
|
1624
|
+
grand_total: number;
|
|
1625
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
1626
|
+
tax_number: string;
|
|
1683
1627
|
payments: import("mongoose").Types.DocumentArray<{
|
|
1684
1628
|
payment_type: string;
|
|
1685
1629
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -1741,11 +1685,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1741
1685
|
refund_reason?: string | null | undefined;
|
|
1742
1686
|
note?: string | null | undefined;
|
|
1743
1687
|
}>;
|
|
1744
|
-
special_instructions: string;
|
|
1745
|
-
amount_earned: number;
|
|
1746
|
-
grand_total: number;
|
|
1747
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
1748
|
-
tax_number: string;
|
|
1749
1688
|
staff_details?: {
|
|
1750
1689
|
staff_id: string;
|
|
1751
1690
|
staff_name: string;
|
|
@@ -1774,6 +1713,67 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1774
1713
|
tax_number: string;
|
|
1775
1714
|
vendor_name: string;
|
|
1776
1715
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
1716
|
+
payments: import("mongoose").Types.DocumentArray<{
|
|
1717
|
+
payment_type: string;
|
|
1718
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
1719
|
+
card_details: {
|
|
1720
|
+
transaction_id: string;
|
|
1721
|
+
payment_provider_linked_customer_id: string;
|
|
1722
|
+
card_number: string;
|
|
1723
|
+
card_type: string;
|
|
1724
|
+
card_holder_name: string;
|
|
1725
|
+
card_charges: number;
|
|
1726
|
+
card_country_code: string;
|
|
1727
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
1728
|
+
};
|
|
1729
|
+
amount_paid: number;
|
|
1730
|
+
amount_due: number;
|
|
1731
|
+
amount_refunded: number;
|
|
1732
|
+
payment_id: string;
|
|
1733
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1734
|
+
refund_reason?: string | null | undefined;
|
|
1735
|
+
note?: string | null | undefined;
|
|
1736
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
|
|
1737
|
+
payment_type: string;
|
|
1738
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
1739
|
+
card_details: {
|
|
1740
|
+
transaction_id: string;
|
|
1741
|
+
payment_provider_linked_customer_id: string;
|
|
1742
|
+
card_number: string;
|
|
1743
|
+
card_type: string;
|
|
1744
|
+
card_holder_name: string;
|
|
1745
|
+
card_charges: number;
|
|
1746
|
+
card_country_code: string;
|
|
1747
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
1748
|
+
};
|
|
1749
|
+
amount_paid: number;
|
|
1750
|
+
amount_due: number;
|
|
1751
|
+
amount_refunded: number;
|
|
1752
|
+
payment_id: string;
|
|
1753
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1754
|
+
refund_reason?: string | null | undefined;
|
|
1755
|
+
note?: string | null | undefined;
|
|
1756
|
+
}> & {
|
|
1757
|
+
payment_type: string;
|
|
1758
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
1759
|
+
card_details: {
|
|
1760
|
+
transaction_id: string;
|
|
1761
|
+
payment_provider_linked_customer_id: string;
|
|
1762
|
+
card_number: string;
|
|
1763
|
+
card_type: string;
|
|
1764
|
+
card_holder_name: string;
|
|
1765
|
+
card_charges: number;
|
|
1766
|
+
card_country_code: string;
|
|
1767
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
1768
|
+
};
|
|
1769
|
+
amount_paid: number;
|
|
1770
|
+
amount_due: number;
|
|
1771
|
+
amount_refunded: number;
|
|
1772
|
+
payment_id: string;
|
|
1773
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1774
|
+
refund_reason?: string | null | undefined;
|
|
1775
|
+
note?: string | null | undefined;
|
|
1776
|
+
}>;
|
|
1777
1777
|
cancel_reason?: string | null | undefined;
|
|
1778
1778
|
rfq_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1779
1779
|
delete_reason?: string | null | undefined;
|
|
@@ -1931,67 +1931,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1931
1931
|
}>;
|
|
1932
1932
|
price: number;
|
|
1933
1933
|
order_number: number;
|
|
1934
|
-
payments: import("mongoose").Types.DocumentArray<{
|
|
1935
|
-
payment_type: string;
|
|
1936
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
1937
|
-
card_details: {
|
|
1938
|
-
transaction_id: string;
|
|
1939
|
-
payment_provider_linked_customer_id: string;
|
|
1940
|
-
card_number: string;
|
|
1941
|
-
card_type: string;
|
|
1942
|
-
card_holder_name: string;
|
|
1943
|
-
card_charges: number;
|
|
1944
|
-
card_country_code: string;
|
|
1945
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
1946
|
-
};
|
|
1947
|
-
amount_paid: number;
|
|
1948
|
-
amount_due: number;
|
|
1949
|
-
amount_refunded: number;
|
|
1950
|
-
payment_id: string;
|
|
1951
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1952
|
-
refund_reason?: string | null | undefined;
|
|
1953
|
-
note?: string | null | undefined;
|
|
1954
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
|
|
1955
|
-
payment_type: string;
|
|
1956
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
1957
|
-
card_details: {
|
|
1958
|
-
transaction_id: string;
|
|
1959
|
-
payment_provider_linked_customer_id: string;
|
|
1960
|
-
card_number: string;
|
|
1961
|
-
card_type: string;
|
|
1962
|
-
card_holder_name: string;
|
|
1963
|
-
card_charges: number;
|
|
1964
|
-
card_country_code: string;
|
|
1965
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
1966
|
-
};
|
|
1967
|
-
amount_paid: number;
|
|
1968
|
-
amount_due: number;
|
|
1969
|
-
amount_refunded: number;
|
|
1970
|
-
payment_id: string;
|
|
1971
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1972
|
-
refund_reason?: string | null | undefined;
|
|
1973
|
-
note?: string | null | undefined;
|
|
1974
|
-
}> & {
|
|
1975
|
-
payment_type: string;
|
|
1976
|
-
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
1977
|
-
card_details: {
|
|
1978
|
-
transaction_id: string;
|
|
1979
|
-
payment_provider_linked_customer_id: string;
|
|
1980
|
-
card_number: string;
|
|
1981
|
-
card_type: string;
|
|
1982
|
-
card_holder_name: string;
|
|
1983
|
-
card_charges: number;
|
|
1984
|
-
card_country_code: string;
|
|
1985
|
-
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
1986
|
-
};
|
|
1987
|
-
amount_paid: number;
|
|
1988
|
-
amount_due: number;
|
|
1989
|
-
amount_refunded: number;
|
|
1990
|
-
payment_id: string;
|
|
1991
|
-
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
1992
|
-
refund_reason?: string | null | undefined;
|
|
1993
|
-
note?: string | null | undefined;
|
|
1994
|
-
}>;
|
|
1995
1934
|
warehouse_id: string;
|
|
1996
1935
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
1997
1936
|
updatedAt: NativeDate;
|
|
@@ -2135,6 +2074,11 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2135
2074
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2136
2075
|
}>;
|
|
2137
2076
|
price: number;
|
|
2077
|
+
special_instructions: string;
|
|
2078
|
+
amount_earned: number;
|
|
2079
|
+
grand_total: number;
|
|
2080
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
2081
|
+
tax_number: string;
|
|
2138
2082
|
payments: import("mongoose").Types.DocumentArray<{
|
|
2139
2083
|
payment_type: string;
|
|
2140
2084
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -2196,11 +2140,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2196
2140
|
refund_reason?: string | null | undefined;
|
|
2197
2141
|
note?: string | null | undefined;
|
|
2198
2142
|
}>;
|
|
2199
|
-
special_instructions: string;
|
|
2200
|
-
amount_earned: number;
|
|
2201
|
-
grand_total: number;
|
|
2202
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
2203
|
-
tax_number: string;
|
|
2204
2143
|
staff_details?: {
|
|
2205
2144
|
staff_id: string;
|
|
2206
2145
|
staff_name: string;
|
|
@@ -2352,6 +2291,11 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2352
2291
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2353
2292
|
}>;
|
|
2354
2293
|
price: number;
|
|
2294
|
+
special_instructions: string;
|
|
2295
|
+
amount_earned: number;
|
|
2296
|
+
grand_total: number;
|
|
2297
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
2298
|
+
tax_number: string;
|
|
2355
2299
|
payments: import("mongoose").Types.DocumentArray<{
|
|
2356
2300
|
payment_type: string;
|
|
2357
2301
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -2413,11 +2357,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2413
2357
|
refund_reason?: string | null | undefined;
|
|
2414
2358
|
note?: string | null | undefined;
|
|
2415
2359
|
}>;
|
|
2416
|
-
special_instructions: string;
|
|
2417
|
-
amount_earned: number;
|
|
2418
|
-
grand_total: number;
|
|
2419
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
2420
|
-
tax_number: string;
|
|
2421
2360
|
staff_details?: {
|
|
2422
2361
|
staff_id: string;
|
|
2423
2362
|
staff_name: string;
|
|
@@ -2569,6 +2508,11 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2569
2508
|
category_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2570
2509
|
}>;
|
|
2571
2510
|
price: number;
|
|
2511
|
+
special_instructions: string;
|
|
2512
|
+
amount_earned: number;
|
|
2513
|
+
grand_total: number;
|
|
2514
|
+
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
2515
|
+
tax_number: string;
|
|
2572
2516
|
payments: import("mongoose").Types.DocumentArray<{
|
|
2573
2517
|
payment_type: string;
|
|
2574
2518
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -2630,11 +2574,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2630
2574
|
refund_reason?: string | null | undefined;
|
|
2631
2575
|
note?: string | null | undefined;
|
|
2632
2576
|
}>;
|
|
2633
|
-
special_instructions: string;
|
|
2634
|
-
amount_earned: number;
|
|
2635
|
-
grand_total: number;
|
|
2636
|
-
order_status: WAREHOUSE_PURCHASE_ORDER_STATUS_ENUM;
|
|
2637
|
-
tax_number: string;
|
|
2638
2577
|
staff_details?: {
|
|
2639
2578
|
staff_id: string;
|
|
2640
2579
|
staff_name: string;
|
|
@@ -2663,6 +2602,67 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2663
2602
|
tax_number: string;
|
|
2664
2603
|
vendor_name: string;
|
|
2665
2604
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
2605
|
+
payments: import("mongoose").Types.DocumentArray<{
|
|
2606
|
+
payment_type: string;
|
|
2607
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
2608
|
+
card_details: {
|
|
2609
|
+
transaction_id: string;
|
|
2610
|
+
payment_provider_linked_customer_id: string;
|
|
2611
|
+
card_number: string;
|
|
2612
|
+
card_type: string;
|
|
2613
|
+
card_holder_name: string;
|
|
2614
|
+
card_charges: number;
|
|
2615
|
+
card_country_code: string;
|
|
2616
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
2617
|
+
};
|
|
2618
|
+
amount_paid: number;
|
|
2619
|
+
amount_due: number;
|
|
2620
|
+
amount_refunded: number;
|
|
2621
|
+
payment_id: string;
|
|
2622
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2623
|
+
refund_reason?: string | null | undefined;
|
|
2624
|
+
note?: string | null | undefined;
|
|
2625
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
|
|
2626
|
+
payment_type: string;
|
|
2627
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
2628
|
+
card_details: {
|
|
2629
|
+
transaction_id: string;
|
|
2630
|
+
payment_provider_linked_customer_id: string;
|
|
2631
|
+
card_number: string;
|
|
2632
|
+
card_type: string;
|
|
2633
|
+
card_holder_name: string;
|
|
2634
|
+
card_charges: number;
|
|
2635
|
+
card_country_code: string;
|
|
2636
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
2637
|
+
};
|
|
2638
|
+
amount_paid: number;
|
|
2639
|
+
amount_due: number;
|
|
2640
|
+
amount_refunded: number;
|
|
2641
|
+
payment_id: string;
|
|
2642
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2643
|
+
refund_reason?: string | null | undefined;
|
|
2644
|
+
note?: string | null | undefined;
|
|
2645
|
+
}> & {
|
|
2646
|
+
payment_type: string;
|
|
2647
|
+
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
2648
|
+
card_details: {
|
|
2649
|
+
transaction_id: string;
|
|
2650
|
+
payment_provider_linked_customer_id: string;
|
|
2651
|
+
card_number: string;
|
|
2652
|
+
card_type: string;
|
|
2653
|
+
card_holder_name: string;
|
|
2654
|
+
card_charges: number;
|
|
2655
|
+
card_country_code: string;
|
|
2656
|
+
payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
|
|
2657
|
+
};
|
|
2658
|
+
amount_paid: number;
|
|
2659
|
+
amount_due: number;
|
|
2660
|
+
amount_refunded: number;
|
|
2661
|
+
payment_id: string;
|
|
2662
|
+
_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2663
|
+
refund_reason?: string | null | undefined;
|
|
2664
|
+
note?: string | null | undefined;
|
|
2665
|
+
}>;
|
|
2666
2666
|
cancel_reason?: string | null | undefined;
|
|
2667
2667
|
rfq_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
2668
2668
|
delete_reason?: string | null | undefined;
|
|
@@ -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
|
-
payments: any[];
|
|
37
36
|
warehouse_id: string;
|
|
37
|
+
payments: any[];
|
|
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
|
-
payments: any[];
|
|
109
108
|
warehouse_id: string;
|
|
109
|
+
payments: any[];
|
|
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
|
-
payments: any[];
|
|
181
180
|
warehouse_id: string;
|
|
181
|
+
payments: any[];
|
|
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;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EXPENSE_REACCURING_TYPE_ENUM } from '../../constants';
|
|
2
|
-
import { IOrderPayment } from './orders';
|
|
3
2
|
export interface IExpenseReacurring {
|
|
4
3
|
is_recurring: boolean;
|
|
5
4
|
recurrence_interval: EXPENSE_REACCURING_TYPE_ENUM | null;
|
|
@@ -13,7 +12,6 @@ export interface IExpenseDetails {
|
|
|
13
12
|
amount: number;
|
|
14
13
|
description: string;
|
|
15
14
|
payment_method: string;
|
|
16
|
-
payments: IOrderPayment[];
|
|
17
15
|
receipt_image: string | null;
|
|
18
16
|
recurring?: IExpenseReacurring | null;
|
|
19
17
|
date_incurred: Date;
|