@feedmepos/mf-inventory-portal 0.0.23-dev.9 → 0.0.24-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.
- package/dist/App-D3sNH2MR.js +276 -0
- package/dist/{ApprovalView-e85YmdZN.js → ApprovalView-DHnRx0hJ.js} +17 -20
- package/dist/{BindingsDialog-giBUD0IH.js → BindingsDialog-oTeg2Dai.js} +6 -6
- package/dist/{BindingsPicker-CC4MmPbF.js → BindingsPicker-CWdjmMJ3.js} +8 -9
- package/dist/{BindingsTable-WphZdzrA.js → BindingsTable-bKLR1OKX.js} +18 -22
- package/dist/ClosingDraftView-CIQVz7lY.js +1225 -0
- package/dist/{ClosingTemplateView-1lzoDyet.js → ClosingTemplateView-D5pLzQwU.js} +259 -274
- package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-ClLDcchC.js +142 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cv-vvzr5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B_c6Vn6P.js} +23 -24
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DIFQcrc0.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DhpHOaRH.js} +50 -51
- package/dist/{IngredientGroupView-UegBM_JK.js → IngredientGroupView-4C437mso.js} +63 -70
- package/dist/IngredientsView-DoiGgjre.js +1706 -0
- package/dist/{IntegrationView-FYNNzKia.js → IntegrationView-8ZKE7MAM.js} +123 -126
- package/dist/{InventoryBindingForm-DsHv_IHG.js → InventoryBindingForm-CcnfliYQ.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BURSXafS.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-B_J-6C9x.js} +116 -108
- package/dist/{InventoryBindingSummary-BLb4MRPZ.js → InventoryBindingSummary-CRdHCzNE.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BG78-DHs.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B2-TypU0.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CqID5_7v.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BuQde75S.js} +20 -21
- package/dist/PublishView-t5gjGmK_.js +192 -0
- package/dist/{PurchaseOrderPrintPreview-BBMU3teq.js → PurchaseOrderPrintPreview-6i53Y-v1.js} +13 -14
- package/dist/ReceiveRequestView-uOeSh0Mr.js +1866 -0
- package/dist/RecipeView-BTWywckD.js +609 -0
- package/dist/StockView-DN2xk8ei.js +1817 -0
- package/dist/{SupplierView-B2aObtwK.js → SupplierView-l0XUg3J4.js} +185 -196
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CWMn6fFf.js +1327 -0
- package/dist/TransferTemplateView-wDKXpCWZ.js +1263 -0
- package/dist/UnitView-CUI-k-tS.js +648 -0
- package/dist/{WarehouseView-G8pej6Y2.js → WarehouseView-WsI_eG5r.js} +190 -197
- package/dist/api/adjustment-template.d.ts +25 -0
- package/dist/api/bill.d.ts +240 -84
- package/dist/api/inventory.d.ts +19 -6
- package/dist/api/netsuite.d.ts +3 -3
- package/dist/app-DntcWR3_.js +85558 -0
- package/dist/app.d.ts +85 -0
- package/dist/app.js +2 -2
- package/dist/components/FmCustomAttribute.vue.d.ts +23 -0
- package/dist/components/FmLockableField.vue.d.ts +37 -0
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +3 -1
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +3 -1
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-DC07xoJW.js → decimal-DTCTnMwO.js} +1 -1
- package/dist/format-unit-display-Hy48Iw5j.js +1215 -0
- package/dist/index-Bv9RYyTZ.js +29202 -0
- package/dist/{StockView-C5btudss.js → index-D4yJP9I2.js} +2220 -3863
- package/dist/layout/SingleColumnLayout.vue.d.ts +1 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-BsdmfT-b.js +125 -0
- package/dist/stores/feature.d.ts +41 -1
- package/dist/stores/integration/netsuite.d.ts +3 -2
- package/dist/stores/inventory.d.ts +20 -8
- package/dist/stores/location.d.ts +29 -1
- package/dist/stores/supplier.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/supplier-CXhkgC4M.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-B0G2XYSw.js → use-inventory-binding-dialog-DPMJmBCr.js} +10 -11
- package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
- package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
- package/dist/views/adjustment-template/import/export.d.ts +60 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateReason.vue.d.ts +18 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1377 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
- package/dist/views/adjustment-template/wastage-template/props.d.ts +36 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1351 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +198 -12
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +7 -4
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1559 -467
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +19 -0
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -0
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +2 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +72 -12
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +73 -13
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +6 -3
- package/dist/views/ingredients/components/convert/ConvertFormProps.d.ts +1 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -2
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +1 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +2 -1
- package/dist/views/publish/PublishView.vue.d.ts +2 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteInfo.vue.d.ts +12 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +13 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteSync.vue.d.ts +12 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +13 -0
- package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +1 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +86 -17
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +4 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +2 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +126 -24
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +126 -24
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +120 -42
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +6 -4
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +4 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +2 -1
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +72 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +72 -12
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +2 -1
- package/dist/vue-i18n-ByVzHsI7.js +2365 -0
- package/package.json +5 -4
- package/dist/App-ByLgARNp.js +0 -259
- package/dist/ClosingDraftView-CQM1Sx45.js +0 -755
- package/dist/FmDroppableField-8RzKjEdL.js +0 -154
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BvkN-71q.js +0 -436
- package/dist/FmMultiselectDialog-DScMA6iG.js +0 -415
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-t4pim_k9.js +0 -51
- package/dist/IngredientsView-BfW-jZLM.js +0 -1666
- package/dist/ReceiveRequestView-vbANEzne.js +0 -4165
- package/dist/RecipeView-DW4DY0C0.js +0 -598
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-B2LOvVef.js +0 -1229
- package/dist/TransferTemplateView-BKumN_p6.js +0 -1262
- package/dist/UnitView-CHLucv9s.js +0 -648
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-BXjk74IB.js +0 -33538
- package/dist/date2-CWAt9bRf.js +0 -117
- package/dist/dayjs.min-D3jPOnu6.js +0 -282
- package/dist/defineDeepModel-CiD4GtOw.js +0 -13
- package/dist/feature-6tcLMotY.js +0 -92
- package/dist/form-mode.enum-BKiNVH6A.js +0 -4
- package/dist/format-time-from-id-CYU5Z9Mt.js +0 -15
- package/dist/format-unit-display-CY-0bznr.js +0 -1217
- package/dist/fuzzy-BMkhNYLR.js +0 -41
- package/dist/index-BXwQa14X.js +0 -45
- package/dist/index-CRLd5xyg.js +0 -22283
- package/dist/index-DqwAtOgI.js +0 -12087
- package/dist/netsuite-fYUUk_ss.js +0 -225
- package/dist/row-action.enum-7rGLGZ5v.js +0 -55
- package/dist/rules-BmRGm3yv.js +0 -203
- package/dist/stock-CEX0DP2B.js +0 -111
- package/dist/supplier-CdJmZr7w.js +0 -77
- package/dist/use-template-enabled-locations-2-xbPJWHCs.js +0 -86
- package/dist/xlsx-CTOKp7SQ.js +0 -24004
- package/dist/xlsx.util-D5NFSfDg.js +0 -78
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ColumnDef } from '@feedmepos/ui-library';
|
|
2
2
|
import type { RevisionIdMeta } from '@feedmepos/inventory-core';
|
|
3
|
-
export declare const useClosingDraftTable: import("pinia").StoreDefinition<"
|
|
3
|
+
export declare const useClosingDraftTable: import("pinia").StoreDefinition<"closingDraftTable", import("pinia")._UnwrapAll<Pick<{
|
|
4
4
|
columnDefs: ColumnDef<{
|
|
5
5
|
remark?: string | null | undefined;
|
|
6
6
|
_rev?: string | null | undefined;
|
|
@@ -21,6 +21,92 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
21
21
|
}[] | null | undefined;
|
|
22
22
|
closingAdjustmentId?: string | null | undefined;
|
|
23
23
|
closingId?: string | null | undefined;
|
|
24
|
+
negativeStockItems?: {
|
|
25
|
+
remark?: string | null | undefined;
|
|
26
|
+
sku: {
|
|
27
|
+
trackingMeasurement?: string | null | undefined;
|
|
28
|
+
convert?: {
|
|
29
|
+
measurement?: string | null | undefined;
|
|
30
|
+
inventoryBindings?: {
|
|
31
|
+
measurement?: {
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
abbrev: string;
|
|
35
|
+
conversion: {
|
|
36
|
+
amount: number;
|
|
37
|
+
precision: number;
|
|
38
|
+
};
|
|
39
|
+
} | null | undefined;
|
|
40
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
41
|
+
amount: {
|
|
42
|
+
amount: number;
|
|
43
|
+
precision: number;
|
|
44
|
+
};
|
|
45
|
+
id: string;
|
|
46
|
+
}[] | null | undefined;
|
|
47
|
+
} | null | undefined;
|
|
48
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
49
|
+
defaultCost?: {
|
|
50
|
+
measurement?: {
|
|
51
|
+
id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
abbrev: string;
|
|
54
|
+
conversion: {
|
|
55
|
+
amount: number;
|
|
56
|
+
precision: number;
|
|
57
|
+
};
|
|
58
|
+
} | null | undefined;
|
|
59
|
+
costPerUnit: {
|
|
60
|
+
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";
|
|
61
|
+
amount: number;
|
|
62
|
+
precision: number;
|
|
63
|
+
};
|
|
64
|
+
} | null | undefined;
|
|
65
|
+
operationalGroup?: string | null | undefined;
|
|
66
|
+
thresholds?: {
|
|
67
|
+
low: number;
|
|
68
|
+
mid: number;
|
|
69
|
+
} | null | undefined;
|
|
70
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
71
|
+
unit: {
|
|
72
|
+
_id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
abbrev: string;
|
|
75
|
+
precision: number;
|
|
76
|
+
measurements: {
|
|
77
|
+
id: string;
|
|
78
|
+
name: string;
|
|
79
|
+
abbrev: string;
|
|
80
|
+
conversion: {
|
|
81
|
+
amount: number;
|
|
82
|
+
precision: number;
|
|
83
|
+
};
|
|
84
|
+
}[];
|
|
85
|
+
};
|
|
86
|
+
code: string;
|
|
87
|
+
_id: string;
|
|
88
|
+
name: string;
|
|
89
|
+
};
|
|
90
|
+
baseAmount: {
|
|
91
|
+
amount: number;
|
|
92
|
+
precision: number;
|
|
93
|
+
};
|
|
94
|
+
measurementsAmounts: {
|
|
95
|
+
amount: {
|
|
96
|
+
amount: number;
|
|
97
|
+
precision: number;
|
|
98
|
+
};
|
|
99
|
+
measurement: {
|
|
100
|
+
id: string;
|
|
101
|
+
name: string;
|
|
102
|
+
abbrev: string;
|
|
103
|
+
conversion: {
|
|
104
|
+
amount: number;
|
|
105
|
+
precision: number;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
}[];
|
|
109
|
+
}[] | null | undefined;
|
|
24
110
|
status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
|
|
25
111
|
_id: string;
|
|
26
112
|
items: {
|
|
@@ -64,11 +150,12 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
64
150
|
precision: number;
|
|
65
151
|
};
|
|
66
152
|
} | null | undefined;
|
|
153
|
+
operationalGroup?: string | null | undefined;
|
|
67
154
|
thresholds?: {
|
|
68
155
|
low: number;
|
|
69
156
|
mid: number;
|
|
70
157
|
} | null | undefined;
|
|
71
|
-
|
|
158
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
72
159
|
unit: {
|
|
73
160
|
_id: string;
|
|
74
161
|
name: string;
|
|
@@ -114,15 +201,15 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
114
201
|
};
|
|
115
202
|
createdAt: string;
|
|
116
203
|
updatedAt: string;
|
|
117
|
-
updatedBy: {
|
|
118
|
-
name: string;
|
|
119
|
-
id: string;
|
|
120
|
-
};
|
|
121
204
|
usingTemplates: {
|
|
122
205
|
ref?: string | null | undefined;
|
|
123
206
|
_rev?: string | null | undefined;
|
|
124
207
|
updatedAt?: Date | null | undefined;
|
|
125
208
|
locations?: {
|
|
209
|
+
inventory?: {
|
|
210
|
+
_id: string;
|
|
211
|
+
updatedAt: string;
|
|
212
|
+
} | null | undefined;
|
|
126
213
|
type: "restaurant" | "warehouse";
|
|
127
214
|
name: string;
|
|
128
215
|
acceptRequest: boolean;
|
|
@@ -216,6 +303,10 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
216
303
|
_id: string;
|
|
217
304
|
name: string;
|
|
218
305
|
}[];
|
|
306
|
+
updatedBy: {
|
|
307
|
+
name: string;
|
|
308
|
+
id: string;
|
|
309
|
+
};
|
|
219
310
|
} & RevisionIdMeta>[];
|
|
220
311
|
drafts: import("vue").Ref<{
|
|
221
312
|
remark?: string | null | undefined;
|
|
@@ -237,9 +328,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
237
328
|
}[] | null | undefined;
|
|
238
329
|
closingAdjustmentId?: string | null | undefined;
|
|
239
330
|
closingId?: string | null | undefined;
|
|
240
|
-
|
|
241
|
-
_id: string;
|
|
242
|
-
items: {
|
|
331
|
+
negativeStockItems?: {
|
|
243
332
|
remark?: string | null | undefined;
|
|
244
333
|
sku: {
|
|
245
334
|
trackingMeasurement?: string | null | undefined;
|
|
@@ -280,11 +369,12 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
280
369
|
precision: number;
|
|
281
370
|
};
|
|
282
371
|
} | null | undefined;
|
|
372
|
+
operationalGroup?: string | null | undefined;
|
|
283
373
|
thresholds?: {
|
|
284
374
|
low: number;
|
|
285
375
|
mid: number;
|
|
286
376
|
} | null | undefined;
|
|
287
|
-
|
|
377
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
288
378
|
unit: {
|
|
289
379
|
_id: string;
|
|
290
380
|
name: string;
|
|
@@ -323,135 +413,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
323
413
|
};
|
|
324
414
|
};
|
|
325
415
|
}[];
|
|
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
416
|
}[] | null | undefined;
|
|
453
|
-
closingAdjustmentId?: string | null | undefined;
|
|
454
|
-
closingId?: string | null | undefined;
|
|
455
417
|
status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
|
|
456
418
|
_id: string;
|
|
457
419
|
items: {
|
|
@@ -495,11 +457,12 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
495
457
|
precision: number;
|
|
496
458
|
};
|
|
497
459
|
} | null | undefined;
|
|
460
|
+
operationalGroup?: string | null | undefined;
|
|
498
461
|
thresholds?: {
|
|
499
462
|
low: number;
|
|
500
463
|
mid: number;
|
|
501
464
|
} | null | undefined;
|
|
502
|
-
|
|
465
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
503
466
|
unit: {
|
|
504
467
|
_id: string;
|
|
505
468
|
name: string;
|
|
@@ -545,15 +508,15 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
545
508
|
};
|
|
546
509
|
createdAt: string;
|
|
547
510
|
updatedAt: string;
|
|
548
|
-
updatedBy: {
|
|
549
|
-
name: string;
|
|
550
|
-
id: string;
|
|
551
|
-
};
|
|
552
511
|
usingTemplates: {
|
|
553
512
|
ref?: string | null | undefined;
|
|
554
513
|
_rev?: string | null | undefined;
|
|
555
514
|
updatedAt?: Date | null | undefined;
|
|
556
515
|
locations?: {
|
|
516
|
+
inventory?: {
|
|
517
|
+
_id: string;
|
|
518
|
+
updatedAt: string;
|
|
519
|
+
} | null | undefined;
|
|
557
520
|
type: "restaurant" | "warehouse";
|
|
558
521
|
name: string;
|
|
559
522
|
acceptRequest: boolean;
|
|
@@ -647,9 +610,13 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
647
610
|
_id: string;
|
|
648
611
|
name: string;
|
|
649
612
|
}[];
|
|
650
|
-
|
|
613
|
+
updatedBy: {
|
|
614
|
+
name: string;
|
|
615
|
+
id: string;
|
|
616
|
+
};
|
|
617
|
+
}[], ({
|
|
651
618
|
remark?: string | null | undefined;
|
|
652
|
-
_rev
|
|
619
|
+
_rev?: string | null | undefined;
|
|
653
620
|
effectiveAt?: string | null | undefined;
|
|
654
621
|
approvedAt?: string | null | undefined;
|
|
655
622
|
approvedBy?: {
|
|
@@ -667,9 +634,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
667
634
|
}[] | null | undefined;
|
|
668
635
|
closingAdjustmentId?: string | null | undefined;
|
|
669
636
|
closingId?: string | null | undefined;
|
|
670
|
-
|
|
671
|
-
_id: string;
|
|
672
|
-
items: {
|
|
637
|
+
negativeStockItems?: {
|
|
673
638
|
remark?: string | null | undefined;
|
|
674
639
|
sku: {
|
|
675
640
|
trackingMeasurement?: string | null | undefined;
|
|
@@ -710,11 +675,12 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
710
675
|
precision: number;
|
|
711
676
|
};
|
|
712
677
|
} | null | undefined;
|
|
678
|
+
operationalGroup?: string | null | undefined;
|
|
713
679
|
thresholds?: {
|
|
714
680
|
low: number;
|
|
715
681
|
mid: number;
|
|
716
682
|
} | null | undefined;
|
|
717
|
-
|
|
683
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
718
684
|
unit: {
|
|
719
685
|
_id: string;
|
|
720
686
|
name: string;
|
|
@@ -753,22 +719,1034 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
753
719
|
};
|
|
754
720
|
};
|
|
755
721
|
}[];
|
|
756
|
-
}[];
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
722
|
+
}[] | null | undefined;
|
|
723
|
+
status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
|
|
724
|
+
_id: string;
|
|
725
|
+
items: {
|
|
726
|
+
remark?: string | null | undefined;
|
|
727
|
+
sku: {
|
|
728
|
+
trackingMeasurement?: string | null | undefined;
|
|
729
|
+
convert?: {
|
|
730
|
+
measurement?: string | null | undefined;
|
|
731
|
+
inventoryBindings?: {
|
|
732
|
+
measurement?: {
|
|
733
|
+
id: string;
|
|
734
|
+
name: string;
|
|
735
|
+
abbrev: string;
|
|
736
|
+
conversion: {
|
|
737
|
+
amount: number;
|
|
738
|
+
precision: number;
|
|
739
|
+
};
|
|
740
|
+
} | null | undefined;
|
|
741
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
742
|
+
amount: {
|
|
743
|
+
amount: number;
|
|
744
|
+
precision: number;
|
|
745
|
+
};
|
|
746
|
+
id: string;
|
|
747
|
+
}[] | null | undefined;
|
|
748
|
+
} | null | undefined;
|
|
749
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
750
|
+
defaultCost?: {
|
|
751
|
+
measurement?: {
|
|
752
|
+
id: string;
|
|
753
|
+
name: string;
|
|
754
|
+
abbrev: string;
|
|
755
|
+
conversion: {
|
|
756
|
+
amount: number;
|
|
757
|
+
precision: number;
|
|
758
|
+
};
|
|
759
|
+
} | null | undefined;
|
|
760
|
+
costPerUnit: {
|
|
761
|
+
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";
|
|
762
|
+
amount: number;
|
|
763
|
+
precision: number;
|
|
764
|
+
};
|
|
765
|
+
} | null | undefined;
|
|
766
|
+
operationalGroup?: string | null | undefined;
|
|
767
|
+
thresholds?: {
|
|
768
|
+
low: number;
|
|
769
|
+
mid: number;
|
|
770
|
+
} | null | undefined;
|
|
771
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
772
|
+
unit: {
|
|
773
|
+
_id: string;
|
|
774
|
+
name: string;
|
|
775
|
+
abbrev: string;
|
|
776
|
+
precision: number;
|
|
777
|
+
measurements: {
|
|
778
|
+
id: string;
|
|
779
|
+
name: string;
|
|
780
|
+
abbrev: string;
|
|
781
|
+
conversion: {
|
|
782
|
+
amount: number;
|
|
783
|
+
precision: number;
|
|
784
|
+
};
|
|
785
|
+
}[];
|
|
786
|
+
};
|
|
787
|
+
code: string;
|
|
788
|
+
_id: string;
|
|
789
|
+
name: string;
|
|
790
|
+
};
|
|
791
|
+
baseAmount: {
|
|
792
|
+
amount: number;
|
|
793
|
+
precision: number;
|
|
794
|
+
};
|
|
795
|
+
measurementsAmounts: {
|
|
796
|
+
amount: {
|
|
797
|
+
amount: number;
|
|
798
|
+
precision: number;
|
|
799
|
+
};
|
|
800
|
+
measurement: {
|
|
801
|
+
id: string;
|
|
802
|
+
name: string;
|
|
803
|
+
abbrev: string;
|
|
804
|
+
conversion: {
|
|
805
|
+
amount: number;
|
|
806
|
+
precision: number;
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
}[];
|
|
810
|
+
}[];
|
|
811
|
+
createdBy: {
|
|
812
|
+
name: string;
|
|
813
|
+
id: string;
|
|
814
|
+
};
|
|
815
|
+
createdAt: string;
|
|
816
|
+
updatedAt: string;
|
|
817
|
+
usingTemplates: {
|
|
818
|
+
ref?: string | null | undefined;
|
|
819
|
+
_rev?: string | null | undefined;
|
|
820
|
+
updatedAt?: Date | null | undefined;
|
|
821
|
+
locations?: {
|
|
822
|
+
inventory?: {
|
|
823
|
+
_id: string;
|
|
824
|
+
updatedAt: string;
|
|
825
|
+
} | null | undefined;
|
|
826
|
+
type: "restaurant" | "warehouse";
|
|
827
|
+
name: string;
|
|
828
|
+
acceptRequest: boolean;
|
|
829
|
+
dbName: string;
|
|
830
|
+
doc: {
|
|
831
|
+
_id: string;
|
|
832
|
+
businessId: string;
|
|
833
|
+
profile: {
|
|
834
|
+
code?: string | null | undefined;
|
|
835
|
+
_id?: string | null | undefined;
|
|
836
|
+
name?: string | undefined;
|
|
837
|
+
address?: {
|
|
838
|
+
coordinates?: number[] | null | undefined;
|
|
839
|
+
line2?: string | null | undefined;
|
|
840
|
+
state: string;
|
|
841
|
+
country: string;
|
|
842
|
+
line1: string;
|
|
843
|
+
city: string;
|
|
844
|
+
postcode: string;
|
|
845
|
+
} | undefined;
|
|
846
|
+
email?: string | undefined;
|
|
847
|
+
regNo?: string | undefined;
|
|
848
|
+
sstRegNo?: string | null | undefined;
|
|
849
|
+
phoneNo?: string | undefined;
|
|
850
|
+
legalName?: string | null | undefined;
|
|
851
|
+
discovery?: boolean | null | undefined;
|
|
852
|
+
coverPhoto?: string | null | undefined;
|
|
853
|
+
thumbnailPhoto?: string | null | undefined;
|
|
854
|
+
description?: string | null | undefined;
|
|
855
|
+
photos?: string[] | null | undefined;
|
|
856
|
+
operatingHours?: {
|
|
857
|
+
0: {
|
|
858
|
+
hours: {
|
|
859
|
+
end: string;
|
|
860
|
+
start: string;
|
|
861
|
+
}[];
|
|
862
|
+
enable: boolean;
|
|
863
|
+
};
|
|
864
|
+
2: {
|
|
865
|
+
hours: {
|
|
866
|
+
end: string;
|
|
867
|
+
start: string;
|
|
868
|
+
}[];
|
|
869
|
+
enable: boolean;
|
|
870
|
+
};
|
|
871
|
+
1: {
|
|
872
|
+
hours: {
|
|
873
|
+
end: string;
|
|
874
|
+
start: string;
|
|
875
|
+
}[];
|
|
876
|
+
enable: boolean;
|
|
877
|
+
};
|
|
878
|
+
3: {
|
|
879
|
+
hours: {
|
|
880
|
+
end: string;
|
|
881
|
+
start: string;
|
|
882
|
+
}[];
|
|
883
|
+
enable: boolean;
|
|
884
|
+
};
|
|
885
|
+
4: {
|
|
886
|
+
hours: {
|
|
887
|
+
end: string;
|
|
888
|
+
start: string;
|
|
889
|
+
}[];
|
|
890
|
+
enable: boolean;
|
|
891
|
+
};
|
|
892
|
+
5: {
|
|
893
|
+
hours: {
|
|
894
|
+
end: string;
|
|
895
|
+
start: string;
|
|
896
|
+
}[];
|
|
897
|
+
enable: boolean;
|
|
898
|
+
};
|
|
899
|
+
6: {
|
|
900
|
+
hours: {
|
|
901
|
+
end: string;
|
|
902
|
+
start: string;
|
|
903
|
+
}[];
|
|
904
|
+
enable: boolean;
|
|
905
|
+
};
|
|
906
|
+
} | null | undefined;
|
|
907
|
+
tags?: string[] | null | undefined;
|
|
908
|
+
url?: string | null | undefined;
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
}[] | null | undefined;
|
|
912
|
+
updatedBy?: {
|
|
913
|
+
name: string;
|
|
914
|
+
id: string;
|
|
915
|
+
} | null | undefined;
|
|
916
|
+
_id: string;
|
|
917
|
+
name: string;
|
|
918
|
+
}[];
|
|
919
|
+
updatedBy: {
|
|
920
|
+
name: string;
|
|
921
|
+
id: string;
|
|
922
|
+
};
|
|
923
|
+
} & RevisionIdMeta)[] | {
|
|
924
|
+
remark?: string | null | undefined;
|
|
925
|
+
_rev: string;
|
|
926
|
+
effectiveAt?: string | null | undefined;
|
|
927
|
+
approvedAt?: string | null | undefined;
|
|
928
|
+
approvedBy?: {
|
|
929
|
+
name: string;
|
|
930
|
+
id: string;
|
|
931
|
+
} | null | undefined;
|
|
932
|
+
approveRemark?: string | null | undefined;
|
|
933
|
+
rejectionHistory?: {
|
|
934
|
+
rejectedAt: string;
|
|
935
|
+
rejectedBy: {
|
|
936
|
+
name: string;
|
|
937
|
+
id: string;
|
|
938
|
+
};
|
|
939
|
+
rejectRemark: string;
|
|
940
|
+
}[] | null | undefined;
|
|
941
|
+
closingAdjustmentId?: string | null | undefined;
|
|
942
|
+
closingId?: string | null | undefined;
|
|
943
|
+
negativeStockItems?: {
|
|
944
|
+
remark?: string | null | undefined;
|
|
945
|
+
sku: {
|
|
946
|
+
trackingMeasurement?: string | null | undefined;
|
|
947
|
+
convert?: {
|
|
948
|
+
measurement?: string | null | undefined;
|
|
949
|
+
inventoryBindings?: {
|
|
950
|
+
measurement?: {
|
|
951
|
+
id: string;
|
|
952
|
+
name: string;
|
|
953
|
+
abbrev: string;
|
|
954
|
+
conversion: {
|
|
955
|
+
amount: number;
|
|
956
|
+
precision: number;
|
|
957
|
+
};
|
|
958
|
+
} | null | undefined;
|
|
959
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
960
|
+
amount: {
|
|
961
|
+
amount: number;
|
|
962
|
+
precision: number;
|
|
963
|
+
};
|
|
964
|
+
id: string;
|
|
965
|
+
}[] | null | undefined;
|
|
966
|
+
} | null | undefined;
|
|
967
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
968
|
+
defaultCost?: {
|
|
969
|
+
measurement?: {
|
|
970
|
+
id: string;
|
|
971
|
+
name: string;
|
|
972
|
+
abbrev: string;
|
|
973
|
+
conversion: {
|
|
974
|
+
amount: number;
|
|
975
|
+
precision: number;
|
|
976
|
+
};
|
|
977
|
+
} | null | undefined;
|
|
978
|
+
costPerUnit: {
|
|
979
|
+
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";
|
|
980
|
+
amount: number;
|
|
981
|
+
precision: number;
|
|
982
|
+
};
|
|
983
|
+
} | null | undefined;
|
|
984
|
+
operationalGroup?: string | null | undefined;
|
|
985
|
+
thresholds?: {
|
|
986
|
+
low: number;
|
|
987
|
+
mid: number;
|
|
988
|
+
} | null | undefined;
|
|
989
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
990
|
+
unit: {
|
|
991
|
+
_id: string;
|
|
992
|
+
name: string;
|
|
993
|
+
abbrev: string;
|
|
994
|
+
precision: number;
|
|
995
|
+
measurements: {
|
|
996
|
+
id: string;
|
|
997
|
+
name: string;
|
|
998
|
+
abbrev: string;
|
|
999
|
+
conversion: {
|
|
1000
|
+
amount: number;
|
|
1001
|
+
precision: number;
|
|
1002
|
+
};
|
|
1003
|
+
}[];
|
|
1004
|
+
};
|
|
1005
|
+
code: string;
|
|
1006
|
+
_id: string;
|
|
1007
|
+
name: string;
|
|
1008
|
+
};
|
|
1009
|
+
baseAmount: {
|
|
1010
|
+
amount: number;
|
|
1011
|
+
precision: number;
|
|
1012
|
+
};
|
|
1013
|
+
measurementsAmounts: {
|
|
1014
|
+
amount: {
|
|
1015
|
+
amount: number;
|
|
1016
|
+
precision: number;
|
|
1017
|
+
};
|
|
1018
|
+
measurement: {
|
|
1019
|
+
id: string;
|
|
1020
|
+
name: string;
|
|
1021
|
+
abbrev: string;
|
|
1022
|
+
conversion: {
|
|
1023
|
+
amount: number;
|
|
1024
|
+
precision: number;
|
|
1025
|
+
};
|
|
1026
|
+
};
|
|
1027
|
+
}[];
|
|
1028
|
+
}[] | null | undefined;
|
|
1029
|
+
status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
|
|
1030
|
+
_id: string;
|
|
1031
|
+
items: {
|
|
1032
|
+
remark?: string | null | undefined;
|
|
1033
|
+
sku: {
|
|
1034
|
+
trackingMeasurement?: string | null | undefined;
|
|
1035
|
+
convert?: {
|
|
1036
|
+
measurement?: string | null | undefined;
|
|
1037
|
+
inventoryBindings?: {
|
|
1038
|
+
measurement?: {
|
|
1039
|
+
id: string;
|
|
1040
|
+
name: string;
|
|
1041
|
+
abbrev: string;
|
|
1042
|
+
conversion: {
|
|
1043
|
+
amount: number;
|
|
1044
|
+
precision: number;
|
|
1045
|
+
};
|
|
1046
|
+
} | null | undefined;
|
|
1047
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1048
|
+
amount: {
|
|
1049
|
+
amount: number;
|
|
1050
|
+
precision: number;
|
|
1051
|
+
};
|
|
1052
|
+
id: string;
|
|
1053
|
+
}[] | null | undefined;
|
|
1054
|
+
} | null | undefined;
|
|
1055
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
1056
|
+
defaultCost?: {
|
|
1057
|
+
measurement?: {
|
|
1058
|
+
id: string;
|
|
1059
|
+
name: string;
|
|
1060
|
+
abbrev: string;
|
|
1061
|
+
conversion: {
|
|
1062
|
+
amount: number;
|
|
1063
|
+
precision: number;
|
|
1064
|
+
};
|
|
1065
|
+
} | null | undefined;
|
|
1066
|
+
costPerUnit: {
|
|
1067
|
+
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";
|
|
1068
|
+
amount: number;
|
|
1069
|
+
precision: number;
|
|
1070
|
+
};
|
|
1071
|
+
} | null | undefined;
|
|
1072
|
+
operationalGroup?: string | null | undefined;
|
|
1073
|
+
thresholds?: {
|
|
1074
|
+
low: number;
|
|
1075
|
+
mid: number;
|
|
1076
|
+
} | null | undefined;
|
|
1077
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1078
|
+
unit: {
|
|
1079
|
+
_id: string;
|
|
1080
|
+
name: string;
|
|
1081
|
+
abbrev: string;
|
|
1082
|
+
precision: number;
|
|
1083
|
+
measurements: {
|
|
1084
|
+
id: string;
|
|
1085
|
+
name: string;
|
|
1086
|
+
abbrev: string;
|
|
1087
|
+
conversion: {
|
|
1088
|
+
amount: number;
|
|
1089
|
+
precision: number;
|
|
1090
|
+
};
|
|
1091
|
+
}[];
|
|
1092
|
+
};
|
|
1093
|
+
code: string;
|
|
1094
|
+
_id: string;
|
|
1095
|
+
name: string;
|
|
1096
|
+
};
|
|
1097
|
+
baseAmount: {
|
|
1098
|
+
amount: number;
|
|
1099
|
+
precision: number;
|
|
1100
|
+
};
|
|
1101
|
+
measurementsAmounts: {
|
|
1102
|
+
amount: {
|
|
1103
|
+
amount: number;
|
|
1104
|
+
precision: number;
|
|
1105
|
+
};
|
|
1106
|
+
measurement: {
|
|
1107
|
+
id: string;
|
|
1108
|
+
name: string;
|
|
1109
|
+
abbrev: string;
|
|
1110
|
+
conversion: {
|
|
1111
|
+
amount: number;
|
|
1112
|
+
precision: number;
|
|
1113
|
+
};
|
|
1114
|
+
};
|
|
1115
|
+
}[];
|
|
1116
|
+
}[];
|
|
1117
|
+
createdBy: {
|
|
1118
|
+
name: string;
|
|
1119
|
+
id: string;
|
|
1120
|
+
};
|
|
1121
|
+
createdAt: string;
|
|
1122
|
+
updatedAt: string;
|
|
1123
|
+
usingTemplates: {
|
|
1124
|
+
ref?: string | null | undefined;
|
|
1125
|
+
_rev?: string | null | undefined;
|
|
1126
|
+
updatedAt?: Date | null | undefined;
|
|
1127
|
+
locations?: {
|
|
1128
|
+
inventory?: {
|
|
1129
|
+
_id: string;
|
|
1130
|
+
updatedAt: string;
|
|
1131
|
+
} | null | undefined;
|
|
1132
|
+
type: "restaurant" | "warehouse";
|
|
1133
|
+
name: string;
|
|
1134
|
+
acceptRequest: boolean;
|
|
1135
|
+
dbName: string;
|
|
1136
|
+
doc: {
|
|
1137
|
+
_id: string;
|
|
1138
|
+
businessId: string;
|
|
1139
|
+
profile: {
|
|
1140
|
+
code?: string | null | undefined;
|
|
1141
|
+
_id?: string | null | undefined;
|
|
1142
|
+
name?: string | undefined;
|
|
1143
|
+
address?: {
|
|
1144
|
+
coordinates?: number[] | null | undefined;
|
|
1145
|
+
line2?: string | null | undefined;
|
|
1146
|
+
state: string;
|
|
1147
|
+
country: string;
|
|
1148
|
+
line1: string;
|
|
1149
|
+
city: string;
|
|
1150
|
+
postcode: string;
|
|
1151
|
+
} | undefined;
|
|
1152
|
+
email?: string | undefined;
|
|
1153
|
+
regNo?: string | undefined;
|
|
1154
|
+
sstRegNo?: string | null | undefined;
|
|
1155
|
+
phoneNo?: string | undefined;
|
|
1156
|
+
legalName?: string | null | undefined;
|
|
1157
|
+
discovery?: boolean | null | undefined;
|
|
1158
|
+
coverPhoto?: string | null | undefined;
|
|
1159
|
+
thumbnailPhoto?: string | null | undefined;
|
|
1160
|
+
description?: string | null | undefined;
|
|
1161
|
+
photos?: string[] | null | undefined;
|
|
1162
|
+
operatingHours?: {
|
|
1163
|
+
0: {
|
|
1164
|
+
hours: {
|
|
1165
|
+
end: string;
|
|
1166
|
+
start: string;
|
|
1167
|
+
}[];
|
|
1168
|
+
enable: boolean;
|
|
1169
|
+
};
|
|
1170
|
+
2: {
|
|
1171
|
+
hours: {
|
|
1172
|
+
end: string;
|
|
1173
|
+
start: string;
|
|
1174
|
+
}[];
|
|
1175
|
+
enable: boolean;
|
|
1176
|
+
};
|
|
1177
|
+
1: {
|
|
1178
|
+
hours: {
|
|
1179
|
+
end: string;
|
|
1180
|
+
start: string;
|
|
1181
|
+
}[];
|
|
1182
|
+
enable: boolean;
|
|
1183
|
+
};
|
|
1184
|
+
3: {
|
|
1185
|
+
hours: {
|
|
1186
|
+
end: string;
|
|
1187
|
+
start: string;
|
|
1188
|
+
}[];
|
|
1189
|
+
enable: boolean;
|
|
1190
|
+
};
|
|
1191
|
+
4: {
|
|
1192
|
+
hours: {
|
|
1193
|
+
end: string;
|
|
1194
|
+
start: string;
|
|
1195
|
+
}[];
|
|
1196
|
+
enable: boolean;
|
|
1197
|
+
};
|
|
1198
|
+
5: {
|
|
1199
|
+
hours: {
|
|
1200
|
+
end: string;
|
|
1201
|
+
start: string;
|
|
1202
|
+
}[];
|
|
1203
|
+
enable: boolean;
|
|
1204
|
+
};
|
|
1205
|
+
6: {
|
|
1206
|
+
hours: {
|
|
1207
|
+
end: string;
|
|
1208
|
+
start: string;
|
|
1209
|
+
}[];
|
|
1210
|
+
enable: boolean;
|
|
1211
|
+
};
|
|
1212
|
+
} | null | undefined;
|
|
1213
|
+
tags?: string[] | null | undefined;
|
|
1214
|
+
url?: string | null | undefined;
|
|
1215
|
+
};
|
|
1216
|
+
};
|
|
1217
|
+
}[] | null | undefined;
|
|
1218
|
+
updatedBy?: {
|
|
1219
|
+
name: string;
|
|
1220
|
+
id: string;
|
|
1221
|
+
} | null | undefined;
|
|
1222
|
+
_id: string;
|
|
1223
|
+
name: string;
|
|
1224
|
+
}[];
|
|
1225
|
+
updatedBy: {
|
|
1226
|
+
name: string;
|
|
1227
|
+
id: string;
|
|
1228
|
+
};
|
|
1229
|
+
}[]>;
|
|
1230
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
1231
|
+
fetchDrafts: () => Promise<void>;
|
|
1232
|
+
loadDraft: (draftId: string) => Promise<void>;
|
|
1233
|
+
}, "loading" | "columnDefs" | "drafts">>, Pick<{
|
|
1234
|
+
columnDefs: ColumnDef<{
|
|
1235
|
+
remark?: string | null | undefined;
|
|
1236
|
+
_rev?: string | null | undefined;
|
|
1237
|
+
effectiveAt?: string | null | undefined;
|
|
1238
|
+
approvedAt?: string | null | undefined;
|
|
1239
|
+
approvedBy?: {
|
|
1240
|
+
name: string;
|
|
1241
|
+
id: string;
|
|
1242
|
+
} | null | undefined;
|
|
1243
|
+
approveRemark?: string | null | undefined;
|
|
1244
|
+
rejectionHistory?: {
|
|
1245
|
+
rejectedAt: string;
|
|
1246
|
+
rejectedBy: {
|
|
1247
|
+
name: string;
|
|
1248
|
+
id: string;
|
|
1249
|
+
};
|
|
1250
|
+
rejectRemark: string;
|
|
1251
|
+
}[] | null | undefined;
|
|
1252
|
+
closingAdjustmentId?: string | null | undefined;
|
|
1253
|
+
closingId?: string | null | undefined;
|
|
1254
|
+
negativeStockItems?: {
|
|
1255
|
+
remark?: string | null | undefined;
|
|
1256
|
+
sku: {
|
|
1257
|
+
trackingMeasurement?: string | null | undefined;
|
|
1258
|
+
convert?: {
|
|
1259
|
+
measurement?: string | null | undefined;
|
|
1260
|
+
inventoryBindings?: {
|
|
1261
|
+
measurement?: {
|
|
1262
|
+
id: string;
|
|
1263
|
+
name: string;
|
|
1264
|
+
abbrev: string;
|
|
1265
|
+
conversion: {
|
|
1266
|
+
amount: number;
|
|
1267
|
+
precision: number;
|
|
1268
|
+
};
|
|
1269
|
+
} | null | undefined;
|
|
1270
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1271
|
+
amount: {
|
|
1272
|
+
amount: number;
|
|
1273
|
+
precision: number;
|
|
1274
|
+
};
|
|
1275
|
+
id: string;
|
|
1276
|
+
}[] | null | undefined;
|
|
1277
|
+
} | null | undefined;
|
|
1278
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
1279
|
+
defaultCost?: {
|
|
1280
|
+
measurement?: {
|
|
1281
|
+
id: string;
|
|
1282
|
+
name: string;
|
|
1283
|
+
abbrev: string;
|
|
1284
|
+
conversion: {
|
|
1285
|
+
amount: number;
|
|
1286
|
+
precision: number;
|
|
1287
|
+
};
|
|
1288
|
+
} | null | undefined;
|
|
1289
|
+
costPerUnit: {
|
|
1290
|
+
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";
|
|
1291
|
+
amount: number;
|
|
1292
|
+
precision: number;
|
|
1293
|
+
};
|
|
1294
|
+
} | null | undefined;
|
|
1295
|
+
operationalGroup?: string | null | undefined;
|
|
1296
|
+
thresholds?: {
|
|
1297
|
+
low: number;
|
|
1298
|
+
mid: number;
|
|
1299
|
+
} | null | undefined;
|
|
1300
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1301
|
+
unit: {
|
|
1302
|
+
_id: string;
|
|
1303
|
+
name: string;
|
|
1304
|
+
abbrev: string;
|
|
1305
|
+
precision: number;
|
|
1306
|
+
measurements: {
|
|
1307
|
+
id: string;
|
|
1308
|
+
name: string;
|
|
1309
|
+
abbrev: string;
|
|
1310
|
+
conversion: {
|
|
1311
|
+
amount: number;
|
|
1312
|
+
precision: number;
|
|
1313
|
+
};
|
|
1314
|
+
}[];
|
|
1315
|
+
};
|
|
1316
|
+
code: string;
|
|
1317
|
+
_id: string;
|
|
1318
|
+
name: string;
|
|
1319
|
+
};
|
|
1320
|
+
baseAmount: {
|
|
1321
|
+
amount: number;
|
|
1322
|
+
precision: number;
|
|
1323
|
+
};
|
|
1324
|
+
measurementsAmounts: {
|
|
1325
|
+
amount: {
|
|
1326
|
+
amount: number;
|
|
1327
|
+
precision: number;
|
|
1328
|
+
};
|
|
1329
|
+
measurement: {
|
|
1330
|
+
id: string;
|
|
1331
|
+
name: string;
|
|
1332
|
+
abbrev: string;
|
|
1333
|
+
conversion: {
|
|
1334
|
+
amount: number;
|
|
1335
|
+
precision: number;
|
|
1336
|
+
};
|
|
1337
|
+
};
|
|
1338
|
+
}[];
|
|
1339
|
+
}[] | null | undefined;
|
|
1340
|
+
status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
|
|
1341
|
+
_id: string;
|
|
1342
|
+
items: {
|
|
1343
|
+
remark?: string | null | undefined;
|
|
1344
|
+
sku: {
|
|
1345
|
+
trackingMeasurement?: string | null | undefined;
|
|
1346
|
+
convert?: {
|
|
1347
|
+
measurement?: string | null | undefined;
|
|
1348
|
+
inventoryBindings?: {
|
|
1349
|
+
measurement?: {
|
|
1350
|
+
id: string;
|
|
1351
|
+
name: string;
|
|
1352
|
+
abbrev: string;
|
|
1353
|
+
conversion: {
|
|
1354
|
+
amount: number;
|
|
1355
|
+
precision: number;
|
|
1356
|
+
};
|
|
1357
|
+
} | null | undefined;
|
|
1358
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1359
|
+
amount: {
|
|
1360
|
+
amount: number;
|
|
1361
|
+
precision: number;
|
|
1362
|
+
};
|
|
1363
|
+
id: string;
|
|
1364
|
+
}[] | null | undefined;
|
|
1365
|
+
} | null | undefined;
|
|
1366
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
1367
|
+
defaultCost?: {
|
|
1368
|
+
measurement?: {
|
|
1369
|
+
id: string;
|
|
1370
|
+
name: string;
|
|
1371
|
+
abbrev: string;
|
|
1372
|
+
conversion: {
|
|
1373
|
+
amount: number;
|
|
1374
|
+
precision: number;
|
|
1375
|
+
};
|
|
1376
|
+
} | null | undefined;
|
|
1377
|
+
costPerUnit: {
|
|
1378
|
+
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";
|
|
1379
|
+
amount: number;
|
|
1380
|
+
precision: number;
|
|
1381
|
+
};
|
|
1382
|
+
} | null | undefined;
|
|
1383
|
+
operationalGroup?: string | null | undefined;
|
|
1384
|
+
thresholds?: {
|
|
1385
|
+
low: number;
|
|
1386
|
+
mid: number;
|
|
1387
|
+
} | null | undefined;
|
|
1388
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1389
|
+
unit: {
|
|
1390
|
+
_id: string;
|
|
1391
|
+
name: string;
|
|
1392
|
+
abbrev: string;
|
|
1393
|
+
precision: number;
|
|
1394
|
+
measurements: {
|
|
1395
|
+
id: string;
|
|
1396
|
+
name: string;
|
|
1397
|
+
abbrev: string;
|
|
1398
|
+
conversion: {
|
|
1399
|
+
amount: number;
|
|
1400
|
+
precision: number;
|
|
1401
|
+
};
|
|
1402
|
+
}[];
|
|
1403
|
+
};
|
|
1404
|
+
code: string;
|
|
1405
|
+
_id: string;
|
|
1406
|
+
name: string;
|
|
1407
|
+
};
|
|
1408
|
+
baseAmount: {
|
|
1409
|
+
amount: number;
|
|
1410
|
+
precision: number;
|
|
1411
|
+
};
|
|
1412
|
+
measurementsAmounts: {
|
|
1413
|
+
amount: {
|
|
1414
|
+
amount: number;
|
|
1415
|
+
precision: number;
|
|
1416
|
+
};
|
|
1417
|
+
measurement: {
|
|
1418
|
+
id: string;
|
|
1419
|
+
name: string;
|
|
1420
|
+
abbrev: string;
|
|
1421
|
+
conversion: {
|
|
1422
|
+
amount: number;
|
|
1423
|
+
precision: number;
|
|
1424
|
+
};
|
|
1425
|
+
};
|
|
1426
|
+
}[];
|
|
1427
|
+
}[];
|
|
1428
|
+
createdBy: {
|
|
1429
|
+
name: string;
|
|
1430
|
+
id: string;
|
|
1431
|
+
};
|
|
1432
|
+
createdAt: string;
|
|
762
1433
|
updatedAt: string;
|
|
1434
|
+
usingTemplates: {
|
|
1435
|
+
ref?: string | null | undefined;
|
|
1436
|
+
_rev?: string | null | undefined;
|
|
1437
|
+
updatedAt?: Date | null | undefined;
|
|
1438
|
+
locations?: {
|
|
1439
|
+
inventory?: {
|
|
1440
|
+
_id: string;
|
|
1441
|
+
updatedAt: string;
|
|
1442
|
+
} | null | undefined;
|
|
1443
|
+
type: "restaurant" | "warehouse";
|
|
1444
|
+
name: string;
|
|
1445
|
+
acceptRequest: boolean;
|
|
1446
|
+
dbName: string;
|
|
1447
|
+
doc: {
|
|
1448
|
+
_id: string;
|
|
1449
|
+
businessId: string;
|
|
1450
|
+
profile: {
|
|
1451
|
+
code?: string | null | undefined;
|
|
1452
|
+
_id?: string | null | undefined;
|
|
1453
|
+
name?: string | undefined;
|
|
1454
|
+
address?: {
|
|
1455
|
+
coordinates?: number[] | null | undefined;
|
|
1456
|
+
line2?: string | null | undefined;
|
|
1457
|
+
state: string;
|
|
1458
|
+
country: string;
|
|
1459
|
+
line1: string;
|
|
1460
|
+
city: string;
|
|
1461
|
+
postcode: string;
|
|
1462
|
+
} | undefined;
|
|
1463
|
+
email?: string | undefined;
|
|
1464
|
+
regNo?: string | undefined;
|
|
1465
|
+
sstRegNo?: string | null | undefined;
|
|
1466
|
+
phoneNo?: string | undefined;
|
|
1467
|
+
legalName?: string | null | undefined;
|
|
1468
|
+
discovery?: boolean | null | undefined;
|
|
1469
|
+
coverPhoto?: string | null | undefined;
|
|
1470
|
+
thumbnailPhoto?: string | null | undefined;
|
|
1471
|
+
description?: string | null | undefined;
|
|
1472
|
+
photos?: string[] | null | undefined;
|
|
1473
|
+
operatingHours?: {
|
|
1474
|
+
0: {
|
|
1475
|
+
hours: {
|
|
1476
|
+
end: string;
|
|
1477
|
+
start: string;
|
|
1478
|
+
}[];
|
|
1479
|
+
enable: boolean;
|
|
1480
|
+
};
|
|
1481
|
+
2: {
|
|
1482
|
+
hours: {
|
|
1483
|
+
end: string;
|
|
1484
|
+
start: string;
|
|
1485
|
+
}[];
|
|
1486
|
+
enable: boolean;
|
|
1487
|
+
};
|
|
1488
|
+
1: {
|
|
1489
|
+
hours: {
|
|
1490
|
+
end: string;
|
|
1491
|
+
start: string;
|
|
1492
|
+
}[];
|
|
1493
|
+
enable: boolean;
|
|
1494
|
+
};
|
|
1495
|
+
3: {
|
|
1496
|
+
hours: {
|
|
1497
|
+
end: string;
|
|
1498
|
+
start: string;
|
|
1499
|
+
}[];
|
|
1500
|
+
enable: boolean;
|
|
1501
|
+
};
|
|
1502
|
+
4: {
|
|
1503
|
+
hours: {
|
|
1504
|
+
end: string;
|
|
1505
|
+
start: string;
|
|
1506
|
+
}[];
|
|
1507
|
+
enable: boolean;
|
|
1508
|
+
};
|
|
1509
|
+
5: {
|
|
1510
|
+
hours: {
|
|
1511
|
+
end: string;
|
|
1512
|
+
start: string;
|
|
1513
|
+
}[];
|
|
1514
|
+
enable: boolean;
|
|
1515
|
+
};
|
|
1516
|
+
6: {
|
|
1517
|
+
hours: {
|
|
1518
|
+
end: string;
|
|
1519
|
+
start: string;
|
|
1520
|
+
}[];
|
|
1521
|
+
enable: boolean;
|
|
1522
|
+
};
|
|
1523
|
+
} | null | undefined;
|
|
1524
|
+
tags?: string[] | null | undefined;
|
|
1525
|
+
url?: string | null | undefined;
|
|
1526
|
+
};
|
|
1527
|
+
};
|
|
1528
|
+
}[] | null | undefined;
|
|
1529
|
+
updatedBy?: {
|
|
1530
|
+
name: string;
|
|
1531
|
+
id: string;
|
|
1532
|
+
} | null | undefined;
|
|
1533
|
+
_id: string;
|
|
1534
|
+
name: string;
|
|
1535
|
+
}[];
|
|
763
1536
|
updatedBy: {
|
|
764
1537
|
name: string;
|
|
765
1538
|
id: string;
|
|
766
1539
|
};
|
|
1540
|
+
} & RevisionIdMeta>[];
|
|
1541
|
+
drafts: import("vue").Ref<{
|
|
1542
|
+
remark?: string | null | undefined;
|
|
1543
|
+
_rev: string;
|
|
1544
|
+
effectiveAt?: string | null | undefined;
|
|
1545
|
+
approvedAt?: string | null | undefined;
|
|
1546
|
+
approvedBy?: {
|
|
1547
|
+
name: string;
|
|
1548
|
+
id: string;
|
|
1549
|
+
} | null | undefined;
|
|
1550
|
+
approveRemark?: string | null | undefined;
|
|
1551
|
+
rejectionHistory?: {
|
|
1552
|
+
rejectedAt: string;
|
|
1553
|
+
rejectedBy: {
|
|
1554
|
+
name: string;
|
|
1555
|
+
id: string;
|
|
1556
|
+
};
|
|
1557
|
+
rejectRemark: string;
|
|
1558
|
+
}[] | null | undefined;
|
|
1559
|
+
closingAdjustmentId?: string | null | undefined;
|
|
1560
|
+
closingId?: string | null | undefined;
|
|
1561
|
+
negativeStockItems?: {
|
|
1562
|
+
remark?: string | null | undefined;
|
|
1563
|
+
sku: {
|
|
1564
|
+
trackingMeasurement?: string | null | undefined;
|
|
1565
|
+
convert?: {
|
|
1566
|
+
measurement?: string | null | undefined;
|
|
1567
|
+
inventoryBindings?: {
|
|
1568
|
+
measurement?: {
|
|
1569
|
+
id: string;
|
|
1570
|
+
name: string;
|
|
1571
|
+
abbrev: string;
|
|
1572
|
+
conversion: {
|
|
1573
|
+
amount: number;
|
|
1574
|
+
precision: number;
|
|
1575
|
+
};
|
|
1576
|
+
} | null | undefined;
|
|
1577
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1578
|
+
amount: {
|
|
1579
|
+
amount: number;
|
|
1580
|
+
precision: number;
|
|
1581
|
+
};
|
|
1582
|
+
id: string;
|
|
1583
|
+
}[] | null | undefined;
|
|
1584
|
+
} | null | undefined;
|
|
1585
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
1586
|
+
defaultCost?: {
|
|
1587
|
+
measurement?: {
|
|
1588
|
+
id: string;
|
|
1589
|
+
name: string;
|
|
1590
|
+
abbrev: string;
|
|
1591
|
+
conversion: {
|
|
1592
|
+
amount: number;
|
|
1593
|
+
precision: number;
|
|
1594
|
+
};
|
|
1595
|
+
} | null | undefined;
|
|
1596
|
+
costPerUnit: {
|
|
1597
|
+
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";
|
|
1598
|
+
amount: number;
|
|
1599
|
+
precision: number;
|
|
1600
|
+
};
|
|
1601
|
+
} | null | undefined;
|
|
1602
|
+
operationalGroup?: string | null | undefined;
|
|
1603
|
+
thresholds?: {
|
|
1604
|
+
low: number;
|
|
1605
|
+
mid: number;
|
|
1606
|
+
} | null | undefined;
|
|
1607
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1608
|
+
unit: {
|
|
1609
|
+
_id: string;
|
|
1610
|
+
name: string;
|
|
1611
|
+
abbrev: string;
|
|
1612
|
+
precision: number;
|
|
1613
|
+
measurements: {
|
|
1614
|
+
id: string;
|
|
1615
|
+
name: string;
|
|
1616
|
+
abbrev: string;
|
|
1617
|
+
conversion: {
|
|
1618
|
+
amount: number;
|
|
1619
|
+
precision: number;
|
|
1620
|
+
};
|
|
1621
|
+
}[];
|
|
1622
|
+
};
|
|
1623
|
+
code: string;
|
|
1624
|
+
_id: string;
|
|
1625
|
+
name: string;
|
|
1626
|
+
};
|
|
1627
|
+
baseAmount: {
|
|
1628
|
+
amount: number;
|
|
1629
|
+
precision: number;
|
|
1630
|
+
};
|
|
1631
|
+
measurementsAmounts: {
|
|
1632
|
+
amount: {
|
|
1633
|
+
amount: number;
|
|
1634
|
+
precision: number;
|
|
1635
|
+
};
|
|
1636
|
+
measurement: {
|
|
1637
|
+
id: string;
|
|
1638
|
+
name: string;
|
|
1639
|
+
abbrev: string;
|
|
1640
|
+
conversion: {
|
|
1641
|
+
amount: number;
|
|
1642
|
+
precision: number;
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1645
|
+
}[];
|
|
1646
|
+
}[] | null | undefined;
|
|
1647
|
+
status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
|
|
1648
|
+
_id: string;
|
|
1649
|
+
items: {
|
|
1650
|
+
remark?: string | null | undefined;
|
|
1651
|
+
sku: {
|
|
1652
|
+
trackingMeasurement?: string | null | undefined;
|
|
1653
|
+
convert?: {
|
|
1654
|
+
measurement?: string | null | undefined;
|
|
1655
|
+
inventoryBindings?: {
|
|
1656
|
+
measurement?: {
|
|
1657
|
+
id: string;
|
|
1658
|
+
name: string;
|
|
1659
|
+
abbrev: string;
|
|
1660
|
+
conversion: {
|
|
1661
|
+
amount: number;
|
|
1662
|
+
precision: number;
|
|
1663
|
+
};
|
|
1664
|
+
} | null | undefined;
|
|
1665
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1666
|
+
amount: {
|
|
1667
|
+
amount: number;
|
|
1668
|
+
precision: number;
|
|
1669
|
+
};
|
|
1670
|
+
id: string;
|
|
1671
|
+
}[] | null | undefined;
|
|
1672
|
+
} | null | undefined;
|
|
1673
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
1674
|
+
defaultCost?: {
|
|
1675
|
+
measurement?: {
|
|
1676
|
+
id: string;
|
|
1677
|
+
name: string;
|
|
1678
|
+
abbrev: string;
|
|
1679
|
+
conversion: {
|
|
1680
|
+
amount: number;
|
|
1681
|
+
precision: number;
|
|
1682
|
+
};
|
|
1683
|
+
} | null | undefined;
|
|
1684
|
+
costPerUnit: {
|
|
1685
|
+
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";
|
|
1686
|
+
amount: number;
|
|
1687
|
+
precision: number;
|
|
1688
|
+
};
|
|
1689
|
+
} | null | undefined;
|
|
1690
|
+
operationalGroup?: string | null | undefined;
|
|
1691
|
+
thresholds?: {
|
|
1692
|
+
low: number;
|
|
1693
|
+
mid: number;
|
|
1694
|
+
} | null | undefined;
|
|
1695
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1696
|
+
unit: {
|
|
1697
|
+
_id: string;
|
|
1698
|
+
name: string;
|
|
1699
|
+
abbrev: string;
|
|
1700
|
+
precision: number;
|
|
1701
|
+
measurements: {
|
|
1702
|
+
id: string;
|
|
1703
|
+
name: string;
|
|
1704
|
+
abbrev: string;
|
|
1705
|
+
conversion: {
|
|
1706
|
+
amount: number;
|
|
1707
|
+
precision: number;
|
|
1708
|
+
};
|
|
1709
|
+
}[];
|
|
1710
|
+
};
|
|
1711
|
+
code: string;
|
|
1712
|
+
_id: string;
|
|
1713
|
+
name: string;
|
|
1714
|
+
};
|
|
1715
|
+
baseAmount: {
|
|
1716
|
+
amount: number;
|
|
1717
|
+
precision: number;
|
|
1718
|
+
};
|
|
1719
|
+
measurementsAmounts: {
|
|
1720
|
+
amount: {
|
|
1721
|
+
amount: number;
|
|
1722
|
+
precision: number;
|
|
1723
|
+
};
|
|
1724
|
+
measurement: {
|
|
1725
|
+
id: string;
|
|
1726
|
+
name: string;
|
|
1727
|
+
abbrev: string;
|
|
1728
|
+
conversion: {
|
|
1729
|
+
amount: number;
|
|
1730
|
+
precision: number;
|
|
1731
|
+
};
|
|
1732
|
+
};
|
|
1733
|
+
}[];
|
|
1734
|
+
}[];
|
|
1735
|
+
createdBy: {
|
|
1736
|
+
name: string;
|
|
1737
|
+
id: string;
|
|
1738
|
+
};
|
|
1739
|
+
createdAt: string;
|
|
1740
|
+
updatedAt: string;
|
|
767
1741
|
usingTemplates: {
|
|
768
1742
|
ref?: string | null | undefined;
|
|
769
1743
|
_rev?: string | null | undefined;
|
|
770
1744
|
updatedAt?: Date | null | undefined;
|
|
771
1745
|
locations?: {
|
|
1746
|
+
inventory?: {
|
|
1747
|
+
_id: string;
|
|
1748
|
+
updatedAt: string;
|
|
1749
|
+
} | null | undefined;
|
|
772
1750
|
type: "restaurant" | "warehouse";
|
|
773
1751
|
name: string;
|
|
774
1752
|
acceptRequest: boolean;
|
|
@@ -862,12 +1840,11 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
862
1840
|
_id: string;
|
|
863
1841
|
name: string;
|
|
864
1842
|
}[];
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
},
|
|
870
|
-
columnDefs: ColumnDef<{
|
|
1843
|
+
updatedBy: {
|
|
1844
|
+
name: string;
|
|
1845
|
+
id: string;
|
|
1846
|
+
};
|
|
1847
|
+
}[], ({
|
|
871
1848
|
remark?: string | null | undefined;
|
|
872
1849
|
_rev?: string | null | undefined;
|
|
873
1850
|
effectiveAt?: string | null | undefined;
|
|
@@ -887,6 +1864,92 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
887
1864
|
}[] | null | undefined;
|
|
888
1865
|
closingAdjustmentId?: string | null | undefined;
|
|
889
1866
|
closingId?: string | null | undefined;
|
|
1867
|
+
negativeStockItems?: {
|
|
1868
|
+
remark?: string | null | undefined;
|
|
1869
|
+
sku: {
|
|
1870
|
+
trackingMeasurement?: string | null | undefined;
|
|
1871
|
+
convert?: {
|
|
1872
|
+
measurement?: string | null | undefined;
|
|
1873
|
+
inventoryBindings?: {
|
|
1874
|
+
measurement?: {
|
|
1875
|
+
id: string;
|
|
1876
|
+
name: string;
|
|
1877
|
+
abbrev: string;
|
|
1878
|
+
conversion: {
|
|
1879
|
+
amount: number;
|
|
1880
|
+
precision: number;
|
|
1881
|
+
};
|
|
1882
|
+
} | null | undefined;
|
|
1883
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1884
|
+
amount: {
|
|
1885
|
+
amount: number;
|
|
1886
|
+
precision: number;
|
|
1887
|
+
};
|
|
1888
|
+
id: string;
|
|
1889
|
+
}[] | null | undefined;
|
|
1890
|
+
} | null | undefined;
|
|
1891
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
1892
|
+
defaultCost?: {
|
|
1893
|
+
measurement?: {
|
|
1894
|
+
id: string;
|
|
1895
|
+
name: string;
|
|
1896
|
+
abbrev: string;
|
|
1897
|
+
conversion: {
|
|
1898
|
+
amount: number;
|
|
1899
|
+
precision: number;
|
|
1900
|
+
};
|
|
1901
|
+
} | null | undefined;
|
|
1902
|
+
costPerUnit: {
|
|
1903
|
+
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";
|
|
1904
|
+
amount: number;
|
|
1905
|
+
precision: number;
|
|
1906
|
+
};
|
|
1907
|
+
} | null | undefined;
|
|
1908
|
+
operationalGroup?: string | null | undefined;
|
|
1909
|
+
thresholds?: {
|
|
1910
|
+
low: number;
|
|
1911
|
+
mid: number;
|
|
1912
|
+
} | null | undefined;
|
|
1913
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1914
|
+
unit: {
|
|
1915
|
+
_id: string;
|
|
1916
|
+
name: string;
|
|
1917
|
+
abbrev: string;
|
|
1918
|
+
precision: number;
|
|
1919
|
+
measurements: {
|
|
1920
|
+
id: string;
|
|
1921
|
+
name: string;
|
|
1922
|
+
abbrev: string;
|
|
1923
|
+
conversion: {
|
|
1924
|
+
amount: number;
|
|
1925
|
+
precision: number;
|
|
1926
|
+
};
|
|
1927
|
+
}[];
|
|
1928
|
+
};
|
|
1929
|
+
code: string;
|
|
1930
|
+
_id: string;
|
|
1931
|
+
name: string;
|
|
1932
|
+
};
|
|
1933
|
+
baseAmount: {
|
|
1934
|
+
amount: number;
|
|
1935
|
+
precision: number;
|
|
1936
|
+
};
|
|
1937
|
+
measurementsAmounts: {
|
|
1938
|
+
amount: {
|
|
1939
|
+
amount: number;
|
|
1940
|
+
precision: number;
|
|
1941
|
+
};
|
|
1942
|
+
measurement: {
|
|
1943
|
+
id: string;
|
|
1944
|
+
name: string;
|
|
1945
|
+
abbrev: string;
|
|
1946
|
+
conversion: {
|
|
1947
|
+
amount: number;
|
|
1948
|
+
precision: number;
|
|
1949
|
+
};
|
|
1950
|
+
};
|
|
1951
|
+
}[];
|
|
1952
|
+
}[] | null | undefined;
|
|
890
1953
|
status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
|
|
891
1954
|
_id: string;
|
|
892
1955
|
items: {
|
|
@@ -930,11 +1993,12 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
930
1993
|
precision: number;
|
|
931
1994
|
};
|
|
932
1995
|
} | null | undefined;
|
|
1996
|
+
operationalGroup?: string | null | undefined;
|
|
933
1997
|
thresholds?: {
|
|
934
1998
|
low: number;
|
|
935
1999
|
mid: number;
|
|
936
2000
|
} | null | undefined;
|
|
937
|
-
|
|
2001
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
938
2002
|
unit: {
|
|
939
2003
|
_id: string;
|
|
940
2004
|
name: string;
|
|
@@ -980,15 +2044,15 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
980
2044
|
};
|
|
981
2045
|
createdAt: string;
|
|
982
2046
|
updatedAt: string;
|
|
983
|
-
updatedBy: {
|
|
984
|
-
name: string;
|
|
985
|
-
id: string;
|
|
986
|
-
};
|
|
987
2047
|
usingTemplates: {
|
|
988
2048
|
ref?: string | null | undefined;
|
|
989
2049
|
_rev?: string | null | undefined;
|
|
990
2050
|
updatedAt?: Date | null | undefined;
|
|
991
2051
|
locations?: {
|
|
2052
|
+
inventory?: {
|
|
2053
|
+
_id: string;
|
|
2054
|
+
updatedAt: string;
|
|
2055
|
+
} | null | undefined;
|
|
992
2056
|
type: "restaurant" | "warehouse";
|
|
993
2057
|
name: string;
|
|
994
2058
|
acceptRequest: boolean;
|
|
@@ -1082,8 +2146,11 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1082
2146
|
_id: string;
|
|
1083
2147
|
name: string;
|
|
1084
2148
|
}[];
|
|
1085
|
-
|
|
1086
|
-
|
|
2149
|
+
updatedBy: {
|
|
2150
|
+
name: string;
|
|
2151
|
+
id: string;
|
|
2152
|
+
};
|
|
2153
|
+
} & RevisionIdMeta)[] | {
|
|
1087
2154
|
remark?: string | null | undefined;
|
|
1088
2155
|
_rev: string;
|
|
1089
2156
|
effectiveAt?: string | null | undefined;
|
|
@@ -1103,6 +2170,92 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1103
2170
|
}[] | null | undefined;
|
|
1104
2171
|
closingAdjustmentId?: string | null | undefined;
|
|
1105
2172
|
closingId?: string | null | undefined;
|
|
2173
|
+
negativeStockItems?: {
|
|
2174
|
+
remark?: string | null | undefined;
|
|
2175
|
+
sku: {
|
|
2176
|
+
trackingMeasurement?: string | null | undefined;
|
|
2177
|
+
convert?: {
|
|
2178
|
+
measurement?: string | null | undefined;
|
|
2179
|
+
inventoryBindings?: {
|
|
2180
|
+
measurement?: {
|
|
2181
|
+
id: string;
|
|
2182
|
+
name: string;
|
|
2183
|
+
abbrev: string;
|
|
2184
|
+
conversion: {
|
|
2185
|
+
amount: number;
|
|
2186
|
+
precision: number;
|
|
2187
|
+
};
|
|
2188
|
+
} | null | undefined;
|
|
2189
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2190
|
+
amount: {
|
|
2191
|
+
amount: number;
|
|
2192
|
+
precision: number;
|
|
2193
|
+
};
|
|
2194
|
+
id: string;
|
|
2195
|
+
}[] | null | undefined;
|
|
2196
|
+
} | null | undefined;
|
|
2197
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
2198
|
+
defaultCost?: {
|
|
2199
|
+
measurement?: {
|
|
2200
|
+
id: string;
|
|
2201
|
+
name: string;
|
|
2202
|
+
abbrev: string;
|
|
2203
|
+
conversion: {
|
|
2204
|
+
amount: number;
|
|
2205
|
+
precision: number;
|
|
2206
|
+
};
|
|
2207
|
+
} | null | undefined;
|
|
2208
|
+
costPerUnit: {
|
|
2209
|
+
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";
|
|
2210
|
+
amount: number;
|
|
2211
|
+
precision: number;
|
|
2212
|
+
};
|
|
2213
|
+
} | null | undefined;
|
|
2214
|
+
operationalGroup?: string | null | undefined;
|
|
2215
|
+
thresholds?: {
|
|
2216
|
+
low: number;
|
|
2217
|
+
mid: number;
|
|
2218
|
+
} | null | undefined;
|
|
2219
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2220
|
+
unit: {
|
|
2221
|
+
_id: string;
|
|
2222
|
+
name: string;
|
|
2223
|
+
abbrev: string;
|
|
2224
|
+
precision: number;
|
|
2225
|
+
measurements: {
|
|
2226
|
+
id: string;
|
|
2227
|
+
name: string;
|
|
2228
|
+
abbrev: string;
|
|
2229
|
+
conversion: {
|
|
2230
|
+
amount: number;
|
|
2231
|
+
precision: number;
|
|
2232
|
+
};
|
|
2233
|
+
}[];
|
|
2234
|
+
};
|
|
2235
|
+
code: string;
|
|
2236
|
+
_id: string;
|
|
2237
|
+
name: string;
|
|
2238
|
+
};
|
|
2239
|
+
baseAmount: {
|
|
2240
|
+
amount: number;
|
|
2241
|
+
precision: number;
|
|
2242
|
+
};
|
|
2243
|
+
measurementsAmounts: {
|
|
2244
|
+
amount: {
|
|
2245
|
+
amount: number;
|
|
2246
|
+
precision: number;
|
|
2247
|
+
};
|
|
2248
|
+
measurement: {
|
|
2249
|
+
id: string;
|
|
2250
|
+
name: string;
|
|
2251
|
+
abbrev: string;
|
|
2252
|
+
conversion: {
|
|
2253
|
+
amount: number;
|
|
2254
|
+
precision: number;
|
|
2255
|
+
};
|
|
2256
|
+
};
|
|
2257
|
+
}[];
|
|
2258
|
+
}[] | null | undefined;
|
|
1106
2259
|
status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
|
|
1107
2260
|
_id: string;
|
|
1108
2261
|
items: {
|
|
@@ -1146,11 +2299,12 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1146
2299
|
precision: number;
|
|
1147
2300
|
};
|
|
1148
2301
|
} | null | undefined;
|
|
2302
|
+
operationalGroup?: string | null | undefined;
|
|
1149
2303
|
thresholds?: {
|
|
1150
2304
|
low: number;
|
|
1151
2305
|
mid: number;
|
|
1152
2306
|
} | null | undefined;
|
|
1153
|
-
|
|
2307
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1154
2308
|
unit: {
|
|
1155
2309
|
_id: string;
|
|
1156
2310
|
name: string;
|
|
@@ -1196,15 +2350,15 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1196
2350
|
};
|
|
1197
2351
|
createdAt: string;
|
|
1198
2352
|
updatedAt: string;
|
|
1199
|
-
updatedBy: {
|
|
1200
|
-
name: string;
|
|
1201
|
-
id: string;
|
|
1202
|
-
};
|
|
1203
2353
|
usingTemplates: {
|
|
1204
2354
|
ref?: string | null | undefined;
|
|
1205
2355
|
_rev?: string | null | undefined;
|
|
1206
2356
|
updatedAt?: Date | null | undefined;
|
|
1207
2357
|
locations?: {
|
|
2358
|
+
inventory?: {
|
|
2359
|
+
_id: string;
|
|
2360
|
+
updatedAt: string;
|
|
2361
|
+
} | null | undefined;
|
|
1208
2362
|
type: "restaurant" | "warehouse";
|
|
1209
2363
|
name: string;
|
|
1210
2364
|
acceptRequest: boolean;
|
|
@@ -1298,7 +2452,16 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1298
2452
|
_id: string;
|
|
1299
2453
|
name: string;
|
|
1300
2454
|
}[];
|
|
1301
|
-
|
|
2455
|
+
updatedBy: {
|
|
2456
|
+
name: string;
|
|
2457
|
+
id: string;
|
|
2458
|
+
};
|
|
2459
|
+
}[]>;
|
|
2460
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
2461
|
+
fetchDrafts: () => Promise<void>;
|
|
2462
|
+
loadDraft: (draftId: string) => Promise<void>;
|
|
2463
|
+
}, never>, Pick<{
|
|
2464
|
+
columnDefs: ColumnDef<{
|
|
1302
2465
|
remark?: string | null | undefined;
|
|
1303
2466
|
_rev?: string | null | undefined;
|
|
1304
2467
|
effectiveAt?: string | null | undefined;
|
|
@@ -1318,6 +2481,92 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1318
2481
|
}[] | null | undefined;
|
|
1319
2482
|
closingAdjustmentId?: string | null | undefined;
|
|
1320
2483
|
closingId?: string | null | undefined;
|
|
2484
|
+
negativeStockItems?: {
|
|
2485
|
+
remark?: string | null | undefined;
|
|
2486
|
+
sku: {
|
|
2487
|
+
trackingMeasurement?: string | null | undefined;
|
|
2488
|
+
convert?: {
|
|
2489
|
+
measurement?: string | null | undefined;
|
|
2490
|
+
inventoryBindings?: {
|
|
2491
|
+
measurement?: {
|
|
2492
|
+
id: string;
|
|
2493
|
+
name: string;
|
|
2494
|
+
abbrev: string;
|
|
2495
|
+
conversion: {
|
|
2496
|
+
amount: number;
|
|
2497
|
+
precision: number;
|
|
2498
|
+
};
|
|
2499
|
+
} | null | undefined;
|
|
2500
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2501
|
+
amount: {
|
|
2502
|
+
amount: number;
|
|
2503
|
+
precision: number;
|
|
2504
|
+
};
|
|
2505
|
+
id: string;
|
|
2506
|
+
}[] | null | undefined;
|
|
2507
|
+
} | null | undefined;
|
|
2508
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
2509
|
+
defaultCost?: {
|
|
2510
|
+
measurement?: {
|
|
2511
|
+
id: string;
|
|
2512
|
+
name: string;
|
|
2513
|
+
abbrev: string;
|
|
2514
|
+
conversion: {
|
|
2515
|
+
amount: number;
|
|
2516
|
+
precision: number;
|
|
2517
|
+
};
|
|
2518
|
+
} | null | undefined;
|
|
2519
|
+
costPerUnit: {
|
|
2520
|
+
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";
|
|
2521
|
+
amount: number;
|
|
2522
|
+
precision: number;
|
|
2523
|
+
};
|
|
2524
|
+
} | null | undefined;
|
|
2525
|
+
operationalGroup?: string | null | undefined;
|
|
2526
|
+
thresholds?: {
|
|
2527
|
+
low: number;
|
|
2528
|
+
mid: number;
|
|
2529
|
+
} | null | undefined;
|
|
2530
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2531
|
+
unit: {
|
|
2532
|
+
_id: string;
|
|
2533
|
+
name: string;
|
|
2534
|
+
abbrev: string;
|
|
2535
|
+
precision: number;
|
|
2536
|
+
measurements: {
|
|
2537
|
+
id: string;
|
|
2538
|
+
name: string;
|
|
2539
|
+
abbrev: string;
|
|
2540
|
+
conversion: {
|
|
2541
|
+
amount: number;
|
|
2542
|
+
precision: number;
|
|
2543
|
+
};
|
|
2544
|
+
}[];
|
|
2545
|
+
};
|
|
2546
|
+
code: string;
|
|
2547
|
+
_id: string;
|
|
2548
|
+
name: string;
|
|
2549
|
+
};
|
|
2550
|
+
baseAmount: {
|
|
2551
|
+
amount: number;
|
|
2552
|
+
precision: number;
|
|
2553
|
+
};
|
|
2554
|
+
measurementsAmounts: {
|
|
2555
|
+
amount: {
|
|
2556
|
+
amount: number;
|
|
2557
|
+
precision: number;
|
|
2558
|
+
};
|
|
2559
|
+
measurement: {
|
|
2560
|
+
id: string;
|
|
2561
|
+
name: string;
|
|
2562
|
+
abbrev: string;
|
|
2563
|
+
conversion: {
|
|
2564
|
+
amount: number;
|
|
2565
|
+
precision: number;
|
|
2566
|
+
};
|
|
2567
|
+
};
|
|
2568
|
+
}[];
|
|
2569
|
+
}[] | null | undefined;
|
|
1321
2570
|
status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
|
|
1322
2571
|
_id: string;
|
|
1323
2572
|
items: {
|
|
@@ -1361,11 +2610,12 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1361
2610
|
precision: number;
|
|
1362
2611
|
};
|
|
1363
2612
|
} | null | undefined;
|
|
2613
|
+
operationalGroup?: string | null | undefined;
|
|
1364
2614
|
thresholds?: {
|
|
1365
2615
|
low: number;
|
|
1366
2616
|
mid: number;
|
|
1367
2617
|
} | null | undefined;
|
|
1368
|
-
|
|
2618
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1369
2619
|
unit: {
|
|
1370
2620
|
_id: string;
|
|
1371
2621
|
name: string;
|
|
@@ -1411,15 +2661,15 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1411
2661
|
};
|
|
1412
2662
|
createdAt: string;
|
|
1413
2663
|
updatedAt: string;
|
|
1414
|
-
updatedBy: {
|
|
1415
|
-
name: string;
|
|
1416
|
-
id: string;
|
|
1417
|
-
};
|
|
1418
2664
|
usingTemplates: {
|
|
1419
2665
|
ref?: string | null | undefined;
|
|
1420
2666
|
_rev?: string | null | undefined;
|
|
1421
2667
|
updatedAt?: Date | null | undefined;
|
|
1422
2668
|
locations?: {
|
|
2669
|
+
inventory?: {
|
|
2670
|
+
_id: string;
|
|
2671
|
+
updatedAt: string;
|
|
2672
|
+
} | null | undefined;
|
|
1423
2673
|
type: "restaurant" | "warehouse";
|
|
1424
2674
|
name: string;
|
|
1425
2675
|
acceptRequest: boolean;
|
|
@@ -1513,7 +2763,12 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1513
2763
|
_id: string;
|
|
1514
2764
|
name: string;
|
|
1515
2765
|
}[];
|
|
1516
|
-
|
|
2766
|
+
updatedBy: {
|
|
2767
|
+
name: string;
|
|
2768
|
+
id: string;
|
|
2769
|
+
};
|
|
2770
|
+
} & RevisionIdMeta>[];
|
|
2771
|
+
drafts: import("vue").Ref<{
|
|
1517
2772
|
remark?: string | null | undefined;
|
|
1518
2773
|
_rev: string;
|
|
1519
2774
|
effectiveAt?: string | null | undefined;
|
|
@@ -1533,9 +2788,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1533
2788
|
}[] | null | undefined;
|
|
1534
2789
|
closingAdjustmentId?: string | null | undefined;
|
|
1535
2790
|
closingId?: string | null | undefined;
|
|
1536
|
-
|
|
1537
|
-
_id: string;
|
|
1538
|
-
items: {
|
|
2791
|
+
negativeStockItems?: {
|
|
1539
2792
|
remark?: string | null | undefined;
|
|
1540
2793
|
sku: {
|
|
1541
2794
|
trackingMeasurement?: string | null | undefined;
|
|
@@ -1576,11 +2829,12 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1576
2829
|
precision: number;
|
|
1577
2830
|
};
|
|
1578
2831
|
} | null | undefined;
|
|
2832
|
+
operationalGroup?: string | null | undefined;
|
|
1579
2833
|
thresholds?: {
|
|
1580
2834
|
low: number;
|
|
1581
2835
|
mid: number;
|
|
1582
2836
|
} | null | undefined;
|
|
1583
|
-
|
|
2837
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1584
2838
|
unit: {
|
|
1585
2839
|
_id: string;
|
|
1586
2840
|
name: string;
|
|
@@ -1619,140 +2873,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1619
2873
|
};
|
|
1620
2874
|
};
|
|
1621
2875
|
}[];
|
|
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
2876
|
}[] | null | undefined;
|
|
1754
|
-
closingAdjustmentId?: string | null | undefined;
|
|
1755
|
-
closingId?: string | null | undefined;
|
|
1756
2877
|
status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
|
|
1757
2878
|
_id: string;
|
|
1758
2879
|
items: {
|
|
@@ -1796,11 +2917,12 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1796
2917
|
precision: number;
|
|
1797
2918
|
};
|
|
1798
2919
|
} | null | undefined;
|
|
2920
|
+
operationalGroup?: string | null | undefined;
|
|
1799
2921
|
thresholds?: {
|
|
1800
2922
|
low: number;
|
|
1801
2923
|
mid: number;
|
|
1802
2924
|
} | null | undefined;
|
|
1803
|
-
|
|
2925
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1804
2926
|
unit: {
|
|
1805
2927
|
_id: string;
|
|
1806
2928
|
name: string;
|
|
@@ -1846,15 +2968,15 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1846
2968
|
};
|
|
1847
2969
|
createdAt: string;
|
|
1848
2970
|
updatedAt: string;
|
|
1849
|
-
updatedBy: {
|
|
1850
|
-
name: string;
|
|
1851
|
-
id: string;
|
|
1852
|
-
};
|
|
1853
2971
|
usingTemplates: {
|
|
1854
2972
|
ref?: string | null | undefined;
|
|
1855
2973
|
_rev?: string | null | undefined;
|
|
1856
2974
|
updatedAt?: Date | null | undefined;
|
|
1857
2975
|
locations?: {
|
|
2976
|
+
inventory?: {
|
|
2977
|
+
_id: string;
|
|
2978
|
+
updatedAt: string;
|
|
2979
|
+
} | null | undefined;
|
|
1858
2980
|
type: "restaurant" | "warehouse";
|
|
1859
2981
|
name: string;
|
|
1860
2982
|
acceptRequest: boolean;
|
|
@@ -1948,10 +3070,13 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1948
3070
|
_id: string;
|
|
1949
3071
|
name: string;
|
|
1950
3072
|
}[];
|
|
1951
|
-
|
|
1952
|
-
|
|
3073
|
+
updatedBy: {
|
|
3074
|
+
name: string;
|
|
3075
|
+
id: string;
|
|
3076
|
+
};
|
|
3077
|
+
}[], ({
|
|
1953
3078
|
remark?: string | null | undefined;
|
|
1954
|
-
_rev
|
|
3079
|
+
_rev?: string | null | undefined;
|
|
1955
3080
|
effectiveAt?: string | null | undefined;
|
|
1956
3081
|
approvedAt?: string | null | undefined;
|
|
1957
3082
|
approvedBy?: {
|
|
@@ -1969,9 +3094,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
1969
3094
|
}[] | null | undefined;
|
|
1970
3095
|
closingAdjustmentId?: string | null | undefined;
|
|
1971
3096
|
closingId?: string | null | undefined;
|
|
1972
|
-
|
|
1973
|
-
_id: string;
|
|
1974
|
-
items: {
|
|
3097
|
+
negativeStockItems?: {
|
|
1975
3098
|
remark?: string | null | undefined;
|
|
1976
3099
|
sku: {
|
|
1977
3100
|
trackingMeasurement?: string | null | undefined;
|
|
@@ -2012,11 +3135,12 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
2012
3135
|
precision: number;
|
|
2013
3136
|
};
|
|
2014
3137
|
} | null | undefined;
|
|
3138
|
+
operationalGroup?: string | null | undefined;
|
|
2015
3139
|
thresholds?: {
|
|
2016
3140
|
low: number;
|
|
2017
3141
|
mid: number;
|
|
2018
3142
|
} | null | undefined;
|
|
2019
|
-
|
|
3143
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2020
3144
|
unit: {
|
|
2021
3145
|
_id: string;
|
|
2022
3146
|
name: string;
|
|
@@ -2055,135 +3179,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
2055
3179
|
};
|
|
2056
3180
|
};
|
|
2057
3181
|
}[];
|
|
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
3182
|
}[] | null | undefined;
|
|
2185
|
-
closingAdjustmentId?: string | null | undefined;
|
|
2186
|
-
closingId?: string | null | undefined;
|
|
2187
3183
|
status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
|
|
2188
3184
|
_id: string;
|
|
2189
3185
|
items: {
|
|
@@ -2227,11 +3223,12 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
2227
3223
|
precision: number;
|
|
2228
3224
|
};
|
|
2229
3225
|
} | null | undefined;
|
|
3226
|
+
operationalGroup?: string | null | undefined;
|
|
2230
3227
|
thresholds?: {
|
|
2231
3228
|
low: number;
|
|
2232
3229
|
mid: number;
|
|
2233
3230
|
} | null | undefined;
|
|
2234
|
-
|
|
3231
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2235
3232
|
unit: {
|
|
2236
3233
|
_id: string;
|
|
2237
3234
|
name: string;
|
|
@@ -2277,15 +3274,15 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
2277
3274
|
};
|
|
2278
3275
|
createdAt: string;
|
|
2279
3276
|
updatedAt: string;
|
|
2280
|
-
updatedBy: {
|
|
2281
|
-
name: string;
|
|
2282
|
-
id: string;
|
|
2283
|
-
};
|
|
2284
3277
|
usingTemplates: {
|
|
2285
3278
|
ref?: string | null | undefined;
|
|
2286
3279
|
_rev?: string | null | undefined;
|
|
2287
3280
|
updatedAt?: Date | null | undefined;
|
|
2288
3281
|
locations?: {
|
|
3282
|
+
inventory?: {
|
|
3283
|
+
_id: string;
|
|
3284
|
+
updatedAt: string;
|
|
3285
|
+
} | null | undefined;
|
|
2289
3286
|
type: "restaurant" | "warehouse";
|
|
2290
3287
|
name: string;
|
|
2291
3288
|
acceptRequest: boolean;
|
|
@@ -2379,6 +3376,10 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
2379
3376
|
_id: string;
|
|
2380
3377
|
name: string;
|
|
2381
3378
|
}[];
|
|
3379
|
+
updatedBy: {
|
|
3380
|
+
name: string;
|
|
3381
|
+
id: string;
|
|
3382
|
+
};
|
|
2382
3383
|
} & RevisionIdMeta)[] | {
|
|
2383
3384
|
remark?: string | null | undefined;
|
|
2384
3385
|
_rev: string;
|
|
@@ -2399,6 +3400,92 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
2399
3400
|
}[] | null | undefined;
|
|
2400
3401
|
closingAdjustmentId?: string | null | undefined;
|
|
2401
3402
|
closingId?: string | null | undefined;
|
|
3403
|
+
negativeStockItems?: {
|
|
3404
|
+
remark?: string | null | undefined;
|
|
3405
|
+
sku: {
|
|
3406
|
+
trackingMeasurement?: string | null | undefined;
|
|
3407
|
+
convert?: {
|
|
3408
|
+
measurement?: string | null | undefined;
|
|
3409
|
+
inventoryBindings?: {
|
|
3410
|
+
measurement?: {
|
|
3411
|
+
id: string;
|
|
3412
|
+
name: string;
|
|
3413
|
+
abbrev: string;
|
|
3414
|
+
conversion: {
|
|
3415
|
+
amount: number;
|
|
3416
|
+
precision: number;
|
|
3417
|
+
};
|
|
3418
|
+
} | null | undefined;
|
|
3419
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
3420
|
+
amount: {
|
|
3421
|
+
amount: number;
|
|
3422
|
+
precision: number;
|
|
3423
|
+
};
|
|
3424
|
+
id: string;
|
|
3425
|
+
}[] | null | undefined;
|
|
3426
|
+
} | null | undefined;
|
|
3427
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
3428
|
+
defaultCost?: {
|
|
3429
|
+
measurement?: {
|
|
3430
|
+
id: string;
|
|
3431
|
+
name: string;
|
|
3432
|
+
abbrev: string;
|
|
3433
|
+
conversion: {
|
|
3434
|
+
amount: number;
|
|
3435
|
+
precision: number;
|
|
3436
|
+
};
|
|
3437
|
+
} | null | undefined;
|
|
3438
|
+
costPerUnit: {
|
|
3439
|
+
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";
|
|
3440
|
+
amount: number;
|
|
3441
|
+
precision: number;
|
|
3442
|
+
};
|
|
3443
|
+
} | null | undefined;
|
|
3444
|
+
operationalGroup?: string | null | undefined;
|
|
3445
|
+
thresholds?: {
|
|
3446
|
+
low: number;
|
|
3447
|
+
mid: number;
|
|
3448
|
+
} | null | undefined;
|
|
3449
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
3450
|
+
unit: {
|
|
3451
|
+
_id: string;
|
|
3452
|
+
name: string;
|
|
3453
|
+
abbrev: string;
|
|
3454
|
+
precision: number;
|
|
3455
|
+
measurements: {
|
|
3456
|
+
id: string;
|
|
3457
|
+
name: string;
|
|
3458
|
+
abbrev: string;
|
|
3459
|
+
conversion: {
|
|
3460
|
+
amount: number;
|
|
3461
|
+
precision: number;
|
|
3462
|
+
};
|
|
3463
|
+
}[];
|
|
3464
|
+
};
|
|
3465
|
+
code: string;
|
|
3466
|
+
_id: string;
|
|
3467
|
+
name: string;
|
|
3468
|
+
};
|
|
3469
|
+
baseAmount: {
|
|
3470
|
+
amount: number;
|
|
3471
|
+
precision: number;
|
|
3472
|
+
};
|
|
3473
|
+
measurementsAmounts: {
|
|
3474
|
+
amount: {
|
|
3475
|
+
amount: number;
|
|
3476
|
+
precision: number;
|
|
3477
|
+
};
|
|
3478
|
+
measurement: {
|
|
3479
|
+
id: string;
|
|
3480
|
+
name: string;
|
|
3481
|
+
abbrev: string;
|
|
3482
|
+
conversion: {
|
|
3483
|
+
amount: number;
|
|
3484
|
+
precision: number;
|
|
3485
|
+
};
|
|
3486
|
+
};
|
|
3487
|
+
}[];
|
|
3488
|
+
}[] | null | undefined;
|
|
2402
3489
|
status: "DRAFT" | "PROCESSING" | "FAILED" | "COMPLETED";
|
|
2403
3490
|
_id: string;
|
|
2404
3491
|
items: {
|
|
@@ -2442,11 +3529,12 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
2442
3529
|
precision: number;
|
|
2443
3530
|
};
|
|
2444
3531
|
} | null | undefined;
|
|
3532
|
+
operationalGroup?: string | null | undefined;
|
|
2445
3533
|
thresholds?: {
|
|
2446
3534
|
low: number;
|
|
2447
3535
|
mid: number;
|
|
2448
3536
|
} | null | undefined;
|
|
2449
|
-
|
|
3537
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2450
3538
|
unit: {
|
|
2451
3539
|
_id: string;
|
|
2452
3540
|
name: string;
|
|
@@ -2492,15 +3580,15 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
2492
3580
|
};
|
|
2493
3581
|
createdAt: string;
|
|
2494
3582
|
updatedAt: string;
|
|
2495
|
-
updatedBy: {
|
|
2496
|
-
name: string;
|
|
2497
|
-
id: string;
|
|
2498
|
-
};
|
|
2499
3583
|
usingTemplates: {
|
|
2500
3584
|
ref?: string | null | undefined;
|
|
2501
3585
|
_rev?: string | null | undefined;
|
|
2502
3586
|
updatedAt?: Date | null | undefined;
|
|
2503
3587
|
locations?: {
|
|
3588
|
+
inventory?: {
|
|
3589
|
+
_id: string;
|
|
3590
|
+
updatedAt: string;
|
|
3591
|
+
} | null | undefined;
|
|
2504
3592
|
type: "restaurant" | "warehouse";
|
|
2505
3593
|
name: string;
|
|
2506
3594
|
acceptRequest: boolean;
|
|
@@ -2594,6 +3682,10 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
2594
3682
|
_id: string;
|
|
2595
3683
|
name: string;
|
|
2596
3684
|
}[];
|
|
3685
|
+
updatedBy: {
|
|
3686
|
+
name: string;
|
|
3687
|
+
id: string;
|
|
3688
|
+
};
|
|
2597
3689
|
}[]>;
|
|
2598
3690
|
loading: import("vue").Ref<boolean, boolean>;
|
|
2599
3691
|
fetchDrafts: () => Promise<void>;
|