@feedmepos/mf-inventory-portal 1.8.0-dev.2 → 1.8.0-dev.4
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-DVHgBTHP.js → App-FeJnwZme.js} +364 -377
- package/dist/{ApprovalView-RaXuWWSu.js → ApprovalView-Eo-cGWyA.js} +9 -9
- package/dist/{BindingsDialog-DomvXijP.js → BindingsDialog-DkjuXydb.js} +2 -2
- package/dist/{BindingsPicker-DGnzxEs7.js → BindingsPicker-DUOQcOlj.js} +2 -2
- package/dist/{BindingsTable-DfG9kWrv.js → BindingsTable-CoDdU5xh.js} +4 -4
- package/dist/{BulkReceiveRequestView-DxHWrfbi.js → BulkReceiveRequestView-BGh8fbEX.js} +19 -19
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CVekIoiN.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CStISRqy.js} +1 -1
- package/dist/{ClosingDraftView-C3n66bbh.js → ClosingDraftView-Cwnhrv5P.js} +20 -20
- package/dist/{ClosingHistoryView-kdpYGy1Y.js → ClosingHistoryView-oHf77Lal.js} +5 -5
- package/dist/{ClosingTemplateView-DwGloYxn.js → ClosingTemplateView-1P8J1vAn.js} +18 -18
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-9eY_r8LF.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BuEPaqQK.js} +1 -1
- package/dist/{DefaultView-JC_e4xgC.js → DefaultView-3Z8aVFSU.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BBCvI67S.js → DeliveryOrderPrintPreview-uT_e3Suw.js} +2 -2
- package/dist/{DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-5Cc08Svt.js → DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-D_vmtZDZ.js} +1 -1
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-H4FWc9ga.js → EmailDialog.vue_vue_type_script_setup_true_lang-BCgnXxEi.js} +26 -25
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-D-RzUmqA.js +81 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Q8Mptiv3.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BlKpGdCx.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CE1_yyHe.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DKkxn1J-.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CGJi3f86.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-dOXDST-E.js} +2 -2
- package/dist/{FmMultiselectDialog-yVPY5aBV.js → FmMultiselectDialog-C8uYx8rr.js} +1 -1
- package/dist/{FmMultiselectDialog-DCaRlBIy.js → FmMultiselectDialog-DRxZAkcu.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-ClaLVtpK.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DRSzQqVJ.js} +6 -6
- package/dist/{ImportView-DQrVMzxN.js → ImportView-Qigtf3ik.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-7lT5UZc8.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-B8PJeYrP.js} +1 -1
- package/dist/{IngredientGroupView-BMUnEaY7.js → IngredientGroupView-RNYZLkQu.js} +7 -7
- package/dist/{IngredientsView-DPj9lBTK.js → IngredientsView-N9U7tdI_.js} +29 -23
- package/dist/{IntegrationExplorerView-CO2wpUR_.js → IntegrationExplorerView-CjmeGQ14.js} +4 -4
- package/dist/{IntegrationView-DIeZoey0.js → IntegrationView-DAdpmuxx.js} +15 -15
- package/dist/{InventoryBindingForm-Cj4_Chue.js → InventoryBindingForm-CAj3MurI.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CaBOK7NC.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-3pYuu62C.js} +5 -5
- package/dist/{InventoryBindingSummary-yzGzd7jJ.js → InventoryBindingSummary-B-1OBUdw.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DzzTPdyF.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CUYYEuW3.js} +1 -1
- package/dist/{ProductionRunDetailView-Cw-ecaey.js → ProductionRunDetailView-eFvl8-By.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BYyiiAWb.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-DaC7e4qS.js} +7 -7
- package/dist/{ProductionRunView-C11eseXQ.js → ProductionRunView-C_NJJKLr.js} +3 -3
- package/dist/{PublishView-CPK9NeVF.js → PublishView-BglAEkzU.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DosqWQeN.js → PurchaseOrderPrintPreview-BTF9ikpQ.js} +2 -2
- package/dist/{ReceiveRequestView-BxSkpK2t.js → ReceiveRequestView-BUvehG10.js} +13 -13
- package/dist/{RecipeView-oHDWsT0P.js → RecipeView-DO5-jgwh.js} +17 -17
- package/dist/{SettingsView-QlUNwFhM.js → SettingsView-DRR86cHo.js} +12 -13
- package/dist/{StockView-a8LbVZ_7.js → StockView-D1oEnbZp.js} +25 -23
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-GdGJCuc0.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxU92-io.js} +1 -1
- package/dist/{SupplierView-BKxKoi_0.js → SupplierView-D68wz0-g.js} +14 -14
- package/dist/{SurchargeView-Db4cwhZv.js → SurchargeView-Cw9rTw2h.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CpkF77Ow.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Az-a1Dsp.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CCCj4WVF.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C-sxbacO.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CFNPXqt5.js → TransferDetails.vue_vue_type_script_setup_true_lang-CsHfLaCv.js} +234 -234
- package/dist/{TransferTemplateView-CzwxOBMQ.js → TransferTemplateView-CHPJMjYC.js} +20 -20
- package/dist/{UnitCostHistoryView-CqcyjCCd.js → UnitCostHistoryView-DM8OzWhe.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DO80_8SZ.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DpwK5mFH.js} +4 -4
- package/dist/{UnitView-BqdK1AM_.js → UnitView-90uR-ZzQ.js} +8 -8
- package/dist/{WarehouseView-COJM9IXM.js → WarehouseView-Bulg6Vac.js} +8 -8
- package/dist/{WastageTemplateView-DW3viTHN.js → WastageTemplateView-BmAHnnwm.js} +15 -15
- package/dist/api/inventory.d.ts +9 -9
- package/dist/{app-yvK__CBL.js → app-Ccdgbe4f.js} +19 -18
- package/dist/app.js +1 -1
- package/dist/{closing-template-DezidSM0.js → closing-template-DuBZxoXx.js} +1 -1
- package/dist/components/FeatureCapabilityBadge.vue.d.ts +4 -0
- package/dist/components/MultiLocationSelector.vue.d.ts +6 -6
- package/dist/{date2-2XjepIqc.js → date2-IBrLdtni.js} +1 -1
- package/dist/{dayjs.min-CNp5DLBB.js → dayjs.min-DEkq-Hpp.js} +1 -1
- package/dist/{decimal-Z7oJdGk8.js → decimal-g6jRdlSk.js} +2 -2
- package/dist/{defineDeepModel-CMxJn_H2.js → defineDeepModel-P5a5Ffpn.js} +1 -1
- package/dist/{duplicate-template-BetV5oy_.js → duplicate-template-Do8s80ei.js} +1 -1
- package/dist/{feature-CkWaZ-5K.js → feature-ChVm5JED.js} +875 -645
- package/dist/feature-flags/core.d.ts +3 -2
- package/dist/feature-flags/portal-feature-catalog.d.ts +2 -5
- package/dist/feature-flags/premium-flags.spec.d.ts +1 -0
- package/dist/feature-flags/vue.d.ts +2 -0
- package/dist/{format-time-from-id-DatSI9uD.js → format-time-from-id-BgbBOII7.js} +1 -1
- package/dist/{format-unit-display-DM5We5cx.js → format-unit-display-hSXy2iu6.js} +13 -13
- package/dist/{id-to-date-Dxw2jKhy.js → id-to-date-DlGYysU8.js} +1 -1
- package/dist/{import-export.helper-BOmADwUw.js → import-export.helper-LrZhiz2W.js} +6 -6
- package/dist/{index-7fz5sGDO.js → index-BTNJ1fk2.js} +3 -3
- package/dist/{index-ClYgfwW7.js → index-DCiNwlw2.js} +1 -1
- package/dist/{index-CIH9NCvs.js → index-DsOmtywr.js} +1 -1
- package/dist/{lz-string-CCsc2X7t.js → lz-string-DRuyjE9G.js} +1 -1
- package/dist/{netsuite-COumFXC2.js → netsuite-B6y8GZCP.js} +2 -2
- package/dist/{number-gSLvxNqA.js → number-Besn-1-5.js} +3 -3
- package/dist/{predefined-templates-Bw9A9LNA.js → predefined-templates-D92mN_2S.js} +1 -1
- package/dist/{purchase-order-template-BaZjdGq8.js → purchase-order-template-hvq2pfWx.js} +1 -1
- package/dist/{recalculationUtils-t32wAurN.js → recalculationUtils-BlZR5O2G.js} +1 -1
- package/dist/{row-action.enum-BDeudY4d.js → row-action.enum-R2bi3eAv.js} +1 -1
- package/dist/{rules-C1btu0Md.js → rules-DzwoRKUS.js} +2 -2
- package/dist/{stock-BF86TMW0.js → stock-Cq37EARQ.js} +3 -3
- package/dist/{stock-B59sfN28.js → stock-oJqnUrtt.js} +1 -1
- package/dist/stores/feature.d.ts +1 -0
- package/dist/stores/integration/netsuite.d.ts +2 -2
- package/dist/stores/location.d.ts +42 -42
- package/dist/stores/supplier.d.ts +48 -48
- package/dist/stores/warehouse.d.ts +1 -1
- package/dist/{supplier-DnbLJ_cS.js → supplier-DtdwvcPr.js} +2 -2
- package/dist/{surcharge-C1uE3uQa.js → surcharge-CjdJGIsM.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-DjfyrFHJ.js → uom-rules-BqPn_GoZ.js} +1 -1
- package/dist/{use-ingredient-select-dialog-7A7fWyEH.js → use-ingredient-select-dialog-0hRCj6Fu.js} +2 -2
- package/dist/{use-inventory-binding-dialog-Cc1tjTfV.js → use-inventory-binding-dialog-BLRcIC1u.js} +2 -2
- package/dist/{use-template-enabled-locations-C-Hqqgzt.js → use-template-enabled-locations-8ZfTj4YB.js} +2 -2
- package/dist/{use-transfer-locations-CqsXvOI2.js → use-transfer-locations-BGS1EBEt.js} +2 -2
- package/dist/{useHrmPermission-BzwD3Ctc.js → useHrmPermission-BcQ2KPD-.js} +1 -1
- package/dist/{useNavigationMenu-PrZg9HS7.js → useNavigationMenu-DImtns81.js} +95 -93
- package/dist/{useSseClient-FCyLWq8k.js → useSseClient-DPSFFVci.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +36 -36
- package/dist/views/adjustment-template/wastage-template/table.d.ts +36 -36
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -6
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +12 -12
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +6 -6
- package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +3 -3
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +18 -18
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +45 -45
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -36
- package/dist/views/integration/components/netsuite/business/AddLocationDialog.vue.d.ts +36 -36
- package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +24 -24
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -5
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +5 -5
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +39 -39
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +35 -35
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +34 -34
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +6 -6
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +4 -4
- package/dist/views/supplier/composables/use-supplier-table.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -8
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +4 -4
- package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +24 -24
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -48
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -48
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -2
- package/dist/{vue-i18n-C34f-Tph.js → vue-i18n-DTyGIjTI.js} +219 -219
- package/dist/{xlsx.util-X4amwe_k.js → xlsx.util-CK9Lnq3Q.js} +2 -2
- package/package.json +5 -5
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-C1C8aDA6.js +0 -61
- package/dist/portal-feature-catalog-yGIESKTc.js +0 -246
package/dist/{use-ingredient-select-dialog-7A7fWyEH.js → use-ingredient-select-dialog-0hRCj6Fu.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as S } from "pinia";
|
|
2
|
-
import { a as b } from "./app-
|
|
3
|
-
import { a as A } from "./FmMultiselectDialog-
|
|
2
|
+
import { a as b } from "./app-Ccdgbe4f.js";
|
|
3
|
+
import { a as A } from "./FmMultiselectDialog-DRxZAkcu.js";
|
|
4
4
|
import { useDialog as I } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as D } from "@feedmepos/mf-common";
|
|
6
6
|
const w = S(
|
package/dist/{use-inventory-binding-dialog-Cc1tjTfV.js → use-inventory-binding-dialog-BLRcIC1u.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as g } from "./FmMultiselectDialog-
|
|
2
|
-
import { a as P } from "./app-
|
|
1
|
+
import { a as g } from "./FmMultiselectDialog-DRxZAkcu.js";
|
|
2
|
+
import { a as P } from "./app-Ccdgbe4f.js";
|
|
3
3
|
import { useDialog as E } from "@feedmepos/ui-library";
|
|
4
4
|
function A() {
|
|
5
5
|
const u = P(), _ = E();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as A } from "./FmMultiselectDialog-
|
|
2
|
-
import { u as S } from "./app-
|
|
1
|
+
import { a as A } from "./FmMultiselectDialog-DRxZAkcu.js";
|
|
2
|
+
import { u as S } from "./app-Ccdgbe4f.js";
|
|
3
3
|
import { useI18n as w, useCoreStore as i, useCustomAttributes as _ } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as C, components as p } from "@feedmepos/ui-library";
|
|
5
5
|
import { computed as r, h as c } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as g, r as l, $ as w, a2 as R } from "./app-
|
|
2
|
-
import { u as E } from "./supplier-
|
|
1
|
+
import { u as g, r as l, $ as w, a2 as R } from "./app-Ccdgbe4f.js";
|
|
2
|
+
import { u as E } from "./supplier-DtdwvcPr.js";
|
|
3
3
|
import { computed as u } from "vue";
|
|
4
4
|
function d(n) {
|
|
5
5
|
const c = R.safeParse(n);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { computed as E, h as P } from "vue";
|
|
2
|
-
import { R as e, ac as C, ad as
|
|
2
|
+
import { R as e, ac as C, ad as f, ab as O } from "./app-Ccdgbe4f.js";
|
|
3
3
|
import { useCoreStore as b, useI18n as _ } from "@feedmepos/mf-common";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const S = [
|
|
4
|
+
import { f as U, g as S, h as A, u as L } from "./feature-ChVm5JED.js";
|
|
5
|
+
import { a as G } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-D-RzUmqA.js";
|
|
6
|
+
const p = [
|
|
8
7
|
{
|
|
9
8
|
route: e.STOCK,
|
|
10
9
|
module: "Stock",
|
|
@@ -148,83 +147,86 @@ const S = [
|
|
|
148
147
|
description: "Inspect and manage integration records and synchronization."
|
|
149
148
|
}
|
|
150
149
|
], y = Object.fromEntries(
|
|
151
|
-
|
|
152
|
-
var
|
|
150
|
+
p.map((s) => {
|
|
151
|
+
var u;
|
|
152
|
+
const r = S(s.featureKey ?? "");
|
|
153
153
|
return [
|
|
154
154
|
s.route,
|
|
155
|
-
|
|
155
|
+
A({
|
|
156
156
|
key: s.route,
|
|
157
157
|
minimumTier: s.tier,
|
|
158
|
-
release: s.release ?? ((u =
|
|
158
|
+
release: s.release ?? ((u = r == null ? void 0 : r.definition) == null ? void 0 : u.release),
|
|
159
|
+
flagKeys: r == null ? void 0 : r.flagKeys
|
|
159
160
|
})
|
|
160
161
|
];
|
|
161
162
|
})
|
|
162
163
|
);
|
|
163
|
-
function
|
|
164
|
-
return
|
|
164
|
+
function K(s) {
|
|
165
|
+
return p.find((r) => r.route === s) ?? null;
|
|
165
166
|
}
|
|
166
|
-
function
|
|
167
|
+
function H(s) {
|
|
167
168
|
return s ? y[s] ?? null : null;
|
|
168
169
|
}
|
|
169
|
-
function
|
|
170
|
-
const u =
|
|
171
|
-
return u ?
|
|
170
|
+
function W(s, r) {
|
|
171
|
+
const u = H(s);
|
|
172
|
+
return u ? U(u, r) : { enabled: !0, disabled: !1, stage: "ga", eligible: !0 };
|
|
172
173
|
}
|
|
173
|
-
const
|
|
174
|
-
(s,
|
|
174
|
+
const M = f.reduce(
|
|
175
|
+
(s, r) => {
|
|
175
176
|
var u;
|
|
176
|
-
return
|
|
177
|
+
return r.name && (s[r.name] = (u = r.meta) == null ? void 0 : u.validationManifest), s;
|
|
177
178
|
},
|
|
178
179
|
{}
|
|
179
180
|
);
|
|
180
|
-
function
|
|
181
|
-
const s = b(),
|
|
181
|
+
function w() {
|
|
182
|
+
const s = b(), r = L(), { t: u } = _(), a = (o) => C(o, u), g = E(
|
|
182
183
|
() => {
|
|
183
|
-
var
|
|
184
|
-
return ((
|
|
184
|
+
var o;
|
|
185
|
+
return ((o = s.sessionUser.value) == null ? void 0 : o.permissions) ?? [];
|
|
185
186
|
}
|
|
186
|
-
), h = (
|
|
187
|
-
const
|
|
188
|
-
return h(
|
|
189
|
-
}, R = (
|
|
190
|
-
const { hide: d, children:
|
|
191
|
-
return
|
|
192
|
-
}), I = (
|
|
193
|
-
const d =
|
|
194
|
-
tier:
|
|
187
|
+
), h = (o = []) => o.length === 0 ? !0 : O(o, g.value).granted, n = (o) => {
|
|
188
|
+
const t = M[o];
|
|
189
|
+
return h(t == null ? void 0 : t.requiredCaslPermissions);
|
|
190
|
+
}, R = (o) => o.filter((t) => !t.hide).map((t) => t.children ? { ...t, children: R(t.children) } : t).filter((t) => !t.children || t.children.length > 0), T = (o) => o.map((t) => {
|
|
191
|
+
const { hide: d, children: i, ...l } = t, c = { ...l };
|
|
192
|
+
return i && (c.children = T(i)), c;
|
|
193
|
+
}), I = (o) => o.map((t) => {
|
|
194
|
+
const d = t.value, i = K(d), l = S((i == null ? void 0 : i.featureKey) ?? ""), c = l == null ? void 0 : l.category, v = i && (i.tier === "premium" || c === "beta" || l != null && l.deprecateSoon) ? () => P(G, {
|
|
195
|
+
tier: i.tier,
|
|
195
196
|
category: c,
|
|
196
|
-
deprecateSoon: l == null ? void 0 : l.deprecateSoon
|
|
197
|
+
deprecateSoon: l == null ? void 0 : l.deprecateSoon,
|
|
198
|
+
featureKey: i.featureKey
|
|
197
199
|
}) : void 0;
|
|
198
200
|
return {
|
|
199
|
-
...
|
|
201
|
+
...t,
|
|
200
202
|
badge: v,
|
|
201
|
-
children:
|
|
203
|
+
children: t.children ? I(t.children) : void 0
|
|
202
204
|
};
|
|
203
205
|
}), m = E(() => {
|
|
204
206
|
var d;
|
|
205
|
-
const
|
|
207
|
+
const o = [
|
|
206
208
|
{
|
|
207
|
-
label:
|
|
209
|
+
label: a(e.STOCK),
|
|
208
210
|
children: [
|
|
209
211
|
{
|
|
210
212
|
label: u("inventory.stock.stock_balance.title"),
|
|
211
213
|
value: e.STOCK,
|
|
212
|
-
hide: !
|
|
214
|
+
hide: !n(e.STOCK)
|
|
213
215
|
},
|
|
214
216
|
{
|
|
215
|
-
label:
|
|
217
|
+
label: a(e.PRODUCTION_RUN),
|
|
216
218
|
value: e.PRODUCTION_RUN,
|
|
217
|
-
hide: !
|
|
219
|
+
hide: !n(e.PRODUCTION_RUN) || !r.enableProductionRun
|
|
218
220
|
},
|
|
219
221
|
{
|
|
220
|
-
label:
|
|
222
|
+
label: a(e.UNIT_COST_HISTORY),
|
|
221
223
|
value: e.UNIT_COST_HISTORY,
|
|
222
|
-
hide: !
|
|
224
|
+
hide: !n(e.UNIT_COST_HISTORY) || !r.enableTotalCost
|
|
223
225
|
},
|
|
224
226
|
{
|
|
225
|
-
label:
|
|
227
|
+
label: a(e.WASTAGE_TEMPLATE),
|
|
226
228
|
value: e.WASTAGE_TEMPLATE,
|
|
227
|
-
hide: !
|
|
229
|
+
hide: !n(e.WASTAGE_TEMPLATE) || !r.enableWastageTemplate
|
|
228
230
|
}
|
|
229
231
|
]
|
|
230
232
|
},
|
|
@@ -232,121 +234,121 @@ function Q() {
|
|
|
232
234
|
label: u("inventory.closing.title"),
|
|
233
235
|
children: [
|
|
234
236
|
{
|
|
235
|
-
label:
|
|
237
|
+
label: a(e.CLOSING_HISTORY),
|
|
236
238
|
value: e.CLOSING_HISTORY,
|
|
237
|
-
hide: !
|
|
239
|
+
hide: !n(e.CLOSING_HISTORY)
|
|
238
240
|
},
|
|
239
241
|
{
|
|
240
|
-
label:
|
|
242
|
+
label: a(e.CLOSING_TEMPLATE),
|
|
241
243
|
value: e.CLOSING_TEMPLATE,
|
|
242
|
-
hide: !
|
|
244
|
+
hide: !n(e.CLOSING_TEMPLATE) || !r.enableClosingTemplate
|
|
243
245
|
},
|
|
244
246
|
{
|
|
245
|
-
label:
|
|
247
|
+
label: a(e.CLOSING_DRAFT),
|
|
246
248
|
value: e.CLOSING_DRAFT,
|
|
247
|
-
hide: !
|
|
249
|
+
hide: !n(e.CLOSING_DRAFT) || !r.enableClosingTemplate
|
|
248
250
|
}
|
|
249
251
|
]
|
|
250
252
|
},
|
|
251
253
|
{
|
|
252
|
-
label:
|
|
254
|
+
label: a(e.INGREDIENTS),
|
|
253
255
|
value: e.INGREDIENTS,
|
|
254
|
-
hide: !
|
|
256
|
+
hide: !n(e.INGREDIENTS)
|
|
255
257
|
},
|
|
256
258
|
{
|
|
257
|
-
label:
|
|
259
|
+
label: a(e.INGREDIENT_GROUP),
|
|
258
260
|
value: e.INGREDIENT_GROUP,
|
|
259
|
-
hide: !
|
|
261
|
+
hide: !n(e.INGREDIENT_GROUP) || !r.enableIngredientGroup
|
|
260
262
|
},
|
|
261
263
|
{
|
|
262
|
-
label:
|
|
264
|
+
label: a(e.RECIPE),
|
|
263
265
|
value: e.RECIPE,
|
|
264
|
-
hide: !
|
|
266
|
+
hide: !n(e.RECIPE)
|
|
265
267
|
},
|
|
266
268
|
{
|
|
267
|
-
label:
|
|
269
|
+
label: a(e.UNIT),
|
|
268
270
|
value: e.UNIT,
|
|
269
|
-
hide: !
|
|
271
|
+
hide: !n(e.UNIT)
|
|
270
272
|
},
|
|
271
273
|
{
|
|
272
274
|
label: u("inventory.transfer.title"),
|
|
273
275
|
children: [
|
|
274
276
|
{
|
|
275
|
-
label:
|
|
277
|
+
label: a(e.RECEIVE_REQUEST),
|
|
276
278
|
value: e.RECEIVE_REQUEST,
|
|
277
|
-
hide: !
|
|
279
|
+
hide: !n(e.RECEIVE_REQUEST)
|
|
278
280
|
},
|
|
279
281
|
{
|
|
280
|
-
label:
|
|
282
|
+
label: a(e.RECEIVE_REQUEST_BULK),
|
|
281
283
|
value: e.RECEIVE_REQUEST_BULK,
|
|
282
|
-
hide: !
|
|
284
|
+
hide: !n(e.RECEIVE_REQUEST_BULK) || !r.enableReceiveRequestBeta
|
|
283
285
|
},
|
|
284
286
|
{
|
|
285
|
-
label:
|
|
287
|
+
label: a(e.APPROVAL),
|
|
286
288
|
value: e.APPROVAL,
|
|
287
|
-
hide: !
|
|
289
|
+
hide: !n(e.APPROVAL)
|
|
288
290
|
},
|
|
289
291
|
{
|
|
290
|
-
label:
|
|
292
|
+
label: a(e.SURCHARGE),
|
|
291
293
|
value: e.SURCHARGE,
|
|
292
|
-
hide: !
|
|
294
|
+
hide: !n(e.SURCHARGE) || !r.enableSurcharge
|
|
293
295
|
},
|
|
294
296
|
{
|
|
295
|
-
label:
|
|
297
|
+
label: a(e.TRANSFER_TEMPLATE),
|
|
296
298
|
value: e.TRANSFER_TEMPLATE,
|
|
297
|
-
hide: !
|
|
299
|
+
hide: !n(e.TRANSFER_TEMPLATE) || !r.enablePoTemplate
|
|
298
300
|
}
|
|
299
301
|
]
|
|
300
302
|
},
|
|
301
303
|
{
|
|
302
|
-
label:
|
|
304
|
+
label: a(e.SUPPLIER),
|
|
303
305
|
value: e.SUPPLIER,
|
|
304
|
-
hide: !
|
|
306
|
+
hide: !n(e.SUPPLIER)
|
|
305
307
|
},
|
|
306
308
|
{
|
|
307
|
-
label:
|
|
309
|
+
label: a(e.WAREHOUSE),
|
|
308
310
|
value: e.WAREHOUSE,
|
|
309
|
-
hide: !
|
|
311
|
+
hide: !n(e.WAREHOUSE)
|
|
310
312
|
},
|
|
311
313
|
{
|
|
312
|
-
label:
|
|
314
|
+
label: a(e.PUBLISH),
|
|
313
315
|
value: e.PUBLISH,
|
|
314
|
-
hide: !
|
|
316
|
+
hide: !n(e.PUBLISH)
|
|
315
317
|
},
|
|
316
318
|
{
|
|
317
|
-
label:
|
|
319
|
+
label: a(e.IMPORT),
|
|
318
320
|
value: e.IMPORT,
|
|
319
|
-
hide: !
|
|
321
|
+
hide: !n(e.IMPORT) || !r.enableBulkImport
|
|
320
322
|
},
|
|
321
323
|
{
|
|
322
|
-
label:
|
|
324
|
+
label: a(e.INTEGRATION),
|
|
323
325
|
value: e.INTEGRATION,
|
|
324
|
-
hide: !
|
|
326
|
+
hide: !n(e.INTEGRATION)
|
|
325
327
|
},
|
|
326
328
|
{
|
|
327
|
-
label:
|
|
329
|
+
label: a(e.SETTINGS),
|
|
328
330
|
value: e.SETTINGS,
|
|
329
|
-
hide: !
|
|
331
|
+
hide: !n(e.SETTINGS)
|
|
330
332
|
}
|
|
331
|
-
],
|
|
332
|
-
return ((d = s.currentBusiness.value) == null ? void 0 : d.menuVersion) === "v3" ?
|
|
333
|
-
(
|
|
334
|
-
) :
|
|
333
|
+
], t = I(T(R(o)));
|
|
334
|
+
return ((d = s.currentBusiness.value) == null ? void 0 : d.menuVersion) === "v3" ? t.filter(
|
|
335
|
+
(i) => i.value !== e.INGREDIENTS && i.value !== e.RECIPE && i.value !== e.UNIT && i.value !== e.PUBLISH
|
|
336
|
+
) : t;
|
|
335
337
|
}), N = E(() => {
|
|
336
|
-
function
|
|
337
|
-
for (const
|
|
338
|
-
if (
|
|
339
|
-
const l = i
|
|
338
|
+
function o(d) {
|
|
339
|
+
for (const i of d)
|
|
340
|
+
if (i.children && i.children.length > 0) {
|
|
341
|
+
const l = o(i.children);
|
|
340
342
|
if (l) return l;
|
|
341
|
-
} else if (
|
|
342
|
-
return
|
|
343
|
+
} else if (i.value)
|
|
344
|
+
return i.value;
|
|
343
345
|
}
|
|
344
|
-
return
|
|
346
|
+
return o(m.value) ?? null;
|
|
345
347
|
});
|
|
346
348
|
return { menuItems: m, firstAccessibleRouteName: N };
|
|
347
349
|
}
|
|
348
350
|
export {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
351
|
+
W as e,
|
|
352
|
+
p as n,
|
|
353
|
+
w as u
|
|
352
354
|
};
|