@feedmepos/mf-inventory-portal 0.0.21-dev.7 → 0.0.22-dev.1

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 (50) hide show
  1. package/dist/{ApprovalView-BYJfdiYM.js → ApprovalView-CtH8I01g.js} +4 -4
  2. package/dist/{BindingsDialog-BryZK4Tg.js → BindingsDialog-DFrk_fyd.js} +1 -1
  3. package/dist/{BindingsPicker-IWAltg_U.js → BindingsPicker-400gISaV.js} +1 -1
  4. package/dist/{BindingsTable-DDwukKAy.js → BindingsTable-CnFKI6iP.js} +1 -1
  5. package/dist/ClosingTemplateView--8m8cua_.js +919 -0
  6. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CLBgszfX.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B9RU_arW.js} +1 -1
  7. package/dist/{IngredientsView-DgSzNCNX.js → IngredientsView-CRTAgKJz.js} +3 -3
  8. package/dist/{IntegrationView-BtXzjG3j.js → IntegrationView-CNFTKqjk.js} +2 -2
  9. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-sPzZAvKH.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-VkiVLx1K.js} +1 -1
  10. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BYX1ubPe.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DkZrgqyr.js} +1 -1
  11. package/dist/{PurchaseOrderPrintPreview-Ke1-hYgN.js → PurchaseOrderPrintPreview-CJli-_Vn.js} +1 -1
  12. package/dist/{ReceiveRequestView-CE9BFQn3.js → ReceiveRequestView-DV_GDzJG.js} +6 -6
  13. package/dist/{RecipeView-K3f9W_AV.js → RecipeView-CTm_7oNG.js} +3 -3
  14. package/dist/{StockView-BH3wK8AT.js → StockView-DtHT2ulM.js} +6 -6
  15. package/dist/{SupplierView-DwVN-3IQ.js → SupplierView-B9A5R2Vm.js} +3 -3
  16. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-B0Vdby5t.js → TransferDetails.vue_vue_type_script_setup_true_lang-mUNCQTNw.js} +40 -39
  17. package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-DijNNVgt.js → TransferDialog.vue_vue_type_script_setup_true_lang-BwkUuXqj.js} +493 -501
  18. package/dist/{TransferTemplateView-ikRXcgOO.js → TransferTemplateView-DnyenkGu.js} +454 -498
  19. package/dist/{UnitView-yexlK1KM.js → UnitView-BL-jtVuZ.js} +4 -4
  20. package/dist/{WarehouseView-BjBJrjbZ.js → WarehouseView-BkUv1792.js} +2 -2
  21. package/dist/api/closing-template.d.ts +7 -0
  22. package/dist/{app-BD7MP1Oe.js → app-C-z1MfF6.js} +3992 -3929
  23. package/dist/app.d.ts +35 -0
  24. package/dist/app.js +1 -1
  25. package/dist/{decimal-Ct-e_mRV.js → decimal-DZz-_lgE.js} +1 -1
  26. package/dist/defineDeepModel-7VQajdPt.js +13 -0
  27. package/dist/format-time-from-id-9XFszs1J.js +15 -0
  28. package/dist/{id-to-date-Chhy1kB3.js → id-to-date-Bkue77uI.js} +1 -1
  29. package/dist/layout/layout-routes.d.ts +0 -1
  30. package/dist/{purchase-order-transaction-type-Bqu6bNsx.js → purchase-order-transaction-type-DHzMBgFs.js} +90 -101
  31. package/dist/router/name.d.ts +1 -0
  32. package/dist/style.css +1 -1
  33. package/dist/{supplier-DErisCtS.js → supplier-C6YWXF2Y.js} +1 -1
  34. package/dist/tsconfig.app.tsbuildinfo +1 -1
  35. package/dist/use-template-enabled-locations-CFCfbaOd.js +57 -0
  36. package/dist/views/closing-template/ClosingTemplateView.vue.d.ts +2 -0
  37. package/dist/views/closing-template/components/closing-template-details/ClosingTemplateDetails.vue.d.ts +2 -0
  38. package/dist/views/closing-template/components/closing-template-details/ClosingTemplateDetailsProps.d.ts +8 -0
  39. package/dist/views/closing-template/components/closing-template-dialog/ClosingTemplateDialog.vue.d.ts +22 -0
  40. package/dist/views/closing-template/components/closing-template-dialog/ClosingTemplateDialogProps.d.ts +10 -0
  41. package/dist/views/closing-template/components/closing-template-form/ClosingTemplateForm.vue.d.ts +16 -0
  42. package/dist/views/closing-template/components/closing-template-form/ClosingTemplateFormProps.d.ts +7 -0
  43. package/dist/views/closing-template/components/closing-template-form/components/ClosingTemplateItem.vue.d.ts +18 -0
  44. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +79 -0
  45. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +2165 -0
  46. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +2084 -0
  47. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +1 -1
  48. package/dist/{xlsx-DyScN5Bf.js → xlsx-Dl6dAHFx.js} +1 -1
  49. package/dist/{xlsx.util-DEyeAnEa.js → xlsx.util-C1tUhDb8.js} +2 -2
  50. package/package.json +3 -3
