@feedmepos/mf-inventory-portal 1.0.9 → 1.0.10-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 (107) hide show
  1. package/dist/{App-RT4bBubX.js → App-COPx00z6.js} +50 -49
  2. package/dist/{ApprovalView-BgOWHNMD.js → ApprovalView-DEtUW_BD.js} +24 -24
  3. package/dist/{BindingsDialog-Dip74zuT.js → BindingsDialog-8WUk3Dv3.js} +2 -2
  4. package/dist/{BindingsPicker-DMQXwEn4.js → BindingsPicker-D8ABQZWj.js} +7 -7
  5. package/dist/{BindingsTable-Czz32F7d.js → BindingsTable-E4ObCYZW.js} +5 -5
  6. package/dist/{ClosingDraftView-Ps4DgRNG.js → ClosingDraftView-BuwTXzoD.js} +499 -498
  7. package/dist/{ClosingTemplateView-EjVLgUCH.js → ClosingTemplateView-Dwlu2WDi.js} +10 -10
  8. package/dist/{DeliveryOrderPrintPreview-C52aY34D.js → DeliveryOrderPrintPreview-CZQP0ZBf.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-MSqPw_6t.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CIpktJ_p.js} +32 -32
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DbN_e9U8.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BAsfttD3.js} +51 -51
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DHuB4hRb.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BtLdE9Qw.js} +1 -1
  12. package/dist/{IngredientGroupView-CRTjNc-p.js → IngredientGroupView-DKncarkj.js} +11 -11
  13. package/dist/{IngredientsView-CuLOu_v9.js → IngredientsView-DJhR4pNL.js} +15 -14
  14. package/dist/IntegrationView-DbehNBiT.js +10361 -0
  15. package/dist/{InventoryBindingForm-C1NfSdOs.js → InventoryBindingForm-CakKTaAx.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BJ7h3Nr6.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-qrYebXqE.js} +94 -89
  17. package/dist/{InventoryBindingSummary-CFjSwhxA.js → InventoryBindingSummary-ax4kqODn.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B73N8AvB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BD8iRcNk.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-rve3vJhu.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D13DAIwe.js} +10 -10
  20. package/dist/{PublishView-Bj0JawUb.js → PublishView-BMQzmmkT.js} +12 -12
  21. package/dist/{PurchaseOrderPrintPreview-DCAZVrDM.js → PurchaseOrderPrintPreview-CdbxZWLq.js} +4 -4
  22. package/dist/{ReceiveRequestView-B_bWd1hC.js → ReceiveRequestView-Blxchs0k.js} +53 -52
  23. package/dist/RecipeView-Bnigp2lS.js +8493 -0
  24. package/dist/{StockView-CsZ2hfAY.js → StockView-B4p6XQPR.js} +73 -72
  25. package/dist/{SupplierView-BUaouKYm.js → SupplierView-ojORzTSY.js} +12 -11
  26. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-G478rFCP.js +1894 -0
  27. package/dist/{TransferTemplateView-Rq7N13OR.js → TransferTemplateView-DTN23wTJ.js} +291 -290
  28. package/dist/{UnitView-C9j2RjtY.js → UnitView-w-bUgjIw.js} +23 -23
  29. package/dist/{WarehouseView-Ct6TWKej.js → WarehouseView-cJ7u4vTr.js} +26 -26
  30. package/dist/api/bill.d.ts +2 -2
  31. package/dist/api/food-market-hub.d.ts +1 -1
  32. package/dist/api/inventory.d.ts +110 -44
  33. package/dist/api/netsuite.d.ts +191 -8
  34. package/dist/api/purchase-order.d.ts +5 -1
  35. package/dist/{app-Cryb1Kx8.js → app-DtLEhFCD.js} +19871 -19809
  36. package/dist/app.d.ts +7 -7
  37. package/dist/app.js +2 -2
  38. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +30 -8
  39. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
  40. package/dist/components/shell/inventory/binding-ui.vue.d.ts +27 -5
  41. package/dist/composable/usePromise.d.ts +41 -0
  42. package/dist/{decimal-Ko0ukH7B.js → decimal-D0mDm48J.js} +1 -1
  43. package/dist/feature-GZEf4CLT.js +17427 -0
  44. package/dist/{format-unit-display-C1sTywhb.js → format-unit-display-Dl7kbJn1.js} +60 -60
  45. package/dist/{index-BAyyesj2.js → index-BglOiNaU.js} +7 -6
  46. package/dist/{index-WgH7CKAS.js → index-DKLr1Nm9.js} +1 -1
  47. package/dist/main.d.ts +1 -0
  48. package/dist/{stock-BVCXjojk.js → stock-V0Qm2pTD.js} +3 -3
  49. package/dist/stores/feature.d.ts +3 -20
  50. package/dist/stores/integration/foodmarkethub.d.ts +1 -1
  51. package/dist/stores/integration/netsuite.d.ts +22 -7
  52. package/dist/stores/inventory.d.ts +132 -44
  53. package/dist/stores/location.d.ts +137 -137
  54. package/dist/{supplier-Brxhm840.js → supplier-DK4PWcz4.js} +4 -4
  55. package/dist/tsconfig.app.tsbuildinfo +1 -1
  56. package/dist/{use-ingredient-select-dialog-DCAYNC6e.js → use-ingredient-select-dialog-BfJ-qHni.js} +1 -1
  57. package/dist/{use-inventory-binding-dialog-TYwx9mzF.js → use-inventory-binding-dialog-C5IYjwW5.js} +1 -1
  58. package/dist/views/adjustment-template/wastage-template/actions.d.ts +228 -228
  59. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +2 -2
  60. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +1 -1
  61. package/dist/views/adjustment-template/wastage-template/table.d.ts +234 -234
  62. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +140 -136
  63. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +420 -408
  64. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +4 -4
  65. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +252 -252
  66. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +252 -252
  67. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +12 -12
  68. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
  69. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +8 -8
  70. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +3 -3
  71. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +4 -4
  72. package/dist/views/integration/components/ApplyProduct.vue.d.ts +2 -2
  73. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +2 -2
  74. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +2 -2
  75. package/dist/views/integration/components/netsuite/InventoryTransfer.vue.d.ts +48 -0
  76. package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +180 -0
  77. package/dist/views/integration/components/netsuite/NetSuiteSideSheet.vue.d.ts +24 -0
  78. package/dist/views/integration/components/netsuite/NetSuiteSideSheetProps.d.ts +8 -0
  79. package/dist/views/integration/components/netsuite/{AddLocationDialog.vue.d.ts → business/AddLocationDialog.vue.d.ts} +204 -204
  80. package/dist/views/integration/components/netsuite/{LocationConfigurationDialog.vue.d.ts → business/BusinessNetSuiteSideSheet.vue.d.ts} +3 -3
  81. package/dist/views/integration/components/netsuite/{LocationConfigurationDialogProps.d.ts → business/BusinessNetSuiteSideSheetProps.d.ts} +1 -5
  82. package/dist/views/integration/components/netsuite/{NetSuiteLocationField.vue.d.ts → business/NetSuiteLocationField.vue.d.ts} +11 -9
  83. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +665 -637
  84. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +22 -22
  85. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +44 -44
  86. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +11 -11
  87. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +614 -0
  88. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1190 -1142
  89. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1192 -1144
  90. package/dist/views/receive-request/constants/po-action-to-ui-style.d.ts +6 -0
  91. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +46 -2
  92. package/dist/views/recipe/components/recipe-override-form-field/RecipeOverrideFormField.vue.d.ts +61 -0
  93. package/dist/views/recipe/composables/use-recipe-overrides-form-field.d.ts +10 -0
  94. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  95. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +14 -14
  96. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +22 -22
  97. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +17 -17
  98. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +11 -11
  99. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +805 -805
  100. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +805 -805
  101. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +33 -33
  102. package/dist/vue-i18n-3LoKMrMa.js +2365 -0
  103. package/package.json +8 -5
  104. package/dist/IntegrationView-DXxwE0z8.js +0 -2148
  105. package/dist/RecipeView-m7aSOTrT.js +0 -616
  106. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DqImAdxA.js +0 -1746
  107. package/dist/vue-i18n-B-kKlljK.js +0 -2365
