@managesome/eposmatic-toolkit 0.2.352 → 0.2.354
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 +1 -0
- package/lib/constants/ENUMS.js +2 -0
- package/lib/constants/SWITCHPAY.d.ts +11 -4
- package/lib/constants/SWITCHPAY.js +26 -3
- package/lib/helpers/types/switchpay.d.ts +23 -3
- package/lib/helpers/types/workers.d.ts +17 -1
- package/lib/helpers/utils/minified-catalog.js +2 -1
- package/lib/schemas/models/item.d.ts +3 -0
- package/lib/schemas/models/item.js +5 -0
- package/lib/schemas/types/item.d.ts +1 -0
- package/package.json +1 -1
- package/lib/helpers/utils/offer-apply-helpers.test.d.ts +0 -1
- package/lib/helpers/utils/offer-apply-helpers.test.js +0 -110
- package/lib/helpers/utils/offers-helpers.test.d.ts +0 -1
- package/lib/helpers/utils/offers-helpers.test.js +0 -157
- package/lib/schemas/models/purchase_order_receipts.d.ts +0 -165
- package/lib/schemas/models/purchase_order_receipts.js +0 -151
- package/lib/schemas/models/purchase_order_rfq.d.ts +0 -1938
- package/lib/schemas/models/purchase_order_rfq.js +0 -309
- package/lib/schemas/models/purchase_order_vendor_returns.d.ts +0 -234
- package/lib/schemas/models/purchase_order_vendor_returns.js +0 -188
- package/lib/schemas/types/customer_wallet_assignments.d.ts +0 -61
- package/lib/schemas/types/customer_wallet_assignments.js +0 -23
- package/lib/schemas/types/purchase_order_common.d.ts +0 -39
- package/lib/schemas/types/purchase_order_common.js +0 -2
- package/lib/schemas/types/purchase_order_receipts.d.ts +0 -33
- package/lib/schemas/types/purchase_order_receipts.js +0 -2
- package/lib/schemas/types/purchase_order_rfq.d.ts +0 -25
- package/lib/schemas/types/purchase_order_rfq.js +0 -2
- package/lib/schemas/types/purchase_order_vendor_returns.d.ts +0 -42
- package/lib/schemas/types/purchase_order_vendor_returns.js +0 -2
- package/lib/tests/common-order-actions.test.d.ts +0 -1
- package/lib/tests/common-order-actions.test.js +0 -18
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PURCHASE_ORDER_RFQ_COLLECTION_NAME = exports.PurchaseOrderRFQSchema = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
5
|
-
const constants_1 = require("../../constants");
|
|
6
|
-
const warehouse_categories_1 = require("./warehouse_categories");
|
|
7
|
-
const warehouse_items_1 = require("./warehouse_items");
|
|
8
|
-
const warehouse_1 = require("./warehouse");
|
|
9
|
-
const warehouse_vendors_1 = require("./warehouse_vendors");
|
|
10
|
-
const StaffDetailsSchema = new mongoose_1.Schema({
|
|
11
|
-
staff_id: {
|
|
12
|
-
type: String,
|
|
13
|
-
required: true,
|
|
14
|
-
},
|
|
15
|
-
staff_name: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: '',
|
|
18
|
-
},
|
|
19
|
-
staff_mobile: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: null,
|
|
22
|
-
},
|
|
23
|
-
staff_email: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: null,
|
|
26
|
-
},
|
|
27
|
-
}, { _id: false, minimize: false });
|
|
28
|
-
const PurchaseOrderRFQItemsSchema = new mongoose_1.Schema({
|
|
29
|
-
_id: {
|
|
30
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
31
|
-
required: true,
|
|
32
|
-
immutable: true,
|
|
33
|
-
},
|
|
34
|
-
item_id: {
|
|
35
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
36
|
-
required: true,
|
|
37
|
-
immutable: true,
|
|
38
|
-
ref: warehouse_items_1.WAREHOUSE_ITEMS_COLLECTION_NAME,
|
|
39
|
-
},
|
|
40
|
-
is_ready: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
required: false,
|
|
43
|
-
},
|
|
44
|
-
void_reason: {
|
|
45
|
-
type: String,
|
|
46
|
-
required: false,
|
|
47
|
-
},
|
|
48
|
-
name: {
|
|
49
|
-
type: String,
|
|
50
|
-
required: true,
|
|
51
|
-
},
|
|
52
|
-
quantity: {
|
|
53
|
-
type: Number,
|
|
54
|
-
min: 0,
|
|
55
|
-
required: true,
|
|
56
|
-
},
|
|
57
|
-
price: {
|
|
58
|
-
type: Number,
|
|
59
|
-
min: 0,
|
|
60
|
-
required: true,
|
|
61
|
-
},
|
|
62
|
-
subtotal: {
|
|
63
|
-
type: Number,
|
|
64
|
-
min: 0,
|
|
65
|
-
required: true,
|
|
66
|
-
},
|
|
67
|
-
_net_amount: {
|
|
68
|
-
type: Number,
|
|
69
|
-
min: 0,
|
|
70
|
-
required: true,
|
|
71
|
-
},
|
|
72
|
-
_gross_amount: {
|
|
73
|
-
type: Number,
|
|
74
|
-
min: 0,
|
|
75
|
-
required: true,
|
|
76
|
-
},
|
|
77
|
-
_gst_amount: {
|
|
78
|
-
type: Number,
|
|
79
|
-
min: 0,
|
|
80
|
-
required: true,
|
|
81
|
-
},
|
|
82
|
-
_discount_amount: {
|
|
83
|
-
type: Number,
|
|
84
|
-
min: 0,
|
|
85
|
-
required: true,
|
|
86
|
-
},
|
|
87
|
-
special_instructions: {
|
|
88
|
-
type: String,
|
|
89
|
-
default: '',
|
|
90
|
-
},
|
|
91
|
-
}, {
|
|
92
|
-
_id: false,
|
|
93
|
-
minimize: false,
|
|
94
|
-
});
|
|
95
|
-
const PurchaseOrderRFQCategoriesSchema = new mongoose_1.Schema({
|
|
96
|
-
category_id: {
|
|
97
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
98
|
-
required: true,
|
|
99
|
-
immutable: true,
|
|
100
|
-
ref: warehouse_categories_1.WAREHOUSE_CATEGORY_COLLECTION_NAME,
|
|
101
|
-
},
|
|
102
|
-
name: {
|
|
103
|
-
type: String,
|
|
104
|
-
required: true,
|
|
105
|
-
},
|
|
106
|
-
items: {
|
|
107
|
-
type: [PurchaseOrderRFQItemsSchema],
|
|
108
|
-
default: [],
|
|
109
|
-
},
|
|
110
|
-
}, {
|
|
111
|
-
_id: false,
|
|
112
|
-
minimize: false,
|
|
113
|
-
});
|
|
114
|
-
const PurchaseOrderRFQIterationSchema = new mongoose_1.Schema({
|
|
115
|
-
categories: {
|
|
116
|
-
type: [PurchaseOrderRFQCategoriesSchema],
|
|
117
|
-
required: true,
|
|
118
|
-
},
|
|
119
|
-
staff_details: {
|
|
120
|
-
type: StaffDetailsSchema,
|
|
121
|
-
required: true,
|
|
122
|
-
},
|
|
123
|
-
special_instructions: {
|
|
124
|
-
type: String,
|
|
125
|
-
default: '',
|
|
126
|
-
},
|
|
127
|
-
price: {
|
|
128
|
-
type: Number,
|
|
129
|
-
min: 0,
|
|
130
|
-
required: true,
|
|
131
|
-
},
|
|
132
|
-
amount_earned: {
|
|
133
|
-
type: Number,
|
|
134
|
-
min: 0,
|
|
135
|
-
required: true,
|
|
136
|
-
},
|
|
137
|
-
grand_total: {
|
|
138
|
-
type: Number,
|
|
139
|
-
min: 0,
|
|
140
|
-
required: true,
|
|
141
|
-
},
|
|
142
|
-
order_status: {
|
|
143
|
-
type: String,
|
|
144
|
-
enum: constants_1.ALL_PURCHASE_ORDER_RFQ_STATUS_NAMES,
|
|
145
|
-
required: true,
|
|
146
|
-
},
|
|
147
|
-
is_gst_inclusive: {
|
|
148
|
-
type: Boolean,
|
|
149
|
-
required: false,
|
|
150
|
-
},
|
|
151
|
-
gst: {
|
|
152
|
-
type: Number,
|
|
153
|
-
min: 0,
|
|
154
|
-
required: false,
|
|
155
|
-
},
|
|
156
|
-
gst_amount: {
|
|
157
|
-
type: Number,
|
|
158
|
-
min: 0,
|
|
159
|
-
required: false,
|
|
160
|
-
},
|
|
161
|
-
tax_number: {
|
|
162
|
-
type: String,
|
|
163
|
-
default: '',
|
|
164
|
-
},
|
|
165
|
-
updatedAt: {
|
|
166
|
-
type: mongoose_1.Schema.Types.Date,
|
|
167
|
-
required: true,
|
|
168
|
-
},
|
|
169
|
-
}, {
|
|
170
|
-
_id: false,
|
|
171
|
-
timestamps: false,
|
|
172
|
-
versionKey: false,
|
|
173
|
-
});
|
|
174
|
-
exports.PurchaseOrderRFQSchema = new mongoose_1.Schema({
|
|
175
|
-
_id: {
|
|
176
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
177
|
-
required: true,
|
|
178
|
-
immutable: true,
|
|
179
|
-
},
|
|
180
|
-
warehouse_id: {
|
|
181
|
-
type: String,
|
|
182
|
-
required: true,
|
|
183
|
-
ref: warehouse_1.WAREHOUSE_SETTINGS_COLLECTION_NAME,
|
|
184
|
-
},
|
|
185
|
-
vendor_id: {
|
|
186
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
187
|
-
required: true,
|
|
188
|
-
ref: warehouse_vendors_1.WAREHOUSE_VENDORS_COLLECTION_NAME,
|
|
189
|
-
},
|
|
190
|
-
vendor_name: {
|
|
191
|
-
type: String,
|
|
192
|
-
default: '',
|
|
193
|
-
},
|
|
194
|
-
order_number: {
|
|
195
|
-
type: Number,
|
|
196
|
-
min: 0,
|
|
197
|
-
default: null,
|
|
198
|
-
},
|
|
199
|
-
order_status: {
|
|
200
|
-
type: String,
|
|
201
|
-
enum: constants_1.ALL_PURCHASE_ORDER_RFQ_STATUS_NAMES,
|
|
202
|
-
required: true,
|
|
203
|
-
default: constants_1.PURCHASE_ORDER_RFQ_STATUS_ENUM.DRAFT,
|
|
204
|
-
},
|
|
205
|
-
categories: {
|
|
206
|
-
type: [PurchaseOrderRFQCategoriesSchema],
|
|
207
|
-
default: [],
|
|
208
|
-
},
|
|
209
|
-
iterations: {
|
|
210
|
-
type: [PurchaseOrderRFQIterationSchema],
|
|
211
|
-
default: [],
|
|
212
|
-
},
|
|
213
|
-
expected_deadline: {
|
|
214
|
-
type: String,
|
|
215
|
-
default: '',
|
|
216
|
-
},
|
|
217
|
-
payment_terms: {
|
|
218
|
-
type: Number,
|
|
219
|
-
min: 0,
|
|
220
|
-
default: 0,
|
|
221
|
-
},
|
|
222
|
-
special_instructions: {
|
|
223
|
-
type: String,
|
|
224
|
-
default: '',
|
|
225
|
-
},
|
|
226
|
-
delete_reason: {
|
|
227
|
-
type: String,
|
|
228
|
-
required: false,
|
|
229
|
-
},
|
|
230
|
-
cancel_reason: {
|
|
231
|
-
type: String,
|
|
232
|
-
required: false,
|
|
233
|
-
},
|
|
234
|
-
staff_details: {
|
|
235
|
-
type: StaffDetailsSchema,
|
|
236
|
-
required: true,
|
|
237
|
-
},
|
|
238
|
-
gst: {
|
|
239
|
-
type: Number,
|
|
240
|
-
min: 0,
|
|
241
|
-
required: false,
|
|
242
|
-
},
|
|
243
|
-
gst_amount: {
|
|
244
|
-
type: Number,
|
|
245
|
-
min: 0,
|
|
246
|
-
required: false,
|
|
247
|
-
},
|
|
248
|
-
is_gst_inclusive: {
|
|
249
|
-
type: Boolean,
|
|
250
|
-
required: false,
|
|
251
|
-
},
|
|
252
|
-
tax_number: {
|
|
253
|
-
type: String,
|
|
254
|
-
default: '',
|
|
255
|
-
},
|
|
256
|
-
is_deleted: {
|
|
257
|
-
type: Boolean,
|
|
258
|
-
default: false,
|
|
259
|
-
},
|
|
260
|
-
order_status_updated_at: {
|
|
261
|
-
type: mongoose_1.Schema.Types.Date,
|
|
262
|
-
required: true,
|
|
263
|
-
default: () => new Date(),
|
|
264
|
-
},
|
|
265
|
-
is_reopened: {
|
|
266
|
-
type: Boolean,
|
|
267
|
-
required: false,
|
|
268
|
-
},
|
|
269
|
-
price: {
|
|
270
|
-
type: Number,
|
|
271
|
-
min: 0,
|
|
272
|
-
required: true,
|
|
273
|
-
},
|
|
274
|
-
amount_earned: {
|
|
275
|
-
type: Number,
|
|
276
|
-
min: 0,
|
|
277
|
-
required: true,
|
|
278
|
-
},
|
|
279
|
-
grand_total: {
|
|
280
|
-
type: Number,
|
|
281
|
-
min: 0,
|
|
282
|
-
required: true,
|
|
283
|
-
},
|
|
284
|
-
createdAt_mins: {
|
|
285
|
-
type: Number,
|
|
286
|
-
required: true,
|
|
287
|
-
immutable: true,
|
|
288
|
-
default: () => {
|
|
289
|
-
const date = new Date();
|
|
290
|
-
return Math.floor(date.getHours() * 60 + date.getMinutes());
|
|
291
|
-
},
|
|
292
|
-
},
|
|
293
|
-
createdAt: {
|
|
294
|
-
type: mongoose_1.Schema.Types.Date,
|
|
295
|
-
required: true,
|
|
296
|
-
default: () => new Date(),
|
|
297
|
-
immutable: true,
|
|
298
|
-
},
|
|
299
|
-
updatedAt: {
|
|
300
|
-
type: mongoose_1.Schema.Types.Date,
|
|
301
|
-
required: true,
|
|
302
|
-
default: () => new Date(),
|
|
303
|
-
},
|
|
304
|
-
}, {
|
|
305
|
-
timestamps: true,
|
|
306
|
-
versionKey: false,
|
|
307
|
-
minimize: false,
|
|
308
|
-
});
|
|
309
|
-
exports.PURCHASE_ORDER_RFQ_COLLECTION_NAME = 'purchase_order_rfqs';
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
import { Schema } from 'mongoose';
|
|
2
|
-
import { PURCHASE_ORDER_VENDOR_RETURN_STATUS_ENUM } from '../../constants';
|
|
3
|
-
export declare const PurchaseOrderVendorReturnsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
4
|
-
timestamps: true;
|
|
5
|
-
versionKey: false;
|
|
6
|
-
minimize: false;
|
|
7
|
-
}, {
|
|
8
|
-
createdAt: NativeDate;
|
|
9
|
-
updatedAt: NativeDate;
|
|
10
|
-
} & {
|
|
11
|
-
_id: import("mongoose").Types.ObjectId;
|
|
12
|
-
createdAt_mins: number;
|
|
13
|
-
createdAt: NativeDate;
|
|
14
|
-
updatedAt: NativeDate;
|
|
15
|
-
items: import("mongoose").Types.DocumentArray<{
|
|
16
|
-
_id: import("mongoose").Types.ObjectId;
|
|
17
|
-
name: string;
|
|
18
|
-
price: number;
|
|
19
|
-
item_id: import("mongoose").Types.ObjectId;
|
|
20
|
-
subtotal: number;
|
|
21
|
-
ordered_quantity: number;
|
|
22
|
-
return_quantity: number;
|
|
23
|
-
reason?: string | null | undefined;
|
|
24
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
25
|
-
_id: import("mongoose").Types.ObjectId;
|
|
26
|
-
name: string;
|
|
27
|
-
price: number;
|
|
28
|
-
item_id: import("mongoose").Types.ObjectId;
|
|
29
|
-
subtotal: number;
|
|
30
|
-
ordered_quantity: number;
|
|
31
|
-
return_quantity: number;
|
|
32
|
-
reason?: string | null | undefined;
|
|
33
|
-
}> & {
|
|
34
|
-
_id: import("mongoose").Types.ObjectId;
|
|
35
|
-
name: string;
|
|
36
|
-
price: number;
|
|
37
|
-
item_id: import("mongoose").Types.ObjectId;
|
|
38
|
-
subtotal: number;
|
|
39
|
-
ordered_quantity: number;
|
|
40
|
-
return_quantity: number;
|
|
41
|
-
reason?: string | null | undefined;
|
|
42
|
-
}>;
|
|
43
|
-
warehouse_id: string;
|
|
44
|
-
vendor_id: import("mongoose").Types.ObjectId;
|
|
45
|
-
vendor_name: string;
|
|
46
|
-
purchase_order_id: import("mongoose").Types.ObjectId;
|
|
47
|
-
return_status: PURCHASE_ORDER_VENDOR_RETURN_STATUS_ENUM;
|
|
48
|
-
inventory_consumed: boolean;
|
|
49
|
-
total_return_amount: number;
|
|
50
|
-
cancel_reason?: string | null | undefined;
|
|
51
|
-
notes?: string | null | undefined;
|
|
52
|
-
created_by?: {
|
|
53
|
-
_id: string;
|
|
54
|
-
name: string;
|
|
55
|
-
} | null | undefined;
|
|
56
|
-
cancelled_at?: NativeDate | null | undefined;
|
|
57
|
-
approved_by?: {
|
|
58
|
-
_id: string;
|
|
59
|
-
name: string;
|
|
60
|
-
} | null | undefined;
|
|
61
|
-
dispatched_by?: {
|
|
62
|
-
_id: string;
|
|
63
|
-
name: string;
|
|
64
|
-
} | null | undefined;
|
|
65
|
-
vendor_confirmed_by?: {
|
|
66
|
-
_id: string;
|
|
67
|
-
name: string;
|
|
68
|
-
} | null | undefined;
|
|
69
|
-
completed_by?: {
|
|
70
|
-
_id: string;
|
|
71
|
-
name: string;
|
|
72
|
-
} | null | undefined;
|
|
73
|
-
cancelled_by?: {
|
|
74
|
-
_id: string;
|
|
75
|
-
name: string;
|
|
76
|
-
} | null | undefined;
|
|
77
|
-
approved_at?: NativeDate | null | undefined;
|
|
78
|
-
dispatched_at?: NativeDate | null | undefined;
|
|
79
|
-
vendor_confirmed_at?: NativeDate | null | undefined;
|
|
80
|
-
completed_at?: NativeDate | null | undefined;
|
|
81
|
-
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
82
|
-
createdAt: NativeDate;
|
|
83
|
-
updatedAt: NativeDate;
|
|
84
|
-
} & {
|
|
85
|
-
_id: import("mongoose").Types.ObjectId;
|
|
86
|
-
createdAt_mins: number;
|
|
87
|
-
createdAt: NativeDate;
|
|
88
|
-
updatedAt: NativeDate;
|
|
89
|
-
items: import("mongoose").Types.DocumentArray<{
|
|
90
|
-
_id: import("mongoose").Types.ObjectId;
|
|
91
|
-
name: string;
|
|
92
|
-
price: number;
|
|
93
|
-
item_id: import("mongoose").Types.ObjectId;
|
|
94
|
-
subtotal: number;
|
|
95
|
-
ordered_quantity: number;
|
|
96
|
-
return_quantity: number;
|
|
97
|
-
reason?: string | null | undefined;
|
|
98
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
99
|
-
_id: import("mongoose").Types.ObjectId;
|
|
100
|
-
name: string;
|
|
101
|
-
price: number;
|
|
102
|
-
item_id: import("mongoose").Types.ObjectId;
|
|
103
|
-
subtotal: number;
|
|
104
|
-
ordered_quantity: number;
|
|
105
|
-
return_quantity: number;
|
|
106
|
-
reason?: string | null | undefined;
|
|
107
|
-
}> & {
|
|
108
|
-
_id: import("mongoose").Types.ObjectId;
|
|
109
|
-
name: string;
|
|
110
|
-
price: number;
|
|
111
|
-
item_id: import("mongoose").Types.ObjectId;
|
|
112
|
-
subtotal: number;
|
|
113
|
-
ordered_quantity: number;
|
|
114
|
-
return_quantity: number;
|
|
115
|
-
reason?: string | null | undefined;
|
|
116
|
-
}>;
|
|
117
|
-
warehouse_id: string;
|
|
118
|
-
vendor_id: import("mongoose").Types.ObjectId;
|
|
119
|
-
vendor_name: string;
|
|
120
|
-
purchase_order_id: import("mongoose").Types.ObjectId;
|
|
121
|
-
return_status: PURCHASE_ORDER_VENDOR_RETURN_STATUS_ENUM;
|
|
122
|
-
inventory_consumed: boolean;
|
|
123
|
-
total_return_amount: number;
|
|
124
|
-
cancel_reason?: string | null | undefined;
|
|
125
|
-
notes?: string | null | undefined;
|
|
126
|
-
created_by?: {
|
|
127
|
-
_id: string;
|
|
128
|
-
name: string;
|
|
129
|
-
} | null | undefined;
|
|
130
|
-
cancelled_at?: NativeDate | null | undefined;
|
|
131
|
-
approved_by?: {
|
|
132
|
-
_id: string;
|
|
133
|
-
name: string;
|
|
134
|
-
} | null | undefined;
|
|
135
|
-
dispatched_by?: {
|
|
136
|
-
_id: string;
|
|
137
|
-
name: string;
|
|
138
|
-
} | null | undefined;
|
|
139
|
-
vendor_confirmed_by?: {
|
|
140
|
-
_id: string;
|
|
141
|
-
name: string;
|
|
142
|
-
} | null | undefined;
|
|
143
|
-
completed_by?: {
|
|
144
|
-
_id: string;
|
|
145
|
-
name: string;
|
|
146
|
-
} | null | undefined;
|
|
147
|
-
cancelled_by?: {
|
|
148
|
-
_id: string;
|
|
149
|
-
name: string;
|
|
150
|
-
} | null | undefined;
|
|
151
|
-
approved_at?: NativeDate | null | undefined;
|
|
152
|
-
dispatched_at?: NativeDate | null | undefined;
|
|
153
|
-
vendor_confirmed_at?: NativeDate | null | undefined;
|
|
154
|
-
completed_at?: NativeDate | null | undefined;
|
|
155
|
-
}>> & import("mongoose").FlatRecord<{
|
|
156
|
-
createdAt: NativeDate;
|
|
157
|
-
updatedAt: NativeDate;
|
|
158
|
-
} & {
|
|
159
|
-
_id: import("mongoose").Types.ObjectId;
|
|
160
|
-
createdAt_mins: number;
|
|
161
|
-
createdAt: NativeDate;
|
|
162
|
-
updatedAt: NativeDate;
|
|
163
|
-
items: import("mongoose").Types.DocumentArray<{
|
|
164
|
-
_id: import("mongoose").Types.ObjectId;
|
|
165
|
-
name: string;
|
|
166
|
-
price: number;
|
|
167
|
-
item_id: import("mongoose").Types.ObjectId;
|
|
168
|
-
subtotal: number;
|
|
169
|
-
ordered_quantity: number;
|
|
170
|
-
return_quantity: number;
|
|
171
|
-
reason?: string | null | undefined;
|
|
172
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
173
|
-
_id: import("mongoose").Types.ObjectId;
|
|
174
|
-
name: string;
|
|
175
|
-
price: number;
|
|
176
|
-
item_id: import("mongoose").Types.ObjectId;
|
|
177
|
-
subtotal: number;
|
|
178
|
-
ordered_quantity: number;
|
|
179
|
-
return_quantity: number;
|
|
180
|
-
reason?: string | null | undefined;
|
|
181
|
-
}> & {
|
|
182
|
-
_id: import("mongoose").Types.ObjectId;
|
|
183
|
-
name: string;
|
|
184
|
-
price: number;
|
|
185
|
-
item_id: import("mongoose").Types.ObjectId;
|
|
186
|
-
subtotal: number;
|
|
187
|
-
ordered_quantity: number;
|
|
188
|
-
return_quantity: number;
|
|
189
|
-
reason?: string | null | undefined;
|
|
190
|
-
}>;
|
|
191
|
-
warehouse_id: string;
|
|
192
|
-
vendor_id: import("mongoose").Types.ObjectId;
|
|
193
|
-
vendor_name: string;
|
|
194
|
-
purchase_order_id: import("mongoose").Types.ObjectId;
|
|
195
|
-
return_status: PURCHASE_ORDER_VENDOR_RETURN_STATUS_ENUM;
|
|
196
|
-
inventory_consumed: boolean;
|
|
197
|
-
total_return_amount: number;
|
|
198
|
-
cancel_reason?: string | null | undefined;
|
|
199
|
-
notes?: string | null | undefined;
|
|
200
|
-
created_by?: {
|
|
201
|
-
_id: string;
|
|
202
|
-
name: string;
|
|
203
|
-
} | null | undefined;
|
|
204
|
-
cancelled_at?: NativeDate | null | undefined;
|
|
205
|
-
approved_by?: {
|
|
206
|
-
_id: string;
|
|
207
|
-
name: string;
|
|
208
|
-
} | null | undefined;
|
|
209
|
-
dispatched_by?: {
|
|
210
|
-
_id: string;
|
|
211
|
-
name: string;
|
|
212
|
-
} | null | undefined;
|
|
213
|
-
vendor_confirmed_by?: {
|
|
214
|
-
_id: string;
|
|
215
|
-
name: string;
|
|
216
|
-
} | null | undefined;
|
|
217
|
-
completed_by?: {
|
|
218
|
-
_id: string;
|
|
219
|
-
name: string;
|
|
220
|
-
} | null | undefined;
|
|
221
|
-
cancelled_by?: {
|
|
222
|
-
_id: string;
|
|
223
|
-
name: string;
|
|
224
|
-
} | null | undefined;
|
|
225
|
-
approved_at?: NativeDate | null | undefined;
|
|
226
|
-
dispatched_at?: NativeDate | null | undefined;
|
|
227
|
-
vendor_confirmed_at?: NativeDate | null | undefined;
|
|
228
|
-
completed_at?: NativeDate | null | undefined;
|
|
229
|
-
}> & Required<{
|
|
230
|
-
_id: import("mongoose").Types.ObjectId;
|
|
231
|
-
}> & {
|
|
232
|
-
__v: number;
|
|
233
|
-
}>;
|
|
234
|
-
export declare const PURCHASE_ORDER_VENDOR_RETURNS_COLLECTION_NAME = "vendor_returns";
|