@feedmepos/mf-inventory-portal 1.3.14 → 1.3.16-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/App-BckRpjrE.js +309 -0
  2. package/dist/{ApprovalView-BVszC4Cw.js → ApprovalView-C5rVI_O7.js} +17 -17
  3. package/dist/{BindingsDialog-B3L_3xdo.js → BindingsDialog-Y530TN7D.js} +13 -13
  4. package/dist/{BindingsPicker-A4togB2v.js → BindingsPicker-BbQ9Ygep.js} +2 -2
  5. package/dist/{BindingsTable-DacoMdY6.js → BindingsTable-ClHmMFLP.js} +3 -3
  6. package/dist/{ClosingDraftView-C9tvMgLl.js → ClosingDraftView-Dn16j97_.js} +15 -15
  7. package/dist/{ClosingHistoryView-CqqzqSqU.js → ClosingHistoryView-BK7KJbbf.js} +5 -5
  8. package/dist/{ClosingTemplateView-CLi0XE8S.js → ClosingTemplateView-D2petgop.js} +14 -14
  9. package/dist/DefaultView-CdCpGT5n.js +31 -0
  10. package/dist/{DeliveryOrderPrintPreview-DEHEfd80.js → DeliveryOrderPrintPreview-C_S4SG8h.js} +11 -11
  11. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-GT5YUrJz.js +76 -0
  12. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-xxS4P6uo.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-q8fQfbEV.js} +2 -2
  13. package/dist/{FmMultiselectDialog-CR2peMEL.js → FmMultiselectDialog-6JADZ5xC.js} +1 -1
  14. package/dist/{FmMultiselectDialog-FGR8t9rz.js → FmMultiselectDialog-BEkAAZZp.js} +16 -16
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DgXOsVLe.js → FmUnitInput.vue_vue_type_script_setup_true_lang-kaW8FwP5.js} +6 -5
  16. package/dist/{ImportView-CEI0QqGz.js → ImportView-D8i5_GO9.js} +6 -6
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-cRgKjHY0.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-baV8qK0P.js} +1 -1
  18. package/dist/{IngredientGroupView-DEELNMpl.js → IngredientGroupView-BiqFuJx0.js} +5 -5
  19. package/dist/{IngredientsView-D3OcjZdT.js → IngredientsView-CQHobUvF.js} +15 -15
  20. package/dist/{IntegrationExplorerView-ByPpT3hC.js → IntegrationExplorerView-BFbGH5-S.js} +5 -5
  21. package/dist/{IntegrationView-BSqlJBp-.js → IntegrationView-UF8UwPNk.js} +81 -81
  22. package/dist/{InventoryBindingForm-SgmyJvCs.js → InventoryBindingForm-DB4LwgzC.js} +1 -1
  23. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-GLipe2bO.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Dc0sxYMV.js} +5 -5
  24. package/dist/{InventoryBindingSummary-D6deGR6B.js → InventoryBindingSummary-Bwn4HZy5.js} +1 -1
  25. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGDL-t7m.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BvBOo5wi.js} +1 -1
  26. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-ff1rPUJW.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D2wiVygJ.js} +7 -7
  27. package/dist/{PublishView-7TAa2QQB.js → PublishView-BFac9M5C.js} +15 -15
  28. package/dist/{PurchaseOrderPrintPreview-DhcnInSW.js → PurchaseOrderPrintPreview-tree07u5.js} +11 -11
  29. package/dist/{ReceiveRequestView-Z3JYH3gf.js → ReceiveRequestView-DLERk28I.js} +30 -29
  30. package/dist/RecipeView-DDgN0DkI.js +2898 -0
  31. package/dist/{SettingsView-F_BWUxoq.js → SettingsView-BWw7AhqT.js} +4 -4
  32. package/dist/StockView-D0wW54eN.js +2439 -0
  33. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxNgi5uv.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Btor1W6X.js} +1 -1
  34. package/dist/{SupplierView-DklOXwHD.js → SupplierView-Bd_PLuYt.js} +12 -12
  35. package/dist/{SurchargeView-DcImorUr.js → SurchargeView-F1B_fcv-.js} +16 -16
  36. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-xdLxGAOM.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-95m2qnoM.js} +2 -2
  37. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bu4XKhII.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DHKDRFgr.js} +1 -1
  38. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DMrRfwKD.js → TransferDetails.vue_vue_type_script_setup_true_lang-BC0PNCtM.js} +812 -828
  39. package/dist/{TransferTemplateView-DTdlSI2b.js → TransferTemplateView-DM8qOCpO.js} +20 -19
  40. package/dist/{UnitCostHistoryView-CQ_DJE-t.js → UnitCostHistoryView-Bzocbij3.js} +246 -243
  41. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-QuejzcCL.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BDzz91rl.js} +4 -4
  42. package/dist/{UnitView-DzcCdCGw.js → UnitView-EndrhMnI.js} +7 -7
  43. package/dist/{WarehouseView-BYj9DD1N.js → WarehouseView-BJZELae1.js} +25 -25
  44. package/dist/{WastageTemplateView--w6an2Ar.js → WastageTemplateView-s6ZiQR8E.js} +14 -14
  45. package/dist/{app-CPlgHGkC.js → app-CaGW5ogt.js} +23768 -22367
  46. package/dist/app.d.ts +148 -6
  47. package/dist/app.js +5 -5
  48. package/dist/{closing-template-B9JOB9ah.js → closing-template-CUgXd6Na.js} +1 -1
  49. package/dist/components/HrmPermissionGuard.vue.d.ts +54 -0
  50. package/dist/composable/useHrmPermission.d.ts +17 -0
  51. package/dist/composable/useInventoryAccess.d.ts +11 -0
  52. package/dist/composable/useNavigationMenu.d.ts +14 -0
  53. package/dist/{date2-Ci9tlLMJ.js → date2-fQDP1Rtk.js} +1 -1
  54. package/dist/{dayjs.min-DTx2lmq6.js → dayjs.min-UwaUKDHA.js} +32 -32
  55. package/dist/{decimal-iKhH_VJO.js → decimal-CKysiOcn.js} +2 -2
  56. package/dist/{defineDeepModel-C25T8oyP.js → defineDeepModel-CwM7TJuT.js} +1 -1
  57. package/dist/{duplicate-template-BptIBRQ3.js → duplicate-template-Bb5b_40t.js} +1 -1
  58. package/dist/{empty-placeholder-wf6-BWE8.js → empty-placeholder-B0QU467o.js} +1 -1
  59. package/dist/{export-CKuVd5pP.js → export-nbyx5EYR.js} +1 -1
  60. package/dist/{feature-CXMSo4z7.js → feature-Dqme8-Xr.js} +22 -22
  61. package/dist/{format-time-from-id-Bk60g6lh.js → format-time-from-id-DsRN_JB-.js} +1 -1
  62. package/dist/{format-unit-display-C4nf8hG8.js → format-unit-display-Df1v6CMC.js} +11 -11
  63. package/dist/{import-export.helper-BDzsQcYD.js → import-export.helper-QInnTLhY.js} +6 -6
  64. package/dist/{index-CUVlQagt.js → index-BCwp1fKe.js} +3 -3
  65. package/dist/{index-DiKOwY5C.js → index-CbwjQK_M.js} +1 -1
  66. package/dist/{index-DTszDSPO.js → index-Cij7rBSm.js} +1 -1
  67. package/dist/{inventory-core-dart.default-Cn3sonot.js → inventory-core-dart.default-Bgq3Sd7C.js} +10 -10
  68. package/dist/{lodash-DGOK6ZkA.js → lodash-B15PREHg.js} +1 -1
  69. package/dist/{lz-string-QrWbdmw6.js → lz-string-DdnEcXDA.js} +21 -21
  70. package/dist/{netsuite-DglgyKcZ.js → netsuite-NcBlI9QO.js} +37 -37
  71. package/dist/{number-Ut7u2ZEE.js → number-DQ-rkxYN.js} +11 -11
  72. package/dist/{predefined-templates-DZtFebPU.js → predefined-templates-zYAuXO9-.js} +1 -1
  73. package/dist/{purchase-order-template-DhNVhXmD.js → purchase-order-template-DcoKKoiW.js} +1 -1
  74. package/dist/{recalculationUtils-CqJRd9B2.js → recalculationUtils-MW6hf5oz.js} +1 -1
  75. package/dist/router/name.d.ts +1 -0
  76. package/dist/router/route-permission.d.ts +10 -0
  77. package/dist/{rules-BIm67nl_.js → rules-CxC7ePEb.js} +2 -2
  78. package/dist/{stock-Dc4_U69J.js → stock-Bly2vXJq.js} +28 -27
  79. package/dist/{stock-CzdMn9n8.js → stock-Bqk5_C4b.js} +3 -3
  80. package/dist/{supplier-De5G6CeF.js → supplier-B0yIc028.js} +2 -2
  81. package/dist/{surcharge-CN5FtDZq.js → surcharge-BZa9y16I.js} +8 -8
  82. package/dist/tsconfig.app.tsbuildinfo +1 -1
  83. package/dist/{use-ingredient-select-dialog-Wy4CtYcZ.js → use-ingredient-select-dialog-BGPPfGO-.js} +2 -2
  84. package/dist/{use-inventory-binding-dialog-C1LCH0jV.js → use-inventory-binding-dialog-DUsjKdNr.js} +2 -2
  85. package/dist/{use-template-enabled-locations-BfZFcXZ_.js → use-template-enabled-locations-D2EWKhWK.js} +2 -2
  86. package/dist/use-transfer-locations-BRQbfZYI.js +116 -0
  87. package/dist/useHrmPermission-BZSfcBwi.js +16 -0
  88. package/dist/useNavigationMenu-C7F5h-H5.js +162 -0
  89. package/dist/views/DefaultView.vue.d.ts +2 -0
  90. package/dist/views/receive-request/composables/use-order-draft-permission.d.ts +2 -5
  91. package/dist/views/recipe/components/recipe-bulk-editor/RecipeBulkEditorDialog.vue.d.ts +19 -0
  92. package/dist/views/recipe/components/recipe-bulk-editor/RecipeBulkEditorQueryStep.vue.d.ts +2 -0
  93. package/dist/views/recipe/components/recipe-bulk-editor/RecipeBulkEditorSummaryStep.vue.d.ts +2 -0
  94. package/dist/views/recipe/composables/use-recipe-bulk-editor.d.ts +634 -0
  95. package/dist/{vue-i18n-CvVV4Xof.js → vue-i18n-BuXEP0EQ.js} +348 -348
  96. package/dist/{xlsx-lawW6Hwh.js → xlsx-C0BSmeBh.js} +1 -1
  97. package/dist/{xlsx.util-DSCqPt8v.js → xlsx.util-CyLHh8k-.js} +1 -1
  98. package/package.json +4 -3
  99. package/dist/App-BQZQFNKG.js +0 -411
  100. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BDZVaj3l.js +0 -188
  101. package/dist/RecipeView--ALwYD-O.js +0 -1692
  102. package/dist/StockView-BLrquJf2.js +0 -2406