@@ -1,17 +1,18 @@
1
1
  import { defineComponent as ie, ref as O, computed as U, resolveComponent as M, openBlock as A, createBlock as Y, withCtx as D, createElementVNode as t, normalizeClass as ge, toDisplayString as h, createVNode as g, createElementBlock as R, Fragment as X, renderList as le, unref as r, h as _e, watch as be, isRef as Ie, createCommentVNode as ne, reactive as at, onMounted as Ge, normalizeStyle as Je, createTextVNode as ce, Teleport as rt, normalizeProps as we, mergeProps as $e } from "vue";
2
- import { u as pe, O as lt, f as Te, h as it, a as Ue, F as Le, P as ut, Q as Be, j as de, K as ct, t as xe, N as De, A as dt, M as mt, L as fe, T as pt, V as te, W as vt, X as Ne, m as ft, J as yt, Y as _t, Z as kt, $ as Qe, a0 as q, a1 as ht, s as Xe, a2 as ke, a3 as gt, a4 as bt, o as Ae, l as ze, p as xt, c as St, a5 as Ft, a6 as wt, a7 as $t, a8 as At, a9 as Ct, B as Vt, _ as Mt, C as Bt, E as Dt, G as Ye } from "./app-Cryb1Kx8.js";
3
- import { u as Pe, a as Ee } from "./stock-BVCXjojk.js";
4
- import { g as Se } from "./decimal-Ko0ukH7B.js";
5
- import { e as jt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-rve3vJhu.js";
2
+ import { u as pe, N as lt, e as Te, f as it, a as Ue, F as Le, O as ut, P as Be, i as de, J as ct, t as xe, L as De, A as dt, M as mt, K as fe, Q as pt, T as te, V as vt, W as Ne, l as ft, H as yt, X as _t, Y as kt, Z as Qe, $ as q, a0 as ht, r as Xe, a1 as ke, a2 as gt, a3 as bt, n as Ae, k as ze, o as xt, a4 as St, a5 as Ft, a6 as wt, a7 as $t, a8 as At, z as Ct, _ as Vt, B as Mt, C as Bt, E as Ye } from "./app-DtLEhFCD.js";
3
+ import { u as Pe, a as He } from "./stock-V0Qm2pTD.js";
4
+ import { g as Se } from "./decimal-D0mDm48J.js";
5
+ import { e as Dt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-D13DAIwe.js";
6
6
  import { _ as je, S as Ce, g as tt } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
7
- import { _ as It } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
8
- import { useI18n as ue, useCoreStore as Tt } from "@feedmepos/mf-common";
9
- import { useSnackbar as ye, useDialog as nt, useProxiedModel as He, useBreakpoints as Ut } from "@feedmepos/ui-library";
10
- import { defineStore as Pt } from "pinia";
11
- import { u as Et } from "./use-inventory-binding-dialog-TYwx9mzF.js";
12
- import { _ as Ht } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B73N8AvB.js";
13
- import { E as Rt } from "./empty-placeholder-wf6-BWE8.js";
7
+ import { _ as jt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
8
+ import { useI18n as ue, useCoreStore as It } from "@feedmepos/mf-common";
9
+ import { useSnackbar as ye, useDialog as nt, useProxiedModel as Ee, useBreakpoints as Tt } from "@feedmepos/ui-library";
10
+ import { defineStore as Ut } from "pinia";
11
+ import { u as Pt } from "./use-inventory-binding-dialog-C5IYjwW5.js";
12
+ import { _ as Ht } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BD8iRcNk.js";
13
+ import { E as Et } from "./empty-placeholder-wf6-BWE8.js";
14
14
  import "./array-hChJVZLE.js";
15
+ import { u as Rt } from "./feature-GZEf4CLT.js";
15
16
  var he = /* @__PURE__ */ ((f) => (f.History = "History", f.Convert = "Convert", f.Adjust = "Adjust", f))(he || {});
16
17
  const Ot = [
17
18
  {
@@ -45,7 +46,7 @@ async function Nt(f) {
45
46
  / /g,
46
47
  "_"
47
48
  )}_${lt().format("DD_MM_YYYY_HHmm")}.xlsx`;
48
- await jt(
49
+ await Dt(
49
50
  [
50
51
  {
51
52
  name: "stock",
@@ -171,14 +172,14 @@ const zt = { class: "fm-typo-en-body-md-400 flex-grow" }, ot = /* @__PURE__ */ i
171
172
  __name: "StockHeaderPreview",
172
173
  setup(f) {
173
174
  const { t: y } = ue();
174
- return (l, o) => (A(), Y(It, null, {
175
+ return (l, o) => (A(), Y(jt, null, {
175
176
  default: D(() => [
176
177
  t("div", Yt, h(r(y)("inventory.stock.prediction.daysRemaining")), 1)
177
178
  ]),
178
179
  _: 1
179
180
  }));
180
181
  }
181
- }), st = Pt("stockActions", () => {
182
+ }), st = Ut("stockActions", () => {
182
183
  const f = O(!1), y = pe(), l = Pe(), o = Ze(), S = ye(), _ = nt(), { t: d } = ue();
183
184
  async function m() {
184
185
  if (y._currentLocation) {
@@ -207,11 +208,11 @@ const zt = { class: "fm-typo-en-body-md-400 flex-grow" }, ot = /* @__PURE__ */ i
207
208
  return;
208
209
  }
209
210
  const V = {
210
- maxCount: ((P = l.productBalance.find(({ id: E }) => E === i._id)) == null ? void 0 : P.count) || 0,
211
+ maxCount: ((P = l.productBalance.find(({ id: H }) => H === i._id)) == null ? void 0 : P.count) || 0,
211
212
  sku: i,
212
213
  show: !0,
213
- "onUpdate:show"(E) {
214
- w.value.show = E;
214
+ "onUpdate:show"(H) {
215
+ w.value.show = H;
215
216
  },
216
217
  onSubmitted() {
217
218
  m();
@@ -383,7 +384,7 @@ const Gt = { class: "flex items-center" }, Jt = { class: "fm-typo-en-title-md-80
383
384
  },
384
385
  emits: ["update:show", "submitted"],
385
386
  setup(f, { expose: y, emit: l }) {
386
- const o = f, S = l, _ = Et(), d = Ue(), m = Ee(), w = ye(), { t: x } = ue(), a = O(0), n = O(null), F = U(() => d.skus), C = U(
387
+ const o = f, S = l, _ = Pt(), d = Ue(), m = He(), w = ye(), { t: x } = ue(), a = O(0), n = O(null), F = U(() => d.skus), C = U(
387
388
  () => {
388
389
  var p, e;
389
390
  return (((e = (p = o.sku) == null ? void 0 : p.convert) == null ? void 0 : e.inventoryBindings) ?? []).filter(
@@ -466,7 +467,7 @@ const Gt = { class: "flex items-center" }, Jt = { class: "fm-typo-en-title-md-80
466
467
  (e = (p = P.value) == null ? void 0 : p.resetInputs) == null || e.call(p);
467
468
  }
468
469
  });
469
- const E = He(o, "show");
470
+ const H = Ee(o, "show");
470
471
  async function Z(p, e, s) {
471
472
  i.value = !0;
472
473
  try {
@@ -505,7 +506,7 @@ const Gt = { class: "flex items-center" }, Jt = { class: "fm-typo-en-title-md-80
505
506
  const e = F.value.find((s) => s._id === p);
506
507
  return e ? tt(e.unit, !0) : [];
507
508
  }
508
- function H(p, e) {
509
+ function E(p, e) {
509
510
  const s = N(p), v = s.find((u) => u.value === e) ?? s.find((u) => u.value === null);
510
511
  return v ? {
511
512
  ...v,
@@ -549,8 +550,8 @@ const Gt = { class: "flex items-center" }, Jt = { class: "fm-typo-en-title-md-80
549
550
  const s = M("FmTextField"), v = M("FmForm"), u = M("FmCard"), c = M("FmSwitch"), b = M("FmFormGroup"), I = M("FmSelect"), J = M("FmButton"), oe = M("FmSideSheet");
550
551
  return A(), Y(oe, {
551
552
  "dismiss-away": "",
552
- modelValue: r(E),
553
- "onUpdate:modelValue": e[3] || (e[3] = (T) => Ie(E) ? E.value = T : null),
553
+ modelValue: r(H),
554
+ "onUpdate:modelValue": e[3] || (e[3] = (T) => Ie(H) ? H.value = T : null),
554
555
  "max-width": 500
555
556
  }, {
556
557
  "side-sheet-header": D(() => [
@@ -646,7 +647,7 @@ const Gt = { class: "flex items-center" }, Jt = { class: "fm-typo-en-title-md-80
646
647
  disabled: i.value,
647
648
  class: "translate-y-[2px]",
648
649
  items: N(T.id),
649
- "model-value": (re = H(T.id, (se = T.measurement) == null ? void 0 : se.id)) == null ? void 0 : re.value,
650
+ "model-value": (re = E(T.id, (se = T.measurement) == null ? void 0 : se.id)) == null ? void 0 : re.value,
650
651
  "onUpdate:modelValue": (Q) => K(T.id, Q, n.value ?? []),
651
652
  invalid: z
652
653
  }, {
@@ -855,7 +856,7 @@ const Me = {
855
856
  },
856
857
  emits: ["update:show", "submitted"],
857
858
  setup(f, { expose: y, emit: l }) {
858
- const o = f, S = l, _ = Ue(), d = nt(), m = Ee(), w = ye(), x = O(!1), { t: a } = ue();
859
+ const o = f, S = l, _ = Ue(), d = nt(), m = He(), w = ye(), x = O(!1), { t: a } = ue();
859
860
  function n() {
860
861
  i(Te(k));
861
862
  }
@@ -874,7 +875,7 @@ const Me = {
874
875
  ($ = (V = F.value) == null ? void 0 : V.resetInputs) == null || $.call(V);
875
876
  }
876
877
  });
877
- const C = He(o, "show"), k = at({
878
+ const C = Ee(o, "show"), k = at({
878
879
  remark: "",
879
880
  adjustments: [
880
881
  {
@@ -904,9 +905,9 @@ const Me = {
904
905
  try {
905
906
  await m.adjustSku({
906
907
  remark: V.remark,
907
- adjustments: V.adjustments.map(({ doc: $, remark: B, type: P, amount: E, measurement: Z }) => ({
908
+ adjustments: V.adjustments.map(({ doc: $, remark: B, type: P, amount: H, measurement: Z }) => ({
908
909
  id: $._id,
909
- amount: E,
910
+ amount: H,
910
911
  measurement: Z,
911
912
  remark: B,
912
913
  doc: $,
@@ -950,10 +951,10 @@ const Me = {
950
951
  }
951
952
  }).onPrimary((B) => {
952
953
  k.adjustments = B.map(
953
- (P) => k.adjustments.find((E) => E.doc._id === P) ?? {
954
+ (P) => k.adjustments.find((H) => H.doc._id === P) ?? {
954
955
  id: `sku_${(/* @__PURE__ */ new Date()).toISOString()}_${Math.random().toString(16).slice(2, 8)}`,
955
956
  type: te.enum.PURCHASE,
956
- doc: _.skus.find((E) => E._id === P),
957
+ doc: _.skus.find((H) => H._id === P),
957
958
  measurement: null,
958
959
  remark: "",
959
960
  amount: fe(1)
@@ -965,7 +966,7 @@ const Me = {
965
966
  k.adjustments.splice(V, 1);
966
967
  }
967
968
  return (V, $) => {
968
- const B = M("FmTextarea"), P = M("FmButton"), E = M("FmForm"), Z = M("FmSideSheet");
969
+ const B = M("FmTextarea"), P = M("FmButton"), H = M("FmForm"), Z = M("FmSideSheet");
969
970
  return A(), Y(Z, {
970
971
  modelValue: r(C),
971
972
  "onUpdate:modelValue": $[2] || ($[2] = (G) => Ie(C) ? C.value = G : null),
@@ -978,7 +979,7 @@ const Me = {
978
979
  ])
979
980
  ]),
980
981
  default: D(() => [
981
- g(E, {
982
+ g(H, {
982
983
  class: "w-full flex flex-col gap-12",
983
984
  ref_key: "formRef",
984
985
  ref: F,
@@ -1002,8 +1003,8 @@ const Me = {
1002
1003
  (A(!0), R(X, null, le(k.adjustments, (G, N) => (A(), Y(mn, {
1003
1004
  key: G.id,
1004
1005
  modelValue: k.adjustments[N],
1005
- "onUpdate:modelValue": (H) => k.adjustments[N] = H,
1006
- "onClick:delete": (H) => L(N)
1006
+ "onUpdate:modelValue": (E) => k.adjustments[N] = E,
1007
+ "onClick:delete": (E) => L(N)
1007
1008
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onClick:delete"]))), 128))
1008
1009
  ]),
1009
1010
  _: 1
@@ -1015,8 +1016,8 @@ const Me = {
1015
1016
  label: r(a)("inventory.stock.adjust.adjustButton"),
1016
1017
  loading: x.value,
1017
1018
  onClick: $[1] || ($[1] = (G) => {
1018
- var N, H;
1019
- return (H = (N = F.value) == null ? void 0 : N.validateInputs) == null ? void 0 : H.call(N);
1019
+ var N, E;
1020
+ return (E = (N = F.value) == null ? void 0 : N.validateInputs) == null ? void 0 : E.call(N);
1020
1021
  })
1021
1022
  }, null, 8, ["label", "loading"])
1022
1023
  ])
@@ -1259,10 +1260,10 @@ function Dn(f, y) {
1259
1260
  precision: 4
1260
1261
  })} ${y.unit.abbrev}`) : null;
1261
1262
  }
1262
- const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = { class: "flex-1 line-clamp-2" }, Tn = { class: "flex flex-col gap-32 w-full h-full" }, Un = { class: "flex items-center relative gap-4" }, Pn = { class: "flex-1" }, En = {
1263
+ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = { class: "flex-1 line-clamp-2" }, Tn = { class: "flex flex-col gap-32 w-full h-full" }, Un = { class: "flex items-center relative gap-4" }, Pn = { class: "flex-1" }, Hn = {
1263
1264
  key: 0,
1264
1265
  class: "flex-1 flex flex-col items-center gap-16"
1265
- }, Hn = { class: "fm-typo-en-body-lg-400 translate-x-4" }, Rn = {
1266
+ }, En = { class: "fm-typo-en-body-lg-400 translate-x-4" }, Rn = {
1266
1267
  key: 1,
1267
1268
  class: "flex flex-col gap-12"
1268
1269
  }, On = { class: "pb-16" }, Ln = { class: "fm-typo-cn-body-lg-600" }, Nn = {
@@ -1282,7 +1283,7 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1282
1283
  },
1283
1284
  emits: ["update:show"],
1284
1285
  setup(f) {
1285
- const y = Tt(), l = Pe(), o = Ee(), S = hn(), _ = pe(), d = St(), { t: m } = ue(), w = f, x = O(!1), a = ye(), n = O(gt(0));
1286
+ const y = It(), l = Pe(), o = He(), S = hn(), _ = pe(), d = Rt(), { t: m } = ue(), w = f, x = O(!1), a = ye(), n = O(gt(0));
1286
1287
  async function F() {
1287
1288
  x.value = !0;
1288
1289
  try {
@@ -1304,7 +1305,7 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1304
1305
  });
1305
1306
  const C = O([]), k = O([]), i = O(new Array());
1306
1307
  function j(e, s) {
1307
- return s === "day" ? Ct(e) : Xe(e);
1308
+ return s === "day" ? At(e) : Xe(e);
1308
1309
  }
1309
1310
  function L(e, s) {
1310
1311
  const v = e.reduce(
@@ -1325,8 +1326,8 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1325
1326
  async function V() {
1326
1327
  let e = await o.readStockAdjustment(
1327
1328
  w.sku._id,
1328
- Ft(new Date(n.value.startDate)).toISOString(),
1329
- wt(new Date(n.value.endDate)).toISOString()
1329
+ St(new Date(n.value.startDate)).toISOString(),
1330
+ Ft(new Date(n.value.endDate)).toISOString()
1330
1331
  );
1331
1332
  C.value = e;
1332
1333
  const s = e.filter(({ ref: v }) => v == null ? void 0 : v.startsWith("bill_")).map(({ ref: v }) => v);
@@ -1350,7 +1351,7 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1350
1351
  }), P = U(() => {
1351
1352
  const e = C.value, s = w.sku;
1352
1353
  return Dn(e, s);
1353
- }), E = U(() => {
1354
+ }), H = U(() => {
1354
1355
  const e = [...C.value].computeFirst((v) => {
1355
1356
  var c, b;
1356
1357
  const u = (b = (c = v.skus) == null ? void 0 : c.find) == null ? void 0 : b.call(c, (I) => I.sku._id === w.sku._id);
@@ -1400,13 +1401,13 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1400
1401
  return ke(s, !1, s.precision);
1401
1402
  });
1402
1403
  function N() {
1403
- const { startDate: e, endDate: s } = $t(n.value);
1404
+ const { startDate: e, endDate: s } = wt(n.value);
1404
1405
  e !== null && s !== null && (n.value = {
1405
1406
  startDate: e,
1406
1407
  endDate: s
1407
1408
  });
1408
1409
  }
1409
- const H = U(() => w.sku.valuation === ze.Enum.FIFO ? m("inventory.ingredient.valuationMethod.FIFO") : m("inventory.ingredient.valuationMethod.WAVG")), K = U(() => {
1410
+ const E = U(() => w.sku.valuation === ze.Enum.FIFO ? m("inventory.ingredient.valuationMethod.FIFO") : m("inventory.ingredient.valuationMethod.WAVG")), K = U(() => {
1410
1411
  var I, J, oe, T;
1411
1412
  const e = [...C.value].reverse().computeFirst((z) => {
1412
1413
  var W, se;
@@ -1437,13 +1438,13 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1437
1438
  } : "No data";
1438
1439
  });
1439
1440
  function me() {
1440
- const { startDate: e, endDate: s } = At(n.value);
1441
+ const { startDate: e, endDate: s } = $t(n.value);
1441
1442
  e !== null && s !== null && (n.value = {
1442
1443
  startDate: e,
1443
1444
  endDate: s
1444
1445
  });
1445
1446
  }
1446
- const p = He(w, "show");
1447
+ const p = Ee(w, "show");
1447
1448
  return (e, s) => {
1448
1449
  const v = M("FmButton"), u = M("FmField"), c = M("FmDateRangePicker"), b = M("FmSpacer"), I = M("FmCircularProgress"), J = M("FmIcon"), oe = M("FmTooltip"), T = M("FmMenuDivider"), z = M("FmChip"), W = M("FmCardSection"), se = M("FmCard"), re = M("FmSideSheet");
1449
1450
  return A(), Y(re, {
@@ -1502,10 +1503,10 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1502
1503
  "prepend-icon": "navigate_next"
1503
1504
  })
1504
1505
  ]),
1505
- x.value ? (A(), R("div", En, [
1506
+ x.value ? (A(), R("div", Hn, [
1506
1507
  g(b),
1507
1508
  g(I, { size: "xl" }),
1508
- t("div", Hn, h(r(m)("inventory.stock.history.loading")), 1),
1509
+ t("div", En, h(r(m)("inventory.stock.history.loading")), 1),
1509
1510
  g(b),
1510
1511
  g(b)
1511
1512
  ])) : k.value && ((Q = k.value) == null ? void 0 : Q.length) > 0 ? (A(), R("div", Rn, [
@@ -1564,7 +1565,7 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1564
1565
  ]),
1565
1566
  t("div", mo, [
1566
1567
  t("div", po, h(r(m)("inventory.stock.history.summary.openingBalance")), 1),
1567
- t("div", vo, h(E.value), 1)
1568
+ t("div", vo, h(H.value), 1)
1568
1569
  ]),
1569
1570
  t("div", fo, [
1570
1571
  t("div", yo, h(r(m)("inventory.stock.history.summary.lastStockBalance")), 1),
@@ -1582,7 +1583,7 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1582
1583
  g(oe, {
1583
1584
  variant: "plain",
1584
1585
  placement: "top",
1585
- content: `[${H.value}] ${r(m)("inventory.stock.history.estimatedValueTooltip")}`,
1586
+ content: `[${E.value}] ${r(m)("inventory.stock.history.estimatedValueTooltip")}`,
1586
1587
  "z-index": 50
1587
1588
  }, {
1588
1589
  default: D(() => [
@@ -1667,7 +1668,7 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1667
1668
  g(b),
1668
1669
  t("div", null, [
1669
1670
  t("img", {
1670
- src: r(Rt),
1671
+ src: r(Et),
1671
1672
  alt: "List is empty"
1672
1673
  }, null, 8, Co)
1673
1674
  ]),
@@ -1683,7 +1684,7 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1683
1684
  }, 8, ["modelValue"]);
1684
1685
  };
1685
1686
  }
1686
- }), Do = { class: "flex flex-col gap-8" }, jo = { class: "flex flex-col" }, Io = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, To = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Jo = /* @__PURE__ */ ie({
1687
+ }), Do = { class: "flex flex-col gap-8" }, jo = { class: "flex flex-col" }, Io = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, To = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Qo = /* @__PURE__ */ ie({
1687
1688
  __name: "StockView",
1688
1689
  setup(f) {
1689
1690
  const { t: y } = ue(), l = Ue(), o = pe(), S = Pe(), _ = st(), d = Ze(), { columnDefs: m } = Wt();
@@ -1707,11 +1708,11 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1707
1708
  }
1708
1709
  const n = U(
1709
1710
  () => l.skus.map(($) => {
1710
- var G, N, H;
1711
+ var G, N, E;
1711
1712
  const B = $.trackingMeasurement;
1712
1713
  let P = (N = (G = S.stockBalance.skus) == null ? void 0 : G.find(
1713
1714
  (K) => K.id === $._id
1714
- )) == null ? void 0 : N.balance, E = d.inventoryForecast.skus.find(
1715
+ )) == null ? void 0 : N.balance, H = d.inventoryForecast.skus.find(
1715
1716
  (K) => K.id === $._id
1716
1717
  );
1717
1718
  return {
@@ -1720,11 +1721,11 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1720
1721
  amount: 0,
1721
1722
  precision: 0
1722
1723
  },
1723
- day: (E == null ? void 0 : E.depletionDays) ?? void 0,
1724
- trackingUnitAbbrev: B ? ((H = $.unit.measurements.find((K) => K.id === B)) == null ? void 0 : H.abbrev) ?? "" : $.unit.abbrev
1724
+ day: (H == null ? void 0 : H.depletionDays) ?? void 0,
1725
+ trackingUnitAbbrev: B ? ((E = $.unit.measurements.find((K) => K.id === B)) == null ? void 0 : E.abbrev) ?? "" : $.unit.abbrev
1725
1726
  };
1726
1727
  })
1727
- ), F = O(""), { breakpoints: C } = Ut(), k = U(() => C.value.xs || C.value.sm), i = U(() => k.value ? 10 : 20), j = Vt(), L = U(() => [
1728
+ ), F = O(""), { breakpoints: C } = Tt(), k = U(() => C.value.xs || C.value.sm), i = U(() => k.value ? 10 : 20), j = Ct(), L = U(() => [
1728
1729
  {
1729
1730
  label: y("inventory.common.refresh"),
1730
1731
  value: "refresh"
@@ -1744,13 +1745,13 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1744
1745
  }
1745
1746
  return ($, B) => {
1746
1747
  const P = M("FmTable");
1747
- return A(), Y(Mt, {
1748
+ return A(), Y(Vt, {
1748
1749
  title: r(y)("inventory.stock.title"),
1749
1750
  actions: L.value,
1750
1751
  "onClick:action": V
1751
1752
  }, {
1752
1753
  default: D(() => {
1753
- var E, Z, G, N;
1754
+ var H, Z, G, N;
1754
1755
  return [
1755
1756
  t("div", {
1756
1757
  class: ge([
@@ -1761,11 +1762,11 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1761
1762
  }
1762
1763
  ])
1763
1764
  }, [
1764
- g(Bt, {
1765
+ g(Mt, {
1765
1766
  searchable: "",
1766
1767
  "change-location": "",
1767
1768
  search: F.value,
1768
- "onUpdate:search": B[0] || (B[0] = (H) => F.value = H)
1769
+ "onUpdate:search": B[0] || (B[0] = (E) => F.value = E)
1769
1770
  }, null, 8, ["search"]),
1770
1771
  (A(), Y(P, {
1771
1772
  style: Je(r(j).tableHeight),
@@ -1773,13 +1774,13 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1773
1774
  "row-data": n.value,
1774
1775
  "search-value": F.value,
1775
1776
  loading: w.value || !r(o)._currentLocation,
1776
- key: (E = r(o)._currentLocation) == null ? void 0 : E.dbName,
1777
- onRowClick: B[1] || (B[1] = (H) => r(_).showSkuHistory(H.original)),
1777
+ key: (H = r(o)._currentLocation) == null ? void 0 : H.dbName,
1778
+ onRowClick: B[1] || (B[1] = (E) => r(_).showSkuHistory(E.original)),
1778
1779
  "page-size": i.value
1779
1780
  }, {
1780
- "list-row": D((H) => [
1781
- g(Dt, {
1782
- row: H,
1781
+ "list-row": D((E) => [
1782
+ g(Bt, {
1783
+ row: E,
1783
1784
  onRowClick: r(_).showSkuHistory
1784
1785
  }, {
1785
1786
  default: D((K) => {
@@ -1802,16 +1803,16 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1802
1803
  ]),
1803
1804
  t("div", null, [
1804
1805
  g(je, {
1805
- days: H.original.day
1806
+ days: E.original.day
1806
1807
  }, null, 8, ["days"])
1807
1808
  ]),
1808
1809
  t("div", null, [
1809
1810
  g(ot, {
1810
1811
  class: "xs:w-[160px]",
1811
- unit: H.original.unit,
1812
- sku: H.original,
1813
- amount: H.original.balance,
1814
- "default-tracking-measurement": H.original.trackingMeasurement ?? void 0
1812
+ unit: E.original.unit,
1813
+ sku: E.original,
1814
+ amount: E.original.balance,
1815
+ "default-tracking-measurement": E.original.trackingMeasurement ?? void 0
1815
1816
  }, null, 8, ["unit", "sku", "amount", "default-tracking-measurement"])
1816
1817
  ])
1817
1818
  ])
@@ -1836,5 +1837,5 @@ const jn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, In = {
1836
1837
  }
1837
1838
  });
1838
1839
  export {
1839
- Jo as default
1840
+ Qo as default
1840
1841
  };
@@ -1,10 +1,11 @@
1
1
  import { defineComponent as Q, mergeModels as Bd, computed as I, useModel as Gd, resolveComponent as T, openBlock as S, createElementBlock as F, createElementVNode as g, createVNode as N, withCtx as k, toDisplayString as w, unref as u, Fragment as q, renderList as ee, ref as D, createBlock as j, createCommentVNode as K, isRef as Je, normalizeClass as J, createTextVNode as Hd, watch as Id, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
2
- import { u as re } from "./supplier-Brxhm840.js";
3
- import { b as Ie, h as Yd, D as Qe, i as ie, f as _e, a as Fd, o as ed, p as dd, k as Xd, J as Zd, w as Od, u as pe, m as G, c as wd, e as V, r as Ad, s as zd, v as Td, x as qd, y as Jd, z as Qd, B as et, _ as dt, C as tt, E as rt, G as le } from "./app-Cryb1Kx8.js";
2
+ import { u as re } from "./supplier-DK4PWcz4.js";
3
+ import { b as Ie, f as Yd, D as Qe, h as ie, e as _e, a as Fd, n as ed, o as dd, j as Xd, H as Zd, v as Od, u as pe, l as G, d as V, q as wd, r as zd, s as Ad, w as qd, x as Jd, y as Qd, z as et, _ as dt, B as tt, C as rt, E as le } from "./app-DtLEhFCD.js";
4
4
  import { useI18n as X, useCoreStore as Fe } from "@feedmepos/mf-common";
5
5
  import { useDialog as Oe, useSnackbar as me, useProxiedModel as td, useDialogChild as nt, useBreakpoints as ot } from "@feedmepos/ui-library";
6
6
  import { _ as at } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
7
- import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DbN_e9U8.js";
7
+ import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BAsfttD3.js";
8
+ import { u as Td } from "./feature-GZEf4CLT.js";
8
9
  import { defineStore as it } from "pinia";
9
10
  function lt(e, d) {
10
11
  const { t } = X(), r = Ie();
@@ -243,7 +244,7 @@ const st = { class: "flex flex-col gap-12" }, ut = { class: "flex flex-col" }, c
243
244
  },
244
245
  emits: ["update:modelValue", "validation-success"],
245
246
  setup(e, { expose: d, emit: t }) {
246
- const r = e, n = t, o = wd(), a = Fd(), i = I(() => Od(a.skus, "_id")), { t: l } = X(), c = pe(), p = I(() => c.businessLevel), y = I({
247
+ const r = e, n = t, o = Td(), a = Fd(), i = I(() => Od(a.skus, "_id")), { t: l } = X(), c = pe(), p = I(() => c.businessLevel), y = I({
247
248
  get() {
248
249
  var s;
249
250
  return ((s = r.modelValue) == null ? void 0 : s.name) ?? "";
@@ -2357,8 +2358,8 @@ function Y1() {
2357
2358
  [],
2358
2359
  a.map((y) => y.name),
2359
2360
  ...r.map((y) => a.map((f) => y[f.id]))
2360
- ], l = a.map((y) => `system:${y.id}`), c = Ad(i, l), p = `${o == null ? void 0 : o.name} suppliers (${zd(/* @__PURE__ */ new Date())}).xlsx`;
2361
- return Td(c, p), p;
2361
+ ], l = a.map((y) => `system:${y.id}`), c = wd(i, l), p = `${o == null ? void 0 : o.name} suppliers (${zd(/* @__PURE__ */ new Date())}).xlsx`;
2362
+ return Ad(c, p), p;
2362
2363
  }
2363
2364
  function X1() {
2364
2365
  const d = Fe().currentBusiness.value, t = Ud(), r = [
@@ -2367,8 +2368,8 @@ function X1() {
2367
2368
  ["Menu version", d == null ? void 0 : d.menuVersion],
2368
2369
  [],
2369
2370
  t.map((i) => i.name)
2370
- ], n = t.map((i) => `system:${i.id}`), o = Ad(r, n), a = "FeedMe supplier template.xlsx";
2371
- return Td(o, a), a;
2371
+ ], n = t.map((i) => `system:${i.id}`), o = wd(r, n), a = "FeedMe supplier template.xlsx";
2372
+ return Ad(o, a), a;
2372
2373
  }
2373
2374
  function Z1(e) {
2374
2375
  const [
@@ -2806,10 +2807,10 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
2806
2807
  }), mr = { class: "flex flex-col py-8" }, yr = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, vr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, gr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, hr = {
2807
2808
  key: 0,
2808
2809
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
2809
- }, br = "You are managing business-level supplier list. These suppliers will be made visible to all locations.", Fr = /* @__PURE__ */ Q({
2810
+ }, br = "You are managing business-level supplier list. These suppliers will be made visible to all locations.", Or = /* @__PURE__ */ Q({
2810
2811
  __name: "SupplierView",
2811
2812
  setup(e) {
2812
- const { importSuppliers: d, exportSuppliers: t } = pr(), r = re(), n = pe(), o = wd(), a = Ie(), i = D(!1), l = Oe(), c = me(), { t: p } = X();
2813
+ const { importSuppliers: d, exportSuppliers: t } = pr(), r = re(), n = pe(), o = Td(), a = Ie(), i = D(!1), l = Oe(), c = me(), { t: p } = X();
2813
2814
  n.watchLocation(f);
2814
2815
  const y = I(() => n.businessLevel);
2815
2816
  Id(y, f);
@@ -3013,5 +3014,5 @@ const q1 = { class: "flex items-center gap-12 pl-8" }, J1 = { class: "flex flex-
3013
3014
  }
3014
3015
  });
3015
3016
  export {
3016
- Fr as default
3017
+ Or as default
3017
3018
  };