@feedmepos/mf-inventory-portal 0.0.23-dev.2 → 0.0.23-dev.21

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 (112) hide show
  1. package/dist/{App-DRE3c1lJ.js → App-CvIvF0fg.js} +59 -51
  2. package/dist/{ApprovalView-B4ZYcS3B.js → ApprovalView-BOn2HDVY.js} +20 -23
  3. package/dist/{BindingsDialog-Df1yrWHU.js → BindingsDialog-9qfADiSA.js} +7 -7
  4. package/dist/{BindingsPicker-BERMWh4w.js → BindingsPicker-CpV9uOqj.js} +7 -8
  5. package/dist/{BindingsTable-DRIapOWW.js → BindingsTable-BYScxUTj.js} +16 -20
  6. package/dist/ClosingDraftView-DM7-3zOd.js +1116 -0
  7. package/dist/{ClosingTemplateView-CbFn3Sdy.js → ClosingTemplateView-Cye5VPAM.js} +66 -76
  8. package/dist/{FmDroppableField-8RzKjEdL.js → FmDroppableField-AIKfZo3H.js} +1 -1
  9. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CQUsooGm.js +282 -0
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BHSGZyJL.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CFQc-CBX.js} +121 -119
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DH5IQchQ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-2r8mut0B.js} +7 -7
  12. package/dist/{IngredientGroupView-DoETcEvV.js → IngredientGroupView-RNokzPJa.js} +30 -36
  13. package/dist/IngredientsView-M7K_GAEO.js +1660 -0
  14. package/dist/{IntegrationView-D1HeBiGF.js → IntegrationView-D9a8d1sO.js} +18 -20
  15. package/dist/{InventoryBindingForm-Dmz9BQ37.js → InventoryBindingForm-B0Gx5N1p.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DoyqVBOd.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DEOudgKD.js} +15 -17
  17. package/dist/{InventoryBindingSummary-DrpwiRGZ.js → InventoryBindingSummary-C16Nc5aN.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-yNEswIEI.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CZiypEex.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Br4_VUza.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BbYZwclN.js} +8 -8
  20. package/dist/{PurchaseOrderPrintPreview-cp671yWE.js → PurchaseOrderPrintPreview-DdKF8g0J.js} +13 -14
  21. package/dist/ReceiveRequestView-DBPRR6fz.js +4186 -0
  22. package/dist/{RecipeView-CD_dAWLo.js → RecipeView-CzUgVxKz.js} +58 -63
  23. package/dist/{StockView-DfUzFC1b.js → StockView-DCO3N1FS.js} +1338 -1446
  24. package/dist/{SupplierView-DB-zrNxh.js → SupplierView-CzV6DYSj.js} +2345 -783
  25. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-00pcY0qu.js +1228 -0
  26. package/dist/TransferTemplateView-uL5PId9-.js +1265 -0
  27. package/dist/{UnitView-BlC9-WOA.js → UnitView-d-mCs-cS.js} +40 -44
  28. package/dist/{WarehouseView-CgEY87Lo.js → WarehouseView-B7z8m-Hv.js} +67 -73
  29. package/dist/api/adjustment-template.d.ts +23 -0
  30. package/dist/api/bill.d.ts +2 -2
  31. package/dist/api/closing-draft.d.ts +6 -0
  32. package/dist/api/closing.d.ts +1 -0
  33. package/dist/api/netsuite.d.ts +69 -0
  34. package/dist/app-CTCC1zfY.js +58871 -0
  35. package/dist/app.d.ts +56 -0
  36. package/dist/app.js +2 -2
  37. package/dist/components/FmMinMaxInputRules.d.ts +4 -1
  38. package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
  39. package/dist/components/row-action.enum.d.ts +1 -0
  40. package/dist/composable/defineDeepModel.d.ts +1 -1
  41. package/dist/{decimal-D7BCubZO.js → decimal-DhUR6QsF.js} +1 -1
  42. package/dist/{feature-BR-MsGYt.js → feature-DiGS5Fa4.js} +23 -9
  43. package/dist/format-unit-display-MRARpSlY.js +1210 -0
  44. package/dist/index-BSN3RnCl.js +12087 -0
  45. package/dist/netsuite-CIibMNer.js +251 -0
  46. package/dist/router/name.d.ts +2 -0
  47. package/dist/stock-COHpOTJk.js +110 -0
  48. package/dist/stores/feature.d.ts +2 -0
  49. package/dist/stores/integration/netsuite.d.ts +81 -0
  50. package/dist/stores/inventory.d.ts +1 -4
  51. package/dist/style.css +1 -1
  52. package/dist/{supplier-aBuwVukl.js → supplier-csNwTHYl.js} +15 -15
  53. package/dist/tsconfig.app.tsbuildinfo +1 -1
  54. package/dist/{use-inventory-binding-dialog-CLQ0LUmW.js → use-inventory-binding-dialog-172A48Xx.js} +10 -11
  55. package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
  56. package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
  57. package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
  58. package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
  59. package/dist/views/adjustment-template/wastage-template/actions.d.ts +1295 -0
  60. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
  61. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
  62. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
  63. package/dist/views/adjustment-template/wastage-template/props.d.ts +29 -0
  64. package/dist/views/adjustment-template/wastage-template/table.d.ts +1273 -0
  65. package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +2 -0
  66. package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
  67. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +451 -0
  68. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +25 -0
  69. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +2601 -0
  70. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
  71. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +19 -0
  72. package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -0
  73. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -192
  74. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +24 -192
  75. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -34
  76. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -0
  77. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +54 -54
  78. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +54 -54
  79. package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +1 -0
  80. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  81. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  82. package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
  83. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
  84. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
  85. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
  86. package/dist/{xlsx-BbtURTDy.js → xlsx-CH-bhcOL.js} +1 -1
  87. package/dist/{xlsx.util-zYS4OJFi.js → xlsx.util-4aHI7W-Z.js} +1 -1
  88. package/package.json +3 -3
  89. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-7JYNssTm.js +0 -267
  90. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-KbYSywk2.js +0 -436
  91. package/dist/FmMultiselectDialog-Da9JMCYa.js +0 -415
  92. package/dist/IngredientsView-DHAhj9pV.js +0 -1613
  93. package/dist/ReceiveRequestView-C1WBlpho.js +0 -4082
  94. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
  95. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-2mzqFGCz.js +0 -1144
  96. package/dist/TransferTemplateView-CaAJrqU6.js +0 -1262
  97. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  98. package/dist/app-CAyFhmAz.js +0 -33457
  99. package/dist/date2-D9i5izMt.js +0 -117
  100. package/dist/dayjs.min-SJKP9zBL.js +0 -282
  101. package/dist/defineDeepModel-DS4Shctf.js +0 -13
  102. package/dist/format-time-from-id-CUby60uW.js +0 -15
  103. package/dist/format-unit-display-D25Al2JZ.js +0 -1198
  104. package/dist/fuzzy-BryBtMz_.js +0 -41
  105. package/dist/index-ByJbUSIQ.js +0 -45
  106. package/dist/index-CFA_VFyX.js +0 -10545
  107. package/dist/index-CTvgBOum.js +0 -22280
  108. package/dist/netsuite-D0G4B60k.js +0 -146
  109. package/dist/normalizeArguments-DP7Hrren.js +0 -1552
  110. package/dist/row-action.enum-PMKMRrZR.js +0 -50
  111. package/dist/rules-DxVY0b7F.js +0 -198
  112. package/dist/use-template-enabled-locations-2-BgTiwy_3.js +0 -86