@@ -1,9 +1,9 @@
1
- import { m as e, a2 as Kt, a3 as zt, a4 as Gt, a5 as Yt, a6 as Fe, a7 as Jt, a8 as ke, U as He, a9 as Xe, aa as Ct, ab as O, ac as x, e as Te, N as R, y as M, ad as $e, E as ne, D as se, ae as Ke, Q as B, af as Nt, ag as Qt, ah as Wt, ai as Zt, aj as et, ak as Xt, o as en, j as tn, v as ft, a as nn, u as Me } from "./app-CPlgHGkC.js";
1
+ import { V as e, a3 as Kt, a4 as zt, a5 as Gt, a6 as Yt, a7 as Fe, a8 as Jt, a9 as ke, T as He, aa as Xe, ab as Ct, ac as O, ad as x, d as Te, N as R, w as M, ae as $e, C as ne, B as se, af as Ke, P as B, ag as Nt, ah as Wt, ai as Qt, aj as Zt, ak as et, al as Xt, m as en, i as tn, s as ft, a as nn, u as Me } from "./app-CaGW5ogt.js";
2
2
  import { useCoreStore as we } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as rn } from "@feedmepos/ui-library";
4
- import { _ as P } from "./lodash-DGOK6ZkA.js";
5
- import { defineComponent as sn, ref as ze, computed as Ie, resolveComponent as xe, openBlock as Q, createBlock as on, withCtx as oe, createVNode as ae, createElementVNode as w, createElementBlock as ue, Fragment as Le, createCommentVNode as Ue, createTextVNode as W, toDisplayString as V, renderList as an, unref as It, h as un } from "vue";
6
- import { u as dn } from "./feature-CXMSo4z7.js";
4
+ import { _ as P } from "./lodash-B15PREHg.js";
5
+ import { defineComponent as sn, ref as ze, computed as Ie, resolveComponent as xe, openBlock as W, createBlock as on, withCtx as oe, createVNode as ae, createElementVNode as w, createElementBlock as ue, Fragment as Le, createCommentVNode as Ue, createTextVNode as Q, toDisplayString as V, renderList as an, unref as It, h as un } from "vue";
6
+ import { u as dn } from "./feature-Dqme8-Xr.js";
7
7
  var cn = Object.defineProperty, g = (s, u) => cn(s, "name", { value: u, configurable: !0 }), Ce = "MYR";
