@managesome/eposmatic-toolkit 0.2.455 → 0.2.457

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