@managesome/eposmatic-toolkit 0.2.438 → 0.2.440

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.
Files changed (27) hide show
  1. package/lib/constants/TENANT_ENUMS.d.ts +17 -0
  2. package/lib/constants/TENANT_ENUMS.js +24 -0
  3. package/lib/constants/TENANT_PURCHASE_ORDER.d.ts +16 -0
  4. package/lib/constants/TENANT_PURCHASE_ORDER.js +94 -0
  5. package/lib/constants/index.d.ts +3 -1
  6. package/lib/constants/index.js +3 -1
  7. package/lib/helpers/store/common-warehouse-purchase-order-actions.d.ts +2 -2
  8. package/lib/helpers/store/warehouse-purchase-orders-cart-actions.d.ts +4 -4
  9. package/lib/schemas/models/index.d.ts +2 -0
  10. package/lib/schemas/models/index.js +2 -0
  11. package/lib/schemas/models/tenant_purchase_order_vendor_returns.d.ts +219 -0
  12. package/lib/schemas/models/tenant_purchase_order_vendor_returns.js +83 -0
  13. package/lib/schemas/models/tenant_purchase_orders.d.ts +2783 -0
  14. package/lib/schemas/models/tenant_purchase_orders.js +138 -0
  15. package/lib/schemas/models/warehouse_purchase_order_receipts.d.ts +9 -9
  16. package/lib/schemas/models/warehouse_purchase_order_vendor_returns.d.ts +12 -12
  17. package/lib/schemas/models/warehouse_purchase_orders.d.ts +13 -12
  18. package/lib/schemas/models/warehouse_purchase_orders.js +2 -2
  19. package/lib/schemas/types/index.d.ts +2 -1
  20. package/lib/schemas/types/index.js +2 -1
  21. package/lib/schemas/types/tenant_purchase_order_vendor_returns.d.ts +46 -0
  22. package/lib/schemas/types/tenant_purchase_order_vendor_returns.js +2 -0
  23. package/lib/schemas/types/tenant_purchase_orders.d.ts +61 -0
  24. package/lib/schemas/types/tenant_purchase_orders.js +2 -0
  25. package/lib/schemas/types/warehouse_purchase_order_rfqs.d.ts +33 -4
  26. package/lib/schemas/types/warehouse_purchase_orders.d.ts +33 -5
  27. package/package.json +1 -1