8
8
  e.enum([
9
9
  "custbody_fm_do_id",
@@ -1805,13 +1805,13 @@ function Ve(s) {
1805
1805
  return u;
1806
1806
  }
1807
1807
  g(Ve, "getTransferOrderStatusEnumKeyByValue");
1808
- function Qe(s) {
1808
+ function We(s) {
1809
1809
  const u = Object.keys(Ne).find((d) => Ne[d] === s);
1810
1810
  if (!u)
1811
1811
  throw new Error(`Invalid purchase order status value: ${s}`);
1812
1812
  return u;
1813
1813
  }
1814
- g(Qe, "getPurchaseOrderStatusEnumKeyByValue");
1814
+ g(We, "getPurchaseOrderStatusEnumKeyByValue");
1815
1815
  function Ft(s, u, d) {
1816
1816
  const c = d.filter((a) => a.field === "TRANDOC.KSTATUS"), r = [
1817
1817
  F.B,
@@ -2075,7 +2075,7 @@ var bt;
2075
2075
  (function(s) {
2076
2076
  (function(u) {
2077
2077
  function d({ locationDb: n, setting: t, purchaseOrder: i, status: o = X.enum.A, overrideItemCost: m = !0, customItemAttributes: l, customFields: f }) {
2078
- const { netSuiteFromId: a, netSuiteToId: I } = We(t.locations, t.vendors, n, i.supplier._id), p = i.items.map((y) => {
2078
+ const { netSuiteFromId: a, netSuiteToId: I } = Qe(t.locations, t.vendors, n, i.supplier._id), p = i.items.map((y) => {
2079
2079
  const E = t.items.find((_) => _.id === y.sku._id);
2080
2080
  return ie.ToNetSuite.toCreateDto({
2081
2081
  poItem: y,
@@ -2112,7 +2112,7 @@ var bt;
2112
2112
  items: p
2113
2113
  },
2114
2114
  orderStatus: {
2115
- id: Qe(o)
2115
+ id: We(o)
2116
2116
  },
2117
2117
  custbody_fm_po_num: i.seqNumber,
2118
2118
  custbody_fm_po_id: i._id
@@ -2120,7 +2120,7 @@ var bt;
2120
2120
  }
2121
2121
  g(d, "toCreateDto"), u.toCreateDto = d;
2122
2122
  function c({ locationDb: n, setting: t, purchaseOrder: i, overrideItemCost: o, customItemAttributes: m, includeItems: l = !1, customFields: f }) {
2123
- const { netSuiteToId: a } = We(t.locations, t.vendors, n, i.supplier._id);
2123
+ const { netSuiteToId: a } = Qe(t.locations, t.vendors, n, i.supplier._id);
2124
2124
  i != null && i.effectiveAt || se(i._id);
2125
2125
  const I = i.items.map((p) => {
2126
2126
  const y = t.items.find((E) => E.id === p.sku._id);
@@ -2147,7 +2147,7 @@ var bt;
2147
2147
  function r() {
2148
2148
  return {
2149
2149
  orderStatus: {
2150
- id: Qe(X.enum.H)
2150
+ id: We(X.enum.H)
2151
2151
  }
2152
2152
  };
2153
2153
  }
@@ -2222,7 +2222,7 @@ var bt;
2222
2222
  g(d, "transform"), u.transform = d;
2223
2223
  }(s.FromNetSuite || (s.FromNetSuite = {}));
2224
2224
  })(bt || (bt = {}));
2225
- function We(s, u, d, c) {
2225
+ function Qe(s, u, d, c) {
2226
2226
  var t, i;
2227
2227
  const r = (t = u.find((o) => o.id === c)) == null ? void 0 : t.netSuiteId, n = (i = s.find((o) => {
2228
2228
  const [m, l] = d.split("_");
@@ -2235,7 +2235,7 @@ function We(s, u, d, c) {
2235
2235
  netSuiteToId: n
2236
2236
  };
2237
2237
  }
2238
- g(We, "locationMapper");
2238
+ g(Qe, "locationMapper");
2239
2239
  var Ze;
2240
2240
  (function(s) {
2241
2241
  (function(u) {
@@ -3327,7 +3327,7 @@ function st(s, u, d, c, r) {
3327
3327
  });
3328
3328
  else {
3329
3329
  i.id && i.externalId && (t[i.id] = i.externalId);
3330
- const m = Object.keys(Qt.shape);
3330
+ const m = Object.keys(Wt.shape);
3331
3331
  for (const l of m) {
3332
3332
  if (l === "id" || l === "externalId" && r === ne.Enum[1])
3333
3333
  continue;
@@ -3442,7 +3442,7 @@ var ee;
3442
3442
  var $ = /* @__PURE__ */ g((s) => s === "" ? null : s, "normalizeNullOrEmpty"), Vn = 'Record [$] item on line [$], field "$" changed from "$" to "$"';
3443
3443
  function Bn(s, u, d) {
3444
3444
  var n, t, i, o, m, l;
3445
- const c = Object.keys(Wt.shape), r = [];
3445
+ const c = Object.keys(Qt.shape), r = [];
3446
3446
  for (const f of u) {
3447
3447
  const a = $(f.id), I = $((n = f.netSuite) == null ? void 0 : n.id);
3448
3448
  if (!I)
@@ -4004,7 +4004,7 @@ var pe;
4004
4004
  (function(s) {
4005
4005
  s.UNIT_OF_MEASUREMENT_CREATED = "UNIT_OF_MEASUREMENT_CREATED", s.UNIT_OF_MEASUREMENT_UPDATED = "UNIT_OF_MEASUREMENT_UPDATED", s.UNIT_OF_MEASUREMENT_DELETED = "UNIT_OF_MEASUREMENT_DELETED", s.UNIT_OF_MEASUREMENT_DUPLICATE = "UNIT_OF_MEASUREMENT_DUPLICATE";
4006
4006
  })(pe || (pe = {}));
4007
- var Qn = 'Record [$] unif of measure on line [$], field "$" changed from "$" to "$"';
4007
+ var Wn = 'Record [$] unif of measure on line [$], field "$" changed from "$" to "$"';
4008
4008
  function Bt(s, u) {
4009
4009
  const d = Object.keys(At.shape), c = [];
4010
4010
  for (const r of u) {
@@ -4024,7 +4024,7 @@ function Bt(s, u) {
4024
4024
  let m = o, l = i;
4025
4025
  typeof i == "object" && (m = JSON.stringify(o), l = JSON.stringify(i)), c.push({
4026
4026
  type: pe.UNIT_OF_MEASUREMENT_UPDATED,
4027
- message: re(Qn, [
4027
+ message: re(Wn, [
4028
4028
  "Unit Of Measure",
4029
4029
  `${r.nsConfig.netSuiteId}`,
4030
4030
  t,
@@ -4050,7 +4050,7 @@ function Bt(s, u) {
4050
4050
  return c;
4051
4051
  }
4052
4052
  g(Bt, "detectUnitOfMeasureConflicts");
4053
- function Wn(s, u) {
4053
+ function Qn(s, u) {
4054
4054
  const d = [];
4055
4055
  if (!u)
4056
4056
  d.push({
@@ -4084,7 +4084,7 @@ function Wn(s, u) {
4084
4084
  }
4085
4085
  return d;
4086
4086
  }
4087
- g(Wn, "detectUnitTypeConflicts");
4087
+ g(Qn, "detectUnitTypeConflicts");
4088
4088
  function qt(s, u) {
4089
4089
  if (u.length === 0)
4090
4090
  return s;
@@ -4914,7 +4914,7 @@ const de = en((s, u) => {
4914
4914
  }
4915
4915
  return (f, a) => {
4916
4916
  const I = xe("FmButton"), p = xe("FmLabel"), y = xe("FmSelect"), E = xe("FmDialog");
4917
- return Q(), on(E, {
4917
+ return W(), on(E, {
4918
4918
  modelValue: r.value,
4919
4919
  "onUpdate:modelValue": a[4] || (a[4] = (_) => r.value = _),
4920
4920
  overlay: !0,
@@ -4938,7 +4938,7 @@ const de = en((s, u) => {
4938
4938
  ])),
4939
4939
  "dialog-footer": oe(() => [
4940
4940
  w("div", qi, [
4941
- f.readonly ? Ue("", !0) : (Q(), ue(Le, { key: 0 }, [
4941
+ f.readonly ? Ue("", !0) : (W(), ue(Le, { key: 0 }, [
4942
4942
  a[17] || (a[17] = w("span", { class: "text-sm mb-2 font-bold" }, " This will overwrite the code and uom only.", -1)),
4943
4943
  w("div", Hi, [
4944
4944
  ae(I, {
@@ -4970,67 +4970,67 @@ const de = en((s, u) => {
4970
4970
  w("div", Ci, [
4971
4971
  ae(p, null, {
4972
4972
  default: oe(() => a[6] || (a[6] = [
4973
- W("Code")
4973
+ Q("Code")
4974
4974
  ])),
4975
4975
  _: 1
4976
4976
  }),
4977
4977
  w("span", Ni, V(f.sku.code), 1),
4978
4978
  ae(p, null, {
4979
4979
  default: oe(() => a[7] || (a[7] = [
4980
- W("Name")
4980
+ Q("Name")
4981
4981
  ])),
4982
4982
  _: 1
4983
4983
  }),
4984
4984
  w("span", Ai, V(f.sku.name), 1),
4985
4985
  ae(p, null, {
4986
4986
  default: oe(() => a[8] || (a[8] = [
4987
- W("Unit")
4987
+ Q("Unit")
4988
4988
  ])),
4989
4989
  _: 1
4990
4990
  }),
4991
4991
  w("span", Mi, V(f.sku.unit.name), 1)
4992
4992
  ]),
4993
- f.readonly ? (Q(), ue(Le, { key: 0 }, [
4993
+ f.readonly ? (W(), ue(Le, { key: 0 }, [
4994
4994
  a[14] || (a[14] = w("hr", { class: "my-2" }, null, -1)),
4995
4995
  ae(p, null, {
4996
4996
  default: oe(() => a[9] || (a[9] = [
4997
- W("Custom Codes")
4997
+ Q("Custom Codes")
4998
4998
  ])),
4999
4999
  _: 1
5000
5000
  }),
5001
5001
  w("div", Ui, [
5002
- (Q(!0), ue(Le, null, an(n.value, (_, S) => (Q(), ue("div", {
5002
+ (W(!0), ue(Le, null, an(n.value, (_, S) => (W(), ue("div", {
5003
5003
  key: S,
5004
5004
  class: "rounded border-1 flex flex-col p-2"
5005
5005
  }, [
5006
5006
  w("span", ki, [
5007
5007
  a[10] || (a[10] = w("b", null, "Child Name:", -1)),
5008
- W(" " + V(_.value.childName), 1)
5008
+ Q(" " + V(_.value.childName), 1)
5009
5009
  ]),
5010
5010
  w("span", wi, [
5011
5011
  w("b", null, "Custom code (" + V(m.value ? It(ft)(m.value) : "N/A") + "):", 1),
5012
- W(" " + V(_.value.code), 1)
5012
+ Q(" " + V(_.value.code), 1)
5013
5013
  ]),
5014
5014
  w("span", Ri, [
5015
5015
  a[11] || (a[11] = w("b", null, "Custom name:", -1)),
5016
- W(" " + V(_.value.name), 1)
5016
+ Q(" " + V(_.value.name), 1)
5017
5017
  ]),
5018
5018
  w("span", Fi, [
5019
5019
  a[12] || (a[12] = w("b", null, "UOM:", -1)),
5020
- W(" " + V(_.value.fmMeasurementAbbrev ?? d.sku.unit.abbrev), 1)
5020
+ Q(" " + V(_.value.fmMeasurementAbbrev ?? d.sku.unit.abbrev), 1)
5021
5021
  ]),
5022
- _.value.remark ? (Q(), ue("span", Pi, [
5022
+ _.value.remark ? (W(), ue("span", Pi, [
5023
5023
  a[13] || (a[13] = w("b", null, "Remark:", -1)),
5024
- W(" " + V(_.value.remark), 1)
5024
+ Q(" " + V(_.value.remark), 1)
5025
5025
  ])) : Ue("", !0)
5026
5026
  ]))), 128)),
5027
- n.value.length === 0 ? (Q(), ue("span", Oi, "No custom code found.")) : Ue("", !0)
5027
+ n.value.length === 0 ? (W(), ue("span", Oi, "No custom code found.")) : Ue("", !0)
5028
5028
  ])
5029
- ], 64)) : (Q(), ue(Le, { key: 1 }, [
5029
+ ], 64)) : (W(), ue(Le, { key: 1 }, [
5030
5030
  a[16] || (a[16] = w("hr", { class: "my-2" }, null, -1)),
5031
5031
  ae(p, null, {
5032
5032
  default: oe(() => a[15] || (a[15] = [
5033
- W("Custom Code")
5033
+ Q("Custom Code")
5034
5034
  ])),
5035
5035
  _: 1
5036
5036
  }),
@@ -5041,12 +5041,12 @@ const de = en((s, u) => {
5041
5041
  placeholder: "Select NetSuite Custom Code",
5042
5042
  class: "w-full mt-2"
5043
5043
  }, null, 8, ["modelValue", "items"]),
5044
- t.value ? (Q(), ue("div", xi, [
5044
+ t.value ? (W(), ue("div", xi, [
5045
5045
  w("span", Li, "Child Name: " + V(t.value.childName), 1),
5046
5046
  w("span", $i, "Custom code (" + V(m.value ? It(ft)(m.value) : "N/A") + "): " + V(t.value.code), 1),
5047
5047
  w("span", ji, "Custom name: " + V(t.value.name), 1),
5048
5048
  w("span", Vi, "UOM: " + V(t.value.fmMeasurementAbbrev ?? d.sku.unit.abbrev), 1),
5049
- t.value.remark ? (Q(), ue("span", Bi, "Remark: " + V(t.value.remark), 1)) : Ue("", !0)
5049
+ t.value.remark ? (W(), ue("span", Bi, "Remark: " + V(t.value.remark), 1)) : Ue("", !0)
5050
5050
  ])) : Ue("", !0)
5051
5051
  ], 64))
5052
5052
  ])
@@ -1,6 +1,6 @@
1
- import { y as o } from "./app-CPlgHGkC.js";
2
- import { F as l } from "./decimal-iKhH_VJO.js";
3
- import "./dayjs.min-DTx2lmq6.js";
1
+ import { w as o } from "./app-CaGW5ogt.js";
2
+ import { F as l } from "./decimal-CKysiOcn.js";
3
+ import "./dayjs.min-UwaUKDHA.js";
4
4
  function g(n, t) {
5
5
  return o.convertPrecision({
6
6
  value: n,
@@ -13,10 +13,10 @@ function A(n, t) {
13
13
  function j(n, t) {
14
14
  return o.add([n, t]);
15
15
  }
16
- function P(n, t) {
16
+ function w(n, t) {
17
17
  return o.multiply([n, t]);
18
18
  }
19
- function w(n, t) {
19
+ function P(n, t) {
20
20
  return o.multiply([n, t]);
21
21
  }
22
22
  function d(n, t) {
@@ -44,13 +44,13 @@ function x(n, t) {
44
44
  const r = t, e = n.toFixed(r), i = e.includes(".") ? e.replace(/0+$/, "") : e;
45
45
  return i.endsWith(".") ? i.slice(0, i.length - 1) : i;
46
46
  }
47
- function y(n, t = !1, r = 2) {
47
+ function M(n, t = !1, r = 2) {
48
48
  const e = Number(n.amount / Math.pow(10, n.precision)), i = e.toFixed(
49
49
  Number.isInteger(e) ? 2 : Math.min(4, Math.max(2, r))
50
50
  );
51
51
  return t ? `${i} ${n.currency}` : n.currency === "MYR" ? `RM ${i}` : `${n.currency} ${i}`;
52
52
  }
53
- function M(n) {
53
+ function y(n) {
54
54
  return {
55
55
  ...n,
56
56
  amount: Math.abs(n.amount)
@@ -121,12 +121,12 @@ export {
121
121
  s as a,
122
122
  c as b,
123
123
  m as c,
124
- y as d,
125
- w as e,
124
+ M as d,
125
+ P as e,
126
126
  a as f,
127
127
  D as g,
128
- M as h,
129
- P as i,
128
+ y as h,
129
+ w as i,
130
130
  j,
131
131
  g as k,
132
132
  A as l,
@@ -1,4 +1,4 @@
1
- import { o as qn, j as Wn, A as zn } from "./app-CPlgHGkC.js";
1
+ import { m as qn, i as Wn, y as zn } from "./app-CaGW5ogt.js";
2
2
  import { defineStore as Vn } from "pinia";
3
3
  import { ref as mt, computed as Kn } from "vue";
4
4
  import { useCoreStore as Yn } from "@feedmepos/mf-common";
@@ -1,4 +1,4 @@
1
- import { o as s } from "./app-CPlgHGkC.js";
1
+ import { m as s } from "./app-CaGW5ogt.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  const u = s((n, a) => {
4
4
  function o() {
@@ -1,4 +1,4 @@
1
- import { D as p } from "./app-CPlgHGkC.js";
1
+ import { B as p } from "./app-CaGW5ogt.js";
2
2
  function l(s) {
3
3
  return Math.floor(s.getTime() / 1e3) * 1e3;
4
4
  }
@@ -1,4 +1,5 @@
1
1
  export declare enum RouteName {
2
+ LOADING = "DEFAULT",
2
3
  INGREDIENTS = "INGREDIENTS",
3
4
  INGREDIENT_GROUP = "INGREDIENT_GROUP",
4
5
  RECIPE = "RECIPE",
@@ -0,0 +1,10 @@
1
+ import type { RouteMeta } from 'vue-router';
2
+ import type { PermissionSubjectBusinessNamespace } from '@feedmepos/hrm-permission';
3
+ /**
4
+ * Creates route meta for read-only inventory resource access.
5
+ *
6
+ * vue-router's RouteMeta augmentation comes from @feedmepos/mf-common, which
7
+ * does not accept inventory manifest resources directly, so the final shape is
8
+ * cast at the boundary after the local payload is type-checked.
9
+ */
10
+ export declare function canView(subject: PermissionSubjectBusinessNamespace): RouteMeta;
@@ -1,5 +1,5 @@
1
- import { a as u, g as d, c as f, b as m } from "./number-Ut7u2ZEE.js";
2
- import { b, c as p } from "./date2-Ci9tlLMJ.js";
1
+ import { a as u, g as d, c as f, b as m } from "./number-DQ-rkxYN.js";
2
+ import { b, c as p } from "./date2-fQDP1Rtk.js";
3
3
  function M() {
4
4
  return function(e) {
5
5
  return !!e || "Required";
@@ -1,8 +1,8 @@
1
- import { o as d, u as l } from "./app-CPlgHGkC.js";
2
- import { useCoreStore as m } from "@feedmepos/mf-common";
3
- import { useSnackbar as $ } from "@feedmepos/ui-library";
4
- const y = d((o, a) => {
5
- const c = l(), u = m(), i = $();
1
+ import { m, u as $ } from "./app-CaGW5ogt.js";
2
+ import { useCoreStore as B } from "@feedmepos/mf-common";
3
+ import { useSnackbar as k } from "@feedmepos/ui-library";
4
+ const N = m((o, a) => {
5
+ const s = $(), u = B(), i = k();
6
6
  return a.onError(async (e) => {
7
7
  e.name === "SvcForbiddenError" && (i == null || i.open({
8
8
  title: e.title,
@@ -11,38 +11,38 @@ const y = d((o, a) => {
11
11
  }));
12
12
  }), {
13
13
  async readStockBalance() {
14
- const e = c.currentLocationDBName, t = `${o.inventoryBackendUrl}/${e}/stock-balance`;
14
+ const e = s.currentLocationDBName, t = `${o.inventoryBackendUrl}/${e}/stock-balance`;
15
15
  return await a.get(t);
16
16
  },
17
17
  async readSkuBalance() {
18
18
  var r;
19
- const e = c.currentLocationDBName, t = `${o.inventoryBackendUrl}/${e}/sku/balance`;
19
+ const e = s.currentLocationDBName, t = `${o.inventoryBackendUrl}/${e}/sku/balance`;
20
20
  return (((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) ?? "") === "v3" ? await a.get(t) : await a.get(`${t}?useInventoryDoc=true`);
21
21
  },
22
22
  async readSingleAdjustment(e) {
23
- const t = c.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/adjustment`;
23
+ const t = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/adjustment`;
24
24
  return await a.get(`${n}?adjustmentId=${e}`);
25
25
  },
26
26
  async readStockAdjustment(e, t, n) {
27
- const r = c.currentLocationDBName, s = `${o.inventoryBackendUrl}/${r}/sku`;
28
- return await a.get(`${s}?skuId=${e}&start=${t}&end=${n}`);
27
+ const r = s.currentLocationDBName, c = `${o.inventoryBackendUrl}/${r}/sku`;
28
+ return await a.get(`${c}?skuId=${e}&start=${t}&end=${n}`);
29
29
  },
30
30
  async readAdjustmentById(e) {
31
- const t = c.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/adjustment`;
31
+ const t = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/adjustment`;
32
32
  return await a.get(`${n}?adjustmentId=${e}`);
33
33
  },
34
34
  async convertSku(e) {
35
- var s;
36
- const t = c.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/sku/convert`;
37
- return (((s = u.currentBusiness.value) == null ? void 0 : s.menuVersion) ?? "") === "v3" ? await a.post(n, e) : await a.post(`${n}?useInventoryDoc=true`, e);
35
+ var c;
36
+ const t = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/sku/convert`;
37
+ return (((c = u.currentBusiness.value) == null ? void 0 : c.menuVersion) ?? "") === "v3" ? await a.post(n, e) : await a.post(`${n}?useInventoryDoc=true`, e);
38
38
  },
39
39
  async adjustSku(e) {
40
- var s;
41
- const t = c.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/sku/adjust`;
42
- return (((s = u.currentBusiness.value) == null ? void 0 : s.menuVersion) ?? "") === "v3" ? await a.post(n, e) : await a.post(`${n}?useInventoryDoc=true`, e);
40
+ var c;
41
+ const t = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/sku/adjust`;
42
+ return (((c = u.currentBusiness.value) == null ? void 0 : c.menuVersion) ?? "") === "v3" ? await a.post(n, e) : await a.post(`${n}?useInventoryDoc=true`, e);
43
43
  },
44
44
  async revertWastageAdjustment(e) {
45
- const t = c.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/sku/revert-wastage-adjustment`;
45
+ const t = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/sku/revert-wastage-adjustment`;
46
46
  return await a.post(n, e);
47
47
  },
48
48
  recalculation: {
@@ -57,23 +57,23 @@ const y = d((o, a) => {
57
57
  return a.post(n);
58
58
  },
59
59
  refreshCurrentBalances() {
60
- const e = c.currentLocationDBName, t = `${o.inventoryBackendUrl}/${e}/stock/operations/recalculate/refresh-current-balances`;
60
+ const e = s.currentLocationDBName, t = `${o.inventoryBackendUrl}/${e}/stock/operations/recalculate/refresh-current-balances`;
61
61
  return a.post(t);
62
62
  },
63
63
  scheduleCalculateStockSnapshotAtDate(e, t) {
64
- const n = c.currentLocationDBName, r = `${o.inventoryBackendUrl}/${n}/stock/operations/recalculate/schedule/calculate-at-date?effectiveAt=${encodeURIComponent(e)}&closingDraftId=${encodeURIComponent(t)}`;
64
+ const n = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${n}/stock/operations/recalculate/schedule/calculate-at-date?effectiveAt=${encodeURIComponent(e)}&closingDraftId=${encodeURIComponent(t)}`;
65
65
  return a.get(r);
66
66
  },
67
67
  scheduleInvalidateClosingDraftCache(e) {
68
- const t = c.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/stock/operations/recalculate/schedule/invalidate-closing-draft-cache`;
68
+ const t = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/stock/operations/recalculate/schedule/invalidate-closing-draft-cache`;
69
69
  return a.post(n, { closingDraftIds: e });
70
70
  },
71
71
  recalculationRequests() {
72
- const e = c.currentLocationDBName, t = `${o.inventoryBackendUrl}/${e}/stock/operations/recalculate/recalculation/requests`;
72
+ const e = s.currentLocationDBName, t = `${o.inventoryBackendUrl}/${e}/stock/operations/recalculate/recalculation/requests`;
73
73
  return a.get(t);
74
74
  },
75
75
  scheduleRecalculation(e) {
76
- const t = c.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/stock/operations/recalculate/schedule/recalculation`;
76
+ const t = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/stock/operations/recalculate/schedule/recalculation`;
77
77
  return a.post(n, {
78
78
  openingId: e.openingId,
79
79
  untilDate: e.untilDate,
@@ -81,18 +81,19 @@ const y = d((o, a) => {
81
81
  });
82
82
  },
83
83
  getAffectedClosingDrafts(e, t) {
84
- const n = c.currentLocationDBName, r = `${o.inventoryBackendUrl}/${n}/closing-draft/recalculation/affected-closing-drafts?openingId=${encodeURIComponent(e)}&untilDate=${encodeURIComponent(t)}`;
84
+ const n = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${n}/closing-draft/recalculation/affected-closing-drafts?openingId=${encodeURIComponent(e)}&untilDate=${encodeURIComponent(t)}`;
85
85
  return a.get(r);
86
86
  }
87
87
  },
88
88
  async readUnitCostHistory(e, t, n) {
89
- const r = c.currentLocation.doc._id, s = `${o.inventoryBackendUrl}/api/unit-cost-history`;
89
+ var d;
90
+ const r = s.currentLocation.doc._id, c = ((d = u.currentBusiness.value) == null ? void 0 : d._id) ?? "", l = `${o.inventoryBackendUrl}/${c}/api/unit-cost-history`;
90
91
  return await a.get(
91
- `${s}?locationId=${r}&skuId=${e}&startDate=${t}&endDate=${n}`
92
+ `${l}?locationId=${r}&skuId=${e}&startDate=${t}&endDate=${n}`
92
93
  );
93
94
  }
94
95
  };
95
96
  });
96
97
  export {
97
- y as u
98
+ N as u
98
99
  };
@@ -1,7 +1,7 @@
1
- import { u as i } from "./stock-Dc4_U69J.js";
2
- import { a as s, P as p } from "./app-CPlgHGkC.js";
1
+ import { u as i } from "./stock-Bly2vXJq.js";
2
+ import { a as s, O as p } from "./app-CaGW5ogt.js";
3
3
  import { ref as k, computed as B } from "vue";
4
- import { c as d } from "./number-Ut7u2ZEE.js";
4
+ import { c as d } from "./number-DQ-rkxYN.js";
5
5
  function m() {
6
6
  return {
7
7
  stockBalance: {
@@ -1,5 +1,5 @@
1
- import { o as b, u, n as v, p as w, q as $ } from "./app-CPlgHGkC.js";
2
- import { u as S } from "./feature-CXMSo4z7.js";
1
+ import { m as b, u, l as v, n as w, o as $ } from "./app-CaGW5ogt.js";
2
+ import { u as S } from "./feature-Dqme8-Xr.js";
3
3
  import { useCoreStore as c } from "@feedmepos/mf-common";
4
4
  import { defineStore as f } from "pinia";
5
5
  import { ref as l, computed as d } from "vue";
@@ -1,5 +1,5 @@
1
1
  import { ref as d } from "vue";
2
- import { o as w, j as g } from "./app-CPlgHGkC.js";
2
+ import { m as w, i as g } from "./app-CaGW5ogt.js";
3
3
  import { useCoreStore as h } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as y } from "@feedmepos/ui-library";
5
5
  const p = w((s, r) => {
@@ -28,8 +28,8 @@ const p = w((s, r) => {
28
28
  return await r.get(t);
29
29
  },
30
30
  async update(e, n) {
31
- var o;
32
- const t = ((o = u.currentBusiness.value) == null ? void 0 : o._id) ?? "", a = `${s.inventoryBackendUrl}/${t}/surcharge/${e}`;
31
+ var i;
32
+ const t = ((i = u.currentBusiness.value) == null ? void 0 : i._id) ?? "", a = `${s.inventoryBackendUrl}/${t}/surcharge/${e}`;
33
33
  return await r.put(a, n);
34
34
  },
35
35
  async delete(e) {
@@ -45,15 +45,15 @@ function l() {
45
45
  surcharges: []
46
46
  };
47
47
  }
48
- const i = d(l());
49
- function m() {
48
+ const o = d(l());
49
+ function f() {
50
50
  const s = p();
51
51
  return {
52
52
  get surcharges() {
53
- return i.value.surcharges;
53
+ return o.value.surcharges;
54
54
  },
55
55
  async browse() {
56
- i.value.surcharges = await s.browse();
56
+ o.value.surcharges = await s.browse();
57
57
  },
58
58
  async create(r) {
59
59
  await s.create(r), await this.browse();
@@ -67,5 +67,5 @@ function m() {
67
67
  };
68
68
  }
69
69
  export {
70
- m as u
70
+ f as u
71
71
  };