@@ -0,0 +1,2165 @@
1
+ import type { ClosingTemplateDialogProps } from '../components/closing-template-dialog/ClosingTemplateDialogProps';
2
+ import { FormMode } from '@/components/form/form-mode.enum';
3
+ import { type Ref } from 'vue';
4
+ import type { ClosingTemplateDetailsProps } from '../components/closing-template-details/ClosingTemplateDetailsProps';
5
+ type ClosingTemplateDialogPropsWithEventBinding = ClosingTemplateDialogProps & {
6
+ 'onUpdate:show'?(show: boolean): void;
7
+ 'onSubmitted'?(): void;
8
+ };
9
+ type ClosingTemplateDetailsPropsWithEventBinding = ClosingTemplateDetailsProps & {
10
+ 'onUpdate:show'?(show: boolean): void;
11
+ 'onAction:edit'?(): void;
12
+ };
13
+ export declare const useClosingTemplateActions: import("pinia").StoreDefinition<"closingTemplateActions", Pick<{
14
+ createTemplate: () => void;
15
+ viewTemplate: (template: FdoClosingTemplate) => void;
16
+ updateTemplate: (template: FdoClosingTemplate) => void;
17
+ deleteTemplate: (template: FdoClosingTemplate, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
18
+ templateDialogProps: Ref<{
19
+ mode?: FormMode | undefined;
20
+ modelValue?: {
21
+ ref?: string | null | undefined;
22
+ _rev?: string | null | undefined;
23
+ locations?: ({
24
+ doc?: any;
25
+ type: "restaurant";
26
+ name: string;
27
+ acceptRequest: boolean;
28
+ dbName: string;
29
+ } | {
30
+ type: "warehouse";
31
+ name: string;
32
+ acceptRequest: boolean;
33
+ dbName: string;
34
+ doc: {
35
+ pf_business?: {
36
+ internal?: boolean | null | undefined;
37
+ url?: string | null | undefined;
38
+ expiredAt?: string | null | undefined;
39
+ agentId?: string | null | undefined;
40
+ restaurantTagGroups?: {
41
+ name: string;
42
+ id: string;
43
+ tags: {
44
+ name: string;
45
+ id: string;
46
+ }[];
47
+ }[] | null | undefined;
48
+ pf_agent?: {
49
+ clickupId?: string | null | undefined;
50
+ members?: {
51
+ pf_user?: {
52
+ email?: string | null | undefined;
53
+ phoneNumber?: string | null | undefined;
54
+ birthday?: string | null | undefined;
55
+ gender?: "MALE" | "FEMALE" | null | undefined;
56
+ addresses?: {
57
+ name: string;
58
+ address: string;
59
+ coordinates: number[];
60
+ }[] | null | undefined;
61
+ photoURL?: string | null | undefined;
62
+ displayName?: string | null | undefined;
63
+ imported?: {
64
+ raw: Record<string, any>;
65
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
66
+ } | null | undefined;
67
+ _id: string;
68
+ } | null | undefined;
69
+ role: "ADMIN";
70
+ userId: string;
71
+ }[] | null | undefined;
72
+ code: string;
73
+ name: string;
74
+ _id: string;
75
+ isReseller: boolean;
76
+ } | null | undefined;
77
+ thumbnail?: string | null | undefined;
78
+ billingInfos?: {
79
+ _id?: string | null | undefined;
80
+ name: string;
81
+ address: {
82
+ coordinates?: number[] | null | undefined;
83
+ line2?: string | null | undefined;
84
+ state: string;
85
+ country: string;
86
+ line1: string;
87
+ city: string;
88
+ postcode: string;
89
+ };
90
+ email: string;
91
+ companyName: string;
92
+ contact: string;
93
+ }[] | null | undefined;
94
+ customerDisplayImages?: {
95
+ url: string;
96
+ restaurantIds: string[];
97
+ }[] | null | undefined;
98
+ name: string;
99
+ _id: string;
100
+ ownerId: string;
101
+ restaurantQuota: number;
102
+ warehouseQuota: number;
103
+ menuVersion: string;
104
+ } | null | undefined;
105
+ _id: string;
106
+ businessId: string;
107
+ profile: {
108
+ email?: string | null | undefined;
109
+ phoneNo?: string | null | undefined;
110
+ name: string;
111
+ address: {
112
+ coordinates?: number[] | null | undefined;
113
+ line2?: string | null | undefined;
114
+ state: string;
115
+ country: string;
116
+ line1: string;
117
+ city: string;
118
+ postcode: string;
119
+ };
120
+ regNo: string;
121
+ };
122
+ };
123
+ })[] | null | undefined;
124
+ _id: string;
125
+ items: {
126
+ disabledMeasurements?: string[] | null | undefined;
127
+ sku: {
128
+ trackingMeasurement?: string | null | undefined;
129
+ convert?: {
130
+ measurement?: string | null | undefined;
131
+ inventoryBindings?: {
132
+ measurement?: {
133
+ id: string;
134
+ name: string;
135
+ abbrev: string;
136
+ conversion: {
137
+ amount: number;
138
+ precision: number;
139
+ };
140
+ } | null | undefined;
141
+ type: "RECIPE" | "SKU";
142
+ amount: {
143
+ amount: number;
144
+ precision: number;
145
+ };
146
+ id: string;
147
+ }[] | null | undefined;
148
+ } | null | undefined;
149
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
150
+ defaultCost?: {
151
+ measurement?: {
152
+ id: string;
153
+ name: string;
154
+ abbrev: string;
155
+ conversion: {
156
+ amount: number;
157
+ precision: number;
158
+ };
159
+ } | null | undefined;
160
+ costPerUnit: {
161
+ 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";
162
+ amount: number;
163
+ precision: number;
164
+ };
165
+ } | null | undefined;
166
+ thresholds?: {
167
+ low: number;
168
+ mid: number;
169
+ } | null | undefined;
170
+ operationalGroup?: string | null | undefined;
171
+ unit: {
172
+ _id: string;
173
+ name: string;
174
+ abbrev: string;
175
+ precision: number;
176
+ measurements: {
177
+ id: string;
178
+ name: string;
179
+ abbrev: string;
180
+ conversion: {
181
+ amount: number;
182
+ precision: number;
183
+ };
184
+ }[];
185
+ };
186
+ code: string;
187
+ _id: string;
188
+ name: string;
189
+ };
190
+ }[];
191
+ name: string;
192
+ } | undefined;
193
+ show?: boolean | undefined;
194
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
195
+ onSubmitted?: (() => void) | undefined;
196
+ }, ClosingTemplateDialogPropsWithEventBinding | {
197
+ mode?: FormMode | undefined;
198
+ modelValue?: {
199
+ ref?: string | null | undefined;
200
+ _rev?: string | null | undefined;
201
+ locations?: ({
202
+ doc?: any;
203
+ type: "restaurant";
204
+ name: string;
205
+ acceptRequest: boolean;
206
+ dbName: string;
207
+ } | {
208
+ type: "warehouse";
209
+ name: string;
210
+ acceptRequest: boolean;
211
+ dbName: string;
212
+ doc: {
213
+ pf_business?: {
214
+ internal?: boolean | null | undefined;
215
+ url?: string | null | undefined;
216
+ expiredAt?: string | null | undefined;
217
+ agentId?: string | null | undefined;
218
+ restaurantTagGroups?: {
219
+ name: string;
220
+ id: string;
221
+ tags: {
222
+ name: string;
223
+ id: string;
224
+ }[];
225
+ }[] | null | undefined;
226
+ pf_agent?: {
227
+ clickupId?: string | null | undefined;
228
+ members?: {
229
+ pf_user?: {
230
+ email?: string | null | undefined;
231
+ phoneNumber?: string | null | undefined;
232
+ birthday?: string | null | undefined;
233
+ gender?: "MALE" | "FEMALE" | null | undefined;
234
+ addresses?: {
235
+ name: string;
236
+ address: string;
237
+ coordinates: number[];
238
+ }[] | null | undefined;
239
+ photoURL?: string | null | undefined;
240
+ displayName?: string | null | undefined;
241
+ imported?: {
242
+ raw: Record<string, any>;
243
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
244
+ } | null | undefined;
245
+ _id: string;
246
+ } | null | undefined;
247
+ role: "ADMIN";
248
+ userId: string;
249
+ }[] | null | undefined;
250
+ code: string;
251
+ name: string;
252
+ _id: string;
253
+ isReseller: boolean;
254
+ } | null | undefined;
255
+ thumbnail?: string | null | undefined;
256
+ billingInfos?: {
257
+ _id?: string | null | undefined;
258
+ name: string;
259
+ address: {
260
+ coordinates?: number[] | null | undefined;
261
+ line2?: string | null | undefined;
262
+ state: string;
263
+ country: string;
264
+ line1: string;
265
+ city: string;
266
+ postcode: string;
267
+ };
268
+ email: string;
269
+ companyName: string;
270
+ contact: string;
271
+ }[] | null | undefined;
272
+ customerDisplayImages?: {
273
+ url: string;
274
+ restaurantIds: string[];
275
+ }[] | null | undefined;
276
+ name: string;
277
+ _id: string;
278
+ ownerId: string;
279
+ restaurantQuota: number;
280
+ warehouseQuota: number;
281
+ menuVersion: string;
282
+ } | null | undefined;
283
+ _id: string;
284
+ businessId: string;
285
+ profile: {
286
+ email?: string | null | undefined;
287
+ phoneNo?: string | null | undefined;
288
+ name: string;
289
+ address: {
290
+ coordinates?: number[] | null | undefined;
291
+ line2?: string | null | undefined;
292
+ state: string;
293
+ country: string;
294
+ line1: string;
295
+ city: string;
296
+ postcode: string;
297
+ };
298
+ regNo: string;
299
+ };
300
+ };
301
+ })[] | null | undefined;
302
+ _id: string;
303
+ items: {
304
+ disabledMeasurements?: string[] | null | undefined;
305
+ sku: {
306
+ trackingMeasurement?: string | null | undefined;
307
+ convert?: {
308
+ measurement?: string | null | undefined;
309
+ inventoryBindings?: {
310
+ measurement?: {
311
+ id: string;
312
+ name: string;
313
+ abbrev: string;
314
+ conversion: {
315
+ amount: number;
316
+ precision: number;
317
+ };
318
+ } | null | undefined;
319
+ type: "RECIPE" | "SKU";
320
+ amount: {
321
+ amount: number;
322
+ precision: number;
323
+ };
324
+ id: string;
325
+ }[] | null | undefined;
326
+ } | null | undefined;
327
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
328
+ defaultCost?: {
329
+ measurement?: {
330
+ id: string;
331
+ name: string;
332
+ abbrev: string;
333
+ conversion: {
334
+ amount: number;
335
+ precision: number;
336
+ };
337
+ } | null | undefined;
338
+ costPerUnit: {
339
+ 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";
340
+ amount: number;
341
+ precision: number;
342
+ };
343
+ } | null | undefined;
344
+ thresholds?: {
345
+ low: number;
346
+ mid: number;
347
+ } | null | undefined;
348
+ operationalGroup?: string | null | undefined;
349
+ unit: {
350
+ _id: string;
351
+ name: string;
352
+ abbrev: string;
353
+ precision: number;
354
+ measurements: {
355
+ id: string;
356
+ name: string;
357
+ abbrev: string;
358
+ conversion: {
359
+ amount: number;
360
+ precision: number;
361
+ };
362
+ }[];
363
+ };
364
+ code: string;
365
+ _id: string;
366
+ name: string;
367
+ };
368
+ }[];
369
+ name: string;
370
+ } | undefined;
371
+ show?: boolean | undefined;
372
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
373
+ onSubmitted?: (() => void) | undefined;
374
+ }>;
375
+ templateDetailsProps: Ref<{
376
+ template?: {
377
+ ref?: string | null | undefined;
378
+ _rev?: string | null | undefined;
379
+ locations?: ({
380
+ doc?: any;
381
+ type: "restaurant";
382
+ name: string;
383
+ acceptRequest: boolean;
384
+ dbName: string;
385
+ } | {
386
+ type: "warehouse";
387
+ name: string;
388
+ acceptRequest: boolean;
389
+ dbName: string;
390
+ doc: {
391
+ pf_business?: {
392
+ internal?: boolean | null | undefined;
393
+ url?: string | null | undefined;
394
+ expiredAt?: string | null | undefined;
395
+ agentId?: string | null | undefined;
396
+ restaurantTagGroups?: {
397
+ name: string;
398
+ id: string;
399
+ tags: {
400
+ name: string;
401
+ id: string;
402
+ }[];
403
+ }[] | null | undefined;
404
+ pf_agent?: {
405
+ clickupId?: string | null | undefined;
406
+ members?: {
407
+ pf_user?: {
408
+ email?: string | null | undefined;
409
+ phoneNumber?: string | null | undefined;
410
+ birthday?: string | null | undefined;
411
+ gender?: "MALE" | "FEMALE" | null | undefined;
412
+ addresses?: {
413
+ name: string;
414
+ address: string;
415
+ coordinates: number[];
416
+ }[] | null | undefined;
417
+ photoURL?: string | null | undefined;
418
+ displayName?: string | null | undefined;
419
+ imported?: {
420
+ raw: Record<string, any>;
421
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
422
+ } | null | undefined;
423
+ _id: string;
424
+ } | null | undefined;
425
+ role: "ADMIN";
426
+ userId: string;
427
+ }[] | null | undefined;
428
+ code: string;
429
+ name: string;
430
+ _id: string;
431
+ isReseller: boolean;
432
+ } | null | undefined;
433
+ thumbnail?: string | null | undefined;
434
+ billingInfos?: {
435
+ _id?: string | null | undefined;
436
+ name: string;
437
+ address: {
438
+ coordinates?: number[] | null | undefined;
439
+ line2?: string | null | undefined;
440
+ state: string;
441
+ country: string;
442
+ line1: string;
443
+ city: string;
444
+ postcode: string;
445
+ };
446
+ email: string;
447
+ companyName: string;
448
+ contact: string;
449
+ }[] | null | undefined;
450
+ customerDisplayImages?: {
451
+ url: string;
452
+ restaurantIds: string[];
453
+ }[] | null | undefined;
454
+ name: string;
455
+ _id: string;
456
+ ownerId: string;
457
+ restaurantQuota: number;
458
+ warehouseQuota: number;
459
+ menuVersion: string;
460
+ } | null | undefined;
461
+ _id: string;
462
+ businessId: string;
463
+ profile: {
464
+ email?: string | null | undefined;
465
+ phoneNo?: string | null | undefined;
466
+ name: string;
467
+ address: {
468
+ coordinates?: number[] | null | undefined;
469
+ line2?: string | null | undefined;
470
+ state: string;
471
+ country: string;
472
+ line1: string;
473
+ city: string;
474
+ postcode: string;
475
+ };
476
+ regNo: string;
477
+ };
478
+ };
479
+ })[] | null | undefined;
480
+ _id: string;
481
+ items: {
482
+ disabledMeasurements?: string[] | null | undefined;
483
+ sku: {
484
+ trackingMeasurement?: string | null | undefined;
485
+ convert?: {
486
+ measurement?: string | null | undefined;
487
+ inventoryBindings?: {
488
+ measurement?: {
489
+ id: string;
490
+ name: string;
491
+ abbrev: string;
492
+ conversion: {
493
+ amount: number;
494
+ precision: number;
495
+ };
496
+ } | null | undefined;
497
+ type: "RECIPE" | "SKU";
498
+ amount: {
499
+ amount: number;
500
+ precision: number;
501
+ };
502
+ id: string;
503
+ }[] | null | undefined;
504
+ } | null | undefined;
505
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
506
+ defaultCost?: {
507
+ measurement?: {
508
+ id: string;
509
+ name: string;
510
+ abbrev: string;
511
+ conversion: {
512
+ amount: number;
513
+ precision: number;
514
+ };
515
+ } | null | undefined;
516
+ costPerUnit: {
517
+ 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";
518
+ amount: number;
519
+ precision: number;
520
+ };
521
+ } | null | undefined;
522
+ thresholds?: {
523
+ low: number;
524
+ mid: number;
525
+ } | null | undefined;
526
+ operationalGroup?: string | null | undefined;
527
+ unit: {
528
+ _id: string;
529
+ name: string;
530
+ abbrev: string;
531
+ precision: number;
532
+ measurements: {
533
+ id: string;
534
+ name: string;
535
+ abbrev: string;
536
+ conversion: {
537
+ amount: number;
538
+ precision: number;
539
+ };
540
+ }[];
541
+ };
542
+ code: string;
543
+ _id: string;
544
+ name: string;
545
+ };
546
+ }[];
547
+ name: string;
548
+ } | undefined;
549
+ show?: boolean | undefined;
550
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
551
+ 'onAction:edit'?: (() => void) | undefined;
552
+ }, ClosingTemplateDetailsPropsWithEventBinding | {
553
+ template?: {
554
+ ref?: string | null | undefined;
555
+ _rev?: string | null | undefined;
556
+ locations?: ({
557
+ doc?: any;
558
+ type: "restaurant";
559
+ name: string;
560
+ acceptRequest: boolean;
561
+ dbName: string;
562
+ } | {
563
+ type: "warehouse";
564
+ name: string;
565
+ acceptRequest: boolean;
566
+ dbName: string;
567
+ doc: {
568
+ pf_business?: {
569
+ internal?: boolean | null | undefined;
570
+ url?: string | null | undefined;
571
+ expiredAt?: string | null | undefined;
572
+ agentId?: string | null | undefined;
573
+ restaurantTagGroups?: {
574
+ name: string;
575
+ id: string;
576
+ tags: {
577
+ name: string;
578
+ id: string;
579
+ }[];
580
+ }[] | null | undefined;
581
+ pf_agent?: {
582
+ clickupId?: string | null | undefined;
583
+ members?: {
584
+ pf_user?: {
585
+ email?: string | null | undefined;
586
+ phoneNumber?: string | null | undefined;
587
+ birthday?: string | null | undefined;
588
+ gender?: "MALE" | "FEMALE" | null | undefined;
589
+ addresses?: {
590
+ name: string;
591
+ address: string;
592
+ coordinates: number[];
593
+ }[] | null | undefined;
594
+ photoURL?: string | null | undefined;
595
+ displayName?: string | null | undefined;
596
+ imported?: {
597
+ raw: Record<string, any>;
598
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
599
+ } | null | undefined;
600
+ _id: string;
601
+ } | null | undefined;
602
+ role: "ADMIN";
603
+ userId: string;
604
+ }[] | null | undefined;
605
+ code: string;
606
+ name: string;
607
+ _id: string;
608
+ isReseller: boolean;
609
+ } | null | undefined;
610
+ thumbnail?: string | null | undefined;
611
+ billingInfos?: {
612
+ _id?: string | null | undefined;
613
+ name: string;
614
+ address: {
615
+ coordinates?: number[] | null | undefined;
616
+ line2?: string | null | undefined;
617
+ state: string;
618
+ country: string;
619
+ line1: string;
620
+ city: string;
621
+ postcode: string;
622
+ };
623
+ email: string;
624
+ companyName: string;
625
+ contact: string;
626
+ }[] | null | undefined;
627
+ customerDisplayImages?: {
628
+ url: string;
629
+ restaurantIds: string[];
630
+ }[] | null | undefined;
631
+ name: string;
632
+ _id: string;
633
+ ownerId: string;
634
+ restaurantQuota: number;
635
+ warehouseQuota: number;
636
+ menuVersion: string;
637
+ } | null | undefined;
638
+ _id: string;
639
+ businessId: string;
640
+ profile: {
641
+ email?: string | null | undefined;
642
+ phoneNo?: string | null | undefined;
643
+ name: string;
644
+ address: {
645
+ coordinates?: number[] | null | undefined;
646
+ line2?: string | null | undefined;
647
+ state: string;
648
+ country: string;
649
+ line1: string;
650
+ city: string;
651
+ postcode: string;
652
+ };
653
+ regNo: string;
654
+ };
655
+ };
656
+ })[] | null | undefined;
657
+ _id: string;
658
+ items: {
659
+ disabledMeasurements?: string[] | null | undefined;
660
+ sku: {
661
+ trackingMeasurement?: string | null | undefined;
662
+ convert?: {
663
+ measurement?: string | null | undefined;
664
+ inventoryBindings?: {
665
+ measurement?: {
666
+ id: string;
667
+ name: string;
668
+ abbrev: string;
669
+ conversion: {
670
+ amount: number;
671
+ precision: number;
672
+ };
673
+ } | null | undefined;
674
+ type: "RECIPE" | "SKU";
675
+ amount: {
676
+ amount: number;
677
+ precision: number;
678
+ };
679
+ id: string;
680
+ }[] | null | undefined;
681
+ } | null | undefined;
682
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
683
+ defaultCost?: {
684
+ measurement?: {
685
+ id: string;
686
+ name: string;
687
+ abbrev: string;
688
+ conversion: {
689
+ amount: number;
690
+ precision: number;
691
+ };
692
+ } | null | undefined;
693
+ costPerUnit: {
694
+ 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";
695
+ amount: number;
696
+ precision: number;
697
+ };
698
+ } | null | undefined;
699
+ thresholds?: {
700
+ low: number;
701
+ mid: number;
702
+ } | null | undefined;
703
+ operationalGroup?: string | null | undefined;
704
+ unit: {
705
+ _id: string;
706
+ name: string;
707
+ abbrev: string;
708
+ precision: number;
709
+ measurements: {
710
+ id: string;
711
+ name: string;
712
+ abbrev: string;
713
+ conversion: {
714
+ amount: number;
715
+ precision: number;
716
+ };
717
+ }[];
718
+ };
719
+ code: string;
720
+ _id: string;
721
+ name: string;
722
+ };
723
+ }[];
724
+ name: string;
725
+ } | undefined;
726
+ show?: boolean | undefined;
727
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
728
+ 'onAction:edit'?: (() => void) | undefined;
729
+ }>;
730
+ }, "templateDialogProps" | "templateDetailsProps">, Pick<{
731
+ createTemplate: () => void;
732
+ viewTemplate: (template: FdoClosingTemplate) => void;
733
+ updateTemplate: (template: FdoClosingTemplate) => void;
734
+ deleteTemplate: (template: FdoClosingTemplate, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
735
+ templateDialogProps: Ref<{
736
+ mode?: FormMode | undefined;
737
+ modelValue?: {
738
+ ref?: string | null | undefined;
739
+ _rev?: string | null | undefined;
740
+ locations?: ({
741
+ doc?: any;
742
+ type: "restaurant";
743
+ name: string;
744
+ acceptRequest: boolean;
745
+ dbName: string;
746
+ } | {
747
+ type: "warehouse";
748
+ name: string;
749
+ acceptRequest: boolean;
750
+ dbName: string;
751
+ doc: {
752
+ pf_business?: {
753
+ internal?: boolean | null | undefined;
754
+ url?: string | null | undefined;
755
+ expiredAt?: string | null | undefined;
756
+ agentId?: string | null | undefined;
757
+ restaurantTagGroups?: {
758
+ name: string;
759
+ id: string;
760
+ tags: {
761
+ name: string;
762
+ id: string;
763
+ }[];
764
+ }[] | null | undefined;
765
+ pf_agent?: {
766
+ clickupId?: string | null | undefined;
767
+ members?: {
768
+ pf_user?: {
769
+ email?: string | null | undefined;
770
+ phoneNumber?: string | null | undefined;
771
+ birthday?: string | null | undefined;
772
+ gender?: "MALE" | "FEMALE" | null | undefined;
773
+ addresses?: {
774
+ name: string;
775
+ address: string;
776
+ coordinates: number[];
777
+ }[] | null | undefined;
778
+ photoURL?: string | null | undefined;
779
+ displayName?: string | null | undefined;
780
+ imported?: {
781
+ raw: Record<string, any>;
782
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
783
+ } | null | undefined;
784
+ _id: string;
785
+ } | null | undefined;
786
+ role: "ADMIN";
787
+ userId: string;
788
+ }[] | null | undefined;
789
+ code: string;
790
+ name: string;
791
+ _id: string;
792
+ isReseller: boolean;
793
+ } | null | undefined;
794
+ thumbnail?: string | null | undefined;
795
+ billingInfos?: {
796
+ _id?: string | null | undefined;
797
+ name: string;
798
+ address: {
799
+ coordinates?: number[] | null | undefined;
800
+ line2?: string | null | undefined;
801
+ state: string;
802
+ country: string;
803
+ line1: string;
804
+ city: string;
805
+ postcode: string;
806
+ };
807
+ email: string;
808
+ companyName: string;
809
+ contact: string;
810
+ }[] | null | undefined;
811
+ customerDisplayImages?: {
812
+ url: string;
813
+ restaurantIds: string[];
814
+ }[] | null | undefined;
815
+ name: string;
816
+ _id: string;
817
+ ownerId: string;
818
+ restaurantQuota: number;
819
+ warehouseQuota: number;
820
+ menuVersion: string;
821
+ } | null | undefined;
822
+ _id: string;
823
+ businessId: string;
824
+ profile: {
825
+ email?: string | null | undefined;
826
+ phoneNo?: string | null | undefined;
827
+ name: string;
828
+ address: {
829
+ coordinates?: number[] | null | undefined;
830
+ line2?: string | null | undefined;
831
+ state: string;
832
+ country: string;
833
+ line1: string;
834
+ city: string;
835
+ postcode: string;
836
+ };
837
+ regNo: string;
838
+ };
839
+ };
840
+ })[] | null | undefined;
841
+ _id: string;
842
+ items: {
843
+ disabledMeasurements?: string[] | null | undefined;
844
+ sku: {
845
+ trackingMeasurement?: string | null | undefined;
846
+ convert?: {
847
+ measurement?: string | null | undefined;
848
+ inventoryBindings?: {
849
+ measurement?: {
850
+ id: string;
851
+ name: string;
852
+ abbrev: string;
853
+ conversion: {
854
+ amount: number;
855
+ precision: number;
856
+ };
857
+ } | null | undefined;
858
+ type: "RECIPE" | "SKU";
859
+ amount: {
860
+ amount: number;
861
+ precision: number;
862
+ };
863
+ id: string;
864
+ }[] | null | undefined;
865
+ } | null | undefined;
866
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
867
+ defaultCost?: {
868
+ measurement?: {
869
+ id: string;
870
+ name: string;
871
+ abbrev: string;
872
+ conversion: {
873
+ amount: number;
874
+ precision: number;
875
+ };
876
+ } | null | undefined;
877
+ costPerUnit: {
878
+ 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";
879
+ amount: number;
880
+ precision: number;
881
+ };
882
+ } | null | undefined;
883
+ thresholds?: {
884
+ low: number;
885
+ mid: number;
886
+ } | null | undefined;
887
+ operationalGroup?: string | null | undefined;
888
+ unit: {
889
+ _id: string;
890
+ name: string;
891
+ abbrev: string;
892
+ precision: number;
893
+ measurements: {
894
+ id: string;
895
+ name: string;
896
+ abbrev: string;
897
+ conversion: {
898
+ amount: number;
899
+ precision: number;
900
+ };
901
+ }[];
902
+ };
903
+ code: string;
904
+ _id: string;
905
+ name: string;
906
+ };
907
+ }[];
908
+ name: string;
909
+ } | undefined;
910
+ show?: boolean | undefined;
911
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
912
+ onSubmitted?: (() => void) | undefined;
913
+ }, ClosingTemplateDialogPropsWithEventBinding | {
914
+ mode?: FormMode | undefined;
915
+ modelValue?: {
916
+ ref?: string | null | undefined;
917
+ _rev?: string | null | undefined;
918
+ locations?: ({
919
+ doc?: any;
920
+ type: "restaurant";
921
+ name: string;
922
+ acceptRequest: boolean;
923
+ dbName: string;
924
+ } | {
925
+ type: "warehouse";
926
+ name: string;
927
+ acceptRequest: boolean;
928
+ dbName: string;
929
+ doc: {
930
+ pf_business?: {
931
+ internal?: boolean | null | undefined;
932
+ url?: string | null | undefined;
933
+ expiredAt?: string | null | undefined;
934
+ agentId?: string | null | undefined;
935
+ restaurantTagGroups?: {
936
+ name: string;
937
+ id: string;
938
+ tags: {
939
+ name: string;
940
+ id: string;
941
+ }[];
942
+ }[] | null | undefined;
943
+ pf_agent?: {
944
+ clickupId?: string | null | undefined;
945
+ members?: {
946
+ pf_user?: {
947
+ email?: string | null | undefined;
948
+ phoneNumber?: string | null | undefined;
949
+ birthday?: string | null | undefined;
950
+ gender?: "MALE" | "FEMALE" | null | undefined;
951
+ addresses?: {
952
+ name: string;
953
+ address: string;
954
+ coordinates: number[];
955
+ }[] | null | undefined;
956
+ photoURL?: string | null | undefined;
957
+ displayName?: string | null | undefined;
958
+ imported?: {
959
+ raw: Record<string, any>;
960
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
961
+ } | null | undefined;
962
+ _id: string;
963
+ } | null | undefined;
964
+ role: "ADMIN";
965
+ userId: string;
966
+ }[] | null | undefined;
967
+ code: string;
968
+ name: string;
969
+ _id: string;
970
+ isReseller: boolean;
971
+ } | null | undefined;
972
+ thumbnail?: string | null | undefined;
973
+ billingInfos?: {
974
+ _id?: string | null | undefined;
975
+ name: string;
976
+ address: {
977
+ coordinates?: number[] | null | undefined;
978
+ line2?: string | null | undefined;
979
+ state: string;
980
+ country: string;
981
+ line1: string;
982
+ city: string;
983
+ postcode: string;
984
+ };
985
+ email: string;
986
+ companyName: string;
987
+ contact: string;
988
+ }[] | null | undefined;
989
+ customerDisplayImages?: {
990
+ url: string;
991
+ restaurantIds: string[];
992
+ }[] | null | undefined;
993
+ name: string;
994
+ _id: string;
995
+ ownerId: string;
996
+ restaurantQuota: number;
997
+ warehouseQuota: number;
998
+ menuVersion: string;
999
+ } | null | undefined;
1000
+ _id: string;
1001
+ businessId: string;
1002
+ profile: {
1003
+ email?: string | null | undefined;
1004
+ phoneNo?: string | null | undefined;
1005
+ name: string;
1006
+ address: {
1007
+ coordinates?: number[] | null | undefined;
1008
+ line2?: string | null | undefined;
1009
+ state: string;
1010
+ country: string;
1011
+ line1: string;
1012
+ city: string;
1013
+ postcode: string;
1014
+ };
1015
+ regNo: string;
1016
+ };
1017
+ };
1018
+ })[] | null | undefined;
1019
+ _id: string;
1020
+ items: {
1021
+ disabledMeasurements?: string[] | null | undefined;
1022
+ sku: {
1023
+ trackingMeasurement?: string | null | undefined;
1024
+ convert?: {
1025
+ measurement?: string | null | undefined;
1026
+ inventoryBindings?: {
1027
+ measurement?: {
1028
+ id: string;
1029
+ name: string;
1030
+ abbrev: string;
1031
+ conversion: {
1032
+ amount: number;
1033
+ precision: number;
1034
+ };
1035
+ } | null | undefined;
1036
+ type: "RECIPE" | "SKU";
1037
+ amount: {
1038
+ amount: number;
1039
+ precision: number;
1040
+ };
1041
+ id: string;
1042
+ }[] | null | undefined;
1043
+ } | null | undefined;
1044
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1045
+ defaultCost?: {
1046
+ measurement?: {
1047
+ id: string;
1048
+ name: string;
1049
+ abbrev: string;
1050
+ conversion: {
1051
+ amount: number;
1052
+ precision: number;
1053
+ };
1054
+ } | null | undefined;
1055
+ costPerUnit: {
1056
+ 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";
1057
+ amount: number;
1058
+ precision: number;
1059
+ };
1060
+ } | null | undefined;
1061
+ thresholds?: {
1062
+ low: number;
1063
+ mid: number;
1064
+ } | null | undefined;
1065
+ operationalGroup?: string | null | undefined;
1066
+ unit: {
1067
+ _id: string;
1068
+ name: string;
1069
+ abbrev: string;
1070
+ precision: number;
1071
+ measurements: {
1072
+ id: string;
1073
+ name: string;
1074
+ abbrev: string;
1075
+ conversion: {
1076
+ amount: number;
1077
+ precision: number;
1078
+ };
1079
+ }[];
1080
+ };
1081
+ code: string;
1082
+ _id: string;
1083
+ name: string;
1084
+ };
1085
+ }[];
1086
+ name: string;
1087
+ } | undefined;
1088
+ show?: boolean | undefined;
1089
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
1090
+ onSubmitted?: (() => void) | undefined;
1091
+ }>;
1092
+ templateDetailsProps: Ref<{
1093
+ template?: {
1094
+ ref?: string | null | undefined;
1095
+ _rev?: string | null | undefined;
1096
+ locations?: ({
1097
+ doc?: any;
1098
+ type: "restaurant";
1099
+ name: string;
1100
+ acceptRequest: boolean;
1101
+ dbName: string;
1102
+ } | {
1103
+ type: "warehouse";
1104
+ name: string;
1105
+ acceptRequest: boolean;
1106
+ dbName: string;
1107
+ doc: {
1108
+ pf_business?: {
1109
+ internal?: boolean | null | undefined;
1110
+ url?: string | null | undefined;
1111
+ expiredAt?: string | null | undefined;
1112
+ agentId?: string | null | undefined;
1113
+ restaurantTagGroups?: {
1114
+ name: string;
1115
+ id: string;
1116
+ tags: {
1117
+ name: string;
1118
+ id: string;
1119
+ }[];
1120
+ }[] | null | undefined;
1121
+ pf_agent?: {
1122
+ clickupId?: string | null | undefined;
1123
+ members?: {
1124
+ pf_user?: {
1125
+ email?: string | null | undefined;
1126
+ phoneNumber?: string | null | undefined;
1127
+ birthday?: string | null | undefined;
1128
+ gender?: "MALE" | "FEMALE" | null | undefined;
1129
+ addresses?: {
1130
+ name: string;
1131
+ address: string;
1132
+ coordinates: number[];
1133
+ }[] | null | undefined;
1134
+ photoURL?: string | null | undefined;
1135
+ displayName?: string | null | undefined;
1136
+ imported?: {
1137
+ raw: Record<string, any>;
1138
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1139
+ } | null | undefined;
1140
+ _id: string;
1141
+ } | null | undefined;
1142
+ role: "ADMIN";
1143
+ userId: string;
1144
+ }[] | null | undefined;
1145
+ code: string;
1146
+ name: string;
1147
+ _id: string;
1148
+ isReseller: boolean;
1149
+ } | null | undefined;
1150
+ thumbnail?: string | null | undefined;
1151
+ billingInfos?: {
1152
+ _id?: string | null | undefined;
1153
+ name: string;
1154
+ address: {
1155
+ coordinates?: number[] | null | undefined;
1156
+ line2?: string | null | undefined;
1157
+ state: string;
1158
+ country: string;
1159
+ line1: string;
1160
+ city: string;
1161
+ postcode: string;
1162
+ };
1163
+ email: string;
1164
+ companyName: string;
1165
+ contact: string;
1166
+ }[] | null | undefined;
1167
+ customerDisplayImages?: {
1168
+ url: string;
1169
+ restaurantIds: string[];
1170
+ }[] | null | undefined;
1171
+ name: string;
1172
+ _id: string;
1173
+ ownerId: string;
1174
+ restaurantQuota: number;
1175
+ warehouseQuota: number;
1176
+ menuVersion: string;
1177
+ } | null | undefined;
1178
+ _id: string;
1179
+ businessId: string;
1180
+ profile: {
1181
+ email?: string | null | undefined;
1182
+ phoneNo?: string | null | undefined;
1183
+ name: string;
1184
+ address: {
1185
+ coordinates?: number[] | null | undefined;
1186
+ line2?: string | null | undefined;
1187
+ state: string;
1188
+ country: string;
1189
+ line1: string;
1190
+ city: string;
1191
+ postcode: string;
1192
+ };
1193
+ regNo: string;
1194
+ };
1195
+ };
1196
+ })[] | null | undefined;
1197
+ _id: string;
1198
+ items: {
1199
+ disabledMeasurements?: string[] | null | undefined;
1200
+ sku: {
1201
+ trackingMeasurement?: string | null | undefined;
1202
+ convert?: {
1203
+ measurement?: string | null | undefined;
1204
+ inventoryBindings?: {
1205
+ measurement?: {
1206
+ id: string;
1207
+ name: string;
1208
+ abbrev: string;
1209
+ conversion: {
1210
+ amount: number;
1211
+ precision: number;
1212
+ };
1213
+ } | null | undefined;
1214
+ type: "RECIPE" | "SKU";
1215
+ amount: {
1216
+ amount: number;
1217
+ precision: number;
1218
+ };
1219
+ id: string;
1220
+ }[] | null | undefined;
1221
+ } | null | undefined;
1222
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1223
+ defaultCost?: {
1224
+ measurement?: {
1225
+ id: string;
1226
+ name: string;
1227
+ abbrev: string;
1228
+ conversion: {
1229
+ amount: number;
1230
+ precision: number;
1231
+ };
1232
+ } | null | undefined;
1233
+ costPerUnit: {
1234
+ 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";
1235
+ amount: number;
1236
+ precision: number;
1237
+ };
1238
+ } | null | undefined;
1239
+ thresholds?: {
1240
+ low: number;
1241
+ mid: number;
1242
+ } | null | undefined;
1243
+ operationalGroup?: string | null | undefined;
1244
+ unit: {
1245
+ _id: string;
1246
+ name: string;
1247
+ abbrev: string;
1248
+ precision: number;
1249
+ measurements: {
1250
+ id: string;
1251
+ name: string;
1252
+ abbrev: string;
1253
+ conversion: {
1254
+ amount: number;
1255
+ precision: number;
1256
+ };
1257
+ }[];
1258
+ };
1259
+ code: string;
1260
+ _id: string;
1261
+ name: string;
1262
+ };
1263
+ }[];
1264
+ name: string;
1265
+ } | undefined;
1266
+ show?: boolean | undefined;
1267
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
1268
+ 'onAction:edit'?: (() => void) | undefined;
1269
+ }, ClosingTemplateDetailsPropsWithEventBinding | {
1270
+ template?: {
1271
+ ref?: string | null | undefined;
1272
+ _rev?: string | null | undefined;
1273
+ locations?: ({
1274
+ doc?: any;
1275
+ type: "restaurant";
1276
+ name: string;
1277
+ acceptRequest: boolean;
1278
+ dbName: string;
1279
+ } | {
1280
+ type: "warehouse";
1281
+ name: string;
1282
+ acceptRequest: boolean;
1283
+ dbName: string;
1284
+ doc: {
1285
+ pf_business?: {
1286
+ internal?: boolean | null | undefined;
1287
+ url?: string | null | undefined;
1288
+ expiredAt?: string | null | undefined;
1289
+ agentId?: string | null | undefined;
1290
+ restaurantTagGroups?: {
1291
+ name: string;
1292
+ id: string;
1293
+ tags: {
1294
+ name: string;
1295
+ id: string;
1296
+ }[];
1297
+ }[] | null | undefined;
1298
+ pf_agent?: {
1299
+ clickupId?: string | null | undefined;
1300
+ members?: {
1301
+ pf_user?: {
1302
+ email?: string | null | undefined;
1303
+ phoneNumber?: string | null | undefined;
1304
+ birthday?: string | null | undefined;
1305
+ gender?: "MALE" | "FEMALE" | null | undefined;
1306
+ addresses?: {
1307
+ name: string;
1308
+ address: string;
1309
+ coordinates: number[];
1310
+ }[] | null | undefined;
1311
+ photoURL?: string | null | undefined;
1312
+ displayName?: string | null | undefined;
1313
+ imported?: {
1314
+ raw: Record<string, any>;
1315
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1316
+ } | null | undefined;
1317
+ _id: string;
1318
+ } | null | undefined;
1319
+ role: "ADMIN";
1320
+ userId: string;
1321
+ }[] | null | undefined;
1322
+ code: string;
1323
+ name: string;
1324
+ _id: string;
1325
+ isReseller: boolean;
1326
+ } | null | undefined;
1327
+ thumbnail?: string | null | undefined;
1328
+ billingInfos?: {
1329
+ _id?: string | null | undefined;
1330
+ name: string;
1331
+ address: {
1332
+ coordinates?: number[] | null | undefined;
1333
+ line2?: string | null | undefined;
1334
+ state: string;
1335
+ country: string;
1336
+ line1: string;
1337
+ city: string;
1338
+ postcode: string;
1339
+ };
1340
+ email: string;
1341
+ companyName: string;
1342
+ contact: string;
1343
+ }[] | null | undefined;
1344
+ customerDisplayImages?: {
1345
+ url: string;
1346
+ restaurantIds: string[];
1347
+ }[] | null | undefined;
1348
+ name: string;
1349
+ _id: string;
1350
+ ownerId: string;
1351
+ restaurantQuota: number;
1352
+ warehouseQuota: number;
1353
+ menuVersion: string;
1354
+ } | null | undefined;
1355
+ _id: string;
1356
+ businessId: string;
1357
+ profile: {
1358
+ email?: string | null | undefined;
1359
+ phoneNo?: string | null | undefined;
1360
+ name: string;
1361
+ address: {
1362
+ coordinates?: number[] | null | undefined;
1363
+ line2?: string | null | undefined;
1364
+ state: string;
1365
+ country: string;
1366
+ line1: string;
1367
+ city: string;
1368
+ postcode: string;
1369
+ };
1370
+ regNo: string;
1371
+ };
1372
+ };
1373
+ })[] | null | undefined;
1374
+ _id: string;
1375
+ items: {
1376
+ disabledMeasurements?: string[] | null | undefined;
1377
+ sku: {
1378
+ trackingMeasurement?: string | null | undefined;
1379
+ convert?: {
1380
+ measurement?: string | null | undefined;
1381
+ inventoryBindings?: {
1382
+ measurement?: {
1383
+ id: string;
1384
+ name: string;
1385
+ abbrev: string;
1386
+ conversion: {
1387
+ amount: number;
1388
+ precision: number;
1389
+ };
1390
+ } | null | undefined;
1391
+ type: "RECIPE" | "SKU";
1392
+ amount: {
1393
+ amount: number;
1394
+ precision: number;
1395
+ };
1396
+ id: string;
1397
+ }[] | null | undefined;
1398
+ } | null | undefined;
1399
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1400
+ defaultCost?: {
1401
+ measurement?: {
1402
+ id: string;
1403
+ name: string;
1404
+ abbrev: string;
1405
+ conversion: {
1406
+ amount: number;
1407
+ precision: number;
1408
+ };
1409
+ } | null | undefined;
1410
+ costPerUnit: {
1411
+ 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";
1412
+ amount: number;
1413
+ precision: number;
1414
+ };
1415
+ } | null | undefined;
1416
+ thresholds?: {
1417
+ low: number;
1418
+ mid: number;
1419
+ } | null | undefined;
1420
+ operationalGroup?: string | null | undefined;
1421
+ unit: {
1422
+ _id: string;
1423
+ name: string;
1424
+ abbrev: string;
1425
+ precision: number;
1426
+ measurements: {
1427
+ id: string;
1428
+ name: string;
1429
+ abbrev: string;
1430
+ conversion: {
1431
+ amount: number;
1432
+ precision: number;
1433
+ };
1434
+ }[];
1435
+ };
1436
+ code: string;
1437
+ _id: string;
1438
+ name: string;
1439
+ };
1440
+ }[];
1441
+ name: string;
1442
+ } | undefined;
1443
+ show?: boolean | undefined;
1444
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
1445
+ 'onAction:edit'?: (() => void) | undefined;
1446
+ }>;
1447
+ }, never>, Pick<{
1448
+ createTemplate: () => void;
1449
+ viewTemplate: (template: FdoClosingTemplate) => void;
1450
+ updateTemplate: (template: FdoClosingTemplate) => void;
1451
+ deleteTemplate: (template: FdoClosingTemplate, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
1452
+ templateDialogProps: Ref<{
1453
+ mode?: FormMode | undefined;
1454
+ modelValue?: {
1455
+ ref?: string | null | undefined;
1456
+ _rev?: string | null | undefined;
1457
+ locations?: ({
1458
+ doc?: any;
1459
+ type: "restaurant";
1460
+ name: string;
1461
+ acceptRequest: boolean;
1462
+ dbName: string;
1463
+ } | {
1464
+ type: "warehouse";
1465
+ name: string;
1466
+ acceptRequest: boolean;
1467
+ dbName: string;
1468
+ doc: {
1469
+ pf_business?: {
1470
+ internal?: boolean | null | undefined;
1471
+ url?: string | null | undefined;
1472
+ expiredAt?: string | null | undefined;
1473
+ agentId?: string | null | undefined;
1474
+ restaurantTagGroups?: {
1475
+ name: string;
1476
+ id: string;
1477
+ tags: {
1478
+ name: string;
1479
+ id: string;
1480
+ }[];
1481
+ }[] | null | undefined;
1482
+ pf_agent?: {
1483
+ clickupId?: string | null | undefined;
1484
+ members?: {
1485
+ pf_user?: {
1486
+ email?: string | null | undefined;
1487
+ phoneNumber?: string | null | undefined;
1488
+ birthday?: string | null | undefined;
1489
+ gender?: "MALE" | "FEMALE" | null | undefined;
1490
+ addresses?: {
1491
+ name: string;
1492
+ address: string;
1493
+ coordinates: number[];
1494
+ }[] | null | undefined;
1495
+ photoURL?: string | null | undefined;
1496
+ displayName?: string | null | undefined;
1497
+ imported?: {
1498
+ raw: Record<string, any>;
1499
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1500
+ } | null | undefined;
1501
+ _id: string;
1502
+ } | null | undefined;
1503
+ role: "ADMIN";
1504
+ userId: string;
1505
+ }[] | null | undefined;
1506
+ code: string;
1507
+ name: string;
1508
+ _id: string;
1509
+ isReseller: boolean;
1510
+ } | null | undefined;
1511
+ thumbnail?: string | null | undefined;
1512
+ billingInfos?: {
1513
+ _id?: string | null | undefined;
1514
+ name: string;
1515
+ address: {
1516
+ coordinates?: number[] | null | undefined;
1517
+ line2?: string | null | undefined;
1518
+ state: string;
1519
+ country: string;
1520
+ line1: string;
1521
+ city: string;
1522
+ postcode: string;
1523
+ };
1524
+ email: string;
1525
+ companyName: string;
1526
+ contact: string;
1527
+ }[] | null | undefined;
1528
+ customerDisplayImages?: {
1529
+ url: string;
1530
+ restaurantIds: string[];
1531
+ }[] | null | undefined;
1532
+ name: string;
1533
+ _id: string;
1534
+ ownerId: string;
1535
+ restaurantQuota: number;
1536
+ warehouseQuota: number;
1537
+ menuVersion: string;
1538
+ } | null | undefined;
1539
+ _id: string;
1540
+ businessId: string;
1541
+ profile: {
1542
+ email?: string | null | undefined;
1543
+ phoneNo?: string | null | undefined;
1544
+ name: string;
1545
+ address: {
1546
+ coordinates?: number[] | null | undefined;
1547
+ line2?: string | null | undefined;
1548
+ state: string;
1549
+ country: string;
1550
+ line1: string;
1551
+ city: string;
1552
+ postcode: string;
1553
+ };
1554
+ regNo: string;
1555
+ };
1556
+ };
1557
+ })[] | null | undefined;
1558
+ _id: string;
1559
+ items: {
1560
+ disabledMeasurements?: string[] | null | undefined;
1561
+ sku: {
1562
+ trackingMeasurement?: string | null | undefined;
1563
+ convert?: {
1564
+ measurement?: string | null | undefined;
1565
+ inventoryBindings?: {
1566
+ measurement?: {
1567
+ id: string;
1568
+ name: string;
1569
+ abbrev: string;
1570
+ conversion: {
1571
+ amount: number;
1572
+ precision: number;
1573
+ };
1574
+ } | null | undefined;
1575
+ type: "RECIPE" | "SKU";
1576
+ amount: {
1577
+ amount: number;
1578
+ precision: number;
1579
+ };
1580
+ id: string;
1581
+ }[] | null | undefined;
1582
+ } | null | undefined;
1583
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1584
+ defaultCost?: {
1585
+ measurement?: {
1586
+ id: string;
1587
+ name: string;
1588
+ abbrev: string;
1589
+ conversion: {
1590
+ amount: number;
1591
+ precision: number;
1592
+ };
1593
+ } | null | undefined;
1594
+ costPerUnit: {
1595
+ 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";
1596
+ amount: number;
1597
+ precision: number;
1598
+ };
1599
+ } | null | undefined;
1600
+ thresholds?: {
1601
+ low: number;
1602
+ mid: number;
1603
+ } | null | undefined;
1604
+ operationalGroup?: string | null | undefined;
1605
+ unit: {
1606
+ _id: string;
1607
+ name: string;
1608
+ abbrev: string;
1609
+ precision: number;
1610
+ measurements: {
1611
+ id: string;
1612
+ name: string;
1613
+ abbrev: string;
1614
+ conversion: {
1615
+ amount: number;
1616
+ precision: number;
1617
+ };
1618
+ }[];
1619
+ };
1620
+ code: string;
1621
+ _id: string;
1622
+ name: string;
1623
+ };
1624
+ }[];
1625
+ name: string;
1626
+ } | undefined;
1627
+ show?: boolean | undefined;
1628
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
1629
+ onSubmitted?: (() => void) | undefined;
1630
+ }, ClosingTemplateDialogPropsWithEventBinding | {
1631
+ mode?: FormMode | undefined;
1632
+ modelValue?: {
1633
+ ref?: string | null | undefined;
1634
+ _rev?: string | null | undefined;
1635
+ locations?: ({
1636
+ doc?: any;
1637
+ type: "restaurant";
1638
+ name: string;
1639
+ acceptRequest: boolean;
1640
+ dbName: string;
1641
+ } | {
1642
+ type: "warehouse";
1643
+ name: string;
1644
+ acceptRequest: boolean;
1645
+ dbName: string;
1646
+ doc: {
1647
+ pf_business?: {
1648
+ internal?: boolean | null | undefined;
1649
+ url?: string | null | undefined;
1650
+ expiredAt?: string | null | undefined;
1651
+ agentId?: string | null | undefined;
1652
+ restaurantTagGroups?: {
1653
+ name: string;
1654
+ id: string;
1655
+ tags: {
1656
+ name: string;
1657
+ id: string;
1658
+ }[];
1659
+ }[] | null | undefined;
1660
+ pf_agent?: {
1661
+ clickupId?: string | null | undefined;
1662
+ members?: {
1663
+ pf_user?: {
1664
+ email?: string | null | undefined;
1665
+ phoneNumber?: string | null | undefined;
1666
+ birthday?: string | null | undefined;
1667
+ gender?: "MALE" | "FEMALE" | null | undefined;
1668
+ addresses?: {
1669
+ name: string;
1670
+ address: string;
1671
+ coordinates: number[];
1672
+ }[] | null | undefined;
1673
+ photoURL?: string | null | undefined;
1674
+ displayName?: string | null | undefined;
1675
+ imported?: {
1676
+ raw: Record<string, any>;
1677
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1678
+ } | null | undefined;
1679
+ _id: string;
1680
+ } | null | undefined;
1681
+ role: "ADMIN";
1682
+ userId: string;
1683
+ }[] | null | undefined;
1684
+ code: string;
1685
+ name: string;
1686
+ _id: string;
1687
+ isReseller: boolean;
1688
+ } | null | undefined;
1689
+ thumbnail?: string | null | undefined;
1690
+ billingInfos?: {
1691
+ _id?: string | null | undefined;
1692
+ name: string;
1693
+ address: {
1694
+ coordinates?: number[] | null | undefined;
1695
+ line2?: string | null | undefined;
1696
+ state: string;
1697
+ country: string;
1698
+ line1: string;
1699
+ city: string;
1700
+ postcode: string;
1701
+ };
1702
+ email: string;
1703
+ companyName: string;
1704
+ contact: string;
1705
+ }[] | null | undefined;
1706
+ customerDisplayImages?: {
1707
+ url: string;
1708
+ restaurantIds: string[];
1709
+ }[] | null | undefined;
1710
+ name: string;
1711
+ _id: string;
1712
+ ownerId: string;
1713
+ restaurantQuota: number;
1714
+ warehouseQuota: number;
1715
+ menuVersion: string;
1716
+ } | null | undefined;
1717
+ _id: string;
1718
+ businessId: string;
1719
+ profile: {
1720
+ email?: string | null | undefined;
1721
+ phoneNo?: string | null | undefined;
1722
+ name: string;
1723
+ address: {
1724
+ coordinates?: number[] | null | undefined;
1725
+ line2?: string | null | undefined;
1726
+ state: string;
1727
+ country: string;
1728
+ line1: string;
1729
+ city: string;
1730
+ postcode: string;
1731
+ };
1732
+ regNo: string;
1733
+ };
1734
+ };
1735
+ })[] | null | undefined;
1736
+ _id: string;
1737
+ items: {
1738
+ disabledMeasurements?: string[] | null | undefined;
1739
+ sku: {
1740
+ trackingMeasurement?: string | null | undefined;
1741
+ convert?: {
1742
+ measurement?: string | null | undefined;
1743
+ inventoryBindings?: {
1744
+ measurement?: {
1745
+ id: string;
1746
+ name: string;
1747
+ abbrev: string;
1748
+ conversion: {
1749
+ amount: number;
1750
+ precision: number;
1751
+ };
1752
+ } | null | undefined;
1753
+ type: "RECIPE" | "SKU";
1754
+ amount: {
1755
+ amount: number;
1756
+ precision: number;
1757
+ };
1758
+ id: string;
1759
+ }[] | null | undefined;
1760
+ } | null | undefined;
1761
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1762
+ defaultCost?: {
1763
+ measurement?: {
1764
+ id: string;
1765
+ name: string;
1766
+ abbrev: string;
1767
+ conversion: {
1768
+ amount: number;
1769
+ precision: number;
1770
+ };
1771
+ } | null | undefined;
1772
+ costPerUnit: {
1773
+ 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";
1774
+ amount: number;
1775
+ precision: number;
1776
+ };
1777
+ } | null | undefined;
1778
+ thresholds?: {
1779
+ low: number;
1780
+ mid: number;
1781
+ } | null | undefined;
1782
+ operationalGroup?: string | null | undefined;
1783
+ unit: {
1784
+ _id: string;
1785
+ name: string;
1786
+ abbrev: string;
1787
+ precision: number;
1788
+ measurements: {
1789
+ id: string;
1790
+ name: string;
1791
+ abbrev: string;
1792
+ conversion: {
1793
+ amount: number;
1794
+ precision: number;
1795
+ };
1796
+ }[];
1797
+ };
1798
+ code: string;
1799
+ _id: string;
1800
+ name: string;
1801
+ };
1802
+ }[];
1803
+ name: string;
1804
+ } | undefined;
1805
+ show?: boolean | undefined;
1806
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
1807
+ onSubmitted?: (() => void) | undefined;
1808
+ }>;
1809
+ templateDetailsProps: Ref<{
1810
+ template?: {
1811
+ ref?: string | null | undefined;
1812
+ _rev?: string | null | undefined;
1813
+ locations?: ({
1814
+ doc?: any;
1815
+ type: "restaurant";
1816
+ name: string;
1817
+ acceptRequest: boolean;
1818
+ dbName: string;
1819
+ } | {
1820
+ type: "warehouse";
1821
+ name: string;
1822
+ acceptRequest: boolean;
1823
+ dbName: string;
1824
+ doc: {
1825
+ pf_business?: {
1826
+ internal?: boolean | null | undefined;
1827
+ url?: string | null | undefined;
1828
+ expiredAt?: string | null | undefined;
1829
+ agentId?: string | null | undefined;
1830
+ restaurantTagGroups?: {
1831
+ name: string;
1832
+ id: string;
1833
+ tags: {
1834
+ name: string;
1835
+ id: string;
1836
+ }[];
1837
+ }[] | null | undefined;
1838
+ pf_agent?: {
1839
+ clickupId?: string | null | undefined;
1840
+ members?: {
1841
+ pf_user?: {
1842
+ email?: string | null | undefined;
1843
+ phoneNumber?: string | null | undefined;
1844
+ birthday?: string | null | undefined;
1845
+ gender?: "MALE" | "FEMALE" | null | undefined;
1846
+ addresses?: {
1847
+ name: string;
1848
+ address: string;
1849
+ coordinates: number[];
1850
+ }[] | null | undefined;
1851
+ photoURL?: string | null | undefined;
1852
+ displayName?: string | null | undefined;
1853
+ imported?: {
1854
+ raw: Record<string, any>;
1855
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
1856
+ } | null | undefined;
1857
+ _id: string;
1858
+ } | null | undefined;
1859
+ role: "ADMIN";
1860
+ userId: string;
1861
+ }[] | null | undefined;
1862
+ code: string;
1863
+ name: string;
1864
+ _id: string;
1865
+ isReseller: boolean;
1866
+ } | null | undefined;
1867
+ thumbnail?: string | null | undefined;
1868
+ billingInfos?: {
1869
+ _id?: string | null | undefined;
1870
+ name: string;
1871
+ address: {
1872
+ coordinates?: number[] | null | undefined;
1873
+ line2?: string | null | undefined;
1874
+ state: string;
1875
+ country: string;
1876
+ line1: string;
1877
+ city: string;
1878
+ postcode: string;
1879
+ };
1880
+ email: string;
1881
+ companyName: string;
1882
+ contact: string;
1883
+ }[] | null | undefined;
1884
+ customerDisplayImages?: {
1885
+ url: string;
1886
+ restaurantIds: string[];
1887
+ }[] | null | undefined;
1888
+ name: string;
1889
+ _id: string;
1890
+ ownerId: string;
1891
+ restaurantQuota: number;
1892
+ warehouseQuota: number;
1893
+ menuVersion: string;
1894
+ } | null | undefined;
1895
+ _id: string;
1896
+ businessId: string;
1897
+ profile: {
1898
+ email?: string | null | undefined;
1899
+ phoneNo?: string | null | undefined;
1900
+ name: string;
1901
+ address: {
1902
+ coordinates?: number[] | null | undefined;
1903
+ line2?: string | null | undefined;
1904
+ state: string;
1905
+ country: string;
1906
+ line1: string;
1907
+ city: string;
1908
+ postcode: string;
1909
+ };
1910
+ regNo: string;
1911
+ };
1912
+ };
1913
+ })[] | null | undefined;
1914
+ _id: string;
1915
+ items: {
1916
+ disabledMeasurements?: string[] | null | undefined;
1917
+ sku: {
1918
+ trackingMeasurement?: string | null | undefined;
1919
+ convert?: {
1920
+ measurement?: string | null | undefined;
1921
+ inventoryBindings?: {
1922
+ measurement?: {
1923
+ id: string;
1924
+ name: string;
1925
+ abbrev: string;
1926
+ conversion: {
1927
+ amount: number;
1928
+ precision: number;
1929
+ };
1930
+ } | null | undefined;
1931
+ type: "RECIPE" | "SKU";
1932
+ amount: {
1933
+ amount: number;
1934
+ precision: number;
1935
+ };
1936
+ id: string;
1937
+ }[] | null | undefined;
1938
+ } | null | undefined;
1939
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1940
+ defaultCost?: {
1941
+ measurement?: {
1942
+ id: string;
1943
+ name: string;
1944
+ abbrev: string;
1945
+ conversion: {
1946
+ amount: number;
1947
+ precision: number;
1948
+ };
1949
+ } | null | undefined;
1950
+ costPerUnit: {
1951
+ 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";
1952
+ amount: number;
1953
+ precision: number;
1954
+ };
1955
+ } | null | undefined;
1956
+ thresholds?: {
1957
+ low: number;
1958
+ mid: number;
1959
+ } | null | undefined;
1960
+ operationalGroup?: string | null | undefined;
1961
+ unit: {
1962
+ _id: string;
1963
+ name: string;
1964
+ abbrev: string;
1965
+ precision: number;
1966
+ measurements: {
1967
+ id: string;
1968
+ name: string;
1969
+ abbrev: string;
1970
+ conversion: {
1971
+ amount: number;
1972
+ precision: number;
1973
+ };
1974
+ }[];
1975
+ };
1976
+ code: string;
1977
+ _id: string;
1978
+ name: string;
1979
+ };
1980
+ }[];
1981
+ name: string;
1982
+ } | undefined;
1983
+ show?: boolean | undefined;
1984
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
1985
+ 'onAction:edit'?: (() => void) | undefined;
1986
+ }, ClosingTemplateDetailsPropsWithEventBinding | {
1987
+ template?: {
1988
+ ref?: string | null | undefined;
1989
+ _rev?: string | null | undefined;
1990
+ locations?: ({
1991
+ doc?: any;
1992
+ type: "restaurant";
1993
+ name: string;
1994
+ acceptRequest: boolean;
1995
+ dbName: string;
1996
+ } | {
1997
+ type: "warehouse";
1998
+ name: string;
1999
+ acceptRequest: boolean;
2000
+ dbName: string;
2001
+ doc: {
2002
+ pf_business?: {
2003
+ internal?: boolean | null | undefined;
2004
+ url?: string | null | undefined;
2005
+ expiredAt?: string | null | undefined;
2006
+ agentId?: string | null | undefined;
2007
+ restaurantTagGroups?: {
2008
+ name: string;
2009
+ id: string;
2010
+ tags: {
2011
+ name: string;
2012
+ id: string;
2013
+ }[];
2014
+ }[] | null | undefined;
2015
+ pf_agent?: {
2016
+ clickupId?: string | null | undefined;
2017
+ members?: {
2018
+ pf_user?: {
2019
+ email?: string | null | undefined;
2020
+ phoneNumber?: string | null | undefined;
2021
+ birthday?: string | null | undefined;
2022
+ gender?: "MALE" | "FEMALE" | null | undefined;
2023
+ addresses?: {
2024
+ name: string;
2025
+ address: string;
2026
+ coordinates: number[];
2027
+ }[] | null | undefined;
2028
+ photoURL?: string | null | undefined;
2029
+ displayName?: string | null | undefined;
2030
+ imported?: {
2031
+ raw: Record<string, any>;
2032
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
2033
+ } | null | undefined;
2034
+ _id: string;
2035
+ } | null | undefined;
2036
+ role: "ADMIN";
2037
+ userId: string;
2038
+ }[] | null | undefined;
2039
+ code: string;
2040
+ name: string;
2041
+ _id: string;
2042
+ isReseller: boolean;
2043
+ } | null | undefined;
2044
+ thumbnail?: string | null | undefined;
2045
+ billingInfos?: {
2046
+ _id?: string | null | undefined;
2047
+ name: string;
2048
+ address: {
2049
+ coordinates?: number[] | null | undefined;
2050
+ line2?: string | null | undefined;
2051
+ state: string;
2052
+ country: string;
2053
+ line1: string;
2054
+ city: string;
2055
+ postcode: string;
2056
+ };
2057
+ email: string;
2058
+ companyName: string;
2059
+ contact: string;
2060
+ }[] | null | undefined;
2061
+ customerDisplayImages?: {
2062
+ url: string;
2063
+ restaurantIds: string[];
2064
+ }[] | null | undefined;
2065
+ name: string;
2066
+ _id: string;
2067
+ ownerId: string;
2068
+ restaurantQuota: number;
2069
+ warehouseQuota: number;
2070
+ menuVersion: string;
2071
+ } | null | undefined;
2072
+ _id: string;
2073
+ businessId: string;
2074
+ profile: {
2075
+ email?: string | null | undefined;
2076
+ phoneNo?: string | null | undefined;
2077
+ name: string;
2078
+ address: {
2079
+ coordinates?: number[] | null | undefined;
2080
+ line2?: string | null | undefined;
2081
+ state: string;
2082
+ country: string;
2083
+ line1: string;
2084
+ city: string;
2085
+ postcode: string;
2086
+ };
2087
+ regNo: string;
2088
+ };
2089
+ };
2090
+ })[] | null | undefined;
2091
+ _id: string;
2092
+ items: {
2093
+ disabledMeasurements?: string[] | null | undefined;
2094
+ sku: {
2095
+ trackingMeasurement?: string | null | undefined;
2096
+ convert?: {
2097
+ measurement?: string | null | undefined;
2098
+ inventoryBindings?: {
2099
+ measurement?: {
2100
+ id: string;
2101
+ name: string;
2102
+ abbrev: string;
2103
+ conversion: {
2104
+ amount: number;
2105
+ precision: number;
2106
+ };
2107
+ } | null | undefined;
2108
+ type: "RECIPE" | "SKU";
2109
+ amount: {
2110
+ amount: number;
2111
+ precision: number;
2112
+ };
2113
+ id: string;
2114
+ }[] | null | undefined;
2115
+ } | null | undefined;
2116
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
2117
+ defaultCost?: {
2118
+ measurement?: {
2119
+ id: string;
2120
+ name: string;
2121
+ abbrev: string;
2122
+ conversion: {
2123
+ amount: number;
2124
+ precision: number;
2125
+ };
2126
+ } | null | undefined;
2127
+ costPerUnit: {
2128
+ 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";
2129
+ amount: number;
2130
+ precision: number;
2131
+ };
2132
+ } | null | undefined;
2133
+ thresholds?: {
2134
+ low: number;
2135
+ mid: number;
2136
+ } | null | undefined;
2137
+ operationalGroup?: string | null | undefined;
2138
+ unit: {
2139
+ _id: string;
2140
+ name: string;
2141
+ abbrev: string;
2142
+ precision: number;
2143
+ measurements: {
2144
+ id: string;
2145
+ name: string;
2146
+ abbrev: string;
2147
+ conversion: {
2148
+ amount: number;
2149
+ precision: number;
2150
+ };
2151
+ }[];
2152
+ };
2153
+ code: string;
2154
+ _id: string;
2155
+ name: string;
2156
+ };
2157
+ }[];
2158
+ name: string;
2159
+ } | undefined;
2160
+ show?: boolean | undefined;
2161
+ 'onUpdate:show'?: ((show: boolean) => void) | undefined;
2162
+ 'onAction:edit'?: (() => void) | undefined;
2163
+ }>;
2164
+ }, "createTemplate" | "viewTemplate" | "updateTemplate" | "deleteTemplate">>;
2165
+ export {};