@feedmepos/mf-inventory-portal 0.0.25-dev.9 → 0.0.26-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-9zSE_swt.js → App-CipfIdtR.js} +71 -72
- package/dist/ApprovalView-IC33yBg7.js +143 -0
- package/dist/{BindingsDialog-eGbOIQkw.js → BindingsDialog-EN6Kbnu7.js} +2 -2
- package/dist/{BindingsPicker-CVXrd29s.js → BindingsPicker-DQ_LEoqq.js} +3 -3
- package/dist/BindingsTable-DGXpAyM4.js +120 -0
- package/dist/ClosingDraftView-DR9xsW9I.js +1348 -0
- package/dist/ClosingTemplateView-CC1T7ovX.js +1804 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C9un0wCK.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CovzlB-s.js} +43 -43
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BRSABJnM.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BxEtsFXp.js} +29 -29
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeRvrF7O.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-B8H6vFJ5.js} +1 -1
- package/dist/{IngredientGroupView-ZWCOAljO.js → IngredientGroupView-DRPbXH8d.js} +24 -24
- package/dist/IngredientsView-DSHcH30X.js +1731 -0
- package/dist/{IntegrationView-DO3Ambro.js → IntegrationView-BgACk-jP.js} +605 -669
- package/dist/{InventoryBindingForm-BjtFP29c.js → InventoryBindingForm-Fs-CHoT-.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFMZ4VsK.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DVHQjAEC.js} +63 -63
- package/dist/{InventoryBindingSummary-C6DkVX-B.js → InventoryBindingSummary-CHWMtGtk.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-nb1t6u2V.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cu9V-8Cf.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BcMAXo4F.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CyVRCAqv.js} +12 -12
- package/dist/PublishView-CI7o5a0F.js +222 -0
- package/dist/{PurchaseOrderPrintPreview-_MCAsdw9.js → PurchaseOrderPrintPreview-CO4a811o.js} +1 -1
- package/dist/ReceiveRequestView-KH5wY5BA.js +2562 -0
- package/dist/{RecipeView-dmmjklwh.js → RecipeView-DxVbUxOG.js} +47 -47
- package/dist/StockView-CiHPAaYh.js +1840 -0
- package/dist/{SupplierView-CO5460uC.js → SupplierView-DPj87kld.js} +448 -461
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CfPPCFh8.js +1566 -0
- package/dist/TransferTemplateView-3W29v8hd.js +1420 -0
- package/dist/{UnitView-DbYzxCXF.js → UnitView-WCtNQFf8.js} +23 -23
- package/dist/{WarehouseView-BII4SEVC.js → WarehouseView-tgFFbQY7.js} +40 -40
- package/dist/api/bill.d.ts +12 -2
- package/dist/api/closing-draft.d.ts +1 -0
- package/dist/api/inventory.d.ts +8 -7
- package/dist/api/netsuite.d.ts +22 -5
- package/dist/api/purchase-order.d.ts +6 -1
- package/dist/api/stock.d.ts +1 -0
- package/dist/{app-IM1yJnE8.js → app-Ba80HxT3.js} +38448 -34777
- package/dist/app.d.ts +965 -120
- package/dist/app.js +1 -1
- package/dist/components/FmDroppableField.vue.d.ts +1 -1
- package/dist/components/FmMultiselectDialog.d.ts +23 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
- package/dist/{decimal-DQUpCN-B.js → decimal-DFqusYHB.js} +1 -1
- package/dist/{format-unit-display-COuIZISg.js → format-unit-display-Bsod5Ra6.js} +232 -238
- package/dist/helper/country.d.ts +1 -0
- package/dist/helper/fuzzy.d.ts +1 -1
- package/dist/helper/number.d.ts +1 -1
- package/dist/index-0ekVGPtB.js +12197 -0
- package/dist/index-ZAEVHtfa.js +84 -0
- package/dist/{stock-BJUTiXXk.js → stock-Cn6EQvTz.js} +29 -25
- package/dist/stores/feature.d.ts +11 -6
- package/dist/stores/helper/generate-backend-urls.d.ts +0 -1
- package/dist/stores/integration/index.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +22 -5
- package/dist/stores/inventory.d.ts +141 -8
- package/dist/stores/location.d.ts +0 -9
- package/dist/stores/stock.d.ts +5 -0
- package/dist/stores/warehouse.d.ts +4 -7
- package/dist/style.css +1 -1
- package/dist/{supplier-CM-qQVyI.js → supplier-P1gi71dg.js} +4 -4
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Cn79xFNg.js → use-ingredient-select-dialog-BW5imbB5.js} +1 -1
- package/dist/{use-inventory-binding-dialog-zwOG19YV.js → use-inventory-binding-dialog-BYxb8nXg.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +0 -24
- package/dist/views/adjustment-template/wastage-template/table.d.ts +0 -24
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +92 -8
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +552 -48
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +1 -1
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +12 -36
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +12 -36
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +4 -1
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +2 -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 +529 -489
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +8 -4
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +382 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +5 -2
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1238 -972
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1080 -1003
- package/dist/views/receive-request/import/XilnexImportDialog.vue.d.ts +22 -0
- package/dist/views/receive-request/import/XilnexImportForm.vue.d.ts +17 -0
- package/dist/views/receive-request/import/XilnexResult.vue.d.ts +17 -0
- package/dist/views/receive-request/import/export.d.ts +14 -0
- package/dist/views/receive-request/import/props.d.ts +7 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +6 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +6 -4
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +220 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +0 -8
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +0 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +7 -2
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +530 -530
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +530 -530
- package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +305 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -14
- package/dist/vue-i18n-CjtRsQMl.js +2365 -0
- package/package.json +7 -7
- package/dist/ApprovalView-C2tg-wsm.js +0 -138
- package/dist/BindingsTable-CCsQEFnu.js +0 -145
- package/dist/ClosingDraftView-BI8b3CJ9.js +0 -1225
- package/dist/ClosingTemplateView-miJnC-ML.js +0 -1859
- package/dist/IngredientsView-5-pSX6y_.js +0 -1718
- package/dist/PublishView-DOMQdIJ7.js +0 -192
- package/dist/ReceiveRequestView-902hWGtz.js +0 -1877
- package/dist/StockView-C4lEYLXU.js +0 -7847
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-D6sZDCEY.js +0 -1328
- package/dist/TransferTemplateView-C9UwNTnY.js +0 -1371
- package/dist/components/FmAutocompleteTextField.vue.d.ts +0 -31
- package/dist/feature-DMBVVBsQ.js +0 -1005
- package/dist/index-CIrsMt6f.js +0 -35546
- package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +0 -2
- package/dist/vue-i18n-CzPFJ9JY.js +0 -2365
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { ref as l, computed as c } from "vue";
|
|
2
|
+
import { u as g, aP as d, b as m } from "./app-Ba80HxT3.js";
|
|
3
|
+
import { useSnackbar as f } from "@feedmepos/ui-library";
|
|
4
|
+
function b() {
|
|
5
|
+
return {
|
|
6
|
+
setting: {
|
|
7
|
+
_id: "",
|
|
8
|
+
enable: !1,
|
|
9
|
+
bindings: [],
|
|
10
|
+
uniqueCode: "",
|
|
11
|
+
branchCode: "",
|
|
12
|
+
server: {
|
|
13
|
+
password: "",
|
|
14
|
+
host: "",
|
|
15
|
+
username: "",
|
|
16
|
+
port: "",
|
|
17
|
+
directory: ""
|
|
18
|
+
},
|
|
19
|
+
histories: [],
|
|
20
|
+
modifiers: [],
|
|
21
|
+
exportAsJson: !1
|
|
22
|
+
},
|
|
23
|
+
menu: [],
|
|
24
|
+
group: [],
|
|
25
|
+
variants: [],
|
|
26
|
+
categories: []
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
const e = l(b());
|
|
30
|
+
function p() {
|
|
31
|
+
return {
|
|
32
|
+
// state
|
|
33
|
+
get isEnabled() {
|
|
34
|
+
return e.value.setting.enable;
|
|
35
|
+
},
|
|
36
|
+
get isBusinessLocation() {
|
|
37
|
+
return g().businessLevel;
|
|
38
|
+
},
|
|
39
|
+
get state() {
|
|
40
|
+
return e.value;
|
|
41
|
+
},
|
|
42
|
+
async init() {
|
|
43
|
+
var a, o, i, t;
|
|
44
|
+
const r = d();
|
|
45
|
+
try {
|
|
46
|
+
const n = await r.readMenu();
|
|
47
|
+
e.value.menu = ((a = n.modules) == null ? void 0 : a.item) ?? [], e.value.group = ((o = n.modules) == null ? void 0 : o.group) ?? [], e.value.variants = ((i = n.modules) == null ? void 0 : i.variant) ?? [];
|
|
48
|
+
const u = (((t = n.modules) == null ? void 0 : t.category) ?? []).map((s) => ({
|
|
49
|
+
...s,
|
|
50
|
+
_id: s._id === void 0 ? null : s._id
|
|
51
|
+
}));
|
|
52
|
+
e.value.categories = u, e.value.setting = await r.readSetting();
|
|
53
|
+
} catch (n) {
|
|
54
|
+
f().open({
|
|
55
|
+
title: "Something went wrong",
|
|
56
|
+
message: "Cannot fetch integration info. Please try again.",
|
|
57
|
+
type: "error"
|
|
58
|
+
}), console.error("Error at fetching integration info", n);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function y() {
|
|
64
|
+
const r = m(), a = p(), o = c(() => r.isEnabled), i = c(() => a.isEnabled);
|
|
65
|
+
return {
|
|
66
|
+
get enabledIntegrations() {
|
|
67
|
+
return [o.value, i.value].filter((t) => t).length;
|
|
68
|
+
},
|
|
69
|
+
get isNetSuiteEnabled() {
|
|
70
|
+
return o.value;
|
|
71
|
+
},
|
|
72
|
+
async fetchFoodMarketHubSetting() {
|
|
73
|
+
try {
|
|
74
|
+
await a.init();
|
|
75
|
+
} catch (t) {
|
|
76
|
+
console.error("Error fetching FoodMarketHub setting:", t);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
p as a,
|
|
83
|
+
y as u
|
|
84
|
+
};
|
|
@@ -1,41 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useCoreStore as
|
|
1
|
+
import { Y as m, u as B, a as l, ak as k, L as v } from "./app-Ba80HxT3.js";
|
|
2
|
+
import { useCoreStore as p } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as y } from "@feedmepos/ui-library";
|
|
4
4
|
import { ref as $, computed as S } from "vue";
|
|
5
5
|
const b = m((r, o) => {
|
|
6
|
-
const
|
|
6
|
+
const c = B(), a = p(), u = y();
|
|
7
7
|
return o.onError(async (t) => {
|
|
8
|
-
t.name === "SvcForbiddenError" && (
|
|
8
|
+
t.name === "SvcForbiddenError" && (u == null || u.open({
|
|
9
9
|
title: t.title,
|
|
10
10
|
message: t.message,
|
|
11
11
|
type: "error"
|
|
12
12
|
}));
|
|
13
13
|
}), {
|
|
14
14
|
async readStockBalance() {
|
|
15
|
-
const t =
|
|
15
|
+
const t = c.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/stock-balance`;
|
|
16
16
|
return await o.get(e);
|
|
17
17
|
},
|
|
18
18
|
async readSkuBalance() {
|
|
19
19
|
var s;
|
|
20
|
-
const t =
|
|
20
|
+
const t = c.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/sku/balance`;
|
|
21
21
|
return (((s = a.currentBusiness.value) == null ? void 0 : s.menuVersion) ?? "") === "v3" ? await o.get(e) : await o.get(`${e}?useInventoryDoc=true`);
|
|
22
22
|
},
|
|
23
23
|
async readSingleAdjustment(t) {
|
|
24
|
-
const e =
|
|
24
|
+
const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/adjustment`;
|
|
25
25
|
return await o.get(`${n}?adjustmentId=${t}`);
|
|
26
26
|
},
|
|
27
27
|
async readStockAdjustment(t, e, n) {
|
|
28
|
-
const s =
|
|
28
|
+
const s = c.currentLocationDBName, i = `${r.inventoryBackendUrl}/${s}/sku`;
|
|
29
29
|
return await o.get(`${i}?skuId=${t}&start=${e}&end=${n}`);
|
|
30
30
|
},
|
|
31
|
+
async readAdjustmentById(t) {
|
|
32
|
+
const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/adjustment`;
|
|
33
|
+
return await o.get(`${n}?adjustmentId=${t}`);
|
|
34
|
+
},
|
|
31
35
|
async convertSku(t) {
|
|
32
36
|
var i;
|
|
33
|
-
const e =
|
|
37
|
+
const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/convert`;
|
|
34
38
|
return (((i = a.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await o.post(n, t) : await o.post(`${n}?useInventoryDoc=true`, t);
|
|
35
39
|
},
|
|
36
40
|
async adjustSku(t) {
|
|
37
41
|
var i;
|
|
38
|
-
const e =
|
|
42
|
+
const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/adjust`;
|
|
39
43
|
return (((i = a.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await o.post(n, t) : await o.post(`${n}?useInventoryDoc=true`, t);
|
|
40
44
|
},
|
|
41
45
|
recalculation: {
|
|
@@ -61,44 +65,44 @@ function g() {
|
|
|
61
65
|
productBalance: []
|
|
62
66
|
};
|
|
63
67
|
}
|
|
64
|
-
const f =
|
|
68
|
+
const f = v(0), w = {
|
|
65
69
|
id: "",
|
|
66
70
|
balance: f,
|
|
67
71
|
closing: null,
|
|
68
72
|
costs: null
|
|
69
|
-
},
|
|
70
|
-
const r =
|
|
73
|
+
}, d = $(g()), A = () => {
|
|
74
|
+
const r = l(), o = S(() => {
|
|
71
75
|
var t;
|
|
72
|
-
const a = (t =
|
|
76
|
+
const a = (t = d.value.stockBalance.skus) == null ? void 0 : t.groupBy((e) => e.id), u = (e) => {
|
|
73
77
|
var n;
|
|
74
78
|
return ((n = a == null ? void 0 : a.get(e)) == null ? void 0 : n[0]) ?? { ...w, id: e };
|
|
75
79
|
};
|
|
76
|
-
return r.skus.map((e) =>
|
|
77
|
-
}),
|
|
80
|
+
return r.skus.map((e) => u(e._id));
|
|
81
|
+
}), c = b();
|
|
78
82
|
return {
|
|
79
83
|
// state
|
|
80
84
|
get stockBalance() {
|
|
81
85
|
return {
|
|
82
|
-
...
|
|
86
|
+
...d.value.stockBalance,
|
|
83
87
|
skus: o.value
|
|
84
88
|
};
|
|
85
89
|
},
|
|
86
90
|
set stockBalance(a) {
|
|
87
|
-
|
|
91
|
+
d.value.stockBalance = a;
|
|
88
92
|
},
|
|
89
93
|
get productBalance() {
|
|
90
|
-
return
|
|
94
|
+
return d.value.productBalance;
|
|
91
95
|
},
|
|
92
96
|
set productBalance(a) {
|
|
93
|
-
|
|
97
|
+
d.value.productBalance = a;
|
|
94
98
|
},
|
|
95
99
|
// actions
|
|
96
100
|
async readStockBalance() {
|
|
97
|
-
this.stockBalance = await
|
|
101
|
+
this.stockBalance = await c.readStockBalance();
|
|
98
102
|
},
|
|
99
103
|
async readProductBalance() {
|
|
100
104
|
this.productBalance = [];
|
|
101
|
-
const a =
|
|
105
|
+
const a = l(), u = k({
|
|
102
106
|
recipes: a.recipes,
|
|
103
107
|
skus: a.skus,
|
|
104
108
|
inventoryBindingMapping: {},
|
|
@@ -108,9 +112,9 @@ const f = p(0), w = {
|
|
|
108
112
|
function t(e, n) {
|
|
109
113
|
return Object.prototype.hasOwnProperty.call(e, n);
|
|
110
114
|
}
|
|
111
|
-
for (const e in
|
|
112
|
-
if (t(
|
|
113
|
-
const n =
|
|
115
|
+
for (const e in u.convertCountdown)
|
|
116
|
+
if (t(u.convertCountdown, e)) {
|
|
117
|
+
const n = u.convertCountdown[e];
|
|
114
118
|
this.productBalance.push({
|
|
115
119
|
id: e,
|
|
116
120
|
count: n
|
package/dist/stores/feature.d.ts
CHANGED
|
@@ -11,7 +11,10 @@ export declare enum InventoryFeature {
|
|
|
11
11
|
inventory_pos_costing = "inventory_pos_costing",
|
|
12
12
|
inventory_pos_stock_return = "inventory_pos_stock_return",
|
|
13
13
|
inventory_pos_transfer_require_fulfillment = "inventory_pos_transfer_require_fulfillment",
|
|
14
|
-
inventory_purchase_order_approval = "inventory_purchase_order_approval"
|
|
14
|
+
inventory_purchase_order_approval = "inventory_purchase_order_approval",
|
|
15
|
+
inventory_portal_xilnex_transfer_note = "inventory_portal_xilnex_transfer_note",
|
|
16
|
+
inventory_portal_custom_attribute = "inventory_portal_custom_attribute",
|
|
17
|
+
inventory_portal_purchase_order_v2 = "inventory_portal_purchase_order_v2"
|
|
15
18
|
}
|
|
16
19
|
export interface FeatureState {
|
|
17
20
|
enableTotalCost: boolean;
|
|
@@ -25,10 +28,12 @@ export interface FeatureState {
|
|
|
25
28
|
enableWastageTemplate: boolean;
|
|
26
29
|
enableIngredientGroup: boolean;
|
|
27
30
|
mustUsePoTemplate: boolean;
|
|
28
|
-
|
|
29
|
-
mustUseDefaultCost: boolean;
|
|
31
|
+
mustUseDefaultCost?: boolean;
|
|
30
32
|
enableSupplierMasterList: boolean;
|
|
31
33
|
businessSupplierOnly: boolean;
|
|
34
|
+
enableXilnexTransferNote: boolean;
|
|
35
|
+
enableCustomAttribute: boolean;
|
|
36
|
+
usePurchaseOrderV2: boolean;
|
|
32
37
|
}
|
|
33
38
|
export declare const useFeatureStore: () => {
|
|
34
39
|
readonly businessDbName: string;
|
|
@@ -45,10 +50,10 @@ export declare const useFeatureStore: () => {
|
|
|
45
50
|
readonly enableWastageTemplate: boolean;
|
|
46
51
|
readonly enableIngredientGroup: boolean;
|
|
47
52
|
readonly mustUsePoTemplate: boolean;
|
|
48
|
-
/** @deprecated TODO: remove */
|
|
49
|
-
readonly mustUseDefaultCost: boolean;
|
|
50
53
|
readonly enableSupplierMasterList: boolean;
|
|
51
54
|
readonly businessSupplierOnly: boolean;
|
|
55
|
+
readonly enableXilnexTransferNote: boolean;
|
|
56
|
+
readonly enableCustomAttribute: boolean;
|
|
57
|
+
readonly usePurchaseOrderV2: boolean;
|
|
52
58
|
init(): Promise<void>;
|
|
53
|
-
setUser(location: FdoInventoryLocation): Promise<void>;
|
|
54
59
|
};
|
|
@@ -12,9 +12,13 @@ export declare function useNetSuiteStore(): {
|
|
|
12
12
|
_id: string;
|
|
13
13
|
enable: boolean;
|
|
14
14
|
items: {
|
|
15
|
+
externalId?: string | null | undefined;
|
|
16
|
+
cogsAccount?: {
|
|
17
|
+
id: string;
|
|
18
|
+
refName: string;
|
|
19
|
+
} | null | undefined;
|
|
15
20
|
pktCode?: string | null | undefined;
|
|
16
21
|
pktName?: string | null | undefined;
|
|
17
|
-
externalId?: string | null | undefined;
|
|
18
22
|
id: string;
|
|
19
23
|
netSuiteId: string;
|
|
20
24
|
unitTypeId: string;
|
|
@@ -36,9 +40,13 @@ export declare function useNetSuiteStore(): {
|
|
|
36
40
|
deploymentId: string;
|
|
37
41
|
}[] | null | undefined;
|
|
38
42
|
childItems: {
|
|
43
|
+
externalId?: string | null | undefined;
|
|
44
|
+
cogsAccount?: {
|
|
45
|
+
id: string;
|
|
46
|
+
refName: string;
|
|
47
|
+
} | null | undefined;
|
|
39
48
|
pktCode?: string | null | undefined;
|
|
40
49
|
pktName?: string | null | undefined;
|
|
41
|
-
externalId?: string | null | undefined;
|
|
42
50
|
netSuiteId: string;
|
|
43
51
|
parentNetSuiteId: string;
|
|
44
52
|
unitTypeId: string;
|
|
@@ -77,9 +85,13 @@ export declare function useNetSuiteStore(): {
|
|
|
77
85
|
readonly netSuiteItemIdToSkuId: Map<unknown, [string, ...string[]]>;
|
|
78
86
|
readonly netSuiteMeasurementIdToMeasurementId: Map<unknown, [string, ...string[]]>;
|
|
79
87
|
readonly netSuiteItemBySkuId: Map<unknown, [{
|
|
88
|
+
externalId?: string | null | undefined;
|
|
89
|
+
cogsAccount?: {
|
|
90
|
+
id: string;
|
|
91
|
+
refName: string;
|
|
92
|
+
} | null | undefined;
|
|
80
93
|
pktCode?: string | null | undefined;
|
|
81
94
|
pktName?: string | null | undefined;
|
|
82
|
-
externalId?: string | null | undefined;
|
|
83
95
|
id: string;
|
|
84
96
|
netSuiteId: string;
|
|
85
97
|
unitTypeId: string;
|
|
@@ -87,9 +99,13 @@ export declare function useNetSuiteStore(): {
|
|
|
87
99
|
subsidiaryIds: string[];
|
|
88
100
|
includeChildren: boolean;
|
|
89
101
|
}, ...{
|
|
102
|
+
externalId?: string | null | undefined;
|
|
103
|
+
cogsAccount?: {
|
|
104
|
+
id: string;
|
|
105
|
+
refName: string;
|
|
106
|
+
} | null | undefined;
|
|
90
107
|
pktCode?: string | null | undefined;
|
|
91
108
|
pktName?: string | null | undefined;
|
|
92
|
-
externalId?: string | null | undefined;
|
|
93
109
|
id: string;
|
|
94
110
|
netSuiteId: string;
|
|
95
111
|
unitTypeId: string;
|
|
@@ -172,8 +188,9 @@ export declare function useNetSuiteStore(): {
|
|
|
172
188
|
getAvailableItems(subsidiaryId?: string | null): string[];
|
|
173
189
|
getAvailableMeasurements(skuId: string, subsidiaryId?: string | null): string[];
|
|
174
190
|
readSetting(): Promise<void>;
|
|
191
|
+
getNetSuiteLocations(): Promise<any>;
|
|
175
192
|
getVendorSubsidiaryName(supplierId: string): string;
|
|
176
|
-
|
|
193
|
+
syncPurchaseOrder(poId: string): Promise<void>;
|
|
177
194
|
getItemPKTCode(sku: FdoInventorySku, measurementId?: string | null): string | null;
|
|
178
195
|
};
|
|
179
196
|
export type FdoNetSuiteSubsidiaryWithChildren = FdoNetSuiteSubsidiary & {
|
|
@@ -50,7 +50,6 @@ export declare function useInventoryStore(): {
|
|
|
50
50
|
}[];
|
|
51
51
|
}[] | null | undefined;
|
|
52
52
|
sku?: {
|
|
53
|
-
customAttributes?: Record<string, any> | null | undefined;
|
|
54
53
|
trackingMeasurement?: string | null | undefined;
|
|
55
54
|
convert?: {
|
|
56
55
|
measurement?: string | null | undefined;
|
|
@@ -94,6 +93,7 @@ export declare function useInventoryStore(): {
|
|
|
94
93
|
low: number;
|
|
95
94
|
mid: number;
|
|
96
95
|
} | null | undefined;
|
|
96
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
97
97
|
unit: {
|
|
98
98
|
_id: string;
|
|
99
99
|
name: string;
|
|
@@ -155,7 +155,6 @@ export declare function useInventoryStore(): {
|
|
|
155
155
|
_id: string;
|
|
156
156
|
name: string;
|
|
157
157
|
skus: {
|
|
158
|
-
customAttributes?: Record<string, any> | null | undefined;
|
|
159
158
|
trackingMeasurement?: string | null | undefined;
|
|
160
159
|
convert?: {
|
|
161
160
|
measurement?: string | null | undefined;
|
|
@@ -199,6 +198,7 @@ export declare function useInventoryStore(): {
|
|
|
199
198
|
low: number;
|
|
200
199
|
mid: number;
|
|
201
200
|
} | null | undefined;
|
|
201
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
202
202
|
code: string;
|
|
203
203
|
_id: string;
|
|
204
204
|
name: string;
|
|
@@ -826,7 +826,6 @@ export declare function useInventoryStore(): {
|
|
|
826
826
|
}[];
|
|
827
827
|
}[] | null | undefined;
|
|
828
828
|
sku?: {
|
|
829
|
-
customAttributes?: Record<string, any> | null | undefined;
|
|
830
829
|
trackingMeasurement?: string | null | undefined;
|
|
831
830
|
convert?: {
|
|
832
831
|
measurement?: string | null | undefined;
|
|
@@ -870,6 +869,7 @@ export declare function useInventoryStore(): {
|
|
|
870
869
|
low: number;
|
|
871
870
|
mid: number;
|
|
872
871
|
} | null | undefined;
|
|
872
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
873
873
|
unit: {
|
|
874
874
|
_id: string;
|
|
875
875
|
name: string;
|
|
@@ -931,7 +931,6 @@ export declare function useInventoryStore(): {
|
|
|
931
931
|
_id: string;
|
|
932
932
|
name: string;
|
|
933
933
|
skus: {
|
|
934
|
-
customAttributes?: Record<string, any> | null | undefined;
|
|
935
934
|
trackingMeasurement?: string | null | undefined;
|
|
936
935
|
convert?: {
|
|
937
936
|
measurement?: string | null | undefined;
|
|
@@ -975,6 +974,7 @@ export declare function useInventoryStore(): {
|
|
|
975
974
|
low: number;
|
|
976
975
|
mid: number;
|
|
977
976
|
} | null | undefined;
|
|
977
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
978
978
|
code: string;
|
|
979
979
|
_id: string;
|
|
980
980
|
name: string;
|
|
@@ -1963,6 +1963,7 @@ export declare function useInventoryStore(): {
|
|
|
1963
1963
|
unitUsedBy: Record<string, UnitUsedBy[]>;
|
|
1964
1964
|
};
|
|
1965
1965
|
closing: {
|
|
1966
|
+
effectiveAt?: string | null | undefined;
|
|
1966
1967
|
closedBy?: {
|
|
1967
1968
|
name: string;
|
|
1968
1969
|
id: string;
|
|
@@ -2001,6 +2002,11 @@ export declare function useInventoryStore(): {
|
|
|
2001
2002
|
id: string;
|
|
2002
2003
|
createdAt: string;
|
|
2003
2004
|
} | null | undefined;
|
|
2005
|
+
weightedAverage?: {
|
|
2006
|
+
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";
|
|
2007
|
+
amount: number;
|
|
2008
|
+
precision: number;
|
|
2009
|
+
} | null | undefined;
|
|
2004
2010
|
balance: {
|
|
2005
2011
|
amount: number;
|
|
2006
2012
|
precision: number;
|
|
@@ -2085,7 +2091,6 @@ export declare function useInventoryStore(): {
|
|
|
2085
2091
|
}[];
|
|
2086
2092
|
}>;
|
|
2087
2093
|
readonly skus: {
|
|
2088
|
-
customAttributes?: Record<string, any> | null | undefined;
|
|
2089
2094
|
trackingMeasurement?: string | null | undefined;
|
|
2090
2095
|
convert?: {
|
|
2091
2096
|
measurement?: string | null | undefined;
|
|
@@ -2129,6 +2134,7 @@ export declare function useInventoryStore(): {
|
|
|
2129
2134
|
low: number;
|
|
2130
2135
|
mid: number;
|
|
2131
2136
|
} | null | undefined;
|
|
2137
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2132
2138
|
unit: {
|
|
2133
2139
|
_id: string;
|
|
2134
2140
|
name: string;
|
|
@@ -2149,7 +2155,6 @@ export declare function useInventoryStore(): {
|
|
|
2149
2155
|
name: string;
|
|
2150
2156
|
}[];
|
|
2151
2157
|
readonly skuById: Record<string, {
|
|
2152
|
-
customAttributes?: Record<string, any> | null | undefined;
|
|
2153
2158
|
trackingMeasurement?: string | null | undefined;
|
|
2154
2159
|
convert?: {
|
|
2155
2160
|
measurement?: string | null | undefined;
|
|
@@ -2193,6 +2198,7 @@ export declare function useInventoryStore(): {
|
|
|
2193
2198
|
low: number;
|
|
2194
2199
|
mid: number;
|
|
2195
2200
|
} | null | undefined;
|
|
2201
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2196
2202
|
unit: {
|
|
2197
2203
|
_id: string;
|
|
2198
2204
|
name: string;
|
|
@@ -2213,7 +2219,6 @@ export declare function useInventoryStore(): {
|
|
|
2213
2219
|
name: string;
|
|
2214
2220
|
}>;
|
|
2215
2221
|
readonly skuByCode: Record<string, {
|
|
2216
|
-
customAttributes?: Record<string, any> | null | undefined;
|
|
2217
2222
|
trackingMeasurement?: string | null | undefined;
|
|
2218
2223
|
convert?: {
|
|
2219
2224
|
measurement?: string | null | undefined;
|
|
@@ -2257,6 +2262,7 @@ export declare function useInventoryStore(): {
|
|
|
2257
2262
|
low: number;
|
|
2258
2263
|
mid: number;
|
|
2259
2264
|
} | null | undefined;
|
|
2265
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2260
2266
|
unit: {
|
|
2261
2267
|
_id: string;
|
|
2262
2268
|
name: string;
|
|
@@ -2296,7 +2302,6 @@ export declare function useInventoryStore(): {
|
|
|
2296
2302
|
_id: string;
|
|
2297
2303
|
name: string;
|
|
2298
2304
|
skus: {
|
|
2299
|
-
customAttributes?: Record<string, any> | null | undefined;
|
|
2300
2305
|
trackingMeasurement?: string | null | undefined;
|
|
2301
2306
|
convert?: {
|
|
2302
2307
|
measurement?: string | null | undefined;
|
|
@@ -2340,11 +2345,139 @@ export declare function useInventoryStore(): {
|
|
|
2340
2345
|
low: number;
|
|
2341
2346
|
mid: number;
|
|
2342
2347
|
} | null | undefined;
|
|
2348
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2343
2349
|
code: string;
|
|
2344
2350
|
_id: string;
|
|
2345
2351
|
name: string;
|
|
2346
2352
|
}[];
|
|
2347
2353
|
}[];
|
|
2354
|
+
readonly skuTags: Map<unknown, [{
|
|
2355
|
+
trackingMeasurement?: string | null | undefined;
|
|
2356
|
+
convert?: {
|
|
2357
|
+
measurement?: string | null | undefined;
|
|
2358
|
+
inventoryBindings?: {
|
|
2359
|
+
measurement?: {
|
|
2360
|
+
id: string;
|
|
2361
|
+
name: string;
|
|
2362
|
+
abbrev: string;
|
|
2363
|
+
conversion: {
|
|
2364
|
+
amount: number;
|
|
2365
|
+
precision: number;
|
|
2366
|
+
};
|
|
2367
|
+
} | null | undefined;
|
|
2368
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2369
|
+
amount: {
|
|
2370
|
+
amount: number;
|
|
2371
|
+
precision: number;
|
|
2372
|
+
};
|
|
2373
|
+
id: string;
|
|
2374
|
+
}[] | null | undefined;
|
|
2375
|
+
} | null | undefined;
|
|
2376
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
2377
|
+
defaultCost?: {
|
|
2378
|
+
measurement?: {
|
|
2379
|
+
id: string;
|
|
2380
|
+
name: string;
|
|
2381
|
+
abbrev: string;
|
|
2382
|
+
conversion: {
|
|
2383
|
+
amount: number;
|
|
2384
|
+
precision: number;
|
|
2385
|
+
};
|
|
2386
|
+
} | null | undefined;
|
|
2387
|
+
costPerUnit: {
|
|
2388
|
+
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";
|
|
2389
|
+
amount: number;
|
|
2390
|
+
precision: number;
|
|
2391
|
+
};
|
|
2392
|
+
} | null | undefined;
|
|
2393
|
+
operationalGroup?: string | null | undefined;
|
|
2394
|
+
thresholds?: {
|
|
2395
|
+
low: number;
|
|
2396
|
+
mid: number;
|
|
2397
|
+
} | null | undefined;
|
|
2398
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2399
|
+
unit: {
|
|
2400
|
+
_id: string;
|
|
2401
|
+
name: string;
|
|
2402
|
+
abbrev: string;
|
|
2403
|
+
precision: number;
|
|
2404
|
+
measurements: {
|
|
2405
|
+
id: string;
|
|
2406
|
+
name: string;
|
|
2407
|
+
abbrev: string;
|
|
2408
|
+
conversion: {
|
|
2409
|
+
amount: number;
|
|
2410
|
+
precision: number;
|
|
2411
|
+
};
|
|
2412
|
+
}[];
|
|
2413
|
+
};
|
|
2414
|
+
code: string;
|
|
2415
|
+
_id: string;
|
|
2416
|
+
name: string;
|
|
2417
|
+
}, ...{
|
|
2418
|
+
trackingMeasurement?: string | null | undefined;
|
|
2419
|
+
convert?: {
|
|
2420
|
+
measurement?: string | null | undefined;
|
|
2421
|
+
inventoryBindings?: {
|
|
2422
|
+
measurement?: {
|
|
2423
|
+
id: string;
|
|
2424
|
+
name: string;
|
|
2425
|
+
abbrev: string;
|
|
2426
|
+
conversion: {
|
|
2427
|
+
amount: number;
|
|
2428
|
+
precision: number;
|
|
2429
|
+
};
|
|
2430
|
+
} | null | undefined;
|
|
2431
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2432
|
+
amount: {
|
|
2433
|
+
amount: number;
|
|
2434
|
+
precision: number;
|
|
2435
|
+
};
|
|
2436
|
+
id: string;
|
|
2437
|
+
}[] | null | undefined;
|
|
2438
|
+
} | null | undefined;
|
|
2439
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
2440
|
+
defaultCost?: {
|
|
2441
|
+
measurement?: {
|
|
2442
|
+
id: string;
|
|
2443
|
+
name: string;
|
|
2444
|
+
abbrev: string;
|
|
2445
|
+
conversion: {
|
|
2446
|
+
amount: number;
|
|
2447
|
+
precision: number;
|
|
2448
|
+
};
|
|
2449
|
+
} | null | undefined;
|
|
2450
|
+
costPerUnit: {
|
|
2451
|
+
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";
|
|
2452
|
+
amount: number;
|
|
2453
|
+
precision: number;
|
|
2454
|
+
};
|
|
2455
|
+
} | null | undefined;
|
|
2456
|
+
operationalGroup?: string | null | undefined;
|
|
2457
|
+
thresholds?: {
|
|
2458
|
+
low: number;
|
|
2459
|
+
mid: number;
|
|
2460
|
+
} | null | undefined;
|
|
2461
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2462
|
+
unit: {
|
|
2463
|
+
_id: string;
|
|
2464
|
+
name: string;
|
|
2465
|
+
abbrev: string;
|
|
2466
|
+
precision: number;
|
|
2467
|
+
measurements: {
|
|
2468
|
+
id: string;
|
|
2469
|
+
name: string;
|
|
2470
|
+
abbrev: string;
|
|
2471
|
+
conversion: {
|
|
2472
|
+
amount: number;
|
|
2473
|
+
precision: number;
|
|
2474
|
+
};
|
|
2475
|
+
}[];
|
|
2476
|
+
};
|
|
2477
|
+
code: string;
|
|
2478
|
+
_id: string;
|
|
2479
|
+
name: string;
|
|
2480
|
+
}[]]>;
|
|
2348
2481
|
init(): Promise<void>;
|
|
2349
2482
|
readClosing(): Promise<void>;
|
|
2350
2483
|
getAffectedMenu(id: string): Promise<BindedWithRecipeId[]>;
|