@@ -0,0 +1,2601 @@
1
+ import { type ColumnDef } from '@feedmepos/ui-library';
2
+ import type { RevisionIdMeta } from '@feedmepos/inventory-core';
3
+ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"closingTable", import("pinia")._UnwrapAll<Pick<{
4
+ columnDefs: ColumnDef<{
5
+ remark?: string | null | undefined;
6
+ _rev?: string | null | undefined;
7
+ effectiveAt?: string | null | undefined;
8
+ approvedAt?: string | null | undefined;
9
+ approvedBy?: {
10
+ name: string;
11
+ id: string;
12
+ } | null | undefined;
13
+ approveRemark?: string | null | undefined;
14
+ rejectionHistory?: {
15
+ rejectedAt: string;
16
+ rejectedBy: {
17
+ name: string;
18
+ id: string;
19
+ };
20
+ rejectRemark: string;
21
+ }[] | null | undefined;
22
+ closingAdjustmentId?: string | null | undefined;
23
+ closingId?: string | null | undefined;
24
+ status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
25
+ _id: string;
26
+ items: {
27
+ remark?: string | null | undefined;
28
+ sku: {
29
+ trackingMeasurement?: string | null | undefined;
30
+ convert?: {
31
+ measurement?: string | null | undefined;
32
+ inventoryBindings?: {
33
+ measurement?: {
34
+ id: string;
35
+ name: string;
36
+ abbrev: string;
37
+ conversion: {
38
+ amount: number;
39
+ precision: number;
40
+ };
41
+ } | null | undefined;
42
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
43
+ amount: {
44
+ amount: number;
45
+ precision: number;
46
+ };
47
+ id: string;
48
+ }[] | null | undefined;
49
+ } | null | undefined;
50
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
51
+ defaultCost?: {
52
+ measurement?: {
53
+ id: string;
54
+ name: string;
55
+ abbrev: string;
56
+ conversion: {
57
+ amount: number;
58
+ precision: number;
59
+ };
60
+ } | null | undefined;
61
+ costPerUnit: {
62
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
63
+ amount: number;
64
+ precision: number;
65
+ };
66
+ } | null | undefined;
67
+ thresholds?: {
68
+ low: number;
69
+ mid: number;
70
+ } | null | undefined;
71
+ operationalGroup?: string | null | undefined;
72
+ unit: {
73
+ _id: string;
74
+ name: string;
75
+ abbrev: string;
76
+ precision: number;
77
+ measurements: {
78
+ id: string;
79
+ name: string;
80
+ abbrev: string;
81
+ conversion: {
82
+ amount: number;
83
+ precision: number;
84
+ };
85
+ }[];
86
+ };
87
+ code: string;
88
+ _id: string;
89
+ name: string;
90
+ };
91
+ baseAmount: {
92
+ amount: number;
93
+ precision: number;
94
+ };
95
+ measurementsAmounts: {
96
+ amount: {
97
+ amount: number;
98
+ precision: number;
99
+ };
100
+ measurement: {
101
+ id: string;
102
+ name: string;
103
+ abbrev: string;
104
+ conversion: {
105
+ amount: number;
106
+ precision: number;
107
+ };
108
+ };
109
+ }[];
110
+ }[];
111
+ createdBy: {
112
+ name: string;
113
+ id: string;
114
+ };
115
+ createdAt: string;
116
+ updatedAt: string;
117
+ updatedBy: {
118
+ name: string;
119
+ id: string;
120
+ };
121
+ usingTemplates: {
122
+ ref?: string | null | undefined;
123
+ _rev?: string | null | undefined;
124
+ updatedAt?: Date | null | undefined;
125
+ locations?: {
126
+ type: "restaurant" | "warehouse";
127
+ name: string;
128
+ acceptRequest: boolean;
129
+ dbName: string;
130
+ doc: {
131
+ _id: string;
132
+ businessId: string;
133
+ profile: {
134
+ code?: string | null | undefined;
135
+ _id?: string | null | undefined;
136
+ name?: string | undefined;
137
+ address?: {
138
+ coordinates?: number[] | null | undefined;
139
+ line2?: string | null | undefined;
140
+ state: string;
141
+ country: string;
142
+ line1: string;
143
+ city: string;
144
+ postcode: string;
145
+ } | undefined;
146
+ email?: string | undefined;
147
+ regNo?: string | undefined;
148
+ sstRegNo?: string | null | undefined;
149
+ phoneNo?: string | undefined;
150
+ legalName?: string | null | undefined;
151
+ discovery?: boolean | null | undefined;
152
+ coverPhoto?: string | null | undefined;
153
+ thumbnailPhoto?: string | null | undefined;
154
+ description?: string | null | undefined;
155
+ photos?: string[] | null | undefined;
156
+ operatingHours?: {
157
+ 0: {
158
+ hours: {
159
+ end: string;
160
+ start: string;
161
+ }[];
162
+ enable: boolean;
163
+ };
164
+ 2: {
165
+ hours: {
166
+ end: string;
167
+ start: string;
168
+ }[];
169
+ enable: boolean;
170
+ };
171
+ 1: {
172
+ hours: {
173
+ end: string;
174
+ start: string;
175
+ }[];
176
+ enable: boolean;
177
+ };
178
+ 3: {
179
+ hours: {
180
+ end: string;
181
+ start: string;
182
+ }[];
183
+ enable: boolean;
184
+ };
185
+ 4: {
186
+ hours: {
187
+ end: string;
188
+ start: string;
189
+ }[];
190
+ enable: boolean;
191
+ };
192
+ 5: {
193
+ hours: {
194
+ end: string;
195
+ start: string;
196
+ }[];
197
+ enable: boolean;
198
+ };
199
+ 6: {
200
+ hours: {
201
+ end: string;
202
+ start: string;
203
+ }[];
204
+ enable: boolean;
205
+ };
206
+ } | null | undefined;
207
+ tags?: string[] | null | undefined;
208
+ url?: string | null | undefined;
209
+ };
210
+ };
211
+ }[] | null | undefined;
212
+ updatedBy?: {
213
+ name: string;
214
+ id: string;
215
+ } | null | undefined;
216
+ _id: string;
217
+ name: string;
218
+ }[];
219
+ } & RevisionIdMeta>[];
220
+ drafts: import("vue").Ref<{
221
+ remark?: string | null | undefined;
222
+ _rev: string;
223
+ effectiveAt?: string | null | undefined;
224
+ approvedAt?: string | null | undefined;
225
+ approvedBy?: {
226
+ name: string;
227
+ id: string;
228
+ } | null | undefined;
229
+ approveRemark?: string | null | undefined;
230
+ rejectionHistory?: {
231
+ rejectedAt: string;
232
+ rejectedBy: {
233
+ name: string;
234
+ id: string;
235
+ };
236
+ rejectRemark: string;
237
+ }[] | null | undefined;
238
+ closingAdjustmentId?: string | null | undefined;
239
+ closingId?: string | null | undefined;
240
+ status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
241
+ _id: string;
242
+ items: {
243
+ remark?: string | null | undefined;
244
+ sku: {
245
+ trackingMeasurement?: string | null | undefined;
246
+ convert?: {
247
+ measurement?: string | null | undefined;
248
+ inventoryBindings?: {
249
+ measurement?: {
250
+ id: string;
251
+ name: string;
252
+ abbrev: string;
253
+ conversion: {
254
+ amount: number;
255
+ precision: number;
256
+ };
257
+ } | null | undefined;
258
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
259
+ amount: {
260
+ amount: number;
261
+ precision: number;
262
+ };
263
+ id: string;
264
+ }[] | null | undefined;
265
+ } | null | undefined;
266
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
267
+ defaultCost?: {
268
+ measurement?: {
269
+ id: string;
270
+ name: string;
271
+ abbrev: string;
272
+ conversion: {
273
+ amount: number;
274
+ precision: number;
275
+ };
276
+ } | null | undefined;
277
+ costPerUnit: {
278
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
279
+ amount: number;
280
+ precision: number;
281
+ };
282
+ } | null | undefined;
283
+ thresholds?: {
284
+ low: number;
285
+ mid: number;
286
+ } | null | undefined;
287
+ operationalGroup?: string | null | undefined;
288
+ unit: {
289
+ _id: string;
290
+ name: string;
291
+ abbrev: string;
292
+ precision: number;
293
+ measurements: {
294
+ id: string;
295
+ name: string;
296
+ abbrev: string;
297
+ conversion: {
298
+ amount: number;
299
+ precision: number;
300
+ };
301
+ }[];
302
+ };
303
+ code: string;
304
+ _id: string;
305
+ name: string;
306
+ };
307
+ baseAmount: {
308
+ amount: number;
309
+ precision: number;
310
+ };
311
+ measurementsAmounts: {
312
+ amount: {
313
+ amount: number;
314
+ precision: number;
315
+ };
316
+ measurement: {
317
+ id: string;
318
+ name: string;
319
+ abbrev: string;
320
+ conversion: {
321
+ amount: number;
322
+ precision: number;
323
+ };
324
+ };
325
+ }[];
326
+ }[];
327
+ createdBy: {
328
+ name: string;
329
+ id: string;
330
+ };
331
+ createdAt: string;
332
+ updatedAt: string;
333
+ updatedBy: {
334
+ name: string;
335
+ id: string;
336
+ };
337
+ usingTemplates: {
338
+ ref?: string | null | undefined;
339
+ _rev?: string | null | undefined;
340
+ updatedAt?: Date | null | undefined;
341
+ locations?: {
342
+ type: "restaurant" | "warehouse";
343
+ name: string;
344
+ acceptRequest: boolean;
345
+ dbName: string;
346
+ doc: {
347
+ _id: string;
348
+ businessId: string;
349
+ profile: {
350
+ code?: string | null | undefined;
351
+ _id?: string | null | undefined;
352
+ name?: string | undefined;
353
+ address?: {
354
+ coordinates?: number[] | null | undefined;
355
+ line2?: string | null | undefined;
356
+ state: string;
357
+ country: string;
358
+ line1: string;
359
+ city: string;
360
+ postcode: string;
361
+ } | undefined;
362
+ email?: string | undefined;
363
+ regNo?: string | undefined;
364
+ sstRegNo?: string | null | undefined;
365
+ phoneNo?: string | undefined;
366
+ legalName?: string | null | undefined;
367
+ discovery?: boolean | null | undefined;
368
+ coverPhoto?: string | null | undefined;
369
+ thumbnailPhoto?: string | null | undefined;
370
+ description?: string | null | undefined;
371
+ photos?: string[] | null | undefined;
372
+ operatingHours?: {
373
+ 0: {
374
+ hours: {
375
+ end: string;
376
+ start: string;
377
+ }[];
378
+ enable: boolean;
379
+ };
380
+ 2: {
381
+ hours: {
382
+ end: string;
383
+ start: string;
384
+ }[];
385
+ enable: boolean;
386
+ };
387
+ 1: {
388
+ hours: {
389
+ end: string;
390
+ start: string;
391
+ }[];
392
+ enable: boolean;
393
+ };
394
+ 3: {
395
+ hours: {
396
+ end: string;
397
+ start: string;
398
+ }[];
399
+ enable: boolean;
400
+ };
401
+ 4: {
402
+ hours: {
403
+ end: string;
404
+ start: string;
405
+ }[];
406
+ enable: boolean;
407
+ };
408
+ 5: {
409
+ hours: {
410
+ end: string;
411
+ start: string;
412
+ }[];
413
+ enable: boolean;
414
+ };
415
+ 6: {
416
+ hours: {
417
+ end: string;
418
+ start: string;
419
+ }[];
420
+ enable: boolean;
421
+ };
422
+ } | null | undefined;
423
+ tags?: string[] | null | undefined;
424
+ url?: string | null | undefined;
425
+ };
426
+ };
427
+ }[] | null | undefined;
428
+ updatedBy?: {
429
+ name: string;
430
+ id: string;
431
+ } | null | undefined;
432
+ _id: string;
433
+ name: string;
434
+ }[];
435
+ }[], ({
436
+ remark?: string | null | undefined;
437
+ _rev?: string | null | undefined;
438
+ effectiveAt?: string | null | undefined;
439
+ approvedAt?: string | null | undefined;
440
+ approvedBy?: {
441
+ name: string;
442
+ id: string;
443
+ } | null | undefined;
444
+ approveRemark?: string | null | undefined;
445
+ rejectionHistory?: {
446
+ rejectedAt: string;
447
+ rejectedBy: {
448
+ name: string;
449
+ id: string;
450
+ };
451
+ rejectRemark: string;
452
+ }[] | null | undefined;
453
+ closingAdjustmentId?: string | null | undefined;
454
+ closingId?: string | null | undefined;
455
+ status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
456
+ _id: string;
457
+ items: {
458
+ remark?: string | null | undefined;
459
+ sku: {
460
+ trackingMeasurement?: string | null | undefined;
461
+ convert?: {
462
+ measurement?: string | null | undefined;
463
+ inventoryBindings?: {
464
+ measurement?: {
465
+ id: string;
466
+ name: string;
467
+ abbrev: string;
468
+ conversion: {
469
+ amount: number;
470
+ precision: number;
471
+ };
472
+ } | null | undefined;
473
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
474
+ amount: {
475
+ amount: number;
476
+ precision: number;
477
+ };
478
+ id: string;
479
+ }[] | null | undefined;
480
+ } | null | undefined;
481
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
482
+ defaultCost?: {
483
+ measurement?: {
484
+ id: string;
485
+ name: string;
486
+ abbrev: string;
487
+ conversion: {
488
+ amount: number;
489
+ precision: number;
490
+ };
491
+ } | null | undefined;
492
+ costPerUnit: {
493
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
494
+ amount: number;
495
+ precision: number;
496
+ };
497
+ } | null | undefined;
498
+ thresholds?: {
499
+ low: number;
500
+ mid: number;
501
+ } | null | undefined;
502
+ operationalGroup?: string | null | undefined;
503
+ unit: {
504
+ _id: string;
505
+ name: string;
506
+ abbrev: string;
507
+ precision: number;
508
+ measurements: {
509
+ id: string;
510
+ name: string;
511
+ abbrev: string;
512
+ conversion: {
513
+ amount: number;
514
+ precision: number;
515
+ };
516
+ }[];
517
+ };
518
+ code: string;
519
+ _id: string;
520
+ name: string;
521
+ };
522
+ baseAmount: {
523
+ amount: number;
524
+ precision: number;
525
+ };
526
+ measurementsAmounts: {
527
+ amount: {
528
+ amount: number;
529
+ precision: number;
530
+ };
531
+ measurement: {
532
+ id: string;
533
+ name: string;
534
+ abbrev: string;
535
+ conversion: {
536
+ amount: number;
537
+ precision: number;
538
+ };
539
+ };
540
+ }[];
541
+ }[];
542
+ createdBy: {
543
+ name: string;
544
+ id: string;
545
+ };
546
+ createdAt: string;
547
+ updatedAt: string;
548
+ updatedBy: {
549
+ name: string;
550
+ id: string;
551
+ };
552
+ usingTemplates: {
553
+ ref?: string | null | undefined;
554
+ _rev?: string | null | undefined;
555
+ updatedAt?: Date | null | undefined;
556
+ locations?: {
557
+ type: "restaurant" | "warehouse";
558
+ name: string;
559
+ acceptRequest: boolean;
560
+ dbName: string;
561
+ doc: {
562
+ _id: string;
563
+ businessId: string;
564
+ profile: {
565
+ code?: string | null | undefined;
566
+ _id?: string | null | undefined;
567
+ name?: string | undefined;
568
+ address?: {
569
+ coordinates?: number[] | null | undefined;
570
+ line2?: string | null | undefined;
571
+ state: string;
572
+ country: string;
573
+ line1: string;
574
+ city: string;
575
+ postcode: string;
576
+ } | undefined;
577
+ email?: string | undefined;
578
+ regNo?: string | undefined;
579
+ sstRegNo?: string | null | undefined;
580
+ phoneNo?: string | undefined;
581
+ legalName?: string | null | undefined;
582
+ discovery?: boolean | null | undefined;
583
+ coverPhoto?: string | null | undefined;
584
+ thumbnailPhoto?: string | null | undefined;
585
+ description?: string | null | undefined;
586
+ photos?: string[] | null | undefined;
587
+ operatingHours?: {
588
+ 0: {
589
+ hours: {
590
+ end: string;
591
+ start: string;
592
+ }[];
593
+ enable: boolean;
594
+ };
595
+ 2: {
596
+ hours: {
597
+ end: string;
598
+ start: string;
599
+ }[];
600
+ enable: boolean;
601
+ };
602
+ 1: {
603
+ hours: {
604
+ end: string;
605
+ start: string;
606
+ }[];
607
+ enable: boolean;
608
+ };
609
+ 3: {
610
+ hours: {
611
+ end: string;
612
+ start: string;
613
+ }[];
614
+ enable: boolean;
615
+ };
616
+ 4: {
617
+ hours: {
618
+ end: string;
619
+ start: string;
620
+ }[];
621
+ enable: boolean;
622
+ };
623
+ 5: {
624
+ hours: {
625
+ end: string;
626
+ start: string;
627
+ }[];
628
+ enable: boolean;
629
+ };
630
+ 6: {
631
+ hours: {
632
+ end: string;
633
+ start: string;
634
+ }[];
635
+ enable: boolean;
636
+ };
637
+ } | null | undefined;
638
+ tags?: string[] | null | undefined;
639
+ url?: string | null | undefined;
640
+ };
641
+ };
642
+ }[] | null | undefined;
643
+ updatedBy?: {
644
+ name: string;
645
+ id: string;
646
+ } | null | undefined;
647
+ _id: string;
648
+ name: string;
649
+ }[];
650
+ } & RevisionIdMeta)[] | {
651
+ remark?: string | null | undefined;
652
+ _rev: string;
653
+ effectiveAt?: string | null | undefined;
654
+ approvedAt?: string | null | undefined;
655
+ approvedBy?: {
656
+ name: string;
657
+ id: string;
658
+ } | null | undefined;
659
+ approveRemark?: string | null | undefined;
660
+ rejectionHistory?: {
661
+ rejectedAt: string;
662
+ rejectedBy: {
663
+ name: string;
664
+ id: string;
665
+ };
666
+ rejectRemark: string;
667
+ }[] | null | undefined;
668
+ closingAdjustmentId?: string | null | undefined;
669
+ closingId?: string | null | undefined;
670
+ status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
671
+ _id: string;
672
+ items: {
673
+ remark?: string | null | undefined;
674
+ sku: {
675
+ trackingMeasurement?: string | null | undefined;
676
+ convert?: {
677
+ measurement?: string | null | undefined;
678
+ inventoryBindings?: {
679
+ measurement?: {
680
+ id: string;
681
+ name: string;
682
+ abbrev: string;
683
+ conversion: {
684
+ amount: number;
685
+ precision: number;
686
+ };
687
+ } | null | undefined;
688
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
689
+ amount: {
690
+ amount: number;
691
+ precision: number;
692
+ };
693
+ id: string;
694
+ }[] | null | undefined;
695
+ } | null | undefined;
696
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
697
+ defaultCost?: {
698
+ measurement?: {
699
+ id: string;
700
+ name: string;
701
+ abbrev: string;
702
+ conversion: {
703
+ amount: number;
704
+ precision: number;
705
+ };
706
+ } | null | undefined;
707
+ costPerUnit: {
708
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
709
+ amount: number;
710
+ precision: number;
711
+ };
712
+ } | null | undefined;
713
+ thresholds?: {
714
+ low: number;
715
+ mid: number;
716
+ } | null | undefined;
717
+ operationalGroup?: string | null | undefined;
718
+ unit: {
719
+ _id: string;
720
+ name: string;
721
+ abbrev: string;
722
+ precision: number;
723
+ measurements: {
724
+ id: string;
725
+ name: string;
726
+ abbrev: string;
727
+ conversion: {
728
+ amount: number;
729
+ precision: number;
730
+ };
731
+ }[];
732
+ };
733
+ code: string;
734
+ _id: string;
735
+ name: string;
736
+ };
737
+ baseAmount: {
738
+ amount: number;
739
+ precision: number;
740
+ };
741
+ measurementsAmounts: {
742
+ amount: {
743
+ amount: number;
744
+ precision: number;
745
+ };
746
+ measurement: {
747
+ id: string;
748
+ name: string;
749
+ abbrev: string;
750
+ conversion: {
751
+ amount: number;
752
+ precision: number;
753
+ };
754
+ };
755
+ }[];
756
+ }[];
757
+ createdBy: {
758
+ name: string;
759
+ id: string;
760
+ };
761
+ createdAt: string;
762
+ updatedAt: string;
763
+ updatedBy: {
764
+ name: string;
765
+ id: string;
766
+ };
767
+ usingTemplates: {
768
+ ref?: string | null | undefined;
769
+ _rev?: string | null | undefined;
770
+ updatedAt?: Date | null | undefined;
771
+ locations?: {
772
+ type: "restaurant" | "warehouse";
773
+ name: string;
774
+ acceptRequest: boolean;
775
+ dbName: string;
776
+ doc: {
777
+ _id: string;
778
+ businessId: string;
779
+ profile: {
780
+ code?: string | null | undefined;
781
+ _id?: string | null | undefined;
782
+ name?: string | undefined;
783
+ address?: {
784
+ coordinates?: number[] | null | undefined;
785
+ line2?: string | null | undefined;
786
+ state: string;
787
+ country: string;
788
+ line1: string;
789
+ city: string;
790
+ postcode: string;
791
+ } | undefined;
792
+ email?: string | undefined;
793
+ regNo?: string | undefined;
794
+ sstRegNo?: string | null | undefined;
795
+ phoneNo?: string | undefined;
796
+ legalName?: string | null | undefined;
797
+ discovery?: boolean | null | undefined;
798
+ coverPhoto?: string | null | undefined;
799
+ thumbnailPhoto?: string | null | undefined;
800
+ description?: string | null | undefined;
801
+ photos?: string[] | null | undefined;
802
+ operatingHours?: {
803
+ 0: {
804
+ hours: {
805
+ end: string;
806
+ start: string;
807
+ }[];
808
+ enable: boolean;
809
+ };
810
+ 2: {
811
+ hours: {
812
+ end: string;
813
+ start: string;
814
+ }[];
815
+ enable: boolean;
816
+ };
817
+ 1: {
818
+ hours: {
819
+ end: string;
820
+ start: string;
821
+ }[];
822
+ enable: boolean;
823
+ };
824
+ 3: {
825
+ hours: {
826
+ end: string;
827
+ start: string;
828
+ }[];
829
+ enable: boolean;
830
+ };
831
+ 4: {
832
+ hours: {
833
+ end: string;
834
+ start: string;
835
+ }[];
836
+ enable: boolean;
837
+ };
838
+ 5: {
839
+ hours: {
840
+ end: string;
841
+ start: string;
842
+ }[];
843
+ enable: boolean;
844
+ };
845
+ 6: {
846
+ hours: {
847
+ end: string;
848
+ start: string;
849
+ }[];
850
+ enable: boolean;
851
+ };
852
+ } | null | undefined;
853
+ tags?: string[] | null | undefined;
854
+ url?: string | null | undefined;
855
+ };
856
+ };
857
+ }[] | null | undefined;
858
+ updatedBy?: {
859
+ name: string;
860
+ id: string;
861
+ } | null | undefined;
862
+ _id: string;
863
+ name: string;
864
+ }[];
865
+ }[]>;
866
+ loading: import("vue").Ref<boolean, boolean>;
867
+ fetchDrafts: () => Promise<void>;
868
+ loadDraft: (draftId: string) => Promise<void>;
869
+ }, "loading" | "columnDefs" | "drafts">>, Pick<{
870
+ columnDefs: ColumnDef<{
871
+ remark?: string | null | undefined;
872
+ _rev?: string | null | undefined;
873
+ effectiveAt?: string | null | undefined;
874
+ approvedAt?: string | null | undefined;
875
+ approvedBy?: {
876
+ name: string;
877
+ id: string;
878
+ } | null | undefined;
879
+ approveRemark?: string | null | undefined;
880
+ rejectionHistory?: {
881
+ rejectedAt: string;
882
+ rejectedBy: {
883
+ name: string;
884
+ id: string;
885
+ };
886
+ rejectRemark: string;
887
+ }[] | null | undefined;
888
+ closingAdjustmentId?: string | null | undefined;
889
+ closingId?: string | null | undefined;
890
+ status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
891
+ _id: string;
892
+ items: {
893
+ remark?: string | null | undefined;
894
+ sku: {
895
+ trackingMeasurement?: string | null | undefined;
896
+ convert?: {
897
+ measurement?: string | null | undefined;
898
+ inventoryBindings?: {
899
+ measurement?: {
900
+ id: string;
901
+ name: string;
902
+ abbrev: string;
903
+ conversion: {
904
+ amount: number;
905
+ precision: number;
906
+ };
907
+ } | null | undefined;
908
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
909
+ amount: {
910
+ amount: number;
911
+ precision: number;
912
+ };
913
+ id: string;
914
+ }[] | null | undefined;
915
+ } | null | undefined;
916
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
917
+ defaultCost?: {
918
+ measurement?: {
919
+ id: string;
920
+ name: string;
921
+ abbrev: string;
922
+ conversion: {
923
+ amount: number;
924
+ precision: number;
925
+ };
926
+ } | null | undefined;
927
+ costPerUnit: {
928
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
929
+ amount: number;
930
+ precision: number;
931
+ };
932
+ } | null | undefined;
933
+ thresholds?: {
934
+ low: number;
935
+ mid: number;
936
+ } | null | undefined;
937
+ operationalGroup?: string | null | undefined;
938
+ unit: {
939
+ _id: string;
940
+ name: string;
941
+ abbrev: string;
942
+ precision: number;
943
+ measurements: {
944
+ id: string;
945
+ name: string;
946
+ abbrev: string;
947
+ conversion: {
948
+ amount: number;
949
+ precision: number;
950
+ };
951
+ }[];
952
+ };
953
+ code: string;
954
+ _id: string;
955
+ name: string;
956
+ };
957
+ baseAmount: {
958
+ amount: number;
959
+ precision: number;
960
+ };
961
+ measurementsAmounts: {
962
+ amount: {
963
+ amount: number;
964
+ precision: number;
965
+ };
966
+ measurement: {
967
+ id: string;
968
+ name: string;
969
+ abbrev: string;
970
+ conversion: {
971
+ amount: number;
972
+ precision: number;
973
+ };
974
+ };
975
+ }[];
976
+ }[];
977
+ createdBy: {
978
+ name: string;
979
+ id: string;
980
+ };
981
+ createdAt: string;
982
+ updatedAt: string;
983
+ updatedBy: {
984
+ name: string;
985
+ id: string;
986
+ };
987
+ usingTemplates: {
988
+ ref?: string | null | undefined;
989
+ _rev?: string | null | undefined;
990
+ updatedAt?: Date | null | undefined;
991
+ locations?: {
992
+ type: "restaurant" | "warehouse";
993
+ name: string;
994
+ acceptRequest: boolean;
995
+ dbName: string;
996
+ doc: {
997
+ _id: string;
998
+ businessId: string;
999
+ profile: {
1000
+ code?: string | null | undefined;
1001
+ _id?: string | null | undefined;
1002
+ name?: string | undefined;
1003
+ address?: {
1004
+ coordinates?: number[] | null | undefined;
1005
+ line2?: string | null | undefined;
1006
+ state: string;
1007
+ country: string;
1008
+ line1: string;
1009
+ city: string;
1010
+ postcode: string;
1011
+ } | undefined;
1012
+ email?: string | undefined;
1013
+ regNo?: string | undefined;
1014
+ sstRegNo?: string | null | undefined;
1015
+ phoneNo?: string | undefined;
1016
+ legalName?: string | null | undefined;
1017
+ discovery?: boolean | null | undefined;
1018
+ coverPhoto?: string | null | undefined;
1019
+ thumbnailPhoto?: string | null | undefined;
1020
+ description?: string | null | undefined;
1021
+ photos?: string[] | null | undefined;
1022
+ operatingHours?: {
1023
+ 0: {
1024
+ hours: {
1025
+ end: string;
1026
+ start: string;
1027
+ }[];
1028
+ enable: boolean;
1029
+ };
1030
+ 2: {
1031
+ hours: {
1032
+ end: string;
1033
+ start: string;
1034
+ }[];
1035
+ enable: boolean;
1036
+ };
1037
+ 1: {
1038
+ hours: {
1039
+ end: string;
1040
+ start: string;
1041
+ }[];
1042
+ enable: boolean;
1043
+ };
1044
+ 3: {
1045
+ hours: {
1046
+ end: string;
1047
+ start: string;
1048
+ }[];
1049
+ enable: boolean;
1050
+ };
1051
+ 4: {
1052
+ hours: {
1053
+ end: string;
1054
+ start: string;
1055
+ }[];
1056
+ enable: boolean;
1057
+ };
1058
+ 5: {
1059
+ hours: {
1060
+ end: string;
1061
+ start: string;
1062
+ }[];
1063
+ enable: boolean;
1064
+ };
1065
+ 6: {
1066
+ hours: {
1067
+ end: string;
1068
+ start: string;
1069
+ }[];
1070
+ enable: boolean;
1071
+ };
1072
+ } | null | undefined;
1073
+ tags?: string[] | null | undefined;
1074
+ url?: string | null | undefined;
1075
+ };
1076
+ };
1077
+ }[] | null | undefined;
1078
+ updatedBy?: {
1079
+ name: string;
1080
+ id: string;
1081
+ } | null | undefined;
1082
+ _id: string;
1083
+ name: string;
1084
+ }[];
1085
+ } & RevisionIdMeta>[];
1086
+ drafts: import("vue").Ref<{
1087
+ remark?: string | null | undefined;
1088
+ _rev: string;
1089
+ effectiveAt?: string | null | undefined;
1090
+ approvedAt?: string | null | undefined;
1091
+ approvedBy?: {
1092
+ name: string;
1093
+ id: string;
1094
+ } | null | undefined;
1095
+ approveRemark?: string | null | undefined;
1096
+ rejectionHistory?: {
1097
+ rejectedAt: string;
1098
+ rejectedBy: {
1099
+ name: string;
1100
+ id: string;
1101
+ };
1102
+ rejectRemark: string;
1103
+ }[] | null | undefined;
1104
+ closingAdjustmentId?: string | null | undefined;
1105
+ closingId?: string | null | undefined;
1106
+ status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
1107
+ _id: string;
1108
+ items: {
1109
+ remark?: string | null | undefined;
1110
+ sku: {
1111
+ trackingMeasurement?: string | null | undefined;
1112
+ convert?: {
1113
+ measurement?: string | null | undefined;
1114
+ inventoryBindings?: {
1115
+ measurement?: {
1116
+ id: string;
1117
+ name: string;
1118
+ abbrev: string;
1119
+ conversion: {
1120
+ amount: number;
1121
+ precision: number;
1122
+ };
1123
+ } | null | undefined;
1124
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1125
+ amount: {
1126
+ amount: number;
1127
+ precision: number;
1128
+ };
1129
+ id: string;
1130
+ }[] | null | undefined;
1131
+ } | null | undefined;
1132
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1133
+ defaultCost?: {
1134
+ measurement?: {
1135
+ id: string;
1136
+ name: string;
1137
+ abbrev: string;
1138
+ conversion: {
1139
+ amount: number;
1140
+ precision: number;
1141
+ };
1142
+ } | null | undefined;
1143
+ costPerUnit: {
1144
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
1145
+ amount: number;
1146
+ precision: number;
1147
+ };
1148
+ } | null | undefined;
1149
+ thresholds?: {
1150
+ low: number;
1151
+ mid: number;
1152
+ } | null | undefined;
1153
+ operationalGroup?: string | null | undefined;
1154
+ unit: {
1155
+ _id: string;
1156
+ name: string;
1157
+ abbrev: string;
1158
+ precision: number;
1159
+ measurements: {
1160
+ id: string;
1161
+ name: string;
1162
+ abbrev: string;
1163
+ conversion: {
1164
+ amount: number;
1165
+ precision: number;
1166
+ };
1167
+ }[];
1168
+ };
1169
+ code: string;
1170
+ _id: string;
1171
+ name: string;
1172
+ };
1173
+ baseAmount: {
1174
+ amount: number;
1175
+ precision: number;
1176
+ };
1177
+ measurementsAmounts: {
1178
+ amount: {
1179
+ amount: number;
1180
+ precision: number;
1181
+ };
1182
+ measurement: {
1183
+ id: string;
1184
+ name: string;
1185
+ abbrev: string;
1186
+ conversion: {
1187
+ amount: number;
1188
+ precision: number;
1189
+ };
1190
+ };
1191
+ }[];
1192
+ }[];
1193
+ createdBy: {
1194
+ name: string;
1195
+ id: string;
1196
+ };
1197
+ createdAt: string;
1198
+ updatedAt: string;
1199
+ updatedBy: {
1200
+ name: string;
1201
+ id: string;
1202
+ };
1203
+ usingTemplates: {
1204
+ ref?: string | null | undefined;
1205
+ _rev?: string | null | undefined;
1206
+ updatedAt?: Date | null | undefined;
1207
+ locations?: {
1208
+ type: "restaurant" | "warehouse";
1209
+ name: string;
1210
+ acceptRequest: boolean;
1211
+ dbName: string;
1212
+ doc: {
1213
+ _id: string;
1214
+ businessId: string;
1215
+ profile: {
1216
+ code?: string | null | undefined;
1217
+ _id?: string | null | undefined;
1218
+ name?: string | undefined;
1219
+ address?: {
1220
+ coordinates?: number[] | null | undefined;
1221
+ line2?: string | null | undefined;
1222
+ state: string;
1223
+ country: string;
1224
+ line1: string;
1225
+ city: string;
1226
+ postcode: string;
1227
+ } | undefined;
1228
+ email?: string | undefined;
1229
+ regNo?: string | undefined;
1230
+ sstRegNo?: string | null | undefined;
1231
+ phoneNo?: string | undefined;
1232
+ legalName?: string | null | undefined;
1233
+ discovery?: boolean | null | undefined;
1234
+ coverPhoto?: string | null | undefined;
1235
+ thumbnailPhoto?: string | null | undefined;
1236
+ description?: string | null | undefined;
1237
+ photos?: string[] | null | undefined;
1238
+ operatingHours?: {
1239
+ 0: {
1240
+ hours: {
1241
+ end: string;
1242
+ start: string;
1243
+ }[];
1244
+ enable: boolean;
1245
+ };
1246
+ 2: {
1247
+ hours: {
1248
+ end: string;
1249
+ start: string;
1250
+ }[];
1251
+ enable: boolean;
1252
+ };
1253
+ 1: {
1254
+ hours: {
1255
+ end: string;
1256
+ start: string;
1257
+ }[];
1258
+ enable: boolean;
1259
+ };
1260
+ 3: {
1261
+ hours: {
1262
+ end: string;
1263
+ start: string;
1264
+ }[];
1265
+ enable: boolean;
1266
+ };
1267
+ 4: {
1268
+ hours: {
1269
+ end: string;
1270
+ start: string;
1271
+ }[];
1272
+ enable: boolean;
1273
+ };
1274
+ 5: {
1275
+ hours: {
1276
+ end: string;
1277
+ start: string;
1278
+ }[];
1279
+ enable: boolean;
1280
+ };
1281
+ 6: {
1282
+ hours: {
1283
+ end: string;
1284
+ start: string;
1285
+ }[];
1286
+ enable: boolean;
1287
+ };
1288
+ } | null | undefined;
1289
+ tags?: string[] | null | undefined;
1290
+ url?: string | null | undefined;
1291
+ };
1292
+ };
1293
+ }[] | null | undefined;
1294
+ updatedBy?: {
1295
+ name: string;
1296
+ id: string;
1297
+ } | null | undefined;
1298
+ _id: string;
1299
+ name: string;
1300
+ }[];
1301
+ }[], ({
1302
+ remark?: string | null | undefined;
1303
+ _rev?: string | null | undefined;
1304
+ effectiveAt?: string | null | undefined;
1305
+ approvedAt?: string | null | undefined;
1306
+ approvedBy?: {
1307
+ name: string;
1308
+ id: string;
1309
+ } | null | undefined;
1310
+ approveRemark?: string | null | undefined;
1311
+ rejectionHistory?: {
1312
+ rejectedAt: string;
1313
+ rejectedBy: {
1314
+ name: string;
1315
+ id: string;
1316
+ };
1317
+ rejectRemark: string;
1318
+ }[] | null | undefined;
1319
+ closingAdjustmentId?: string | null | undefined;
1320
+ closingId?: string | null | undefined;
1321
+ status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
1322
+ _id: string;
1323
+ items: {
1324
+ remark?: string | null | undefined;
1325
+ sku: {
1326
+ trackingMeasurement?: string | null | undefined;
1327
+ convert?: {
1328
+ measurement?: string | null | undefined;
1329
+ inventoryBindings?: {
1330
+ measurement?: {
1331
+ id: string;
1332
+ name: string;
1333
+ abbrev: string;
1334
+ conversion: {
1335
+ amount: number;
1336
+ precision: number;
1337
+ };
1338
+ } | null | undefined;
1339
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1340
+ amount: {
1341
+ amount: number;
1342
+ precision: number;
1343
+ };
1344
+ id: string;
1345
+ }[] | null | undefined;
1346
+ } | null | undefined;
1347
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1348
+ defaultCost?: {
1349
+ measurement?: {
1350
+ id: string;
1351
+ name: string;
1352
+ abbrev: string;
1353
+ conversion: {
1354
+ amount: number;
1355
+ precision: number;
1356
+ };
1357
+ } | null | undefined;
1358
+ costPerUnit: {
1359
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
1360
+ amount: number;
1361
+ precision: number;
1362
+ };
1363
+ } | null | undefined;
1364
+ thresholds?: {
1365
+ low: number;
1366
+ mid: number;
1367
+ } | null | undefined;
1368
+ operationalGroup?: string | null | undefined;
1369
+ unit: {
1370
+ _id: string;
1371
+ name: string;
1372
+ abbrev: string;
1373
+ precision: number;
1374
+ measurements: {
1375
+ id: string;
1376
+ name: string;
1377
+ abbrev: string;
1378
+ conversion: {
1379
+ amount: number;
1380
+ precision: number;
1381
+ };
1382
+ }[];
1383
+ };
1384
+ code: string;
1385
+ _id: string;
1386
+ name: string;
1387
+ };
1388
+ baseAmount: {
1389
+ amount: number;
1390
+ precision: number;
1391
+ };
1392
+ measurementsAmounts: {
1393
+ amount: {
1394
+ amount: number;
1395
+ precision: number;
1396
+ };
1397
+ measurement: {
1398
+ id: string;
1399
+ name: string;
1400
+ abbrev: string;
1401
+ conversion: {
1402
+ amount: number;
1403
+ precision: number;
1404
+ };
1405
+ };
1406
+ }[];
1407
+ }[];
1408
+ createdBy: {
1409
+ name: string;
1410
+ id: string;
1411
+ };
1412
+ createdAt: string;
1413
+ updatedAt: string;
1414
+ updatedBy: {
1415
+ name: string;
1416
+ id: string;
1417
+ };
1418
+ usingTemplates: {
1419
+ ref?: string | null | undefined;
1420
+ _rev?: string | null | undefined;
1421
+ updatedAt?: Date | null | undefined;
1422
+ locations?: {
1423
+ type: "restaurant" | "warehouse";
1424
+ name: string;
1425
+ acceptRequest: boolean;
1426
+ dbName: string;
1427
+ doc: {
1428
+ _id: string;
1429
+ businessId: string;
1430
+ profile: {
1431
+ code?: string | null | undefined;
1432
+ _id?: string | null | undefined;
1433
+ name?: string | undefined;
1434
+ address?: {
1435
+ coordinates?: number[] | null | undefined;
1436
+ line2?: string | null | undefined;
1437
+ state: string;
1438
+ country: string;
1439
+ line1: string;
1440
+ city: string;
1441
+ postcode: string;
1442
+ } | undefined;
1443
+ email?: string | undefined;
1444
+ regNo?: string | undefined;
1445
+ sstRegNo?: string | null | undefined;
1446
+ phoneNo?: string | undefined;
1447
+ legalName?: string | null | undefined;
1448
+ discovery?: boolean | null | undefined;
1449
+ coverPhoto?: string | null | undefined;
1450
+ thumbnailPhoto?: string | null | undefined;
1451
+ description?: string | null | undefined;
1452
+ photos?: string[] | null | undefined;
1453
+ operatingHours?: {
1454
+ 0: {
1455
+ hours: {
1456
+ end: string;
1457
+ start: string;
1458
+ }[];
1459
+ enable: boolean;
1460
+ };
1461
+ 2: {
1462
+ hours: {
1463
+ end: string;
1464
+ start: string;
1465
+ }[];
1466
+ enable: boolean;
1467
+ };
1468
+ 1: {
1469
+ hours: {
1470
+ end: string;
1471
+ start: string;
1472
+ }[];
1473
+ enable: boolean;
1474
+ };
1475
+ 3: {
1476
+ hours: {
1477
+ end: string;
1478
+ start: string;
1479
+ }[];
1480
+ enable: boolean;
1481
+ };
1482
+ 4: {
1483
+ hours: {
1484
+ end: string;
1485
+ start: string;
1486
+ }[];
1487
+ enable: boolean;
1488
+ };
1489
+ 5: {
1490
+ hours: {
1491
+ end: string;
1492
+ start: string;
1493
+ }[];
1494
+ enable: boolean;
1495
+ };
1496
+ 6: {
1497
+ hours: {
1498
+ end: string;
1499
+ start: string;
1500
+ }[];
1501
+ enable: boolean;
1502
+ };
1503
+ } | null | undefined;
1504
+ tags?: string[] | null | undefined;
1505
+ url?: string | null | undefined;
1506
+ };
1507
+ };
1508
+ }[] | null | undefined;
1509
+ updatedBy?: {
1510
+ name: string;
1511
+ id: string;
1512
+ } | null | undefined;
1513
+ _id: string;
1514
+ name: string;
1515
+ }[];
1516
+ } & RevisionIdMeta)[] | {
1517
+ remark?: string | null | undefined;
1518
+ _rev: string;
1519
+ effectiveAt?: string | null | undefined;
1520
+ approvedAt?: string | null | undefined;
1521
+ approvedBy?: {
1522
+ name: string;
1523
+ id: string;
1524
+ } | null | undefined;
1525
+ approveRemark?: string | null | undefined;
1526
+ rejectionHistory?: {
1527
+ rejectedAt: string;
1528
+ rejectedBy: {
1529
+ name: string;
1530
+ id: string;
1531
+ };
1532
+ rejectRemark: string;
1533
+ }[] | null | undefined;
1534
+ closingAdjustmentId?: string | null | undefined;
1535
+ closingId?: string | null | undefined;
1536
+ status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
1537
+ _id: string;
1538
+ items: {
1539
+ remark?: string | null | undefined;
1540
+ sku: {
1541
+ trackingMeasurement?: string | null | undefined;
1542
+ convert?: {
1543
+ measurement?: string | null | undefined;
1544
+ inventoryBindings?: {
1545
+ measurement?: {
1546
+ id: string;
1547
+ name: string;
1548
+ abbrev: string;
1549
+ conversion: {
1550
+ amount: number;
1551
+ precision: number;
1552
+ };
1553
+ } | null | undefined;
1554
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1555
+ amount: {
1556
+ amount: number;
1557
+ precision: number;
1558
+ };
1559
+ id: string;
1560
+ }[] | null | undefined;
1561
+ } | null | undefined;
1562
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1563
+ defaultCost?: {
1564
+ measurement?: {
1565
+ id: string;
1566
+ name: string;
1567
+ abbrev: string;
1568
+ conversion: {
1569
+ amount: number;
1570
+ precision: number;
1571
+ };
1572
+ } | null | undefined;
1573
+ costPerUnit: {
1574
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
1575
+ amount: number;
1576
+ precision: number;
1577
+ };
1578
+ } | null | undefined;
1579
+ thresholds?: {
1580
+ low: number;
1581
+ mid: number;
1582
+ } | null | undefined;
1583
+ operationalGroup?: string | null | undefined;
1584
+ unit: {
1585
+ _id: string;
1586
+ name: string;
1587
+ abbrev: string;
1588
+ precision: number;
1589
+ measurements: {
1590
+ id: string;
1591
+ name: string;
1592
+ abbrev: string;
1593
+ conversion: {
1594
+ amount: number;
1595
+ precision: number;
1596
+ };
1597
+ }[];
1598
+ };
1599
+ code: string;
1600
+ _id: string;
1601
+ name: string;
1602
+ };
1603
+ baseAmount: {
1604
+ amount: number;
1605
+ precision: number;
1606
+ };
1607
+ measurementsAmounts: {
1608
+ amount: {
1609
+ amount: number;
1610
+ precision: number;
1611
+ };
1612
+ measurement: {
1613
+ id: string;
1614
+ name: string;
1615
+ abbrev: string;
1616
+ conversion: {
1617
+ amount: number;
1618
+ precision: number;
1619
+ };
1620
+ };
1621
+ }[];
1622
+ }[];
1623
+ createdBy: {
1624
+ name: string;
1625
+ id: string;
1626
+ };
1627
+ createdAt: string;
1628
+ updatedAt: string;
1629
+ updatedBy: {
1630
+ name: string;
1631
+ id: string;
1632
+ };
1633
+ usingTemplates: {
1634
+ ref?: string | null | undefined;
1635
+ _rev?: string | null | undefined;
1636
+ updatedAt?: Date | null | undefined;
1637
+ locations?: {
1638
+ type: "restaurant" | "warehouse";
1639
+ name: string;
1640
+ acceptRequest: boolean;
1641
+ dbName: string;
1642
+ doc: {
1643
+ _id: string;
1644
+ businessId: string;
1645
+ profile: {
1646
+ code?: string | null | undefined;
1647
+ _id?: string | null | undefined;
1648
+ name?: string | undefined;
1649
+ address?: {
1650
+ coordinates?: number[] | null | undefined;
1651
+ line2?: string | null | undefined;
1652
+ state: string;
1653
+ country: string;
1654
+ line1: string;
1655
+ city: string;
1656
+ postcode: string;
1657
+ } | undefined;
1658
+ email?: string | undefined;
1659
+ regNo?: string | undefined;
1660
+ sstRegNo?: string | null | undefined;
1661
+ phoneNo?: string | undefined;
1662
+ legalName?: string | null | undefined;
1663
+ discovery?: boolean | null | undefined;
1664
+ coverPhoto?: string | null | undefined;
1665
+ thumbnailPhoto?: string | null | undefined;
1666
+ description?: string | null | undefined;
1667
+ photos?: string[] | null | undefined;
1668
+ operatingHours?: {
1669
+ 0: {
1670
+ hours: {
1671
+ end: string;
1672
+ start: string;
1673
+ }[];
1674
+ enable: boolean;
1675
+ };
1676
+ 2: {
1677
+ hours: {
1678
+ end: string;
1679
+ start: string;
1680
+ }[];
1681
+ enable: boolean;
1682
+ };
1683
+ 1: {
1684
+ hours: {
1685
+ end: string;
1686
+ start: string;
1687
+ }[];
1688
+ enable: boolean;
1689
+ };
1690
+ 3: {
1691
+ hours: {
1692
+ end: string;
1693
+ start: string;
1694
+ }[];
1695
+ enable: boolean;
1696
+ };
1697
+ 4: {
1698
+ hours: {
1699
+ end: string;
1700
+ start: string;
1701
+ }[];
1702
+ enable: boolean;
1703
+ };
1704
+ 5: {
1705
+ hours: {
1706
+ end: string;
1707
+ start: string;
1708
+ }[];
1709
+ enable: boolean;
1710
+ };
1711
+ 6: {
1712
+ hours: {
1713
+ end: string;
1714
+ start: string;
1715
+ }[];
1716
+ enable: boolean;
1717
+ };
1718
+ } | null | undefined;
1719
+ tags?: string[] | null | undefined;
1720
+ url?: string | null | undefined;
1721
+ };
1722
+ };
1723
+ }[] | null | undefined;
1724
+ updatedBy?: {
1725
+ name: string;
1726
+ id: string;
1727
+ } | null | undefined;
1728
+ _id: string;
1729
+ name: string;
1730
+ }[];
1731
+ }[]>;
1732
+ loading: import("vue").Ref<boolean, boolean>;
1733
+ fetchDrafts: () => Promise<void>;
1734
+ loadDraft: (draftId: string) => Promise<void>;
1735
+ }, never>, Pick<{
1736
+ columnDefs: ColumnDef<{
1737
+ remark?: string | null | undefined;
1738
+ _rev?: string | null | undefined;
1739
+ effectiveAt?: string | null | undefined;
1740
+ approvedAt?: string | null | undefined;
1741
+ approvedBy?: {
1742
+ name: string;
1743
+ id: string;
1744
+ } | null | undefined;
1745
+ approveRemark?: string | null | undefined;
1746
+ rejectionHistory?: {
1747
+ rejectedAt: string;
1748
+ rejectedBy: {
1749
+ name: string;
1750
+ id: string;
1751
+ };
1752
+ rejectRemark: string;
1753
+ }[] | null | undefined;
1754
+ closingAdjustmentId?: string | null | undefined;
1755
+ closingId?: string | null | undefined;
1756
+ status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
1757
+ _id: string;
1758
+ items: {
1759
+ remark?: string | null | undefined;
1760
+ sku: {
1761
+ trackingMeasurement?: string | null | undefined;
1762
+ convert?: {
1763
+ measurement?: string | null | undefined;
1764
+ inventoryBindings?: {
1765
+ measurement?: {
1766
+ id: string;
1767
+ name: string;
1768
+ abbrev: string;
1769
+ conversion: {
1770
+ amount: number;
1771
+ precision: number;
1772
+ };
1773
+ } | null | undefined;
1774
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1775
+ amount: {
1776
+ amount: number;
1777
+ precision: number;
1778
+ };
1779
+ id: string;
1780
+ }[] | null | undefined;
1781
+ } | null | undefined;
1782
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1783
+ defaultCost?: {
1784
+ measurement?: {
1785
+ id: string;
1786
+ name: string;
1787
+ abbrev: string;
1788
+ conversion: {
1789
+ amount: number;
1790
+ precision: number;
1791
+ };
1792
+ } | null | undefined;
1793
+ costPerUnit: {
1794
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
1795
+ amount: number;
1796
+ precision: number;
1797
+ };
1798
+ } | null | undefined;
1799
+ thresholds?: {
1800
+ low: number;
1801
+ mid: number;
1802
+ } | null | undefined;
1803
+ operationalGroup?: string | null | undefined;
1804
+ unit: {
1805
+ _id: string;
1806
+ name: string;
1807
+ abbrev: string;
1808
+ precision: number;
1809
+ measurements: {
1810
+ id: string;
1811
+ name: string;
1812
+ abbrev: string;
1813
+ conversion: {
1814
+ amount: number;
1815
+ precision: number;
1816
+ };
1817
+ }[];
1818
+ };
1819
+ code: string;
1820
+ _id: string;
1821
+ name: string;
1822
+ };
1823
+ baseAmount: {
1824
+ amount: number;
1825
+ precision: number;
1826
+ };
1827
+ measurementsAmounts: {
1828
+ amount: {
1829
+ amount: number;
1830
+ precision: number;
1831
+ };
1832
+ measurement: {
1833
+ id: string;
1834
+ name: string;
1835
+ abbrev: string;
1836
+ conversion: {
1837
+ amount: number;
1838
+ precision: number;
1839
+ };
1840
+ };
1841
+ }[];
1842
+ }[];
1843
+ createdBy: {
1844
+ name: string;
1845
+ id: string;
1846
+ };
1847
+ createdAt: string;
1848
+ updatedAt: string;
1849
+ updatedBy: {
1850
+ name: string;
1851
+ id: string;
1852
+ };
1853
+ usingTemplates: {
1854
+ ref?: string | null | undefined;
1855
+ _rev?: string | null | undefined;
1856
+ updatedAt?: Date | null | undefined;
1857
+ locations?: {
1858
+ type: "restaurant" | "warehouse";
1859
+ name: string;
1860
+ acceptRequest: boolean;
1861
+ dbName: string;
1862
+ doc: {
1863
+ _id: string;
1864
+ businessId: string;
1865
+ profile: {
1866
+ code?: string | null | undefined;
1867
+ _id?: string | null | undefined;
1868
+ name?: string | undefined;
1869
+ address?: {
1870
+ coordinates?: number[] | null | undefined;
1871
+ line2?: string | null | undefined;
1872
+ state: string;
1873
+ country: string;
1874
+ line1: string;
1875
+ city: string;
1876
+ postcode: string;
1877
+ } | undefined;
1878
+ email?: string | undefined;
1879
+ regNo?: string | undefined;
1880
+ sstRegNo?: string | null | undefined;
1881
+ phoneNo?: string | undefined;
1882
+ legalName?: string | null | undefined;
1883
+ discovery?: boolean | null | undefined;
1884
+ coverPhoto?: string | null | undefined;
1885
+ thumbnailPhoto?: string | null | undefined;
1886
+ description?: string | null | undefined;
1887
+ photos?: string[] | null | undefined;
1888
+ operatingHours?: {
1889
+ 0: {
1890
+ hours: {
1891
+ end: string;
1892
+ start: string;
1893
+ }[];
1894
+ enable: boolean;
1895
+ };
1896
+ 2: {
1897
+ hours: {
1898
+ end: string;
1899
+ start: string;
1900
+ }[];
1901
+ enable: boolean;
1902
+ };
1903
+ 1: {
1904
+ hours: {
1905
+ end: string;
1906
+ start: string;
1907
+ }[];
1908
+ enable: boolean;
1909
+ };
1910
+ 3: {
1911
+ hours: {
1912
+ end: string;
1913
+ start: string;
1914
+ }[];
1915
+ enable: boolean;
1916
+ };
1917
+ 4: {
1918
+ hours: {
1919
+ end: string;
1920
+ start: string;
1921
+ }[];
1922
+ enable: boolean;
1923
+ };
1924
+ 5: {
1925
+ hours: {
1926
+ end: string;
1927
+ start: string;
1928
+ }[];
1929
+ enable: boolean;
1930
+ };
1931
+ 6: {
1932
+ hours: {
1933
+ end: string;
1934
+ start: string;
1935
+ }[];
1936
+ enable: boolean;
1937
+ };
1938
+ } | null | undefined;
1939
+ tags?: string[] | null | undefined;
1940
+ url?: string | null | undefined;
1941
+ };
1942
+ };
1943
+ }[] | null | undefined;
1944
+ updatedBy?: {
1945
+ name: string;
1946
+ id: string;
1947
+ } | null | undefined;
1948
+ _id: string;
1949
+ name: string;
1950
+ }[];
1951
+ } & RevisionIdMeta>[];
1952
+ drafts: import("vue").Ref<{
1953
+ remark?: string | null | undefined;
1954
+ _rev: string;
1955
+ effectiveAt?: string | null | undefined;
1956
+ approvedAt?: string | null | undefined;
1957
+ approvedBy?: {
1958
+ name: string;
1959
+ id: string;
1960
+ } | null | undefined;
1961
+ approveRemark?: string | null | undefined;
1962
+ rejectionHistory?: {
1963
+ rejectedAt: string;
1964
+ rejectedBy: {
1965
+ name: string;
1966
+ id: string;
1967
+ };
1968
+ rejectRemark: string;
1969
+ }[] | null | undefined;
1970
+ closingAdjustmentId?: string | null | undefined;
1971
+ closingId?: string | null | undefined;
1972
+ status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
1973
+ _id: string;
1974
+ items: {
1975
+ remark?: string | null | undefined;
1976
+ sku: {
1977
+ trackingMeasurement?: string | null | undefined;
1978
+ convert?: {
1979
+ measurement?: string | null | undefined;
1980
+ inventoryBindings?: {
1981
+ measurement?: {
1982
+ id: string;
1983
+ name: string;
1984
+ abbrev: string;
1985
+ conversion: {
1986
+ amount: number;
1987
+ precision: number;
1988
+ };
1989
+ } | null | undefined;
1990
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1991
+ amount: {
1992
+ amount: number;
1993
+ precision: number;
1994
+ };
1995
+ id: string;
1996
+ }[] | null | undefined;
1997
+ } | null | undefined;
1998
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1999
+ defaultCost?: {
2000
+ measurement?: {
2001
+ id: string;
2002
+ name: string;
2003
+ abbrev: string;
2004
+ conversion: {
2005
+ amount: number;
2006
+ precision: number;
2007
+ };
2008
+ } | null | undefined;
2009
+ costPerUnit: {
2010
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
2011
+ amount: number;
2012
+ precision: number;
2013
+ };
2014
+ } | null | undefined;
2015
+ thresholds?: {
2016
+ low: number;
2017
+ mid: number;
2018
+ } | null | undefined;
2019
+ operationalGroup?: string | null | undefined;
2020
+ unit: {
2021
+ _id: string;
2022
+ name: string;
2023
+ abbrev: string;
2024
+ precision: number;
2025
+ measurements: {
2026
+ id: string;
2027
+ name: string;
2028
+ abbrev: string;
2029
+ conversion: {
2030
+ amount: number;
2031
+ precision: number;
2032
+ };
2033
+ }[];
2034
+ };
2035
+ code: string;
2036
+ _id: string;
2037
+ name: string;
2038
+ };
2039
+ baseAmount: {
2040
+ amount: number;
2041
+ precision: number;
2042
+ };
2043
+ measurementsAmounts: {
2044
+ amount: {
2045
+ amount: number;
2046
+ precision: number;
2047
+ };
2048
+ measurement: {
2049
+ id: string;
2050
+ name: string;
2051
+ abbrev: string;
2052
+ conversion: {
2053
+ amount: number;
2054
+ precision: number;
2055
+ };
2056
+ };
2057
+ }[];
2058
+ }[];
2059
+ createdBy: {
2060
+ name: string;
2061
+ id: string;
2062
+ };
2063
+ createdAt: string;
2064
+ updatedAt: string;
2065
+ updatedBy: {
2066
+ name: string;
2067
+ id: string;
2068
+ };
2069
+ usingTemplates: {
2070
+ ref?: string | null | undefined;
2071
+ _rev?: string | null | undefined;
2072
+ updatedAt?: Date | null | undefined;
2073
+ locations?: {
2074
+ type: "restaurant" | "warehouse";
2075
+ name: string;
2076
+ acceptRequest: boolean;
2077
+ dbName: string;
2078
+ doc: {
2079
+ _id: string;
2080
+ businessId: string;
2081
+ profile: {
2082
+ code?: string | null | undefined;
2083
+ _id?: string | null | undefined;
2084
+ name?: string | undefined;
2085
+ address?: {
2086
+ coordinates?: number[] | null | undefined;
2087
+ line2?: string | null | undefined;
2088
+ state: string;
2089
+ country: string;
2090
+ line1: string;
2091
+ city: string;
2092
+ postcode: string;
2093
+ } | undefined;
2094
+ email?: string | undefined;
2095
+ regNo?: string | undefined;
2096
+ sstRegNo?: string | null | undefined;
2097
+ phoneNo?: string | undefined;
2098
+ legalName?: string | null | undefined;
2099
+ discovery?: boolean | null | undefined;
2100
+ coverPhoto?: string | null | undefined;
2101
+ thumbnailPhoto?: string | null | undefined;
2102
+ description?: string | null | undefined;
2103
+ photos?: string[] | null | undefined;
2104
+ operatingHours?: {
2105
+ 0: {
2106
+ hours: {
2107
+ end: string;
2108
+ start: string;
2109
+ }[];
2110
+ enable: boolean;
2111
+ };
2112
+ 2: {
2113
+ hours: {
2114
+ end: string;
2115
+ start: string;
2116
+ }[];
2117
+ enable: boolean;
2118
+ };
2119
+ 1: {
2120
+ hours: {
2121
+ end: string;
2122
+ start: string;
2123
+ }[];
2124
+ enable: boolean;
2125
+ };
2126
+ 3: {
2127
+ hours: {
2128
+ end: string;
2129
+ start: string;
2130
+ }[];
2131
+ enable: boolean;
2132
+ };
2133
+ 4: {
2134
+ hours: {
2135
+ end: string;
2136
+ start: string;
2137
+ }[];
2138
+ enable: boolean;
2139
+ };
2140
+ 5: {
2141
+ hours: {
2142
+ end: string;
2143
+ start: string;
2144
+ }[];
2145
+ enable: boolean;
2146
+ };
2147
+ 6: {
2148
+ hours: {
2149
+ end: string;
2150
+ start: string;
2151
+ }[];
2152
+ enable: boolean;
2153
+ };
2154
+ } | null | undefined;
2155
+ tags?: string[] | null | undefined;
2156
+ url?: string | null | undefined;
2157
+ };
2158
+ };
2159
+ }[] | null | undefined;
2160
+ updatedBy?: {
2161
+ name: string;
2162
+ id: string;
2163
+ } | null | undefined;
2164
+ _id: string;
2165
+ name: string;
2166
+ }[];
2167
+ }[], ({
2168
+ remark?: string | null | undefined;
2169
+ _rev?: string | null | undefined;
2170
+ effectiveAt?: string | null | undefined;
2171
+ approvedAt?: string | null | undefined;
2172
+ approvedBy?: {
2173
+ name: string;
2174
+ id: string;
2175
+ } | null | undefined;
2176
+ approveRemark?: string | null | undefined;
2177
+ rejectionHistory?: {
2178
+ rejectedAt: string;
2179
+ rejectedBy: {
2180
+ name: string;
2181
+ id: string;
2182
+ };
2183
+ rejectRemark: string;
2184
+ }[] | null | undefined;
2185
+ closingAdjustmentId?: string | null | undefined;
2186
+ closingId?: string | null | undefined;
2187
+ status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
2188
+ _id: string;
2189
+ items: {
2190
+ remark?: string | null | undefined;
2191
+ sku: {
2192
+ trackingMeasurement?: string | null | undefined;
2193
+ convert?: {
2194
+ measurement?: string | null | undefined;
2195
+ inventoryBindings?: {
2196
+ measurement?: {
2197
+ id: string;
2198
+ name: string;
2199
+ abbrev: string;
2200
+ conversion: {
2201
+ amount: number;
2202
+ precision: number;
2203
+ };
2204
+ } | null | undefined;
2205
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
2206
+ amount: {
2207
+ amount: number;
2208
+ precision: number;
2209
+ };
2210
+ id: string;
2211
+ }[] | null | undefined;
2212
+ } | null | undefined;
2213
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
2214
+ defaultCost?: {
2215
+ measurement?: {
2216
+ id: string;
2217
+ name: string;
2218
+ abbrev: string;
2219
+ conversion: {
2220
+ amount: number;
2221
+ precision: number;
2222
+ };
2223
+ } | null | undefined;
2224
+ costPerUnit: {
2225
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
2226
+ amount: number;
2227
+ precision: number;
2228
+ };
2229
+ } | null | undefined;
2230
+ thresholds?: {
2231
+ low: number;
2232
+ mid: number;
2233
+ } | null | undefined;
2234
+ operationalGroup?: string | null | undefined;
2235
+ unit: {
2236
+ _id: string;
2237
+ name: string;
2238
+ abbrev: string;
2239
+ precision: number;
2240
+ measurements: {
2241
+ id: string;
2242
+ name: string;
2243
+ abbrev: string;
2244
+ conversion: {
2245
+ amount: number;
2246
+ precision: number;
2247
+ };
2248
+ }[];
2249
+ };
2250
+ code: string;
2251
+ _id: string;
2252
+ name: string;
2253
+ };
2254
+ baseAmount: {
2255
+ amount: number;
2256
+ precision: number;
2257
+ };
2258
+ measurementsAmounts: {
2259
+ amount: {
2260
+ amount: number;
2261
+ precision: number;
2262
+ };
2263
+ measurement: {
2264
+ id: string;
2265
+ name: string;
2266
+ abbrev: string;
2267
+ conversion: {
2268
+ amount: number;
2269
+ precision: number;
2270
+ };
2271
+ };
2272
+ }[];
2273
+ }[];
2274
+ createdBy: {
2275
+ name: string;
2276
+ id: string;
2277
+ };
2278
+ createdAt: string;
2279
+ updatedAt: string;
2280
+ updatedBy: {
2281
+ name: string;
2282
+ id: string;
2283
+ };
2284
+ usingTemplates: {
2285
+ ref?: string | null | undefined;
2286
+ _rev?: string | null | undefined;
2287
+ updatedAt?: Date | null | undefined;
2288
+ locations?: {
2289
+ type: "restaurant" | "warehouse";
2290
+ name: string;
2291
+ acceptRequest: boolean;
2292
+ dbName: string;
2293
+ doc: {
2294
+ _id: string;
2295
+ businessId: string;
2296
+ profile: {
2297
+ code?: string | null | undefined;
2298
+ _id?: string | null | undefined;
2299
+ name?: string | undefined;
2300
+ address?: {
2301
+ coordinates?: number[] | null | undefined;
2302
+ line2?: string | null | undefined;
2303
+ state: string;
2304
+ country: string;
2305
+ line1: string;
2306
+ city: string;
2307
+ postcode: string;
2308
+ } | undefined;
2309
+ email?: string | undefined;
2310
+ regNo?: string | undefined;
2311
+ sstRegNo?: string | null | undefined;
2312
+ phoneNo?: string | undefined;
2313
+ legalName?: string | null | undefined;
2314
+ discovery?: boolean | null | undefined;
2315
+ coverPhoto?: string | null | undefined;
2316
+ thumbnailPhoto?: string | null | undefined;
2317
+ description?: string | null | undefined;
2318
+ photos?: string[] | null | undefined;
2319
+ operatingHours?: {
2320
+ 0: {
2321
+ hours: {
2322
+ end: string;
2323
+ start: string;
2324
+ }[];
2325
+ enable: boolean;
2326
+ };
2327
+ 2: {
2328
+ hours: {
2329
+ end: string;
2330
+ start: string;
2331
+ }[];
2332
+ enable: boolean;
2333
+ };
2334
+ 1: {
2335
+ hours: {
2336
+ end: string;
2337
+ start: string;
2338
+ }[];
2339
+ enable: boolean;
2340
+ };
2341
+ 3: {
2342
+ hours: {
2343
+ end: string;
2344
+ start: string;
2345
+ }[];
2346
+ enable: boolean;
2347
+ };
2348
+ 4: {
2349
+ hours: {
2350
+ end: string;
2351
+ start: string;
2352
+ }[];
2353
+ enable: boolean;
2354
+ };
2355
+ 5: {
2356
+ hours: {
2357
+ end: string;
2358
+ start: string;
2359
+ }[];
2360
+ enable: boolean;
2361
+ };
2362
+ 6: {
2363
+ hours: {
2364
+ end: string;
2365
+ start: string;
2366
+ }[];
2367
+ enable: boolean;
2368
+ };
2369
+ } | null | undefined;
2370
+ tags?: string[] | null | undefined;
2371
+ url?: string | null | undefined;
2372
+ };
2373
+ };
2374
+ }[] | null | undefined;
2375
+ updatedBy?: {
2376
+ name: string;
2377
+ id: string;
2378
+ } | null | undefined;
2379
+ _id: string;
2380
+ name: string;
2381
+ }[];
2382
+ } & RevisionIdMeta)[] | {
2383
+ remark?: string | null | undefined;
2384
+ _rev: string;
2385
+ effectiveAt?: string | null | undefined;
2386
+ approvedAt?: string | null | undefined;
2387
+ approvedBy?: {
2388
+ name: string;
2389
+ id: string;
2390
+ } | null | undefined;
2391
+ approveRemark?: string | null | undefined;
2392
+ rejectionHistory?: {
2393
+ rejectedAt: string;
2394
+ rejectedBy: {
2395
+ name: string;
2396
+ id: string;
2397
+ };
2398
+ rejectRemark: string;
2399
+ }[] | null | undefined;
2400
+ closingAdjustmentId?: string | null | undefined;
2401
+ closingId?: string | null | undefined;
2402
+ status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
2403
+ _id: string;
2404
+ items: {
2405
+ remark?: string | null | undefined;
2406
+ sku: {
2407
+ trackingMeasurement?: string | null | undefined;
2408
+ convert?: {
2409
+ measurement?: string | null | undefined;
2410
+ inventoryBindings?: {
2411
+ measurement?: {
2412
+ id: string;
2413
+ name: string;
2414
+ abbrev: string;
2415
+ conversion: {
2416
+ amount: number;
2417
+ precision: number;
2418
+ };
2419
+ } | null | undefined;
2420
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
2421
+ amount: {
2422
+ amount: number;
2423
+ precision: number;
2424
+ };
2425
+ id: string;
2426
+ }[] | null | undefined;
2427
+ } | null | undefined;
2428
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
2429
+ defaultCost?: {
2430
+ measurement?: {
2431
+ id: string;
2432
+ name: string;
2433
+ abbrev: string;
2434
+ conversion: {
2435
+ amount: number;
2436
+ precision: number;
2437
+ };
2438
+ } | null | undefined;
2439
+ costPerUnit: {
2440
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
2441
+ amount: number;
2442
+ precision: number;
2443
+ };
2444
+ } | null | undefined;
2445
+ thresholds?: {
2446
+ low: number;
2447
+ mid: number;
2448
+ } | null | undefined;
2449
+ operationalGroup?: string | null | undefined;
2450
+ unit: {
2451
+ _id: string;
2452
+ name: string;
2453
+ abbrev: string;
2454
+ precision: number;
2455
+ measurements: {
2456
+ id: string;
2457
+ name: string;
2458
+ abbrev: string;
2459
+ conversion: {
2460
+ amount: number;
2461
+ precision: number;
2462
+ };
2463
+ }[];
2464
+ };
2465
+ code: string;
2466
+ _id: string;
2467
+ name: string;
2468
+ };
2469
+ baseAmount: {
2470
+ amount: number;
2471
+ precision: number;
2472
+ };
2473
+ measurementsAmounts: {
2474
+ amount: {
2475
+ amount: number;
2476
+ precision: number;
2477
+ };
2478
+ measurement: {
2479
+ id: string;
2480
+ name: string;
2481
+ abbrev: string;
2482
+ conversion: {
2483
+ amount: number;
2484
+ precision: number;
2485
+ };
2486
+ };
2487
+ }[];
2488
+ }[];
2489
+ createdBy: {
2490
+ name: string;
2491
+ id: string;
2492
+ };
2493
+ createdAt: string;
2494
+ updatedAt: string;
2495
+ updatedBy: {
2496
+ name: string;
2497
+ id: string;
2498
+ };
2499
+ usingTemplates: {
2500
+ ref?: string | null | undefined;
2501
+ _rev?: string | null | undefined;
2502
+ updatedAt?: Date | null | undefined;
2503
+ locations?: {
2504
+ type: "restaurant" | "warehouse";
2505
+ name: string;
2506
+ acceptRequest: boolean;
2507
+ dbName: string;
2508
+ doc: {
2509
+ _id: string;
2510
+ businessId: string;
2511
+ profile: {
2512
+ code?: string | null | undefined;
2513
+ _id?: string | null | undefined;
2514
+ name?: string | undefined;
2515
+ address?: {
2516
+ coordinates?: number[] | null | undefined;
2517
+ line2?: string | null | undefined;
2518
+ state: string;
2519
+ country: string;
2520
+ line1: string;
2521
+ city: string;
2522
+ postcode: string;
2523
+ } | undefined;
2524
+ email?: string | undefined;
2525
+ regNo?: string | undefined;
2526
+ sstRegNo?: string | null | undefined;
2527
+ phoneNo?: string | undefined;
2528
+ legalName?: string | null | undefined;
2529
+ discovery?: boolean | null | undefined;
2530
+ coverPhoto?: string | null | undefined;
2531
+ thumbnailPhoto?: string | null | undefined;
2532
+ description?: string | null | undefined;
2533
+ photos?: string[] | null | undefined;
2534
+ operatingHours?: {
2535
+ 0: {
2536
+ hours: {
2537
+ end: string;
2538
+ start: string;
2539
+ }[];
2540
+ enable: boolean;
2541
+ };
2542
+ 2: {
2543
+ hours: {
2544
+ end: string;
2545
+ start: string;
2546
+ }[];
2547
+ enable: boolean;
2548
+ };
2549
+ 1: {
2550
+ hours: {
2551
+ end: string;
2552
+ start: string;
2553
+ }[];
2554
+ enable: boolean;
2555
+ };
2556
+ 3: {
2557
+ hours: {
2558
+ end: string;
2559
+ start: string;
2560
+ }[];
2561
+ enable: boolean;
2562
+ };
2563
+ 4: {
2564
+ hours: {
2565
+ end: string;
2566
+ start: string;
2567
+ }[];
2568
+ enable: boolean;
2569
+ };
2570
+ 5: {
2571
+ hours: {
2572
+ end: string;
2573
+ start: string;
2574
+ }[];
2575
+ enable: boolean;
2576
+ };
2577
+ 6: {
2578
+ hours: {
2579
+ end: string;
2580
+ start: string;
2581
+ }[];
2582
+ enable: boolean;
2583
+ };
2584
+ } | null | undefined;
2585
+ tags?: string[] | null | undefined;
2586
+ url?: string | null | undefined;
2587
+ };
2588
+ };
2589
+ }[] | null | undefined;
2590
+ updatedBy?: {
2591
+ name: string;
2592
+ id: string;
2593
+ } | null | undefined;
2594
+ _id: string;
2595
+ name: string;
2596
+ }[];
2597
+ }[]>;
2598
+ loading: import("vue").Ref<boolean, boolean>;
2599
+ fetchDrafts: () => Promise<void>;
2600
+ loadDraft: (draftId: string) => Promise<void>;
2601
+ }, "fetchDrafts" | "loadDraft">>;