@@ -0,0 +1,2783 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const TenantPurchaseOrderSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
3
+ timestamps: true;
4
+ versionKey: false;
5
+ minimize: false;
6
+ }, {
7
+ createdAt: NativeDate;
8
+ updatedAt: NativeDate;
9
+ } & {
10
+ _id: import("mongoose").Types.ObjectId;
11
+ tenant_id: string;
12
+ createdAt_mins: number;
13
+ createdAt: NativeDate;
14
+ updatedAt: NativeDate;
15
+ categories: import("mongoose").Types.DocumentArray<{
16
+ name: string;
17
+ category_id: import("mongoose").Types.ObjectId;
18
+ items: import("mongoose").Types.DocumentArray<{
19
+ _id: import("mongoose").Types.ObjectId;
20
+ name: string;
21
+ price: number;
22
+ special_instructions: string;
23
+ subtotal: number;
24
+ item_id: import("mongoose").Types.ObjectId;
25
+ quantity: number;
26
+ _net_amount: number;
27
+ _gross_amount: number;
28
+ _gst_amount: number;
29
+ _discount_amount: number;
30
+ received_quantity: number;
31
+ is_ready?: boolean | null | undefined;
32
+ void_reason?: string | null | undefined;
33
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
34
+ _id: import("mongoose").Types.ObjectId;
35
+ name: string;
36
+ price: number;
37
+ special_instructions: string;
38
+ subtotal: number;
39
+ item_id: import("mongoose").Types.ObjectId;
40
+ quantity: number;
41
+ _net_amount: number;
42
+ _gross_amount: number;
43
+ _gst_amount: number;
44
+ _discount_amount: number;
45
+ received_quantity: number;
46
+ is_ready?: boolean | null | undefined;
47
+ void_reason?: string | null | undefined;
48
+ }> & {
49
+ _id: import("mongoose").Types.ObjectId;
50
+ name: string;
51
+ price: number;
52
+ special_instructions: string;
53
+ subtotal: number;
54
+ item_id: import("mongoose").Types.ObjectId;
55
+ quantity: number;
56
+ _net_amount: number;
57
+ _gross_amount: number;
58
+ _gst_amount: number;
59
+ _discount_amount: number;
60
+ received_quantity: number;
61
+ is_ready?: boolean | null | undefined;
62
+ void_reason?: string | null | undefined;
63
+ }>;
64
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
65
+ name: string;
66
+ category_id: import("mongoose").Types.ObjectId;
67
+ items: import("mongoose").Types.DocumentArray<{
68
+ _id: import("mongoose").Types.ObjectId;
69
+ name: string;
70
+ price: number;
71
+ special_instructions: string;
72
+ subtotal: number;
73
+ item_id: import("mongoose").Types.ObjectId;
74
+ quantity: number;
75
+ _net_amount: number;
76
+ _gross_amount: number;
77
+ _gst_amount: number;
78
+ _discount_amount: number;
79
+ received_quantity: number;
80
+ is_ready?: boolean | null | undefined;
81
+ void_reason?: string | null | undefined;
82
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
83
+ _id: import("mongoose").Types.ObjectId;
84
+ name: string;
85
+ price: number;
86
+ special_instructions: string;
87
+ subtotal: number;
88
+ item_id: import("mongoose").Types.ObjectId;
89
+ quantity: number;
90
+ _net_amount: number;
91
+ _gross_amount: number;
92
+ _gst_amount: number;
93
+ _discount_amount: number;
94
+ received_quantity: number;
95
+ is_ready?: boolean | null | undefined;
96
+ void_reason?: string | null | undefined;
97
+ }> & {
98
+ _id: import("mongoose").Types.ObjectId;
99
+ name: string;
100
+ price: number;
101
+ special_instructions: string;
102
+ subtotal: number;
103
+ item_id: import("mongoose").Types.ObjectId;
104
+ quantity: number;
105
+ _net_amount: number;
106
+ _gross_amount: number;
107
+ _gst_amount: number;
108
+ _discount_amount: number;
109
+ received_quantity: number;
110
+ is_ready?: boolean | null | undefined;
111
+ void_reason?: string | null | undefined;
112
+ }>;
113
+ }> & {
114
+ name: string;
115
+ category_id: import("mongoose").Types.ObjectId;
116
+ items: import("mongoose").Types.DocumentArray<{
117
+ _id: import("mongoose").Types.ObjectId;
118
+ name: string;
119
+ price: number;
120
+ special_instructions: string;
121
+ subtotal: number;
122
+ item_id: import("mongoose").Types.ObjectId;
123
+ quantity: number;
124
+ _net_amount: number;
125
+ _gross_amount: number;
126
+ _gst_amount: number;
127
+ _discount_amount: number;
128
+ received_quantity: number;
129
+ is_ready?: boolean | null | undefined;
130
+ void_reason?: string | null | undefined;
131
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
132
+ _id: import("mongoose").Types.ObjectId;
133
+ name: string;
134
+ price: number;
135
+ special_instructions: string;
136
+ subtotal: number;
137
+ item_id: import("mongoose").Types.ObjectId;
138
+ quantity: number;
139
+ _net_amount: number;
140
+ _gross_amount: number;
141
+ _gst_amount: number;
142
+ _discount_amount: number;
143
+ received_quantity: number;
144
+ is_ready?: boolean | null | undefined;
145
+ void_reason?: string | null | undefined;
146
+ }> & {
147
+ _id: import("mongoose").Types.ObjectId;
148
+ name: string;
149
+ price: number;
150
+ special_instructions: string;
151
+ subtotal: number;
152
+ item_id: import("mongoose").Types.ObjectId;
153
+ quantity: number;
154
+ _net_amount: number;
155
+ _gross_amount: number;
156
+ _gst_amount: number;
157
+ _discount_amount: number;
158
+ received_quantity: number;
159
+ is_ready?: boolean | null | undefined;
160
+ void_reason?: string | null | undefined;
161
+ }>;
162
+ }>;
163
+ price: number;
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
+ special_instructions: string;
227
+ order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
228
+ tax_number: string;
229
+ amount_earned: number;
230
+ grand_total: number;
231
+ iterations: import("mongoose").Types.DocumentArray<{
232
+ updatedAt: NativeDate;
233
+ categories: import("mongoose").Types.DocumentArray<{
234
+ name: string;
235
+ category_id: import("mongoose").Types.ObjectId;
236
+ items: import("mongoose").Types.DocumentArray<{
237
+ _id: import("mongoose").Types.ObjectId;
238
+ name: string;
239
+ price: number;
240
+ special_instructions: string;
241
+ subtotal: number;
242
+ item_id: import("mongoose").Types.ObjectId;
243
+ quantity: number;
244
+ _net_amount: number;
245
+ _gross_amount: number;
246
+ _gst_amount: number;
247
+ _discount_amount: number;
248
+ received_quantity: number;
249
+ is_ready?: boolean | null | undefined;
250
+ void_reason?: string | null | undefined;
251
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
252
+ _id: import("mongoose").Types.ObjectId;
253
+ name: string;
254
+ price: number;
255
+ special_instructions: string;
256
+ subtotal: number;
257
+ item_id: import("mongoose").Types.ObjectId;
258
+ quantity: number;
259
+ _net_amount: number;
260
+ _gross_amount: number;
261
+ _gst_amount: number;
262
+ _discount_amount: number;
263
+ received_quantity: number;
264
+ is_ready?: boolean | null | undefined;
265
+ void_reason?: string | null | undefined;
266
+ }> & {
267
+ _id: import("mongoose").Types.ObjectId;
268
+ name: string;
269
+ price: number;
270
+ special_instructions: string;
271
+ subtotal: number;
272
+ item_id: import("mongoose").Types.ObjectId;
273
+ quantity: number;
274
+ _net_amount: number;
275
+ _gross_amount: number;
276
+ _gst_amount: number;
277
+ _discount_amount: number;
278
+ received_quantity: number;
279
+ is_ready?: boolean | null | undefined;
280
+ void_reason?: string | null | undefined;
281
+ }>;
282
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
283
+ name: string;
284
+ category_id: import("mongoose").Types.ObjectId;
285
+ items: import("mongoose").Types.DocumentArray<{
286
+ _id: import("mongoose").Types.ObjectId;
287
+ name: string;
288
+ price: number;
289
+ special_instructions: string;
290
+ subtotal: number;
291
+ item_id: import("mongoose").Types.ObjectId;
292
+ quantity: number;
293
+ _net_amount: number;
294
+ _gross_amount: number;
295
+ _gst_amount: number;
296
+ _discount_amount: number;
297
+ received_quantity: number;
298
+ is_ready?: boolean | null | undefined;
299
+ void_reason?: string | null | undefined;
300
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
301
+ _id: import("mongoose").Types.ObjectId;
302
+ name: string;
303
+ price: number;
304
+ special_instructions: string;
305
+ subtotal: number;
306
+ item_id: import("mongoose").Types.ObjectId;
307
+ quantity: number;
308
+ _net_amount: number;
309
+ _gross_amount: number;
310
+ _gst_amount: number;
311
+ _discount_amount: number;
312
+ received_quantity: number;
313
+ is_ready?: boolean | null | undefined;
314
+ void_reason?: string | null | undefined;
315
+ }> & {
316
+ _id: import("mongoose").Types.ObjectId;
317
+ name: string;
318
+ price: number;
319
+ special_instructions: string;
320
+ subtotal: number;
321
+ item_id: import("mongoose").Types.ObjectId;
322
+ quantity: number;
323
+ _net_amount: number;
324
+ _gross_amount: number;
325
+ _gst_amount: number;
326
+ _discount_amount: number;
327
+ received_quantity: number;
328
+ is_ready?: boolean | null | undefined;
329
+ void_reason?: string | null | undefined;
330
+ }>;
331
+ }> & {
332
+ name: string;
333
+ category_id: import("mongoose").Types.ObjectId;
334
+ items: import("mongoose").Types.DocumentArray<{
335
+ _id: import("mongoose").Types.ObjectId;
336
+ name: string;
337
+ price: number;
338
+ special_instructions: string;
339
+ subtotal: number;
340
+ item_id: import("mongoose").Types.ObjectId;
341
+ quantity: number;
342
+ _net_amount: number;
343
+ _gross_amount: number;
344
+ _gst_amount: number;
345
+ _discount_amount: number;
346
+ received_quantity: number;
347
+ is_ready?: boolean | null | undefined;
348
+ void_reason?: string | null | undefined;
349
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
350
+ _id: import("mongoose").Types.ObjectId;
351
+ name: string;
352
+ price: number;
353
+ special_instructions: string;
354
+ subtotal: number;
355
+ item_id: import("mongoose").Types.ObjectId;
356
+ quantity: number;
357
+ _net_amount: number;
358
+ _gross_amount: number;
359
+ _gst_amount: number;
360
+ _discount_amount: number;
361
+ received_quantity: number;
362
+ is_ready?: boolean | null | undefined;
363
+ void_reason?: string | null | undefined;
364
+ }> & {
365
+ _id: import("mongoose").Types.ObjectId;
366
+ name: string;
367
+ price: number;
368
+ special_instructions: string;
369
+ subtotal: number;
370
+ item_id: import("mongoose").Types.ObjectId;
371
+ quantity: number;
372
+ _net_amount: number;
373
+ _gross_amount: number;
374
+ _gst_amount: number;
375
+ _discount_amount: number;
376
+ received_quantity: number;
377
+ is_ready?: boolean | null | undefined;
378
+ void_reason?: string | null | undefined;
379
+ }>;
380
+ }>;
381
+ price: number;
382
+ payments: import("mongoose").Types.DocumentArray<{
383
+ payment_type: string;
384
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
385
+ card_details: {
386
+ transaction_id: string;
387
+ payment_provider_linked_customer_id: string;
388
+ card_number: string;
389
+ card_type: string;
390
+ card_holder_name: string;
391
+ card_charges: number;
392
+ card_country_code: string;
393
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
394
+ };
395
+ amount_paid: number;
396
+ amount_due: number;
397
+ amount_refunded: number;
398
+ payment_id: string;
399
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
400
+ refund_reason?: string | null | undefined;
401
+ note?: string | null | undefined;
402
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
403
+ payment_type: string;
404
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
405
+ card_details: {
406
+ transaction_id: string;
407
+ payment_provider_linked_customer_id: string;
408
+ card_number: string;
409
+ card_type: string;
410
+ card_holder_name: string;
411
+ card_charges: number;
412
+ card_country_code: string;
413
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
414
+ };
415
+ amount_paid: number;
416
+ amount_due: number;
417
+ amount_refunded: number;
418
+ payment_id: string;
419
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
420
+ refund_reason?: string | null | undefined;
421
+ note?: string | null | undefined;
422
+ }> & {
423
+ payment_type: string;
424
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
425
+ card_details: {
426
+ transaction_id: string;
427
+ payment_provider_linked_customer_id: string;
428
+ card_number: string;
429
+ card_type: string;
430
+ card_holder_name: string;
431
+ card_charges: number;
432
+ card_country_code: string;
433
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
434
+ };
435
+ amount_paid: number;
436
+ amount_due: number;
437
+ amount_refunded: number;
438
+ payment_id: string;
439
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
440
+ refund_reason?: string | null | undefined;
441
+ note?: string | null | undefined;
442
+ }>;
443
+ special_instructions: string;
444
+ order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
445
+ tax_number: string;
446
+ amount_earned: number;
447
+ grand_total: number;
448
+ staff_details?: {
449
+ staff_id: string;
450
+ staff_name: string;
451
+ staff_mobile: string;
452
+ staff_email: string;
453
+ } | null | undefined;
454
+ is_gst_inclusive?: boolean | null | undefined;
455
+ gst?: number | null | undefined;
456
+ gst_amount?: number | null | undefined;
457
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
458
+ updatedAt: NativeDate;
459
+ categories: import("mongoose").Types.DocumentArray<{
460
+ name: string;
461
+ category_id: import("mongoose").Types.ObjectId;
462
+ items: import("mongoose").Types.DocumentArray<{
463
+ _id: import("mongoose").Types.ObjectId;
464
+ name: string;
465
+ price: number;
466
+ special_instructions: string;
467
+ subtotal: number;
468
+ item_id: import("mongoose").Types.ObjectId;
469
+ quantity: number;
470
+ _net_amount: number;
471
+ _gross_amount: number;
472
+ _gst_amount: number;
473
+ _discount_amount: number;
474
+ received_quantity: number;
475
+ is_ready?: boolean | null | undefined;
476
+ void_reason?: string | null | undefined;
477
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
478
+ _id: import("mongoose").Types.ObjectId;
479
+ name: string;
480
+ price: number;
481
+ special_instructions: string;
482
+ subtotal: number;
483
+ item_id: import("mongoose").Types.ObjectId;
484
+ quantity: number;
485
+ _net_amount: number;
486
+ _gross_amount: number;
487
+ _gst_amount: number;
488
+ _discount_amount: number;
489
+ received_quantity: number;
490
+ is_ready?: boolean | null | undefined;
491
+ void_reason?: string | null | undefined;
492
+ }> & {
493
+ _id: import("mongoose").Types.ObjectId;
494
+ name: string;
495
+ price: number;
496
+ special_instructions: string;
497
+ subtotal: number;
498
+ item_id: import("mongoose").Types.ObjectId;
499
+ quantity: number;
500
+ _net_amount: number;
501
+ _gross_amount: number;
502
+ _gst_amount: number;
503
+ _discount_amount: number;
504
+ received_quantity: number;
505
+ is_ready?: boolean | null | undefined;
506
+ void_reason?: string | null | undefined;
507
+ }>;
508
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
509
+ name: string;
510
+ category_id: import("mongoose").Types.ObjectId;
511
+ items: import("mongoose").Types.DocumentArray<{
512
+ _id: import("mongoose").Types.ObjectId;
513
+ name: string;
514
+ price: number;
515
+ special_instructions: string;
516
+ subtotal: number;
517
+ item_id: import("mongoose").Types.ObjectId;
518
+ quantity: number;
519
+ _net_amount: number;
520
+ _gross_amount: number;
521
+ _gst_amount: number;
522
+ _discount_amount: number;
523
+ received_quantity: number;
524
+ is_ready?: boolean | null | undefined;
525
+ void_reason?: string | null | undefined;
526
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
527
+ _id: import("mongoose").Types.ObjectId;
528
+ name: string;
529
+ price: number;
530
+ special_instructions: string;
531
+ subtotal: number;
532
+ item_id: import("mongoose").Types.ObjectId;
533
+ quantity: number;
534
+ _net_amount: number;
535
+ _gross_amount: number;
536
+ _gst_amount: number;
537
+ _discount_amount: number;
538
+ received_quantity: number;
539
+ is_ready?: boolean | null | undefined;
540
+ void_reason?: string | null | undefined;
541
+ }> & {
542
+ _id: import("mongoose").Types.ObjectId;
543
+ name: string;
544
+ price: number;
545
+ special_instructions: string;
546
+ subtotal: number;
547
+ item_id: import("mongoose").Types.ObjectId;
548
+ quantity: number;
549
+ _net_amount: number;
550
+ _gross_amount: number;
551
+ _gst_amount: number;
552
+ _discount_amount: number;
553
+ received_quantity: number;
554
+ is_ready?: boolean | null | undefined;
555
+ void_reason?: string | null | undefined;
556
+ }>;
557
+ }> & {
558
+ name: string;
559
+ category_id: import("mongoose").Types.ObjectId;
560
+ items: import("mongoose").Types.DocumentArray<{
561
+ _id: import("mongoose").Types.ObjectId;
562
+ name: string;
563
+ price: number;
564
+ special_instructions: string;
565
+ subtotal: number;
566
+ item_id: import("mongoose").Types.ObjectId;
567
+ quantity: number;
568
+ _net_amount: number;
569
+ _gross_amount: number;
570
+ _gst_amount: number;
571
+ _discount_amount: number;
572
+ received_quantity: number;
573
+ is_ready?: boolean | null | undefined;
574
+ void_reason?: string | null | undefined;
575
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
576
+ _id: import("mongoose").Types.ObjectId;
577
+ name: string;
578
+ price: number;
579
+ special_instructions: string;
580
+ subtotal: number;
581
+ item_id: import("mongoose").Types.ObjectId;
582
+ quantity: number;
583
+ _net_amount: number;
584
+ _gross_amount: number;
585
+ _gst_amount: number;
586
+ _discount_amount: number;
587
+ received_quantity: number;
588
+ is_ready?: boolean | null | undefined;
589
+ void_reason?: string | null | undefined;
590
+ }> & {
591
+ _id: import("mongoose").Types.ObjectId;
592
+ name: string;
593
+ price: number;
594
+ special_instructions: string;
595
+ subtotal: number;
596
+ item_id: import("mongoose").Types.ObjectId;
597
+ quantity: number;
598
+ _net_amount: number;
599
+ _gross_amount: number;
600
+ _gst_amount: number;
601
+ _discount_amount: number;
602
+ received_quantity: number;
603
+ is_ready?: boolean | null | undefined;
604
+ void_reason?: string | null | undefined;
605
+ }>;
606
+ }>;
607
+ price: number;
608
+ payments: import("mongoose").Types.DocumentArray<{
609
+ payment_type: string;
610
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
611
+ card_details: {
612
+ transaction_id: string;
613
+ payment_provider_linked_customer_id: string;
614
+ card_number: string;
615
+ card_type: string;
616
+ card_holder_name: string;
617
+ card_charges: number;
618
+ card_country_code: string;
619
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
620
+ };
621
+ amount_paid: number;
622
+ amount_due: number;
623
+ amount_refunded: number;
624
+ payment_id: string;
625
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
626
+ refund_reason?: string | null | undefined;
627
+ note?: string | null | undefined;
628
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
629
+ payment_type: string;
630
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
631
+ card_details: {
632
+ transaction_id: string;
633
+ payment_provider_linked_customer_id: string;
634
+ card_number: string;
635
+ card_type: string;
636
+ card_holder_name: string;
637
+ card_charges: number;
638
+ card_country_code: string;
639
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
640
+ };
641
+ amount_paid: number;
642
+ amount_due: number;
643
+ amount_refunded: number;
644
+ payment_id: string;
645
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
646
+ refund_reason?: string | null | undefined;
647
+ note?: string | null | undefined;
648
+ }> & {
649
+ payment_type: string;
650
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
651
+ card_details: {
652
+ transaction_id: string;
653
+ payment_provider_linked_customer_id: string;
654
+ card_number: string;
655
+ card_type: string;
656
+ card_holder_name: string;
657
+ card_charges: number;
658
+ card_country_code: string;
659
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
660
+ };
661
+ amount_paid: number;
662
+ amount_due: number;
663
+ amount_refunded: number;
664
+ payment_id: string;
665
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
666
+ refund_reason?: string | null | undefined;
667
+ note?: string | null | undefined;
668
+ }>;
669
+ special_instructions: string;
670
+ order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
671
+ tax_number: string;
672
+ amount_earned: number;
673
+ grand_total: number;
674
+ staff_details?: {
675
+ staff_id: string;
676
+ staff_name: string;
677
+ staff_mobile: string;
678
+ staff_email: string;
679
+ } | null | undefined;
680
+ is_gst_inclusive?: boolean | null | undefined;
681
+ gst?: number | null | undefined;
682
+ gst_amount?: number | null | undefined;
683
+ }> & {
684
+ updatedAt: NativeDate;
685
+ categories: import("mongoose").Types.DocumentArray<{
686
+ name: string;
687
+ category_id: import("mongoose").Types.ObjectId;
688
+ items: import("mongoose").Types.DocumentArray<{
689
+ _id: import("mongoose").Types.ObjectId;
690
+ name: string;
691
+ price: number;
692
+ special_instructions: string;
693
+ subtotal: number;
694
+ item_id: import("mongoose").Types.ObjectId;
695
+ quantity: number;
696
+ _net_amount: number;
697
+ _gross_amount: number;
698
+ _gst_amount: number;
699
+ _discount_amount: number;
700
+ received_quantity: number;
701
+ is_ready?: boolean | null | undefined;
702
+ void_reason?: string | null | undefined;
703
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
704
+ _id: import("mongoose").Types.ObjectId;
705
+ name: string;
706
+ price: number;
707
+ special_instructions: string;
708
+ subtotal: number;
709
+ item_id: import("mongoose").Types.ObjectId;
710
+ quantity: number;
711
+ _net_amount: number;
712
+ _gross_amount: number;
713
+ _gst_amount: number;
714
+ _discount_amount: number;
715
+ received_quantity: number;
716
+ is_ready?: boolean | null | undefined;
717
+ void_reason?: string | null | undefined;
718
+ }> & {
719
+ _id: import("mongoose").Types.ObjectId;
720
+ name: string;
721
+ price: number;
722
+ special_instructions: string;
723
+ subtotal: number;
724
+ item_id: import("mongoose").Types.ObjectId;
725
+ quantity: number;
726
+ _net_amount: number;
727
+ _gross_amount: number;
728
+ _gst_amount: number;
729
+ _discount_amount: number;
730
+ received_quantity: number;
731
+ is_ready?: boolean | null | undefined;
732
+ void_reason?: string | null | undefined;
733
+ }>;
734
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
735
+ name: string;
736
+ category_id: import("mongoose").Types.ObjectId;
737
+ items: import("mongoose").Types.DocumentArray<{
738
+ _id: import("mongoose").Types.ObjectId;
739
+ name: string;
740
+ price: number;
741
+ special_instructions: string;
742
+ subtotal: number;
743
+ item_id: import("mongoose").Types.ObjectId;
744
+ quantity: number;
745
+ _net_amount: number;
746
+ _gross_amount: number;
747
+ _gst_amount: number;
748
+ _discount_amount: number;
749
+ received_quantity: number;
750
+ is_ready?: boolean | null | undefined;
751
+ void_reason?: string | null | undefined;
752
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
753
+ _id: import("mongoose").Types.ObjectId;
754
+ name: string;
755
+ price: number;
756
+ special_instructions: string;
757
+ subtotal: number;
758
+ item_id: import("mongoose").Types.ObjectId;
759
+ quantity: number;
760
+ _net_amount: number;
761
+ _gross_amount: number;
762
+ _gst_amount: number;
763
+ _discount_amount: number;
764
+ received_quantity: number;
765
+ is_ready?: boolean | null | undefined;
766
+ void_reason?: string | null | undefined;
767
+ }> & {
768
+ _id: import("mongoose").Types.ObjectId;
769
+ name: string;
770
+ price: number;
771
+ special_instructions: string;
772
+ subtotal: number;
773
+ item_id: import("mongoose").Types.ObjectId;
774
+ quantity: number;
775
+ _net_amount: number;
776
+ _gross_amount: number;
777
+ _gst_amount: number;
778
+ _discount_amount: number;
779
+ received_quantity: number;
780
+ is_ready?: boolean | null | undefined;
781
+ void_reason?: string | null | undefined;
782
+ }>;
783
+ }> & {
784
+ name: string;
785
+ category_id: import("mongoose").Types.ObjectId;
786
+ items: import("mongoose").Types.DocumentArray<{
787
+ _id: import("mongoose").Types.ObjectId;
788
+ name: string;
789
+ price: number;
790
+ special_instructions: string;
791
+ subtotal: number;
792
+ item_id: import("mongoose").Types.ObjectId;
793
+ quantity: number;
794
+ _net_amount: number;
795
+ _gross_amount: number;
796
+ _gst_amount: number;
797
+ _discount_amount: number;
798
+ received_quantity: number;
799
+ is_ready?: boolean | null | undefined;
800
+ void_reason?: string | null | undefined;
801
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
802
+ _id: import("mongoose").Types.ObjectId;
803
+ name: string;
804
+ price: number;
805
+ special_instructions: string;
806
+ subtotal: number;
807
+ item_id: import("mongoose").Types.ObjectId;
808
+ quantity: number;
809
+ _net_amount: number;
810
+ _gross_amount: number;
811
+ _gst_amount: number;
812
+ _discount_amount: number;
813
+ received_quantity: number;
814
+ is_ready?: boolean | null | undefined;
815
+ void_reason?: string | null | undefined;
816
+ }> & {
817
+ _id: import("mongoose").Types.ObjectId;
818
+ name: string;
819
+ price: number;
820
+ special_instructions: string;
821
+ subtotal: number;
822
+ item_id: import("mongoose").Types.ObjectId;
823
+ quantity: number;
824
+ _net_amount: number;
825
+ _gross_amount: number;
826
+ _gst_amount: number;
827
+ _discount_amount: number;
828
+ received_quantity: number;
829
+ is_ready?: boolean | null | undefined;
830
+ void_reason?: string | null | undefined;
831
+ }>;
832
+ }>;
833
+ price: number;
834
+ payments: import("mongoose").Types.DocumentArray<{
835
+ payment_type: string;
836
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
837
+ card_details: {
838
+ transaction_id: string;
839
+ payment_provider_linked_customer_id: string;
840
+ card_number: string;
841
+ card_type: string;
842
+ card_holder_name: string;
843
+ card_charges: number;
844
+ card_country_code: string;
845
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
846
+ };
847
+ amount_paid: number;
848
+ amount_due: number;
849
+ amount_refunded: number;
850
+ payment_id: string;
851
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
852
+ refund_reason?: string | null | undefined;
853
+ note?: string | null | undefined;
854
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
855
+ payment_type: string;
856
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
857
+ card_details: {
858
+ transaction_id: string;
859
+ payment_provider_linked_customer_id: string;
860
+ card_number: string;
861
+ card_type: string;
862
+ card_holder_name: string;
863
+ card_charges: number;
864
+ card_country_code: string;
865
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
866
+ };
867
+ amount_paid: number;
868
+ amount_due: number;
869
+ amount_refunded: number;
870
+ payment_id: string;
871
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
872
+ refund_reason?: string | null | undefined;
873
+ note?: string | null | undefined;
874
+ }> & {
875
+ payment_type: string;
876
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
877
+ card_details: {
878
+ transaction_id: string;
879
+ payment_provider_linked_customer_id: string;
880
+ card_number: string;
881
+ card_type: string;
882
+ card_holder_name: string;
883
+ card_charges: number;
884
+ card_country_code: string;
885
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
886
+ };
887
+ amount_paid: number;
888
+ amount_due: number;
889
+ amount_refunded: number;
890
+ payment_id: string;
891
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
892
+ refund_reason?: string | null | undefined;
893
+ note?: string | null | undefined;
894
+ }>;
895
+ special_instructions: string;
896
+ order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
897
+ tax_number: string;
898
+ amount_earned: number;
899
+ grand_total: number;
900
+ staff_details?: {
901
+ staff_id: string;
902
+ staff_name: string;
903
+ staff_mobile: string;
904
+ staff_email: string;
905
+ } | null | undefined;
906
+ is_gst_inclusive?: boolean | null | undefined;
907
+ gst?: number | null | undefined;
908
+ gst_amount?: number | null | undefined;
909
+ }>;
910
+ amount_collected: number;
911
+ is_deleted: boolean;
912
+ order_status_updated_at: NativeDate;
913
+ order_settled_at: NativeDate;
914
+ order_settled_at_mins: number;
915
+ staff_details: {
916
+ staff_id: string;
917
+ staff_name: string;
918
+ staff_mobile: string;
919
+ staff_email: string;
920
+ };
921
+ vendor_name: string;
922
+ vendor_id: import("mongoose").Types.ObjectId;
923
+ cancel_reason?: string | null | undefined;
924
+ delete_reason?: string | null | undefined;
925
+ is_reopened?: boolean | null | undefined;
926
+ deferred_settlement?: boolean | null | undefined;
927
+ is_gst_inclusive?: boolean | null | undefined;
928
+ gst?: number | null | undefined;
929
+ gst_amount?: number | null | undefined;
930
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
931
+ createdAt: NativeDate;
932
+ updatedAt: NativeDate;
933
+ } & {
934
+ _id: import("mongoose").Types.ObjectId;
935
+ tenant_id: string;
936
+ createdAt_mins: number;
937
+ createdAt: NativeDate;
938
+ updatedAt: NativeDate;
939
+ categories: import("mongoose").Types.DocumentArray<{
940
+ name: string;
941
+ category_id: import("mongoose").Types.ObjectId;
942
+ items: import("mongoose").Types.DocumentArray<{
943
+ _id: import("mongoose").Types.ObjectId;
944
+ name: string;
945
+ price: number;
946
+ special_instructions: string;
947
+ subtotal: number;
948
+ item_id: import("mongoose").Types.ObjectId;
949
+ quantity: number;
950
+ _net_amount: number;
951
+ _gross_amount: number;
952
+ _gst_amount: number;
953
+ _discount_amount: number;
954
+ received_quantity: number;
955
+ is_ready?: boolean | null | undefined;
956
+ void_reason?: string | null | undefined;
957
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
958
+ _id: import("mongoose").Types.ObjectId;
959
+ name: string;
960
+ price: number;
961
+ special_instructions: string;
962
+ subtotal: number;
963
+ item_id: import("mongoose").Types.ObjectId;
964
+ quantity: number;
965
+ _net_amount: number;
966
+ _gross_amount: number;
967
+ _gst_amount: number;
968
+ _discount_amount: number;
969
+ received_quantity: number;
970
+ is_ready?: boolean | null | undefined;
971
+ void_reason?: string | null | undefined;
972
+ }> & {
973
+ _id: import("mongoose").Types.ObjectId;
974
+ name: string;
975
+ price: number;
976
+ special_instructions: string;
977
+ subtotal: number;
978
+ item_id: import("mongoose").Types.ObjectId;
979
+ quantity: number;
980
+ _net_amount: number;
981
+ _gross_amount: number;
982
+ _gst_amount: number;
983
+ _discount_amount: number;
984
+ received_quantity: number;
985
+ is_ready?: boolean | null | undefined;
986
+ void_reason?: string | null | undefined;
987
+ }>;
988
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
989
+ name: string;
990
+ category_id: import("mongoose").Types.ObjectId;
991
+ items: import("mongoose").Types.DocumentArray<{
992
+ _id: import("mongoose").Types.ObjectId;
993
+ name: string;
994
+ price: number;
995
+ special_instructions: string;
996
+ subtotal: number;
997
+ item_id: import("mongoose").Types.ObjectId;
998
+ quantity: number;
999
+ _net_amount: number;
1000
+ _gross_amount: number;
1001
+ _gst_amount: number;
1002
+ _discount_amount: number;
1003
+ received_quantity: number;
1004
+ is_ready?: boolean | null | undefined;
1005
+ void_reason?: string | null | undefined;
1006
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1007
+ _id: import("mongoose").Types.ObjectId;
1008
+ name: string;
1009
+ price: number;
1010
+ special_instructions: string;
1011
+ subtotal: number;
1012
+ item_id: import("mongoose").Types.ObjectId;
1013
+ quantity: number;
1014
+ _net_amount: number;
1015
+ _gross_amount: number;
1016
+ _gst_amount: number;
1017
+ _discount_amount: number;
1018
+ received_quantity: number;
1019
+ is_ready?: boolean | null | undefined;
1020
+ void_reason?: string | null | undefined;
1021
+ }> & {
1022
+ _id: import("mongoose").Types.ObjectId;
1023
+ name: string;
1024
+ price: number;
1025
+ special_instructions: string;
1026
+ subtotal: number;
1027
+ item_id: import("mongoose").Types.ObjectId;
1028
+ quantity: number;
1029
+ _net_amount: number;
1030
+ _gross_amount: number;
1031
+ _gst_amount: number;
1032
+ _discount_amount: number;
1033
+ received_quantity: number;
1034
+ is_ready?: boolean | null | undefined;
1035
+ void_reason?: string | null | undefined;
1036
+ }>;
1037
+ }> & {
1038
+ name: string;
1039
+ category_id: import("mongoose").Types.ObjectId;
1040
+ items: import("mongoose").Types.DocumentArray<{
1041
+ _id: import("mongoose").Types.ObjectId;
1042
+ name: string;
1043
+ price: number;
1044
+ special_instructions: string;
1045
+ subtotal: number;
1046
+ item_id: import("mongoose").Types.ObjectId;
1047
+ quantity: number;
1048
+ _net_amount: number;
1049
+ _gross_amount: number;
1050
+ _gst_amount: number;
1051
+ _discount_amount: number;
1052
+ received_quantity: number;
1053
+ is_ready?: boolean | null | undefined;
1054
+ void_reason?: string | null | undefined;
1055
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1056
+ _id: import("mongoose").Types.ObjectId;
1057
+ name: string;
1058
+ price: number;
1059
+ special_instructions: string;
1060
+ subtotal: number;
1061
+ item_id: import("mongoose").Types.ObjectId;
1062
+ quantity: number;
1063
+ _net_amount: number;
1064
+ _gross_amount: number;
1065
+ _gst_amount: number;
1066
+ _discount_amount: number;
1067
+ received_quantity: number;
1068
+ is_ready?: boolean | null | undefined;
1069
+ void_reason?: string | null | undefined;
1070
+ }> & {
1071
+ _id: import("mongoose").Types.ObjectId;
1072
+ name: string;
1073
+ price: number;
1074
+ special_instructions: string;
1075
+ subtotal: number;
1076
+ item_id: import("mongoose").Types.ObjectId;
1077
+ quantity: number;
1078
+ _net_amount: number;
1079
+ _gross_amount: number;
1080
+ _gst_amount: number;
1081
+ _discount_amount: number;
1082
+ received_quantity: number;
1083
+ is_ready?: boolean | null | undefined;
1084
+ void_reason?: string | null | undefined;
1085
+ }>;
1086
+ }>;
1087
+ price: number;
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
+ special_instructions: string;
1151
+ order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
1152
+ tax_number: string;
1153
+ amount_earned: number;
1154
+ grand_total: number;
1155
+ iterations: import("mongoose").Types.DocumentArray<{
1156
+ updatedAt: NativeDate;
1157
+ categories: import("mongoose").Types.DocumentArray<{
1158
+ name: string;
1159
+ category_id: import("mongoose").Types.ObjectId;
1160
+ items: import("mongoose").Types.DocumentArray<{
1161
+ _id: import("mongoose").Types.ObjectId;
1162
+ name: string;
1163
+ price: number;
1164
+ special_instructions: string;
1165
+ subtotal: number;
1166
+ item_id: import("mongoose").Types.ObjectId;
1167
+ quantity: number;
1168
+ _net_amount: number;
1169
+ _gross_amount: number;
1170
+ _gst_amount: number;
1171
+ _discount_amount: number;
1172
+ received_quantity: number;
1173
+ is_ready?: boolean | null | undefined;
1174
+ void_reason?: string | null | undefined;
1175
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1176
+ _id: import("mongoose").Types.ObjectId;
1177
+ name: string;
1178
+ price: number;
1179
+ special_instructions: string;
1180
+ subtotal: number;
1181
+ item_id: import("mongoose").Types.ObjectId;
1182
+ quantity: number;
1183
+ _net_amount: number;
1184
+ _gross_amount: number;
1185
+ _gst_amount: number;
1186
+ _discount_amount: number;
1187
+ received_quantity: number;
1188
+ is_ready?: boolean | null | undefined;
1189
+ void_reason?: string | null | undefined;
1190
+ }> & {
1191
+ _id: import("mongoose").Types.ObjectId;
1192
+ name: string;
1193
+ price: number;
1194
+ special_instructions: string;
1195
+ subtotal: number;
1196
+ item_id: import("mongoose").Types.ObjectId;
1197
+ quantity: number;
1198
+ _net_amount: number;
1199
+ _gross_amount: number;
1200
+ _gst_amount: number;
1201
+ _discount_amount: number;
1202
+ received_quantity: number;
1203
+ is_ready?: boolean | null | undefined;
1204
+ void_reason?: string | null | undefined;
1205
+ }>;
1206
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1207
+ name: string;
1208
+ category_id: import("mongoose").Types.ObjectId;
1209
+ items: import("mongoose").Types.DocumentArray<{
1210
+ _id: import("mongoose").Types.ObjectId;
1211
+ name: string;
1212
+ price: number;
1213
+ special_instructions: string;
1214
+ subtotal: number;
1215
+ item_id: import("mongoose").Types.ObjectId;
1216
+ quantity: number;
1217
+ _net_amount: number;
1218
+ _gross_amount: number;
1219
+ _gst_amount: number;
1220
+ _discount_amount: number;
1221
+ received_quantity: number;
1222
+ is_ready?: boolean | null | undefined;
1223
+ void_reason?: string | null | undefined;
1224
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1225
+ _id: import("mongoose").Types.ObjectId;
1226
+ name: string;
1227
+ price: number;
1228
+ special_instructions: string;
1229
+ subtotal: number;
1230
+ item_id: import("mongoose").Types.ObjectId;
1231
+ quantity: number;
1232
+ _net_amount: number;
1233
+ _gross_amount: number;
1234
+ _gst_amount: number;
1235
+ _discount_amount: number;
1236
+ received_quantity: number;
1237
+ is_ready?: boolean | null | undefined;
1238
+ void_reason?: string | null | undefined;
1239
+ }> & {
1240
+ _id: import("mongoose").Types.ObjectId;
1241
+ name: string;
1242
+ price: number;
1243
+ special_instructions: string;
1244
+ subtotal: number;
1245
+ item_id: import("mongoose").Types.ObjectId;
1246
+ quantity: number;
1247
+ _net_amount: number;
1248
+ _gross_amount: number;
1249
+ _gst_amount: number;
1250
+ _discount_amount: number;
1251
+ received_quantity: number;
1252
+ is_ready?: boolean | null | undefined;
1253
+ void_reason?: string | null | undefined;
1254
+ }>;
1255
+ }> & {
1256
+ name: string;
1257
+ category_id: import("mongoose").Types.ObjectId;
1258
+ items: import("mongoose").Types.DocumentArray<{
1259
+ _id: import("mongoose").Types.ObjectId;
1260
+ name: string;
1261
+ price: number;
1262
+ special_instructions: string;
1263
+ subtotal: number;
1264
+ item_id: import("mongoose").Types.ObjectId;
1265
+ quantity: number;
1266
+ _net_amount: number;
1267
+ _gross_amount: number;
1268
+ _gst_amount: number;
1269
+ _discount_amount: number;
1270
+ received_quantity: number;
1271
+ is_ready?: boolean | null | undefined;
1272
+ void_reason?: string | null | undefined;
1273
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1274
+ _id: import("mongoose").Types.ObjectId;
1275
+ name: string;
1276
+ price: number;
1277
+ special_instructions: string;
1278
+ subtotal: number;
1279
+ item_id: import("mongoose").Types.ObjectId;
1280
+ quantity: number;
1281
+ _net_amount: number;
1282
+ _gross_amount: number;
1283
+ _gst_amount: number;
1284
+ _discount_amount: number;
1285
+ received_quantity: number;
1286
+ is_ready?: boolean | null | undefined;
1287
+ void_reason?: string | null | undefined;
1288
+ }> & {
1289
+ _id: import("mongoose").Types.ObjectId;
1290
+ name: string;
1291
+ price: number;
1292
+ special_instructions: string;
1293
+ subtotal: number;
1294
+ item_id: import("mongoose").Types.ObjectId;
1295
+ quantity: number;
1296
+ _net_amount: number;
1297
+ _gross_amount: number;
1298
+ _gst_amount: number;
1299
+ _discount_amount: number;
1300
+ received_quantity: number;
1301
+ is_ready?: boolean | null | undefined;
1302
+ void_reason?: string | null | undefined;
1303
+ }>;
1304
+ }>;
1305
+ price: number;
1306
+ payments: import("mongoose").Types.DocumentArray<{
1307
+ payment_type: string;
1308
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1309
+ card_details: {
1310
+ transaction_id: string;
1311
+ payment_provider_linked_customer_id: string;
1312
+ card_number: string;
1313
+ card_type: string;
1314
+ card_holder_name: string;
1315
+ card_charges: number;
1316
+ card_country_code: string;
1317
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1318
+ };
1319
+ amount_paid: number;
1320
+ amount_due: number;
1321
+ amount_refunded: number;
1322
+ payment_id: string;
1323
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1324
+ refund_reason?: string | null | undefined;
1325
+ note?: string | null | undefined;
1326
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
1327
+ payment_type: string;
1328
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1329
+ card_details: {
1330
+ transaction_id: string;
1331
+ payment_provider_linked_customer_id: string;
1332
+ card_number: string;
1333
+ card_type: string;
1334
+ card_holder_name: string;
1335
+ card_charges: number;
1336
+ card_country_code: string;
1337
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1338
+ };
1339
+ amount_paid: number;
1340
+ amount_due: number;
1341
+ amount_refunded: number;
1342
+ payment_id: string;
1343
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1344
+ refund_reason?: string | null | undefined;
1345
+ note?: string | null | undefined;
1346
+ }> & {
1347
+ payment_type: string;
1348
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1349
+ card_details: {
1350
+ transaction_id: string;
1351
+ payment_provider_linked_customer_id: string;
1352
+ card_number: string;
1353
+ card_type: string;
1354
+ card_holder_name: string;
1355
+ card_charges: number;
1356
+ card_country_code: string;
1357
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1358
+ };
1359
+ amount_paid: number;
1360
+ amount_due: number;
1361
+ amount_refunded: number;
1362
+ payment_id: string;
1363
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1364
+ refund_reason?: string | null | undefined;
1365
+ note?: string | null | undefined;
1366
+ }>;
1367
+ special_instructions: string;
1368
+ order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
1369
+ tax_number: string;
1370
+ amount_earned: number;
1371
+ grand_total: number;
1372
+ staff_details?: {
1373
+ staff_id: string;
1374
+ staff_name: string;
1375
+ staff_mobile: string;
1376
+ staff_email: string;
1377
+ } | null | undefined;
1378
+ is_gst_inclusive?: boolean | null | undefined;
1379
+ gst?: number | null | undefined;
1380
+ gst_amount?: number | null | undefined;
1381
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1382
+ updatedAt: NativeDate;
1383
+ categories: import("mongoose").Types.DocumentArray<{
1384
+ name: string;
1385
+ category_id: import("mongoose").Types.ObjectId;
1386
+ items: import("mongoose").Types.DocumentArray<{
1387
+ _id: import("mongoose").Types.ObjectId;
1388
+ name: string;
1389
+ price: number;
1390
+ special_instructions: string;
1391
+ subtotal: number;
1392
+ item_id: import("mongoose").Types.ObjectId;
1393
+ quantity: number;
1394
+ _net_amount: number;
1395
+ _gross_amount: number;
1396
+ _gst_amount: number;
1397
+ _discount_amount: number;
1398
+ received_quantity: number;
1399
+ is_ready?: boolean | null | undefined;
1400
+ void_reason?: string | null | undefined;
1401
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1402
+ _id: import("mongoose").Types.ObjectId;
1403
+ name: string;
1404
+ price: number;
1405
+ special_instructions: string;
1406
+ subtotal: number;
1407
+ item_id: import("mongoose").Types.ObjectId;
1408
+ quantity: number;
1409
+ _net_amount: number;
1410
+ _gross_amount: number;
1411
+ _gst_amount: number;
1412
+ _discount_amount: number;
1413
+ received_quantity: number;
1414
+ is_ready?: boolean | null | undefined;
1415
+ void_reason?: string | null | undefined;
1416
+ }> & {
1417
+ _id: import("mongoose").Types.ObjectId;
1418
+ name: string;
1419
+ price: number;
1420
+ special_instructions: string;
1421
+ subtotal: number;
1422
+ item_id: import("mongoose").Types.ObjectId;
1423
+ quantity: number;
1424
+ _net_amount: number;
1425
+ _gross_amount: number;
1426
+ _gst_amount: number;
1427
+ _discount_amount: number;
1428
+ received_quantity: number;
1429
+ is_ready?: boolean | null | undefined;
1430
+ void_reason?: string | null | undefined;
1431
+ }>;
1432
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1433
+ name: string;
1434
+ category_id: import("mongoose").Types.ObjectId;
1435
+ items: import("mongoose").Types.DocumentArray<{
1436
+ _id: import("mongoose").Types.ObjectId;
1437
+ name: string;
1438
+ price: number;
1439
+ special_instructions: string;
1440
+ subtotal: number;
1441
+ item_id: import("mongoose").Types.ObjectId;
1442
+ quantity: number;
1443
+ _net_amount: number;
1444
+ _gross_amount: number;
1445
+ _gst_amount: number;
1446
+ _discount_amount: number;
1447
+ received_quantity: number;
1448
+ is_ready?: boolean | null | undefined;
1449
+ void_reason?: string | null | undefined;
1450
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1451
+ _id: import("mongoose").Types.ObjectId;
1452
+ name: string;
1453
+ price: number;
1454
+ special_instructions: string;
1455
+ subtotal: number;
1456
+ item_id: import("mongoose").Types.ObjectId;
1457
+ quantity: number;
1458
+ _net_amount: number;
1459
+ _gross_amount: number;
1460
+ _gst_amount: number;
1461
+ _discount_amount: number;
1462
+ received_quantity: number;
1463
+ is_ready?: boolean | null | undefined;
1464
+ void_reason?: string | null | undefined;
1465
+ }> & {
1466
+ _id: import("mongoose").Types.ObjectId;
1467
+ name: string;
1468
+ price: number;
1469
+ special_instructions: string;
1470
+ subtotal: number;
1471
+ item_id: import("mongoose").Types.ObjectId;
1472
+ quantity: number;
1473
+ _net_amount: number;
1474
+ _gross_amount: number;
1475
+ _gst_amount: number;
1476
+ _discount_amount: number;
1477
+ received_quantity: number;
1478
+ is_ready?: boolean | null | undefined;
1479
+ void_reason?: string | null | undefined;
1480
+ }>;
1481
+ }> & {
1482
+ name: string;
1483
+ category_id: import("mongoose").Types.ObjectId;
1484
+ items: import("mongoose").Types.DocumentArray<{
1485
+ _id: import("mongoose").Types.ObjectId;
1486
+ name: string;
1487
+ price: number;
1488
+ special_instructions: string;
1489
+ subtotal: number;
1490
+ item_id: import("mongoose").Types.ObjectId;
1491
+ quantity: number;
1492
+ _net_amount: number;
1493
+ _gross_amount: number;
1494
+ _gst_amount: number;
1495
+ _discount_amount: number;
1496
+ received_quantity: number;
1497
+ is_ready?: boolean | null | undefined;
1498
+ void_reason?: string | null | undefined;
1499
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1500
+ _id: import("mongoose").Types.ObjectId;
1501
+ name: string;
1502
+ price: number;
1503
+ special_instructions: string;
1504
+ subtotal: number;
1505
+ item_id: import("mongoose").Types.ObjectId;
1506
+ quantity: number;
1507
+ _net_amount: number;
1508
+ _gross_amount: number;
1509
+ _gst_amount: number;
1510
+ _discount_amount: number;
1511
+ received_quantity: number;
1512
+ is_ready?: boolean | null | undefined;
1513
+ void_reason?: string | null | undefined;
1514
+ }> & {
1515
+ _id: import("mongoose").Types.ObjectId;
1516
+ name: string;
1517
+ price: number;
1518
+ special_instructions: string;
1519
+ subtotal: number;
1520
+ item_id: import("mongoose").Types.ObjectId;
1521
+ quantity: number;
1522
+ _net_amount: number;
1523
+ _gross_amount: number;
1524
+ _gst_amount: number;
1525
+ _discount_amount: number;
1526
+ received_quantity: number;
1527
+ is_ready?: boolean | null | undefined;
1528
+ void_reason?: string | null | undefined;
1529
+ }>;
1530
+ }>;
1531
+ price: number;
1532
+ payments: import("mongoose").Types.DocumentArray<{
1533
+ payment_type: string;
1534
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1535
+ card_details: {
1536
+ transaction_id: string;
1537
+ payment_provider_linked_customer_id: string;
1538
+ card_number: string;
1539
+ card_type: string;
1540
+ card_holder_name: string;
1541
+ card_charges: number;
1542
+ card_country_code: string;
1543
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1544
+ };
1545
+ amount_paid: number;
1546
+ amount_due: number;
1547
+ amount_refunded: number;
1548
+ payment_id: string;
1549
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1550
+ refund_reason?: string | null | undefined;
1551
+ note?: string | null | undefined;
1552
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
1553
+ payment_type: string;
1554
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1555
+ card_details: {
1556
+ transaction_id: string;
1557
+ payment_provider_linked_customer_id: string;
1558
+ card_number: string;
1559
+ card_type: string;
1560
+ card_holder_name: string;
1561
+ card_charges: number;
1562
+ card_country_code: string;
1563
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1564
+ };
1565
+ amount_paid: number;
1566
+ amount_due: number;
1567
+ amount_refunded: number;
1568
+ payment_id: string;
1569
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1570
+ refund_reason?: string | null | undefined;
1571
+ note?: string | null | undefined;
1572
+ }> & {
1573
+ payment_type: string;
1574
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1575
+ card_details: {
1576
+ transaction_id: string;
1577
+ payment_provider_linked_customer_id: string;
1578
+ card_number: string;
1579
+ card_type: string;
1580
+ card_holder_name: string;
1581
+ card_charges: number;
1582
+ card_country_code: string;
1583
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1584
+ };
1585
+ amount_paid: number;
1586
+ amount_due: number;
1587
+ amount_refunded: number;
1588
+ payment_id: string;
1589
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1590
+ refund_reason?: string | null | undefined;
1591
+ note?: string | null | undefined;
1592
+ }>;
1593
+ special_instructions: string;
1594
+ order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
1595
+ tax_number: string;
1596
+ amount_earned: number;
1597
+ grand_total: number;
1598
+ staff_details?: {
1599
+ staff_id: string;
1600
+ staff_name: string;
1601
+ staff_mobile: string;
1602
+ staff_email: string;
1603
+ } | null | undefined;
1604
+ is_gst_inclusive?: boolean | null | undefined;
1605
+ gst?: number | null | undefined;
1606
+ gst_amount?: number | null | undefined;
1607
+ }> & {
1608
+ updatedAt: NativeDate;
1609
+ categories: import("mongoose").Types.DocumentArray<{
1610
+ name: string;
1611
+ category_id: import("mongoose").Types.ObjectId;
1612
+ items: import("mongoose").Types.DocumentArray<{
1613
+ _id: import("mongoose").Types.ObjectId;
1614
+ name: string;
1615
+ price: number;
1616
+ special_instructions: string;
1617
+ subtotal: number;
1618
+ item_id: import("mongoose").Types.ObjectId;
1619
+ quantity: number;
1620
+ _net_amount: number;
1621
+ _gross_amount: number;
1622
+ _gst_amount: number;
1623
+ _discount_amount: number;
1624
+ received_quantity: number;
1625
+ is_ready?: boolean | null | undefined;
1626
+ void_reason?: string | null | undefined;
1627
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1628
+ _id: import("mongoose").Types.ObjectId;
1629
+ name: string;
1630
+ price: number;
1631
+ special_instructions: string;
1632
+ subtotal: number;
1633
+ item_id: import("mongoose").Types.ObjectId;
1634
+ quantity: number;
1635
+ _net_amount: number;
1636
+ _gross_amount: number;
1637
+ _gst_amount: number;
1638
+ _discount_amount: number;
1639
+ received_quantity: number;
1640
+ is_ready?: boolean | null | undefined;
1641
+ void_reason?: string | null | undefined;
1642
+ }> & {
1643
+ _id: import("mongoose").Types.ObjectId;
1644
+ name: string;
1645
+ price: number;
1646
+ special_instructions: string;
1647
+ subtotal: number;
1648
+ item_id: import("mongoose").Types.ObjectId;
1649
+ quantity: number;
1650
+ _net_amount: number;
1651
+ _gross_amount: number;
1652
+ _gst_amount: number;
1653
+ _discount_amount: number;
1654
+ received_quantity: number;
1655
+ is_ready?: boolean | null | undefined;
1656
+ void_reason?: string | null | undefined;
1657
+ }>;
1658
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1659
+ name: string;
1660
+ category_id: import("mongoose").Types.ObjectId;
1661
+ items: import("mongoose").Types.DocumentArray<{
1662
+ _id: import("mongoose").Types.ObjectId;
1663
+ name: string;
1664
+ price: number;
1665
+ special_instructions: string;
1666
+ subtotal: number;
1667
+ item_id: import("mongoose").Types.ObjectId;
1668
+ quantity: number;
1669
+ _net_amount: number;
1670
+ _gross_amount: number;
1671
+ _gst_amount: number;
1672
+ _discount_amount: number;
1673
+ received_quantity: number;
1674
+ is_ready?: boolean | null | undefined;
1675
+ void_reason?: string | null | undefined;
1676
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1677
+ _id: import("mongoose").Types.ObjectId;
1678
+ name: string;
1679
+ price: number;
1680
+ special_instructions: string;
1681
+ subtotal: number;
1682
+ item_id: import("mongoose").Types.ObjectId;
1683
+ quantity: number;
1684
+ _net_amount: number;
1685
+ _gross_amount: number;
1686
+ _gst_amount: number;
1687
+ _discount_amount: number;
1688
+ received_quantity: number;
1689
+ is_ready?: boolean | null | undefined;
1690
+ void_reason?: string | null | undefined;
1691
+ }> & {
1692
+ _id: import("mongoose").Types.ObjectId;
1693
+ name: string;
1694
+ price: number;
1695
+ special_instructions: string;
1696
+ subtotal: number;
1697
+ item_id: import("mongoose").Types.ObjectId;
1698
+ quantity: number;
1699
+ _net_amount: number;
1700
+ _gross_amount: number;
1701
+ _gst_amount: number;
1702
+ _discount_amount: number;
1703
+ received_quantity: number;
1704
+ is_ready?: boolean | null | undefined;
1705
+ void_reason?: string | null | undefined;
1706
+ }>;
1707
+ }> & {
1708
+ name: string;
1709
+ category_id: import("mongoose").Types.ObjectId;
1710
+ items: import("mongoose").Types.DocumentArray<{
1711
+ _id: import("mongoose").Types.ObjectId;
1712
+ name: string;
1713
+ price: number;
1714
+ special_instructions: string;
1715
+ subtotal: number;
1716
+ item_id: import("mongoose").Types.ObjectId;
1717
+ quantity: number;
1718
+ _net_amount: number;
1719
+ _gross_amount: number;
1720
+ _gst_amount: number;
1721
+ _discount_amount: number;
1722
+ received_quantity: number;
1723
+ is_ready?: boolean | null | undefined;
1724
+ void_reason?: string | null | undefined;
1725
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1726
+ _id: import("mongoose").Types.ObjectId;
1727
+ name: string;
1728
+ price: number;
1729
+ special_instructions: string;
1730
+ subtotal: number;
1731
+ item_id: import("mongoose").Types.ObjectId;
1732
+ quantity: number;
1733
+ _net_amount: number;
1734
+ _gross_amount: number;
1735
+ _gst_amount: number;
1736
+ _discount_amount: number;
1737
+ received_quantity: number;
1738
+ is_ready?: boolean | null | undefined;
1739
+ void_reason?: string | null | undefined;
1740
+ }> & {
1741
+ _id: import("mongoose").Types.ObjectId;
1742
+ name: string;
1743
+ price: number;
1744
+ special_instructions: string;
1745
+ subtotal: number;
1746
+ item_id: import("mongoose").Types.ObjectId;
1747
+ quantity: number;
1748
+ _net_amount: number;
1749
+ _gross_amount: number;
1750
+ _gst_amount: number;
1751
+ _discount_amount: number;
1752
+ received_quantity: number;
1753
+ is_ready?: boolean | null | undefined;
1754
+ void_reason?: string | null | undefined;
1755
+ }>;
1756
+ }>;
1757
+ price: number;
1758
+ payments: import("mongoose").Types.DocumentArray<{
1759
+ payment_type: string;
1760
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1761
+ card_details: {
1762
+ transaction_id: string;
1763
+ payment_provider_linked_customer_id: string;
1764
+ card_number: string;
1765
+ card_type: string;
1766
+ card_holder_name: string;
1767
+ card_charges: number;
1768
+ card_country_code: string;
1769
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1770
+ };
1771
+ amount_paid: number;
1772
+ amount_due: number;
1773
+ amount_refunded: number;
1774
+ payment_id: string;
1775
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1776
+ refund_reason?: string | null | undefined;
1777
+ note?: string | null | undefined;
1778
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
1779
+ payment_type: string;
1780
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1781
+ card_details: {
1782
+ transaction_id: string;
1783
+ payment_provider_linked_customer_id: string;
1784
+ card_number: string;
1785
+ card_type: string;
1786
+ card_holder_name: string;
1787
+ card_charges: number;
1788
+ card_country_code: string;
1789
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1790
+ };
1791
+ amount_paid: number;
1792
+ amount_due: number;
1793
+ amount_refunded: number;
1794
+ payment_id: string;
1795
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1796
+ refund_reason?: string | null | undefined;
1797
+ note?: string | null | undefined;
1798
+ }> & {
1799
+ payment_type: string;
1800
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
1801
+ card_details: {
1802
+ transaction_id: string;
1803
+ payment_provider_linked_customer_id: string;
1804
+ card_number: string;
1805
+ card_type: string;
1806
+ card_holder_name: string;
1807
+ card_charges: number;
1808
+ card_country_code: string;
1809
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
1810
+ };
1811
+ amount_paid: number;
1812
+ amount_due: number;
1813
+ amount_refunded: number;
1814
+ payment_id: string;
1815
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
1816
+ refund_reason?: string | null | undefined;
1817
+ note?: string | null | undefined;
1818
+ }>;
1819
+ special_instructions: string;
1820
+ order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
1821
+ tax_number: string;
1822
+ amount_earned: number;
1823
+ grand_total: number;
1824
+ staff_details?: {
1825
+ staff_id: string;
1826
+ staff_name: string;
1827
+ staff_mobile: string;
1828
+ staff_email: string;
1829
+ } | null | undefined;
1830
+ is_gst_inclusive?: boolean | null | undefined;
1831
+ gst?: number | null | undefined;
1832
+ gst_amount?: number | null | undefined;
1833
+ }>;
1834
+ amount_collected: number;
1835
+ is_deleted: boolean;
1836
+ order_status_updated_at: NativeDate;
1837
+ order_settled_at: NativeDate;
1838
+ order_settled_at_mins: number;
1839
+ staff_details: {
1840
+ staff_id: string;
1841
+ staff_name: string;
1842
+ staff_mobile: string;
1843
+ staff_email: string;
1844
+ };
1845
+ vendor_name: string;
1846
+ vendor_id: import("mongoose").Types.ObjectId;
1847
+ cancel_reason?: string | null | undefined;
1848
+ delete_reason?: string | null | undefined;
1849
+ is_reopened?: boolean | null | undefined;
1850
+ deferred_settlement?: boolean | null | undefined;
1851
+ is_gst_inclusive?: boolean | null | undefined;
1852
+ gst?: number | null | undefined;
1853
+ gst_amount?: number | null | undefined;
1854
+ }>> & import("mongoose").FlatRecord<{
1855
+ createdAt: NativeDate;
1856
+ updatedAt: NativeDate;
1857
+ } & {
1858
+ _id: import("mongoose").Types.ObjectId;
1859
+ tenant_id: string;
1860
+ createdAt_mins: number;
1861
+ createdAt: NativeDate;
1862
+ updatedAt: NativeDate;
1863
+ categories: import("mongoose").Types.DocumentArray<{
1864
+ name: string;
1865
+ category_id: import("mongoose").Types.ObjectId;
1866
+ items: import("mongoose").Types.DocumentArray<{
1867
+ _id: import("mongoose").Types.ObjectId;
1868
+ name: string;
1869
+ price: number;
1870
+ special_instructions: string;
1871
+ subtotal: number;
1872
+ item_id: import("mongoose").Types.ObjectId;
1873
+ quantity: number;
1874
+ _net_amount: number;
1875
+ _gross_amount: number;
1876
+ _gst_amount: number;
1877
+ _discount_amount: number;
1878
+ received_quantity: number;
1879
+ is_ready?: boolean | null | undefined;
1880
+ void_reason?: string | null | undefined;
1881
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1882
+ _id: import("mongoose").Types.ObjectId;
1883
+ name: string;
1884
+ price: number;
1885
+ special_instructions: string;
1886
+ subtotal: number;
1887
+ item_id: import("mongoose").Types.ObjectId;
1888
+ quantity: number;
1889
+ _net_amount: number;
1890
+ _gross_amount: number;
1891
+ _gst_amount: number;
1892
+ _discount_amount: number;
1893
+ received_quantity: number;
1894
+ is_ready?: boolean | null | undefined;
1895
+ void_reason?: string | null | undefined;
1896
+ }> & {
1897
+ _id: import("mongoose").Types.ObjectId;
1898
+ name: string;
1899
+ price: number;
1900
+ special_instructions: string;
1901
+ subtotal: number;
1902
+ item_id: import("mongoose").Types.ObjectId;
1903
+ quantity: number;
1904
+ _net_amount: number;
1905
+ _gross_amount: number;
1906
+ _gst_amount: number;
1907
+ _discount_amount: number;
1908
+ received_quantity: number;
1909
+ is_ready?: boolean | null | undefined;
1910
+ void_reason?: string | null | undefined;
1911
+ }>;
1912
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1913
+ name: string;
1914
+ category_id: import("mongoose").Types.ObjectId;
1915
+ items: import("mongoose").Types.DocumentArray<{
1916
+ _id: import("mongoose").Types.ObjectId;
1917
+ name: string;
1918
+ price: number;
1919
+ special_instructions: string;
1920
+ subtotal: number;
1921
+ item_id: import("mongoose").Types.ObjectId;
1922
+ quantity: number;
1923
+ _net_amount: number;
1924
+ _gross_amount: number;
1925
+ _gst_amount: number;
1926
+ _discount_amount: number;
1927
+ received_quantity: number;
1928
+ is_ready?: boolean | null | undefined;
1929
+ void_reason?: string | null | undefined;
1930
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1931
+ _id: import("mongoose").Types.ObjectId;
1932
+ name: string;
1933
+ price: number;
1934
+ special_instructions: string;
1935
+ subtotal: number;
1936
+ item_id: import("mongoose").Types.ObjectId;
1937
+ quantity: number;
1938
+ _net_amount: number;
1939
+ _gross_amount: number;
1940
+ _gst_amount: number;
1941
+ _discount_amount: number;
1942
+ received_quantity: number;
1943
+ is_ready?: boolean | null | undefined;
1944
+ void_reason?: string | null | undefined;
1945
+ }> & {
1946
+ _id: import("mongoose").Types.ObjectId;
1947
+ name: string;
1948
+ price: number;
1949
+ special_instructions: string;
1950
+ subtotal: number;
1951
+ item_id: import("mongoose").Types.ObjectId;
1952
+ quantity: number;
1953
+ _net_amount: number;
1954
+ _gross_amount: number;
1955
+ _gst_amount: number;
1956
+ _discount_amount: number;
1957
+ received_quantity: number;
1958
+ is_ready?: boolean | null | undefined;
1959
+ void_reason?: string | null | undefined;
1960
+ }>;
1961
+ }> & {
1962
+ name: string;
1963
+ category_id: import("mongoose").Types.ObjectId;
1964
+ items: import("mongoose").Types.DocumentArray<{
1965
+ _id: import("mongoose").Types.ObjectId;
1966
+ name: string;
1967
+ price: number;
1968
+ special_instructions: string;
1969
+ subtotal: number;
1970
+ item_id: import("mongoose").Types.ObjectId;
1971
+ quantity: number;
1972
+ _net_amount: number;
1973
+ _gross_amount: number;
1974
+ _gst_amount: number;
1975
+ _discount_amount: number;
1976
+ received_quantity: number;
1977
+ is_ready?: boolean | null | undefined;
1978
+ void_reason?: string | null | undefined;
1979
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1980
+ _id: import("mongoose").Types.ObjectId;
1981
+ name: string;
1982
+ price: number;
1983
+ special_instructions: string;
1984
+ subtotal: number;
1985
+ item_id: import("mongoose").Types.ObjectId;
1986
+ quantity: number;
1987
+ _net_amount: number;
1988
+ _gross_amount: number;
1989
+ _gst_amount: number;
1990
+ _discount_amount: number;
1991
+ received_quantity: number;
1992
+ is_ready?: boolean | null | undefined;
1993
+ void_reason?: string | null | undefined;
1994
+ }> & {
1995
+ _id: import("mongoose").Types.ObjectId;
1996
+ name: string;
1997
+ price: number;
1998
+ special_instructions: string;
1999
+ subtotal: number;
2000
+ item_id: import("mongoose").Types.ObjectId;
2001
+ quantity: number;
2002
+ _net_amount: number;
2003
+ _gross_amount: number;
2004
+ _gst_amount: number;
2005
+ _discount_amount: number;
2006
+ received_quantity: number;
2007
+ is_ready?: boolean | null | undefined;
2008
+ void_reason?: string | null | undefined;
2009
+ }>;
2010
+ }>;
2011
+ price: number;
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
+ special_instructions: string;
2075
+ order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
2076
+ tax_number: string;
2077
+ amount_earned: number;
2078
+ grand_total: number;
2079
+ iterations: import("mongoose").Types.DocumentArray<{
2080
+ updatedAt: NativeDate;
2081
+ categories: import("mongoose").Types.DocumentArray<{
2082
+ name: string;
2083
+ category_id: import("mongoose").Types.ObjectId;
2084
+ items: import("mongoose").Types.DocumentArray<{
2085
+ _id: import("mongoose").Types.ObjectId;
2086
+ name: string;
2087
+ price: number;
2088
+ special_instructions: string;
2089
+ subtotal: number;
2090
+ item_id: import("mongoose").Types.ObjectId;
2091
+ quantity: number;
2092
+ _net_amount: number;
2093
+ _gross_amount: number;
2094
+ _gst_amount: number;
2095
+ _discount_amount: number;
2096
+ received_quantity: number;
2097
+ is_ready?: boolean | null | undefined;
2098
+ void_reason?: string | null | undefined;
2099
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2100
+ _id: import("mongoose").Types.ObjectId;
2101
+ name: string;
2102
+ price: number;
2103
+ special_instructions: string;
2104
+ subtotal: number;
2105
+ item_id: import("mongoose").Types.ObjectId;
2106
+ quantity: number;
2107
+ _net_amount: number;
2108
+ _gross_amount: number;
2109
+ _gst_amount: number;
2110
+ _discount_amount: number;
2111
+ received_quantity: number;
2112
+ is_ready?: boolean | null | undefined;
2113
+ void_reason?: string | null | undefined;
2114
+ }> & {
2115
+ _id: import("mongoose").Types.ObjectId;
2116
+ name: string;
2117
+ price: number;
2118
+ special_instructions: string;
2119
+ subtotal: number;
2120
+ item_id: import("mongoose").Types.ObjectId;
2121
+ quantity: number;
2122
+ _net_amount: number;
2123
+ _gross_amount: number;
2124
+ _gst_amount: number;
2125
+ _discount_amount: number;
2126
+ received_quantity: number;
2127
+ is_ready?: boolean | null | undefined;
2128
+ void_reason?: string | null | undefined;
2129
+ }>;
2130
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2131
+ name: string;
2132
+ category_id: import("mongoose").Types.ObjectId;
2133
+ items: import("mongoose").Types.DocumentArray<{
2134
+ _id: import("mongoose").Types.ObjectId;
2135
+ name: string;
2136
+ price: number;
2137
+ special_instructions: string;
2138
+ subtotal: number;
2139
+ item_id: import("mongoose").Types.ObjectId;
2140
+ quantity: number;
2141
+ _net_amount: number;
2142
+ _gross_amount: number;
2143
+ _gst_amount: number;
2144
+ _discount_amount: number;
2145
+ received_quantity: number;
2146
+ is_ready?: boolean | null | undefined;
2147
+ void_reason?: string | null | undefined;
2148
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2149
+ _id: import("mongoose").Types.ObjectId;
2150
+ name: string;
2151
+ price: number;
2152
+ special_instructions: string;
2153
+ subtotal: number;
2154
+ item_id: import("mongoose").Types.ObjectId;
2155
+ quantity: number;
2156
+ _net_amount: number;
2157
+ _gross_amount: number;
2158
+ _gst_amount: number;
2159
+ _discount_amount: number;
2160
+ received_quantity: number;
2161
+ is_ready?: boolean | null | undefined;
2162
+ void_reason?: string | null | undefined;
2163
+ }> & {
2164
+ _id: import("mongoose").Types.ObjectId;
2165
+ name: string;
2166
+ price: number;
2167
+ special_instructions: string;
2168
+ subtotal: number;
2169
+ item_id: import("mongoose").Types.ObjectId;
2170
+ quantity: number;
2171
+ _net_amount: number;
2172
+ _gross_amount: number;
2173
+ _gst_amount: number;
2174
+ _discount_amount: number;
2175
+ received_quantity: number;
2176
+ is_ready?: boolean | null | undefined;
2177
+ void_reason?: string | null | undefined;
2178
+ }>;
2179
+ }> & {
2180
+ name: string;
2181
+ category_id: import("mongoose").Types.ObjectId;
2182
+ items: import("mongoose").Types.DocumentArray<{
2183
+ _id: import("mongoose").Types.ObjectId;
2184
+ name: string;
2185
+ price: number;
2186
+ special_instructions: string;
2187
+ subtotal: number;
2188
+ item_id: import("mongoose").Types.ObjectId;
2189
+ quantity: number;
2190
+ _net_amount: number;
2191
+ _gross_amount: number;
2192
+ _gst_amount: number;
2193
+ _discount_amount: number;
2194
+ received_quantity: number;
2195
+ is_ready?: boolean | null | undefined;
2196
+ void_reason?: string | null | undefined;
2197
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2198
+ _id: import("mongoose").Types.ObjectId;
2199
+ name: string;
2200
+ price: number;
2201
+ special_instructions: string;
2202
+ subtotal: number;
2203
+ item_id: import("mongoose").Types.ObjectId;
2204
+ quantity: number;
2205
+ _net_amount: number;
2206
+ _gross_amount: number;
2207
+ _gst_amount: number;
2208
+ _discount_amount: number;
2209
+ received_quantity: number;
2210
+ is_ready?: boolean | null | undefined;
2211
+ void_reason?: string | null | undefined;
2212
+ }> & {
2213
+ _id: import("mongoose").Types.ObjectId;
2214
+ name: string;
2215
+ price: number;
2216
+ special_instructions: string;
2217
+ subtotal: number;
2218
+ item_id: import("mongoose").Types.ObjectId;
2219
+ quantity: number;
2220
+ _net_amount: number;
2221
+ _gross_amount: number;
2222
+ _gst_amount: number;
2223
+ _discount_amount: number;
2224
+ received_quantity: number;
2225
+ is_ready?: boolean | null | undefined;
2226
+ void_reason?: string | null | undefined;
2227
+ }>;
2228
+ }>;
2229
+ price: number;
2230
+ payments: import("mongoose").Types.DocumentArray<{
2231
+ payment_type: string;
2232
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2233
+ card_details: {
2234
+ transaction_id: string;
2235
+ payment_provider_linked_customer_id: string;
2236
+ card_number: string;
2237
+ card_type: string;
2238
+ card_holder_name: string;
2239
+ card_charges: number;
2240
+ card_country_code: string;
2241
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2242
+ };
2243
+ amount_paid: number;
2244
+ amount_due: number;
2245
+ amount_refunded: number;
2246
+ payment_id: string;
2247
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2248
+ refund_reason?: string | null | undefined;
2249
+ note?: string | null | undefined;
2250
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
2251
+ payment_type: string;
2252
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2253
+ card_details: {
2254
+ transaction_id: string;
2255
+ payment_provider_linked_customer_id: string;
2256
+ card_number: string;
2257
+ card_type: string;
2258
+ card_holder_name: string;
2259
+ card_charges: number;
2260
+ card_country_code: string;
2261
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2262
+ };
2263
+ amount_paid: number;
2264
+ amount_due: number;
2265
+ amount_refunded: number;
2266
+ payment_id: string;
2267
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2268
+ refund_reason?: string | null | undefined;
2269
+ note?: string | null | undefined;
2270
+ }> & {
2271
+ payment_type: string;
2272
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2273
+ card_details: {
2274
+ transaction_id: string;
2275
+ payment_provider_linked_customer_id: string;
2276
+ card_number: string;
2277
+ card_type: string;
2278
+ card_holder_name: string;
2279
+ card_charges: number;
2280
+ card_country_code: string;
2281
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2282
+ };
2283
+ amount_paid: number;
2284
+ amount_due: number;
2285
+ amount_refunded: number;
2286
+ payment_id: string;
2287
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2288
+ refund_reason?: string | null | undefined;
2289
+ note?: string | null | undefined;
2290
+ }>;
2291
+ special_instructions: string;
2292
+ order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
2293
+ tax_number: string;
2294
+ amount_earned: number;
2295
+ grand_total: number;
2296
+ staff_details?: {
2297
+ staff_id: string;
2298
+ staff_name: string;
2299
+ staff_mobile: string;
2300
+ staff_email: string;
2301
+ } | null | undefined;
2302
+ is_gst_inclusive?: boolean | null | undefined;
2303
+ gst?: number | null | undefined;
2304
+ gst_amount?: number | null | undefined;
2305
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2306
+ updatedAt: NativeDate;
2307
+ categories: import("mongoose").Types.DocumentArray<{
2308
+ name: string;
2309
+ category_id: import("mongoose").Types.ObjectId;
2310
+ items: import("mongoose").Types.DocumentArray<{
2311
+ _id: import("mongoose").Types.ObjectId;
2312
+ name: string;
2313
+ price: number;
2314
+ special_instructions: string;
2315
+ subtotal: number;
2316
+ item_id: import("mongoose").Types.ObjectId;
2317
+ quantity: number;
2318
+ _net_amount: number;
2319
+ _gross_amount: number;
2320
+ _gst_amount: number;
2321
+ _discount_amount: number;
2322
+ received_quantity: number;
2323
+ is_ready?: boolean | null | undefined;
2324
+ void_reason?: string | null | undefined;
2325
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2326
+ _id: import("mongoose").Types.ObjectId;
2327
+ name: string;
2328
+ price: number;
2329
+ special_instructions: string;
2330
+ subtotal: number;
2331
+ item_id: import("mongoose").Types.ObjectId;
2332
+ quantity: number;
2333
+ _net_amount: number;
2334
+ _gross_amount: number;
2335
+ _gst_amount: number;
2336
+ _discount_amount: number;
2337
+ received_quantity: number;
2338
+ is_ready?: boolean | null | undefined;
2339
+ void_reason?: string | null | undefined;
2340
+ }> & {
2341
+ _id: import("mongoose").Types.ObjectId;
2342
+ name: string;
2343
+ price: number;
2344
+ special_instructions: string;
2345
+ subtotal: number;
2346
+ item_id: import("mongoose").Types.ObjectId;
2347
+ quantity: number;
2348
+ _net_amount: number;
2349
+ _gross_amount: number;
2350
+ _gst_amount: number;
2351
+ _discount_amount: number;
2352
+ received_quantity: number;
2353
+ is_ready?: boolean | null | undefined;
2354
+ void_reason?: string | null | undefined;
2355
+ }>;
2356
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2357
+ name: string;
2358
+ category_id: import("mongoose").Types.ObjectId;
2359
+ items: import("mongoose").Types.DocumentArray<{
2360
+ _id: import("mongoose").Types.ObjectId;
2361
+ name: string;
2362
+ price: number;
2363
+ special_instructions: string;
2364
+ subtotal: number;
2365
+ item_id: import("mongoose").Types.ObjectId;
2366
+ quantity: number;
2367
+ _net_amount: number;
2368
+ _gross_amount: number;
2369
+ _gst_amount: number;
2370
+ _discount_amount: number;
2371
+ received_quantity: number;
2372
+ is_ready?: boolean | null | undefined;
2373
+ void_reason?: string | null | undefined;
2374
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2375
+ _id: import("mongoose").Types.ObjectId;
2376
+ name: string;
2377
+ price: number;
2378
+ special_instructions: string;
2379
+ subtotal: number;
2380
+ item_id: import("mongoose").Types.ObjectId;
2381
+ quantity: number;
2382
+ _net_amount: number;
2383
+ _gross_amount: number;
2384
+ _gst_amount: number;
2385
+ _discount_amount: number;
2386
+ received_quantity: number;
2387
+ is_ready?: boolean | null | undefined;
2388
+ void_reason?: string | null | undefined;
2389
+ }> & {
2390
+ _id: import("mongoose").Types.ObjectId;
2391
+ name: string;
2392
+ price: number;
2393
+ special_instructions: string;
2394
+ subtotal: number;
2395
+ item_id: import("mongoose").Types.ObjectId;
2396
+ quantity: number;
2397
+ _net_amount: number;
2398
+ _gross_amount: number;
2399
+ _gst_amount: number;
2400
+ _discount_amount: number;
2401
+ received_quantity: number;
2402
+ is_ready?: boolean | null | undefined;
2403
+ void_reason?: string | null | undefined;
2404
+ }>;
2405
+ }> & {
2406
+ name: string;
2407
+ category_id: import("mongoose").Types.ObjectId;
2408
+ items: import("mongoose").Types.DocumentArray<{
2409
+ _id: import("mongoose").Types.ObjectId;
2410
+ name: string;
2411
+ price: number;
2412
+ special_instructions: string;
2413
+ subtotal: number;
2414
+ item_id: import("mongoose").Types.ObjectId;
2415
+ quantity: number;
2416
+ _net_amount: number;
2417
+ _gross_amount: number;
2418
+ _gst_amount: number;
2419
+ _discount_amount: number;
2420
+ received_quantity: number;
2421
+ is_ready?: boolean | null | undefined;
2422
+ void_reason?: string | null | undefined;
2423
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2424
+ _id: import("mongoose").Types.ObjectId;
2425
+ name: string;
2426
+ price: number;
2427
+ special_instructions: string;
2428
+ subtotal: number;
2429
+ item_id: import("mongoose").Types.ObjectId;
2430
+ quantity: number;
2431
+ _net_amount: number;
2432
+ _gross_amount: number;
2433
+ _gst_amount: number;
2434
+ _discount_amount: number;
2435
+ received_quantity: number;
2436
+ is_ready?: boolean | null | undefined;
2437
+ void_reason?: string | null | undefined;
2438
+ }> & {
2439
+ _id: import("mongoose").Types.ObjectId;
2440
+ name: string;
2441
+ price: number;
2442
+ special_instructions: string;
2443
+ subtotal: number;
2444
+ item_id: import("mongoose").Types.ObjectId;
2445
+ quantity: number;
2446
+ _net_amount: number;
2447
+ _gross_amount: number;
2448
+ _gst_amount: number;
2449
+ _discount_amount: number;
2450
+ received_quantity: number;
2451
+ is_ready?: boolean | null | undefined;
2452
+ void_reason?: string | null | undefined;
2453
+ }>;
2454
+ }>;
2455
+ price: number;
2456
+ payments: import("mongoose").Types.DocumentArray<{
2457
+ payment_type: string;
2458
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2459
+ card_details: {
2460
+ transaction_id: string;
2461
+ payment_provider_linked_customer_id: string;
2462
+ card_number: string;
2463
+ card_type: string;
2464
+ card_holder_name: string;
2465
+ card_charges: number;
2466
+ card_country_code: string;
2467
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2468
+ };
2469
+ amount_paid: number;
2470
+ amount_due: number;
2471
+ amount_refunded: number;
2472
+ payment_id: string;
2473
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2474
+ refund_reason?: string | null | undefined;
2475
+ note?: string | null | undefined;
2476
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
2477
+ payment_type: string;
2478
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2479
+ card_details: {
2480
+ transaction_id: string;
2481
+ payment_provider_linked_customer_id: string;
2482
+ card_number: string;
2483
+ card_type: string;
2484
+ card_holder_name: string;
2485
+ card_charges: number;
2486
+ card_country_code: string;
2487
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2488
+ };
2489
+ amount_paid: number;
2490
+ amount_due: number;
2491
+ amount_refunded: number;
2492
+ payment_id: string;
2493
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2494
+ refund_reason?: string | null | undefined;
2495
+ note?: string | null | undefined;
2496
+ }> & {
2497
+ payment_type: string;
2498
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2499
+ card_details: {
2500
+ transaction_id: string;
2501
+ payment_provider_linked_customer_id: string;
2502
+ card_number: string;
2503
+ card_type: string;
2504
+ card_holder_name: string;
2505
+ card_charges: number;
2506
+ card_country_code: string;
2507
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2508
+ };
2509
+ amount_paid: number;
2510
+ amount_due: number;
2511
+ amount_refunded: number;
2512
+ payment_id: string;
2513
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2514
+ refund_reason?: string | null | undefined;
2515
+ note?: string | null | undefined;
2516
+ }>;
2517
+ special_instructions: string;
2518
+ order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
2519
+ tax_number: string;
2520
+ amount_earned: number;
2521
+ grand_total: number;
2522
+ staff_details?: {
2523
+ staff_id: string;
2524
+ staff_name: string;
2525
+ staff_mobile: string;
2526
+ staff_email: string;
2527
+ } | null | undefined;
2528
+ is_gst_inclusive?: boolean | null | undefined;
2529
+ gst?: number | null | undefined;
2530
+ gst_amount?: number | null | undefined;
2531
+ }> & {
2532
+ updatedAt: NativeDate;
2533
+ categories: import("mongoose").Types.DocumentArray<{
2534
+ name: string;
2535
+ category_id: import("mongoose").Types.ObjectId;
2536
+ items: import("mongoose").Types.DocumentArray<{
2537
+ _id: import("mongoose").Types.ObjectId;
2538
+ name: string;
2539
+ price: number;
2540
+ special_instructions: string;
2541
+ subtotal: number;
2542
+ item_id: import("mongoose").Types.ObjectId;
2543
+ quantity: number;
2544
+ _net_amount: number;
2545
+ _gross_amount: number;
2546
+ _gst_amount: number;
2547
+ _discount_amount: number;
2548
+ received_quantity: number;
2549
+ is_ready?: boolean | null | undefined;
2550
+ void_reason?: string | null | undefined;
2551
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2552
+ _id: import("mongoose").Types.ObjectId;
2553
+ name: string;
2554
+ price: number;
2555
+ special_instructions: string;
2556
+ subtotal: number;
2557
+ item_id: import("mongoose").Types.ObjectId;
2558
+ quantity: number;
2559
+ _net_amount: number;
2560
+ _gross_amount: number;
2561
+ _gst_amount: number;
2562
+ _discount_amount: number;
2563
+ received_quantity: number;
2564
+ is_ready?: boolean | null | undefined;
2565
+ void_reason?: string | null | undefined;
2566
+ }> & {
2567
+ _id: import("mongoose").Types.ObjectId;
2568
+ name: string;
2569
+ price: number;
2570
+ special_instructions: string;
2571
+ subtotal: number;
2572
+ item_id: import("mongoose").Types.ObjectId;
2573
+ quantity: number;
2574
+ _net_amount: number;
2575
+ _gross_amount: number;
2576
+ _gst_amount: number;
2577
+ _discount_amount: number;
2578
+ received_quantity: number;
2579
+ is_ready?: boolean | null | undefined;
2580
+ void_reason?: string | null | undefined;
2581
+ }>;
2582
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2583
+ name: string;
2584
+ category_id: import("mongoose").Types.ObjectId;
2585
+ items: import("mongoose").Types.DocumentArray<{
2586
+ _id: import("mongoose").Types.ObjectId;
2587
+ name: string;
2588
+ price: number;
2589
+ special_instructions: string;
2590
+ subtotal: number;
2591
+ item_id: import("mongoose").Types.ObjectId;
2592
+ quantity: number;
2593
+ _net_amount: number;
2594
+ _gross_amount: number;
2595
+ _gst_amount: number;
2596
+ _discount_amount: number;
2597
+ received_quantity: number;
2598
+ is_ready?: boolean | null | undefined;
2599
+ void_reason?: string | null | undefined;
2600
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2601
+ _id: import("mongoose").Types.ObjectId;
2602
+ name: string;
2603
+ price: number;
2604
+ special_instructions: string;
2605
+ subtotal: number;
2606
+ item_id: import("mongoose").Types.ObjectId;
2607
+ quantity: number;
2608
+ _net_amount: number;
2609
+ _gross_amount: number;
2610
+ _gst_amount: number;
2611
+ _discount_amount: number;
2612
+ received_quantity: number;
2613
+ is_ready?: boolean | null | undefined;
2614
+ void_reason?: string | null | undefined;
2615
+ }> & {
2616
+ _id: import("mongoose").Types.ObjectId;
2617
+ name: string;
2618
+ price: number;
2619
+ special_instructions: string;
2620
+ subtotal: number;
2621
+ item_id: import("mongoose").Types.ObjectId;
2622
+ quantity: number;
2623
+ _net_amount: number;
2624
+ _gross_amount: number;
2625
+ _gst_amount: number;
2626
+ _discount_amount: number;
2627
+ received_quantity: number;
2628
+ is_ready?: boolean | null | undefined;
2629
+ void_reason?: string | null | undefined;
2630
+ }>;
2631
+ }> & {
2632
+ name: string;
2633
+ category_id: import("mongoose").Types.ObjectId;
2634
+ items: import("mongoose").Types.DocumentArray<{
2635
+ _id: import("mongoose").Types.ObjectId;
2636
+ name: string;
2637
+ price: number;
2638
+ special_instructions: string;
2639
+ subtotal: number;
2640
+ item_id: import("mongoose").Types.ObjectId;
2641
+ quantity: number;
2642
+ _net_amount: number;
2643
+ _gross_amount: number;
2644
+ _gst_amount: number;
2645
+ _discount_amount: number;
2646
+ received_quantity: number;
2647
+ is_ready?: boolean | null | undefined;
2648
+ void_reason?: string | null | undefined;
2649
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
2650
+ _id: import("mongoose").Types.ObjectId;
2651
+ name: string;
2652
+ price: number;
2653
+ special_instructions: string;
2654
+ subtotal: number;
2655
+ item_id: import("mongoose").Types.ObjectId;
2656
+ quantity: number;
2657
+ _net_amount: number;
2658
+ _gross_amount: number;
2659
+ _gst_amount: number;
2660
+ _discount_amount: number;
2661
+ received_quantity: number;
2662
+ is_ready?: boolean | null | undefined;
2663
+ void_reason?: string | null | undefined;
2664
+ }> & {
2665
+ _id: import("mongoose").Types.ObjectId;
2666
+ name: string;
2667
+ price: number;
2668
+ special_instructions: string;
2669
+ subtotal: number;
2670
+ item_id: import("mongoose").Types.ObjectId;
2671
+ quantity: number;
2672
+ _net_amount: number;
2673
+ _gross_amount: number;
2674
+ _gst_amount: number;
2675
+ _discount_amount: number;
2676
+ received_quantity: number;
2677
+ is_ready?: boolean | null | undefined;
2678
+ void_reason?: string | null | undefined;
2679
+ }>;
2680
+ }>;
2681
+ price: number;
2682
+ payments: import("mongoose").Types.DocumentArray<{
2683
+ payment_type: string;
2684
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2685
+ card_details: {
2686
+ transaction_id: string;
2687
+ payment_provider_linked_customer_id: string;
2688
+ card_number: string;
2689
+ card_type: string;
2690
+ card_holder_name: string;
2691
+ card_charges: number;
2692
+ card_country_code: string;
2693
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2694
+ };
2695
+ amount_paid: number;
2696
+ amount_due: number;
2697
+ amount_refunded: number;
2698
+ payment_id: string;
2699
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2700
+ refund_reason?: string | null | undefined;
2701
+ note?: string | null | undefined;
2702
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId | null | undefined, any, {
2703
+ payment_type: string;
2704
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2705
+ card_details: {
2706
+ transaction_id: string;
2707
+ payment_provider_linked_customer_id: string;
2708
+ card_number: string;
2709
+ card_type: string;
2710
+ card_holder_name: string;
2711
+ card_charges: number;
2712
+ card_country_code: string;
2713
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2714
+ };
2715
+ amount_paid: number;
2716
+ amount_due: number;
2717
+ amount_refunded: number;
2718
+ payment_id: string;
2719
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2720
+ refund_reason?: string | null | undefined;
2721
+ note?: string | null | undefined;
2722
+ }> & {
2723
+ payment_type: string;
2724
+ payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
2725
+ card_details: {
2726
+ transaction_id: string;
2727
+ payment_provider_linked_customer_id: string;
2728
+ card_number: string;
2729
+ card_type: string;
2730
+ card_holder_name: string;
2731
+ card_charges: number;
2732
+ card_country_code: string;
2733
+ payment_provider: import("../../constants").PAYMENT_PROVIDERS_ENUM;
2734
+ };
2735
+ amount_paid: number;
2736
+ amount_due: number;
2737
+ amount_refunded: number;
2738
+ payment_id: string;
2739
+ _id?: import("mongoose").Types.ObjectId | null | undefined;
2740
+ refund_reason?: string | null | undefined;
2741
+ note?: string | null | undefined;
2742
+ }>;
2743
+ special_instructions: string;
2744
+ order_status: import("../../constants").TENANT_PURCHASE_ORDER_STATUS_ENUM;
2745
+ tax_number: string;
2746
+ amount_earned: number;
2747
+ grand_total: number;
2748
+ staff_details?: {
2749
+ staff_id: string;
2750
+ staff_name: string;
2751
+ staff_mobile: string;
2752
+ staff_email: string;
2753
+ } | null | undefined;
2754
+ is_gst_inclusive?: boolean | null | undefined;
2755
+ gst?: number | null | undefined;
2756
+ gst_amount?: number | null | undefined;
2757
+ }>;
2758
+ amount_collected: number;
2759
+ is_deleted: boolean;
2760
+ order_status_updated_at: NativeDate;
2761
+ order_settled_at: NativeDate;
2762
+ order_settled_at_mins: number;
2763
+ staff_details: {
2764
+ staff_id: string;
2765
+ staff_name: string;
2766
+ staff_mobile: string;
2767
+ staff_email: string;
2768
+ };
2769
+ vendor_name: string;
2770
+ vendor_id: import("mongoose").Types.ObjectId;
2771
+ cancel_reason?: string | null | undefined;
2772
+ delete_reason?: string | null | undefined;
2773
+ is_reopened?: boolean | null | undefined;
2774
+ deferred_settlement?: boolean | null | undefined;
2775
+ is_gst_inclusive?: boolean | null | undefined;
2776
+ gst?: number | null | undefined;
2777
+ gst_amount?: number | null | undefined;
2778
+ }> & Required<{
2779
+ _id: import("mongoose").Types.ObjectId;
2780
+ }> & {
2781
+ __v: number;
2782
+ }>;
2783
+ export declare const TENANT_PURCHASE_ORDER_COLLECTION_NAME = "tenant_purchase_orders";