@managesome/eposmatic-toolkit 0.2.419 → 0.2.421
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/constants/ENUMS.d.ts +50 -0
- package/lib/constants/ENUMS.js +67 -1
- package/lib/helpers/types/workers.d.ts +4 -4
- package/lib/helpers/utils/index.d.ts +1 -0
- package/lib/helpers/utils/index.js +1 -0
- package/lib/helpers/utils/internal-amount-helpers.d.ts +20 -0
- package/lib/helpers/utils/internal-amount-helpers.js +31 -0
- package/lib/schemas/models/index.d.ts +3 -1
- package/lib/schemas/models/index.js +3 -1
- package/lib/schemas/models/internal_customers.d.ts +93 -0
- package/lib/schemas/models/internal_customers.js +116 -0
- package/lib/schemas/models/internal_invoices.d.ts +89 -0
- package/lib/schemas/models/internal_invoices.js +113 -0
- package/lib/schemas/models/internal_leads.d.ts +3 -3
- package/lib/schemas/models/inventory_lot_serial_numbers.d.ts +18 -18
- package/lib/schemas/models/item_transactions.d.ts +3 -3
- package/lib/schemas/models/order.d.ts +108 -108
- package/lib/schemas/models/purchase_order_receipts.d.ts +3 -3
- package/lib/schemas/models/purchase_order_rfq.d.ts +6 -6
- package/lib/schemas/models/purchase_order_vendor_returns.d.ts +15 -15
- package/lib/schemas/models/purchase_orders.d.ts +3 -3
- package/lib/schemas/models/sale_order_deliveries.d.ts +18 -18
- package/lib/schemas/models/sale_order_invoices.d.ts +12 -12
- package/lib/schemas/models/sale_order_rfq.d.ts +6 -6
- package/lib/schemas/models/sale_orders.d.ts +3 -3
- package/lib/schemas/models/void_order_items.d.ts +3 -3
- package/lib/schemas/models/void_purchase_order_items.d.ts +6 -6
- package/lib/schemas/models/void_warehouse_invoice_items.d.ts +6 -6
- package/lib/schemas/models/warehouse_internal_movements.d.ts +357 -0
- package/lib/schemas/models/warehouse_internal_movements.js +323 -0
- package/lib/schemas/models/warehouse_inventory_transactions.d.ts +3 -3
- package/lib/schemas/models/warehouse_invoices.d.ts +3 -3
- package/lib/schemas/models/warehouse_item_transactions.d.ts +6 -6
- package/lib/schemas/models/warehouse_items.d.ts +12 -12
- package/lib/schemas/types/index.d.ts +3 -1
- package/lib/schemas/types/index.js +3 -1
- package/lib/schemas/types/internal_customers.d.ts +26 -0
- package/lib/schemas/types/internal_customers.js +2 -0
- package/lib/schemas/types/internal_invoices.d.ts +25 -0
- package/lib/schemas/types/internal_invoices.js +2 -0
- package/lib/schemas/types/warehouse_internal_movements.d.ts +73 -0
- package/lib/schemas/types/warehouse_internal_movements.js +2 -0
- package/package.json +1 -1
|
@@ -49,12 +49,12 @@ export declare const PurchaseOrderReceiptsSchema: Schema<any, import("mongoose")
|
|
|
49
49
|
_id: string;
|
|
50
50
|
name: string;
|
|
51
51
|
} | null | undefined;
|
|
52
|
-
cancelled_at?: NativeDate | null | undefined;
|
|
53
52
|
validated_by?: {
|
|
54
53
|
_id: string;
|
|
55
54
|
name: string;
|
|
56
55
|
} | null | undefined;
|
|
57
56
|
validated_at?: NativeDate | null | undefined;
|
|
57
|
+
cancelled_at?: NativeDate | null | undefined;
|
|
58
58
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
59
59
|
createdAt: NativeDate;
|
|
60
60
|
updatedAt: NativeDate;
|
|
@@ -100,12 +100,12 @@ export declare const PurchaseOrderReceiptsSchema: Schema<any, import("mongoose")
|
|
|
100
100
|
_id: string;
|
|
101
101
|
name: string;
|
|
102
102
|
} | null | undefined;
|
|
103
|
-
cancelled_at?: NativeDate | null | undefined;
|
|
104
103
|
validated_by?: {
|
|
105
104
|
_id: string;
|
|
106
105
|
name: string;
|
|
107
106
|
} | null | undefined;
|
|
108
107
|
validated_at?: NativeDate | null | undefined;
|
|
108
|
+
cancelled_at?: NativeDate | null | undefined;
|
|
109
109
|
}>> & import("mongoose").FlatRecord<{
|
|
110
110
|
createdAt: NativeDate;
|
|
111
111
|
updatedAt: NativeDate;
|
|
@@ -151,12 +151,12 @@ export declare const PurchaseOrderReceiptsSchema: Schema<any, import("mongoose")
|
|
|
151
151
|
_id: string;
|
|
152
152
|
name: string;
|
|
153
153
|
} | null | undefined;
|
|
154
|
-
cancelled_at?: NativeDate | null | undefined;
|
|
155
154
|
validated_by?: {
|
|
156
155
|
_id: string;
|
|
157
156
|
name: string;
|
|
158
157
|
} | null | undefined;
|
|
159
158
|
validated_at?: NativeDate | null | undefined;
|
|
159
|
+
cancelled_at?: NativeDate | null | undefined;
|
|
160
160
|
}> & Required<{
|
|
161
161
|
_id: import("mongoose").Types.ObjectId;
|
|
162
162
|
}> & {
|
|
@@ -629,17 +629,17 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
629
629
|
}>;
|
|
630
630
|
is_deleted: boolean;
|
|
631
631
|
order_status_updated_at: NativeDate;
|
|
632
|
-
|
|
632
|
+
payment_terms: number;
|
|
633
633
|
staff_details: {
|
|
634
634
|
staff_id: string;
|
|
635
635
|
staff_name: string;
|
|
636
636
|
staff_mobile: string;
|
|
637
637
|
staff_email: string;
|
|
638
638
|
};
|
|
639
|
+
warehouse_id: string;
|
|
639
640
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
640
641
|
vendor_name: string;
|
|
641
642
|
expected_deadline: string;
|
|
642
|
-
payment_terms: number;
|
|
643
643
|
cancel_reason?: string | null | undefined;
|
|
644
644
|
delete_reason?: string | null | undefined;
|
|
645
645
|
is_reopened?: boolean | null | undefined;
|
|
@@ -1271,17 +1271,17 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
1271
1271
|
}>;
|
|
1272
1272
|
is_deleted: boolean;
|
|
1273
1273
|
order_status_updated_at: NativeDate;
|
|
1274
|
-
|
|
1274
|
+
payment_terms: number;
|
|
1275
1275
|
staff_details: {
|
|
1276
1276
|
staff_id: string;
|
|
1277
1277
|
staff_name: string;
|
|
1278
1278
|
staff_mobile: string;
|
|
1279
1279
|
staff_email: string;
|
|
1280
1280
|
};
|
|
1281
|
+
warehouse_id: string;
|
|
1281
1282
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
1282
1283
|
vendor_name: string;
|
|
1283
1284
|
expected_deadline: string;
|
|
1284
|
-
payment_terms: number;
|
|
1285
1285
|
cancel_reason?: string | null | undefined;
|
|
1286
1286
|
delete_reason?: string | null | undefined;
|
|
1287
1287
|
is_reopened?: boolean | null | undefined;
|
|
@@ -1913,17 +1913,17 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
1913
1913
|
}>;
|
|
1914
1914
|
is_deleted: boolean;
|
|
1915
1915
|
order_status_updated_at: NativeDate;
|
|
1916
|
-
|
|
1916
|
+
payment_terms: number;
|
|
1917
1917
|
staff_details: {
|
|
1918
1918
|
staff_id: string;
|
|
1919
1919
|
staff_name: string;
|
|
1920
1920
|
staff_mobile: string;
|
|
1921
1921
|
staff_email: string;
|
|
1922
1922
|
};
|
|
1923
|
+
warehouse_id: string;
|
|
1923
1924
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
1924
1925
|
vendor_name: string;
|
|
1925
1926
|
expected_deadline: string;
|
|
1926
|
-
payment_terms: number;
|
|
1927
1927
|
cancel_reason?: string | null | undefined;
|
|
1928
1928
|
delete_reason?: string | null | undefined;
|
|
1929
1929
|
is_reopened?: boolean | null | undefined;
|
|
@@ -53,8 +53,6 @@ export declare const PurchaseOrderVendorReturnsSchema: Schema<any, import("mongo
|
|
|
53
53
|
_id: string;
|
|
54
54
|
name: string;
|
|
55
55
|
} | null | undefined;
|
|
56
|
-
approved_at?: NativeDate | null | undefined;
|
|
57
|
-
dispatched_at?: NativeDate | null | undefined;
|
|
58
56
|
cancelled_at?: NativeDate | null | undefined;
|
|
59
57
|
approved_by?: {
|
|
60
58
|
_id: string;
|
|
@@ -64,18 +62,20 @@ export declare const PurchaseOrderVendorReturnsSchema: Schema<any, import("mongo
|
|
|
64
62
|
_id: string;
|
|
65
63
|
name: string;
|
|
66
64
|
} | null | undefined;
|
|
67
|
-
|
|
65
|
+
vendor_confirmed_by?: {
|
|
68
66
|
_id: string;
|
|
69
67
|
name: string;
|
|
70
68
|
} | null | undefined;
|
|
71
|
-
|
|
69
|
+
completed_by?: {
|
|
72
70
|
_id: string;
|
|
73
71
|
name: string;
|
|
74
72
|
} | null | undefined;
|
|
75
|
-
|
|
73
|
+
cancelled_by?: {
|
|
76
74
|
_id: string;
|
|
77
75
|
name: string;
|
|
78
76
|
} | null | undefined;
|
|
77
|
+
approved_at?: NativeDate | null | undefined;
|
|
78
|
+
dispatched_at?: NativeDate | null | undefined;
|
|
79
79
|
vendor_confirmed_at?: NativeDate | null | undefined;
|
|
80
80
|
completed_at?: NativeDate | null | undefined;
|
|
81
81
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
@@ -127,8 +127,6 @@ export declare const PurchaseOrderVendorReturnsSchema: Schema<any, import("mongo
|
|
|
127
127
|
_id: string;
|
|
128
128
|
name: string;
|
|
129
129
|
} | null | undefined;
|
|
130
|
-
approved_at?: NativeDate | null | undefined;
|
|
131
|
-
dispatched_at?: NativeDate | null | undefined;
|
|
132
130
|
cancelled_at?: NativeDate | null | undefined;
|
|
133
131
|
approved_by?: {
|
|
134
132
|
_id: string;
|
|
@@ -138,18 +136,20 @@ export declare const PurchaseOrderVendorReturnsSchema: Schema<any, import("mongo
|
|
|
138
136
|
_id: string;
|
|
139
137
|
name: string;
|
|
140
138
|
} | null | undefined;
|
|
141
|
-
|
|
139
|
+
vendor_confirmed_by?: {
|
|
142
140
|
_id: string;
|
|
143
141
|
name: string;
|
|
144
142
|
} | null | undefined;
|
|
145
|
-
|
|
143
|
+
completed_by?: {
|
|
146
144
|
_id: string;
|
|
147
145
|
name: string;
|
|
148
146
|
} | null | undefined;
|
|
149
|
-
|
|
147
|
+
cancelled_by?: {
|
|
150
148
|
_id: string;
|
|
151
149
|
name: string;
|
|
152
150
|
} | null | undefined;
|
|
151
|
+
approved_at?: NativeDate | null | undefined;
|
|
152
|
+
dispatched_at?: NativeDate | null | undefined;
|
|
153
153
|
vendor_confirmed_at?: NativeDate | null | undefined;
|
|
154
154
|
completed_at?: NativeDate | null | undefined;
|
|
155
155
|
}>> & import("mongoose").FlatRecord<{
|
|
@@ -201,8 +201,6 @@ export declare const PurchaseOrderVendorReturnsSchema: Schema<any, import("mongo
|
|
|
201
201
|
_id: string;
|
|
202
202
|
name: string;
|
|
203
203
|
} | null | undefined;
|
|
204
|
-
approved_at?: NativeDate | null | undefined;
|
|
205
|
-
dispatched_at?: NativeDate | null | undefined;
|
|
206
204
|
cancelled_at?: NativeDate | null | undefined;
|
|
207
205
|
approved_by?: {
|
|
208
206
|
_id: string;
|
|
@@ -212,18 +210,20 @@ export declare const PurchaseOrderVendorReturnsSchema: Schema<any, import("mongo
|
|
|
212
210
|
_id: string;
|
|
213
211
|
name: string;
|
|
214
212
|
} | null | undefined;
|
|
215
|
-
|
|
213
|
+
vendor_confirmed_by?: {
|
|
216
214
|
_id: string;
|
|
217
215
|
name: string;
|
|
218
216
|
} | null | undefined;
|
|
219
|
-
|
|
217
|
+
completed_by?: {
|
|
220
218
|
_id: string;
|
|
221
219
|
name: string;
|
|
222
220
|
} | null | undefined;
|
|
223
|
-
|
|
221
|
+
cancelled_by?: {
|
|
224
222
|
_id: string;
|
|
225
223
|
name: string;
|
|
226
224
|
} | null | undefined;
|
|
225
|
+
approved_at?: NativeDate | null | undefined;
|
|
226
|
+
dispatched_at?: NativeDate | null | undefined;
|
|
227
227
|
vendor_confirmed_at?: NativeDate | null | undefined;
|
|
228
228
|
completed_at?: NativeDate | null | undefined;
|
|
229
229
|
}> & Required<{
|
|
@@ -873,7 +873,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
873
873
|
amount_collected: number;
|
|
874
874
|
is_deleted: boolean;
|
|
875
875
|
order_status_updated_at: NativeDate;
|
|
876
|
-
warehouse_id: string;
|
|
877
876
|
staff_details: {
|
|
878
877
|
staff_id: string;
|
|
879
878
|
staff_name: string;
|
|
@@ -882,6 +881,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
882
881
|
};
|
|
883
882
|
order_settled_at: NativeDate;
|
|
884
883
|
order_settled_at_mins: number;
|
|
884
|
+
warehouse_id: string;
|
|
885
885
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
886
886
|
vendor_name: string;
|
|
887
887
|
cancel_reason?: string | null | undefined;
|
|
@@ -1762,7 +1762,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1762
1762
|
amount_collected: number;
|
|
1763
1763
|
is_deleted: boolean;
|
|
1764
1764
|
order_status_updated_at: NativeDate;
|
|
1765
|
-
warehouse_id: string;
|
|
1766
1765
|
staff_details: {
|
|
1767
1766
|
staff_id: string;
|
|
1768
1767
|
staff_name: string;
|
|
@@ -1771,6 +1770,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
1771
1770
|
};
|
|
1772
1771
|
order_settled_at: NativeDate;
|
|
1773
1772
|
order_settled_at_mins: number;
|
|
1773
|
+
warehouse_id: string;
|
|
1774
1774
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
1775
1775
|
vendor_name: string;
|
|
1776
1776
|
cancel_reason?: string | null | undefined;
|
|
@@ -2651,7 +2651,6 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2651
2651
|
amount_collected: number;
|
|
2652
2652
|
is_deleted: boolean;
|
|
2653
2653
|
order_status_updated_at: NativeDate;
|
|
2654
|
-
warehouse_id: string;
|
|
2655
2654
|
staff_details: {
|
|
2656
2655
|
staff_id: string;
|
|
2657
2656
|
staff_name: string;
|
|
@@ -2660,6 +2659,7 @@ export declare const PurchaseOrderSchema: Schema<any, import("mongoose").Model<a
|
|
|
2660
2659
|
};
|
|
2661
2660
|
order_settled_at: NativeDate;
|
|
2662
2661
|
order_settled_at_mins: number;
|
|
2662
|
+
warehouse_id: string;
|
|
2663
2663
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
2664
2664
|
vendor_name: string;
|
|
2665
2665
|
cancel_reason?: string | null | undefined;
|
|
@@ -38,23 +38,23 @@ export declare const SaleOrderDeliveriesSchema: Schema<any, import("mongoose").M
|
|
|
38
38
|
_id: string;
|
|
39
39
|
name: string;
|
|
40
40
|
} | null | undefined;
|
|
41
|
-
delivered_at?: NativeDate | null | undefined;
|
|
42
41
|
cancelled_at?: NativeDate | null | undefined;
|
|
43
|
-
|
|
44
|
-
_id: string;
|
|
45
|
-
name: string;
|
|
46
|
-
} | null | undefined;
|
|
42
|
+
inventory_consumed?: boolean | null | undefined;
|
|
47
43
|
cancelled_by?: {
|
|
48
44
|
_id: string;
|
|
49
45
|
name: string;
|
|
50
46
|
} | null | undefined;
|
|
51
|
-
inventory_consumed?: boolean | null | undefined;
|
|
52
47
|
applied_to_doc_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
53
48
|
inventory_restocked?: boolean | null | undefined;
|
|
49
|
+
delivered_by?: {
|
|
50
|
+
_id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
} | null | undefined;
|
|
54
53
|
returned_by?: {
|
|
55
54
|
_id: string;
|
|
56
55
|
name: string;
|
|
57
56
|
} | null | undefined;
|
|
57
|
+
delivered_at?: NativeDate | null | undefined;
|
|
58
58
|
returned_at?: NativeDate | null | undefined;
|
|
59
59
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
60
60
|
createdAt: NativeDate;
|
|
@@ -90,23 +90,23 @@ export declare const SaleOrderDeliveriesSchema: Schema<any, import("mongoose").M
|
|
|
90
90
|
_id: string;
|
|
91
91
|
name: string;
|
|
92
92
|
} | null | undefined;
|
|
93
|
-
delivered_at?: NativeDate | null | undefined;
|
|
94
93
|
cancelled_at?: NativeDate | null | undefined;
|
|
95
|
-
|
|
96
|
-
_id: string;
|
|
97
|
-
name: string;
|
|
98
|
-
} | null | undefined;
|
|
94
|
+
inventory_consumed?: boolean | null | undefined;
|
|
99
95
|
cancelled_by?: {
|
|
100
96
|
_id: string;
|
|
101
97
|
name: string;
|
|
102
98
|
} | null | undefined;
|
|
103
|
-
inventory_consumed?: boolean | null | undefined;
|
|
104
99
|
applied_to_doc_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
105
100
|
inventory_restocked?: boolean | null | undefined;
|
|
101
|
+
delivered_by?: {
|
|
102
|
+
_id: string;
|
|
103
|
+
name: string;
|
|
104
|
+
} | null | undefined;
|
|
106
105
|
returned_by?: {
|
|
107
106
|
_id: string;
|
|
108
107
|
name: string;
|
|
109
108
|
} | null | undefined;
|
|
109
|
+
delivered_at?: NativeDate | null | undefined;
|
|
110
110
|
returned_at?: NativeDate | null | undefined;
|
|
111
111
|
}>> & import("mongoose").FlatRecord<{
|
|
112
112
|
createdAt: NativeDate;
|
|
@@ -142,23 +142,23 @@ export declare const SaleOrderDeliveriesSchema: Schema<any, import("mongoose").M
|
|
|
142
142
|
_id: string;
|
|
143
143
|
name: string;
|
|
144
144
|
} | null | undefined;
|
|
145
|
-
delivered_at?: NativeDate | null | undefined;
|
|
146
145
|
cancelled_at?: NativeDate | null | undefined;
|
|
147
|
-
|
|
148
|
-
_id: string;
|
|
149
|
-
name: string;
|
|
150
|
-
} | null | undefined;
|
|
146
|
+
inventory_consumed?: boolean | null | undefined;
|
|
151
147
|
cancelled_by?: {
|
|
152
148
|
_id: string;
|
|
153
149
|
name: string;
|
|
154
150
|
} | null | undefined;
|
|
155
|
-
inventory_consumed?: boolean | null | undefined;
|
|
156
151
|
applied_to_doc_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
157
152
|
inventory_restocked?: boolean | null | undefined;
|
|
153
|
+
delivered_by?: {
|
|
154
|
+
_id: string;
|
|
155
|
+
name: string;
|
|
156
|
+
} | null | undefined;
|
|
158
157
|
returned_by?: {
|
|
159
158
|
_id: string;
|
|
160
159
|
name: string;
|
|
161
160
|
} | null | undefined;
|
|
161
|
+
delivered_at?: NativeDate | null | undefined;
|
|
162
162
|
returned_at?: NativeDate | null | undefined;
|
|
163
163
|
}> & Required<{
|
|
164
164
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -35,10 +35,10 @@ export declare const SaleOrderInvoicesSchema: Schema<any, import("mongoose").Mod
|
|
|
35
35
|
amount: number;
|
|
36
36
|
payments: any[];
|
|
37
37
|
doc_number: number;
|
|
38
|
+
invoice_type: import("../../constants").SALE_ORDER_INVOICE_TYPE_ENUM;
|
|
38
39
|
warehouse_id: string;
|
|
39
40
|
doc_kind: import("../../constants").SALE_ORDER_FIN_DOC_KIND_ENUM;
|
|
40
41
|
sale_order_id: import("mongoose").Types.ObjectId;
|
|
41
|
-
invoice_type: import("../../constants").SALE_ORDER_INVOICE_TYPE_ENUM;
|
|
42
42
|
amount_paid?: number | null | undefined;
|
|
43
43
|
cancel_reason?: string | null | undefined;
|
|
44
44
|
notes?: string | null | undefined;
|
|
@@ -46,14 +46,14 @@ export declare const SaleOrderInvoicesSchema: Schema<any, import("mongoose").Mod
|
|
|
46
46
|
_id: string;
|
|
47
47
|
name: string;
|
|
48
48
|
} | null | undefined;
|
|
49
|
+
gst?: number | null | undefined;
|
|
50
|
+
gst_amount?: number | null | undefined;
|
|
51
|
+
is_gst_inclusive?: boolean | null | undefined;
|
|
49
52
|
cancelled_at?: NativeDate | null | undefined;
|
|
50
53
|
cancelled_by?: {
|
|
51
54
|
_id: string;
|
|
52
55
|
name: string;
|
|
53
56
|
} | null | undefined;
|
|
54
|
-
gst?: number | null | undefined;
|
|
55
|
-
gst_amount?: number | null | undefined;
|
|
56
|
-
is_gst_inclusive?: boolean | null | undefined;
|
|
57
57
|
applied_to_doc_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
58
58
|
down_payment_value?: number | null | undefined;
|
|
59
59
|
posted_by?: {
|
|
@@ -107,10 +107,10 @@ export declare const SaleOrderInvoicesSchema: Schema<any, import("mongoose").Mod
|
|
|
107
107
|
amount: number;
|
|
108
108
|
payments: any[];
|
|
109
109
|
doc_number: number;
|
|
110
|
+
invoice_type: import("../../constants").SALE_ORDER_INVOICE_TYPE_ENUM;
|
|
110
111
|
warehouse_id: string;
|
|
111
112
|
doc_kind: import("../../constants").SALE_ORDER_FIN_DOC_KIND_ENUM;
|
|
112
113
|
sale_order_id: import("mongoose").Types.ObjectId;
|
|
113
|
-
invoice_type: import("../../constants").SALE_ORDER_INVOICE_TYPE_ENUM;
|
|
114
114
|
amount_paid?: number | null | undefined;
|
|
115
115
|
cancel_reason?: string | null | undefined;
|
|
116
116
|
notes?: string | null | undefined;
|
|
@@ -118,14 +118,14 @@ export declare const SaleOrderInvoicesSchema: Schema<any, import("mongoose").Mod
|
|
|
118
118
|
_id: string;
|
|
119
119
|
name: string;
|
|
120
120
|
} | null | undefined;
|
|
121
|
+
gst?: number | null | undefined;
|
|
122
|
+
gst_amount?: number | null | undefined;
|
|
123
|
+
is_gst_inclusive?: boolean | null | undefined;
|
|
121
124
|
cancelled_at?: NativeDate | null | undefined;
|
|
122
125
|
cancelled_by?: {
|
|
123
126
|
_id: string;
|
|
124
127
|
name: string;
|
|
125
128
|
} | null | undefined;
|
|
126
|
-
gst?: number | null | undefined;
|
|
127
|
-
gst_amount?: number | null | undefined;
|
|
128
|
-
is_gst_inclusive?: boolean | null | undefined;
|
|
129
129
|
applied_to_doc_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
130
130
|
down_payment_value?: number | null | undefined;
|
|
131
131
|
posted_by?: {
|
|
@@ -179,10 +179,10 @@ export declare const SaleOrderInvoicesSchema: Schema<any, import("mongoose").Mod
|
|
|
179
179
|
amount: number;
|
|
180
180
|
payments: any[];
|
|
181
181
|
doc_number: number;
|
|
182
|
+
invoice_type: import("../../constants").SALE_ORDER_INVOICE_TYPE_ENUM;
|
|
182
183
|
warehouse_id: string;
|
|
183
184
|
doc_kind: import("../../constants").SALE_ORDER_FIN_DOC_KIND_ENUM;
|
|
184
185
|
sale_order_id: import("mongoose").Types.ObjectId;
|
|
185
|
-
invoice_type: import("../../constants").SALE_ORDER_INVOICE_TYPE_ENUM;
|
|
186
186
|
amount_paid?: number | null | undefined;
|
|
187
187
|
cancel_reason?: string | null | undefined;
|
|
188
188
|
notes?: string | null | undefined;
|
|
@@ -190,14 +190,14 @@ export declare const SaleOrderInvoicesSchema: Schema<any, import("mongoose").Mod
|
|
|
190
190
|
_id: string;
|
|
191
191
|
name: string;
|
|
192
192
|
} | null | undefined;
|
|
193
|
+
gst?: number | null | undefined;
|
|
194
|
+
gst_amount?: number | null | undefined;
|
|
195
|
+
is_gst_inclusive?: boolean | null | undefined;
|
|
193
196
|
cancelled_at?: NativeDate | null | undefined;
|
|
194
197
|
cancelled_by?: {
|
|
195
198
|
_id: string;
|
|
196
199
|
name: string;
|
|
197
200
|
} | null | undefined;
|
|
198
|
-
gst?: number | null | undefined;
|
|
199
|
-
gst_amount?: number | null | undefined;
|
|
200
|
-
is_gst_inclusive?: boolean | null | undefined;
|
|
201
201
|
applied_to_doc_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
202
202
|
down_payment_value?: number | null | undefined;
|
|
203
203
|
posted_by?: {
|
|
@@ -629,15 +629,15 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
629
629
|
}>;
|
|
630
630
|
is_deleted: boolean;
|
|
631
631
|
order_status_updated_at: NativeDate;
|
|
632
|
-
|
|
632
|
+
payment_terms: number;
|
|
633
633
|
staff_details: {
|
|
634
634
|
staff_id: string;
|
|
635
635
|
staff_name: string;
|
|
636
636
|
staff_mobile: string;
|
|
637
637
|
staff_email: string;
|
|
638
638
|
};
|
|
639
|
+
warehouse_id: string;
|
|
639
640
|
expected_deadline: string;
|
|
640
|
-
payment_terms: number;
|
|
641
641
|
client_id: import("mongoose").Types.ObjectId;
|
|
642
642
|
client_name: string;
|
|
643
643
|
cancel_reason?: string | null | undefined;
|
|
@@ -1271,15 +1271,15 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
1271
1271
|
}>;
|
|
1272
1272
|
is_deleted: boolean;
|
|
1273
1273
|
order_status_updated_at: NativeDate;
|
|
1274
|
-
|
|
1274
|
+
payment_terms: number;
|
|
1275
1275
|
staff_details: {
|
|
1276
1276
|
staff_id: string;
|
|
1277
1277
|
staff_name: string;
|
|
1278
1278
|
staff_mobile: string;
|
|
1279
1279
|
staff_email: string;
|
|
1280
1280
|
};
|
|
1281
|
+
warehouse_id: string;
|
|
1281
1282
|
expected_deadline: string;
|
|
1282
|
-
payment_terms: number;
|
|
1283
1283
|
client_id: import("mongoose").Types.ObjectId;
|
|
1284
1284
|
client_name: string;
|
|
1285
1285
|
cancel_reason?: string | null | undefined;
|
|
@@ -1913,15 +1913,15 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
1913
1913
|
}>;
|
|
1914
1914
|
is_deleted: boolean;
|
|
1915
1915
|
order_status_updated_at: NativeDate;
|
|
1916
|
-
|
|
1916
|
+
payment_terms: number;
|
|
1917
1917
|
staff_details: {
|
|
1918
1918
|
staff_id: string;
|
|
1919
1919
|
staff_name: string;
|
|
1920
1920
|
staff_mobile: string;
|
|
1921
1921
|
staff_email: string;
|
|
1922
1922
|
};
|
|
1923
|
+
warehouse_id: string;
|
|
1923
1924
|
expected_deadline: string;
|
|
1924
|
-
payment_terms: number;
|
|
1925
1925
|
client_id: import("mongoose").Types.ObjectId;
|
|
1926
1926
|
client_name: string;
|
|
1927
1927
|
cancel_reason?: string | null | undefined;
|
|
@@ -629,7 +629,6 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
629
629
|
amount_collected: number;
|
|
630
630
|
is_deleted: boolean;
|
|
631
631
|
order_status_updated_at: NativeDate;
|
|
632
|
-
warehouse_id: string;
|
|
633
632
|
staff_details: {
|
|
634
633
|
staff_id: string;
|
|
635
634
|
staff_name: string;
|
|
@@ -638,6 +637,7 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
638
637
|
};
|
|
639
638
|
order_settled_at: NativeDate;
|
|
640
639
|
order_settled_at_mins: number;
|
|
640
|
+
warehouse_id: string;
|
|
641
641
|
client_id: import("mongoose").Types.ObjectId;
|
|
642
642
|
client_name: string;
|
|
643
643
|
cancel_reason?: string | null | undefined;
|
|
@@ -1273,7 +1273,6 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
1273
1273
|
amount_collected: number;
|
|
1274
1274
|
is_deleted: boolean;
|
|
1275
1275
|
order_status_updated_at: NativeDate;
|
|
1276
|
-
warehouse_id: string;
|
|
1277
1276
|
staff_details: {
|
|
1278
1277
|
staff_id: string;
|
|
1279
1278
|
staff_name: string;
|
|
@@ -1282,6 +1281,7 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
1282
1281
|
};
|
|
1283
1282
|
order_settled_at: NativeDate;
|
|
1284
1283
|
order_settled_at_mins: number;
|
|
1284
|
+
warehouse_id: string;
|
|
1285
1285
|
client_id: import("mongoose").Types.ObjectId;
|
|
1286
1286
|
client_name: string;
|
|
1287
1287
|
cancel_reason?: string | null | undefined;
|
|
@@ -1917,7 +1917,6 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
1917
1917
|
amount_collected: number;
|
|
1918
1918
|
is_deleted: boolean;
|
|
1919
1919
|
order_status_updated_at: NativeDate;
|
|
1920
|
-
warehouse_id: string;
|
|
1921
1920
|
staff_details: {
|
|
1922
1921
|
staff_id: string;
|
|
1923
1922
|
staff_name: string;
|
|
@@ -1926,6 +1925,7 @@ export declare const SaleOrdersSchema: Schema<any, import("mongoose").Model<any,
|
|
|
1926
1925
|
};
|
|
1927
1926
|
order_settled_at: NativeDate;
|
|
1928
1927
|
order_settled_at_mins: number;
|
|
1928
|
+
warehouse_id: string;
|
|
1929
1929
|
client_id: import("mongoose").Types.ObjectId;
|
|
1930
1930
|
client_name: string;
|
|
1931
1931
|
cancel_reason?: string | null | undefined;
|
|
@@ -21,8 +21,8 @@ export declare const VoidOrderItemSchema: Schema<any, import("mongoose").Model<a
|
|
|
21
21
|
order_number: number;
|
|
22
22
|
quantity: number;
|
|
23
23
|
item_id: import("mongoose").Types.ObjectId;
|
|
24
|
-
void_reason: string;
|
|
25
24
|
subtotal: number;
|
|
25
|
+
void_reason: string;
|
|
26
26
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
27
27
|
void_type: import("../../constants").VOID_ORDER_ITEM_TYPE_ENUM;
|
|
28
28
|
iteration: number;
|
|
@@ -75,8 +75,8 @@ export declare const VoidOrderItemSchema: Schema<any, import("mongoose").Model<a
|
|
|
75
75
|
order_number: number;
|
|
76
76
|
quantity: number;
|
|
77
77
|
item_id: import("mongoose").Types.ObjectId;
|
|
78
|
-
void_reason: string;
|
|
79
78
|
subtotal: number;
|
|
79
|
+
void_reason: string;
|
|
80
80
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
81
81
|
void_type: import("../../constants").VOID_ORDER_ITEM_TYPE_ENUM;
|
|
82
82
|
iteration: number;
|
|
@@ -129,8 +129,8 @@ export declare const VoidOrderItemSchema: Schema<any, import("mongoose").Model<a
|
|
|
129
129
|
order_number: number;
|
|
130
130
|
quantity: number;
|
|
131
131
|
item_id: import("mongoose").Types.ObjectId;
|
|
132
|
-
void_reason: string;
|
|
133
132
|
subtotal: number;
|
|
133
|
+
void_reason: string;
|
|
134
134
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
135
135
|
void_type: import("../../constants").VOID_ORDER_ITEM_TYPE_ENUM;
|
|
136
136
|
iteration: number;
|
|
@@ -19,9 +19,9 @@ export declare const VoidPurchaseOrderItemSchema: Schema<any, import("mongoose")
|
|
|
19
19
|
order_number: number;
|
|
20
20
|
quantity: number;
|
|
21
21
|
item_id: import("mongoose").Types.ObjectId;
|
|
22
|
-
warehouse_id: string;
|
|
23
|
-
void_reason: string;
|
|
24
22
|
subtotal: number;
|
|
23
|
+
void_reason: string;
|
|
24
|
+
warehouse_id: string;
|
|
25
25
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
26
26
|
vendor_name: string;
|
|
27
27
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
@@ -74,9 +74,9 @@ export declare const VoidPurchaseOrderItemSchema: Schema<any, import("mongoose")
|
|
|
74
74
|
order_number: number;
|
|
75
75
|
quantity: number;
|
|
76
76
|
item_id: import("mongoose").Types.ObjectId;
|
|
77
|
-
warehouse_id: string;
|
|
78
|
-
void_reason: string;
|
|
79
77
|
subtotal: number;
|
|
78
|
+
void_reason: string;
|
|
79
|
+
warehouse_id: string;
|
|
80
80
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
81
81
|
vendor_name: string;
|
|
82
82
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
@@ -129,9 +129,9 @@ export declare const VoidPurchaseOrderItemSchema: Schema<any, import("mongoose")
|
|
|
129
129
|
order_number: number;
|
|
130
130
|
quantity: number;
|
|
131
131
|
item_id: import("mongoose").Types.ObjectId;
|
|
132
|
-
warehouse_id: string;
|
|
133
|
-
void_reason: string;
|
|
134
132
|
subtotal: number;
|
|
133
|
+
void_reason: string;
|
|
134
|
+
warehouse_id: string;
|
|
135
135
|
vendor_id: import("mongoose").Types.ObjectId;
|
|
136
136
|
vendor_name: string;
|
|
137
137
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
@@ -19,9 +19,9 @@ export declare const VoidWarehouseInvoiceItemSchema: Schema<any, import("mongoos
|
|
|
19
19
|
order_number: number;
|
|
20
20
|
quantity: number;
|
|
21
21
|
item_id: import("mongoose").Types.ObjectId;
|
|
22
|
-
warehouse_id: string;
|
|
23
|
-
void_reason: string;
|
|
24
22
|
subtotal: number;
|
|
23
|
+
void_reason: string;
|
|
24
|
+
warehouse_id: string;
|
|
25
25
|
client_id: import("mongoose").Types.ObjectId;
|
|
26
26
|
client_name: string;
|
|
27
27
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
@@ -74,9 +74,9 @@ export declare const VoidWarehouseInvoiceItemSchema: Schema<any, import("mongoos
|
|
|
74
74
|
order_number: number;
|
|
75
75
|
quantity: number;
|
|
76
76
|
item_id: import("mongoose").Types.ObjectId;
|
|
77
|
-
warehouse_id: string;
|
|
78
|
-
void_reason: string;
|
|
79
77
|
subtotal: number;
|
|
78
|
+
void_reason: string;
|
|
79
|
+
warehouse_id: string;
|
|
80
80
|
client_id: import("mongoose").Types.ObjectId;
|
|
81
81
|
client_name: string;
|
|
82
82
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
@@ -129,9 +129,9 @@ export declare const VoidWarehouseInvoiceItemSchema: Schema<any, import("mongoos
|
|
|
129
129
|
order_number: number;
|
|
130
130
|
quantity: number;
|
|
131
131
|
item_id: import("mongoose").Types.ObjectId;
|
|
132
|
-
warehouse_id: string;
|
|
133
|
-
void_reason: string;
|
|
134
132
|
subtotal: number;
|
|
133
|
+
void_reason: string;
|
|
134
|
+
warehouse_id: string;
|
|
135
135
|
client_id: import("mongoose").Types.ObjectId;
|
|
136
136
|
client_name: string;
|
|
137
137
|
order_item_id: import("mongoose").Types.ObjectId;
|