@feedmepos/mf-inventory-portal 0.0.23-dev.41 → 0.0.23-dev.43

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 (42) hide show
  1. package/dist/{App-DW2K97Bb.js → App-C8wsA5dN.js} +104 -99
  2. package/dist/{ApprovalView-BgSxdrwt.js → ApprovalView-ZV8rwQp1.js} +18 -18
  3. package/dist/{BindingsDialog-CQtusdvp.js → BindingsDialog-Sbtijb1i.js} +2 -2
  4. package/dist/{BindingsPicker-BnEjRAah.js → BindingsPicker-wnlrCohJ.js} +1 -1
  5. package/dist/{BindingsTable-DpTPAef_.js → BindingsTable-BZCI3MS6.js} +1 -1
  6. package/dist/{ClosingDraftView-CXKYLCZS.js → ClosingDraftView-DyKbXVev.js} +494 -459
  7. package/dist/{ClosingTemplateView-CMTJHywt.js → ClosingTemplateView-DJr6D7iw.js} +1 -1
  8. package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-zOmcCdDR.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-B1mRTbf9.js} +4 -4
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-mAPA5_sB.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUiVV1lj.js} +7 -7
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BjNpfucZ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-qU9EBVED.js} +29 -29
  11. package/dist/{IngredientGroupView-CrEfiZvn.js → IngredientGroupView-BWeMME4-.js} +1 -1
  12. package/dist/{IngredientsView-BB8LQlU9.js → IngredientsView-BRxpBv77.js} +14 -15
  13. package/dist/{IntegrationView-D2wTkDyX.js → IntegrationView-DZqL0Ekt.js} +1 -1
  14. package/dist/{InventoryBindingForm-DW7rJDc1.js → InventoryBindingForm-C2zDhhfZ.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ci8UI1eQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BhaK3zOk.js} +44 -44
  16. package/dist/{InventoryBindingSummary-B40KofiI.js → InventoryBindingSummary-CJP0sf4N.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DD7VT9MS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Dplylu1K.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BGuXTfn6.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CC1nuQKm.js} +6 -6
  19. package/dist/{PurchaseOrderPrintPreview-DQmx28Be.js → PurchaseOrderPrintPreview-C5afxprc.js} +5 -5
  20. package/dist/{ReceiveRequestView-CJknzKfd.js → ReceiveRequestView-DzbcqmMA.js} +19 -20
  21. package/dist/{RecipeView-D5oWQ9Yd.js → RecipeView-8koCeNhZ.js} +25 -25
  22. package/dist/{StockView-U59PHCy2.js → StockView-C3Ef3mQz.js} +30 -31
  23. package/dist/{SupplierView-CLjjpTNZ.js → SupplierView-BHuYKWgW.js} +11 -12
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DLDDXnyG.js → TransferDetails.vue_vue_type_script_setup_true_lang-8rCAz5GA.js} +104 -104
  25. package/dist/{TransferTemplateView-CFoVrPIX.js → TransferTemplateView-u1u-VV-i.js} +63 -64
  26. package/dist/{UnitView-CAopphN_.js → UnitView-ucQ_K9ot.js} +3 -3
  27. package/dist/{WarehouseView-DUZku5U6.js → WarehouseView-CCwLKR3J.js} +111 -111
  28. package/dist/{app-0klJzLit.js → app-BvW6mdJl.js} +12411 -11415
  29. package/dist/app.js +1 -1
  30. package/dist/{decimal-Cu4rlnvU.js → decimal-hD6H0C0M.js} +1 -1
  31. package/dist/{format-unit-display-CMa5UhY1.js → format-unit-display-BfYIFIft.js} +27 -27
  32. package/dist/{index-BJaMpEVJ.js → index-BQUuh_Xy.js} +88 -88
  33. package/dist/{index-HTBqkVVr.js → index-y9SmouGG.js} +3 -3
  34. package/dist/{stock-CB4yNRMO.js → stock-CHW2fGsm.js} +3 -3
  35. package/dist/stores/feature.d.ts +37 -2
  36. package/dist/stores/location.d.ts +1 -1
  37. package/dist/style.css +1 -1
  38. package/dist/{supplier-biIIXGyr.js → supplier-CCUVm2qD.js} +1 -1
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/{use-inventory-binding-dialog-BopoOOxB.js → use-inventory-binding-dialog-B8Cgp_x2.js} +1 -1
  41. package/package.json +1 -1
  42. package/dist/feature-C1wCaXKQ.js +0 -946
@@ -1,9 +1,8 @@
1
- import { ref as K, computed as Y, h as oe, defineComponent as _e, unref as i, openBlock as g, createElementBlock as D, createElementVNode as e, toDisplayString as S, createCommentVNode as T, resolveComponent as Z, createVNode as U, createBlock as W, isRef as Ge, withCtx as de, Fragment as ne, normalizeClass as ye, createTextVNode as Te, renderList as pe } from "vue";
2
- import { X as He, u as be, aF as k, a2 as ze, a4 as Ye, a5 as Qe, ah as We, d as xe, e as Ie, aq as B, V as Fe, aG as Ze, Z as Se, L as he, i as fe, aH as Be, a9 as ge, f as Pe, D as V, h as F, b as Me, a3 as Je, an as Ce, a1 as $e, ad as Ee } from "./app-0klJzLit.js";
1
+ import { ref as K, computed as Y, h as oe, defineComponent as _e, unref as i, openBlock as g, createElementBlock as D, createElementVNode as e, toDisplayString as S, createCommentVNode as x, resolveComponent as Z, createVNode as U, createBlock as W, isRef as Ge, withCtx as de, Fragment as ne, normalizeClass as ye, createTextVNode as xe, renderList as pe } from "vue";
2
+ import { X as He, u as be, aG as k, a2 as ze, a4 as Ye, a5 as Qe, ai as We, e as Te, f as Ie, ar as B, V as Fe, c as Be, aH as Ze, Z as Se, L as he, j as fe, aI as Me, a9 as ge, h as Pe, D as V, i as F, b as Ue, a3 as Je, ao as Ce, a1 as $e, ae as Ee } from "./app-BvW6mdJl.js";
3
3
  import { useDialog as we, useSnackbar as Re, useProxiedModel as Xe } from "@feedmepos/ui-library";
4
- import { u as Ue } from "./feature-C1wCaXKQ.js";
5
- import { b as et, u as tt, f as Le, P as ie } from "./format-unit-display-CMa5UhY1.js";
6
- import { F as rt } from "./decimal-Cu4rlnvU.js";
4
+ import { b as et, u as tt, f as Le, P as ie } from "./format-unit-display-BfYIFIft.js";
5
+ import { F as rt } from "./decimal-hD6H0C0M.js";
7
6
  import { useI18n as je } from "@feedmepos/mf-common";
8
7
  import { E as st } from "./empty-placeholder-wf6-BWE8.js";
9
8
  const Ve = He((v, y) => {
@@ -95,8 +94,8 @@ const Ve = He((v, y) => {
95
94
  successMessage: "Purchase order has been rejected"
96
95
  }
97
96
  }, ve = K();
98
- function $r(v, y) {
99
- const b = we(), r = be(), O = Ue(), c = et(), R = tt(), l = K(!1), h = Re(), o = Ve(), s = K(new Array()), u = K(
97
+ function Cr(v, y) {
98
+ const b = we(), r = be(), O = Be(), c = et(), R = tt(), l = K(!1), h = Re(), o = Ve(), s = K(new Array()), u = K(
100
99
  y != null && y.startDate && (y != null && y.endDate) ? y : ze()
101
100
  ), m = Y(() => {
102
101
  const p = new Date(u.value.startDate), d = new Date(u.value.endDate);
@@ -108,7 +107,7 @@ function $r(v, y) {
108
107
  async function te(p) {
109
108
  function d(n) {
110
109
  const _ = {
111
- mode: xe.CREATE,
110
+ mode: Te.CREATE,
112
111
  modelValue: p || void 0,
113
112
  show: !0,
114
113
  "onUpdate:show"(w) {
@@ -119,31 +118,32 @@ function $r(v, y) {
119
118
  };
120
119
  ve.value = _;
121
120
  }
122
- let q;
121
+ let A;
123
122
  O.mustUsePoTemplate && !(p != null && p.template) ? b.open({
124
- title: "Create Purchase Order",
123
+ title: "Create transfer",
125
124
  message: "",
126
125
  primaryActions: {
127
- text: "Select a Template",
126
+ text: "Select a template",
128
127
  close: !0
129
128
  },
130
129
  secondaryActions: {
131
- text: "Without Template",
130
+ text: "Outlet to Outlet",
131
+ variant: "secondary",
132
132
  close: !0
133
133
  }
134
134
  }).onPrimary(async () => {
135
- q = await c.getTemplateId(), q && d(q);
135
+ A = await c.getTemplateId(), A && d(A);
136
136
  }).onSecondary(() => {
137
137
  d(void 0);
138
- }) : d(q);
138
+ }) : d(A);
139
139
  }
140
140
  function ce(p) {
141
141
  const d = {
142
- mode: xe.UPDATE,
142
+ mode: Te.UPDATE,
143
143
  modelValue: Ie(p),
144
144
  show: !0,
145
- "onUpdate:show"(q) {
146
- ve.value.show = q;
145
+ "onUpdate:show"(A) {
146
+ ve.value.show = A;
147
147
  },
148
148
  lastClosingDate: z.value
149
149
  };
@@ -152,7 +152,7 @@ function $r(v, y) {
152
152
  async function G() {
153
153
  s.value = [], l.value = !0;
154
154
  try {
155
- s.value = await o.getPurchaseOrders(m.value).then((q) => q.sort((n, _) => _._id.localeCompare(n._id)));
155
+ s.value = await o.getPurchaseOrders(m.value).then((A) => A.sort((n, _) => _._id.localeCompare(n._id)));
156
156
  const p = await C.readLastClosing(!0), d = p == null ? void 0 : p._id;
157
157
  d && (z.value = Ze(d)), O.mustUsePoTemplate && await R.fetchTemplates();
158
158
  } catch {
@@ -203,8 +203,8 @@ function $r(v, y) {
203
203
  const X = K(), t = K(Math.random().toString());
204
204
  async function a(p, d) {
205
205
  var w, $;
206
- const q = Math.random().toString();
207
- t.value = q;
206
+ const A = Math.random().toString();
207
+ t.value = A;
208
208
  const n = v === "receive/request" ? r.currentLocation : d == null ? void 0 : d.to, _ = {
209
209
  poRequest: d,
210
210
  purchaseOrder: p,
@@ -213,8 +213,8 @@ function $r(v, y) {
213
213
  show: !0,
214
214
  canResubmit: !1,
215
215
  canApprove: v === "approval",
216
- "onUpdate:show"(x) {
217
- X.value.show = x;
216
+ "onUpdate:show"(T) {
217
+ X.value.show = T;
218
218
  }
219
219
  };
220
220
  if (X.value = _, !(d || p.status !== B.enum.REQUESTING)) {
@@ -225,10 +225,10 @@ function $r(v, y) {
225
225
  } catch {
226
226
  console.error("Error at fetching po request to check");
227
227
  }
228
- q === t.value && (X.value.canResubmit = !d, X.value.transferTo = (w = d == null ? void 0 : d.to) == null ? void 0 : w.name, X.value.transferToDbName = ($ = d == null ? void 0 : d.to) == null ? void 0 : $.dbName);
228
+ A === t.value && (X.value.canResubmit = !d, X.value.transferTo = (w = d == null ? void 0 : d.to) == null ? void 0 : w.name, X.value.transferToDbName = ($ = d == null ? void 0 : d.to) == null ? void 0 : $.dbName);
229
229
  }
230
230
  }
231
- async function P(p, d, q, n) {
231
+ async function P(p, d, A, n) {
232
232
  l.value = !0;
233
233
  try {
234
234
  await o.processPurchaseOrder(
@@ -248,11 +248,11 @@ function $r(v, y) {
248
248
  const w = be().currentLocationDBName.startsWith("restaurant_");
249
249
  d === k.enum.confirmDraft && p.effectiveAt && w ? h.open({
250
250
  title: "Success",
251
- message: `${q}. The backdate will be reflected once your POS has received this change.`,
251
+ message: `${A}. The backdate will be reflected once your POS has received this change.`,
252
252
  type: "success"
253
253
  }) : h.open({
254
254
  title: "Success",
255
- message: q,
255
+ message: A,
256
256
  type: "success"
257
257
  });
258
258
  } catch (_) {
@@ -265,7 +265,7 @@ function $r(v, y) {
265
265
  l.value = !1, J();
266
266
  }
267
267
  }
268
- async function N(p, d, q) {
268
+ async function N(p, d, A) {
269
269
  const n = Ke[d];
270
270
  if (!n) {
271
271
  h.open({
@@ -281,7 +281,7 @@ function $r(v, y) {
281
281
  message: w.message,
282
282
  primaryActions: w.primaryActions
283
283
  }).onPrimary(() => {
284
- P(p, d, _, q);
284
+ P(p, d, _, A);
285
285
  });
286
286
  }
287
287
  return {
@@ -339,7 +339,7 @@ function nt(v, y) {
339
339
  received: C
340
340
  };
341
341
  }), h = v.deliveryOrder.map((u) => ({
342
- createdAt: Be(new Date(u.createdAt)),
342
+ createdAt: Me(new Date(u.createdAt)),
343
343
  ref: u.deliveryOrderNumber,
344
344
  remark: u.remark || "",
345
345
  items: u.received.map((m) => {
@@ -406,7 +406,7 @@ const me = {
406
406
  value: k.enum.completeReceive
407
407
  }
408
408
  };
409
- function Er(v, y) {
409
+ function $r(v, y) {
410
410
  const b = be(), { t: r } = je();
411
411
  function O(s) {
412
412
  switch (s.status) {
@@ -638,7 +638,7 @@ const ot = {
638
638
  isTransferBetweenOutlets: { type: Boolean }
639
639
  },
640
640
  setup(v) {
641
- const y = v, b = Me(), r = Y(
641
+ const y = v, b = Ue(), r = Y(
642
642
  () => {
643
643
  var c, R, l, h, o, s;
644
644
  return b.getLocationSubsidiary(
@@ -659,19 +659,19 @@ const ot = {
659
659
  R[0] || (R[0] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, "NetSuite subsidiary", -1)),
660
660
  e("div", it, S(r.value || "-"), 1)
661
661
  ]),
662
- c.isTransferBetweenOutlets ? T("", !0) : (g(), D("div", ct, [
662
+ c.isTransferBetweenOutlets ? x("", !0) : (g(), D("div", ct, [
663
663
  e("div", ut, " NetSuite " + S(c.transferType === i(ie).PURCHASE ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
664
664
  e("div", dt, S(c.poRequest ? (h = (l = c.poRequest) == null ? void 0 : l.netSuite) == null ? void 0 : h.refNo : (s = (o = c.purchaseOrder) == null ? void 0 : o.netSuite) == null ? void 0 : s.refNo) + " (" + S(c.poRequest ? (m = (u = c.poRequest) == null ? void 0 : u.netSuite) == null ? void 0 : m.id : (C = (f = c.purchaseOrder) == null ? void 0 : f.netSuite) == null ? void 0 : C.id) + ") ", 1)
665
665
  ])),
666
666
  (ce = (te = (z = c.purchaseOrder) == null ? void 0 : z.netSuite) == null ? void 0 : te.additionalInfo) != null && ce.transactionnumber ? (g(), D("div", mt, [
667
667
  R[1] || (R[1] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Transaction Number ", -1)),
668
668
  e("div", ft, S((J = (ue = (G = c.purchaseOrder) == null ? void 0 : G.netSuite) == null ? void 0 : ue.additionalInfo) == null ? void 0 : J.transactionnumber), 1)
669
- ])) : T("", !0),
669
+ ])) : x("", !0),
670
670
  i(b).isEnabled && c.transferType === i(ie).TRANSFER && !c.isTransferBetweenOutlets ? (g(), D("div", pt, [
671
671
  R[2] || (R[2] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite fulfillment IDs ", -1)),
672
672
  e("div", vt, S(O.value), 1)
673
- ])) : T("", !0)
674
- ])) : T("", !0);
673
+ ])) : x("", !0)
674
+ ])) : x("", !0);
675
675
  };
676
676
  }
677
677
  }), ht = {
@@ -685,7 +685,7 @@ const ot = {
685
685
  isTransferBetweenOutlets: { type: Boolean }
686
686
  },
687
687
  setup(v) {
688
- const y = v, b = Me(), r = Re(), O = we(), c = K(!1), R = Y(() => {
688
+ const y = v, b = Ue(), r = Re(), O = we(), c = K(!1), R = Y(() => {
689
689
  var u, m, f, C;
690
690
  let h = !0;
691
691
  b.isEnabled || (h = !1);
@@ -751,13 +751,13 @@ const ot = {
751
751
  loading: c.value,
752
752
  onClick: l
753
753
  }, null, 8, ["loading"])
754
- ])) : T("", !0);
754
+ ])) : x("", !0);
755
755
  };
756
756
  }
757
- }), gt = { class: "flex flex-col gap-16 w-full h-full" }, St = { class: "flex justify-between" }, _t = { class: "fm-typo-en-body-lg-600" }, wt = { class: "flex flex-col gap-8" }, Rt = { class: "flex flex-col gap-4" }, Ot = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Dt = { class: "flex gap-1" }, kt = { class: "fm-typo-en-body-lg-600" }, qt = {
757
+ }), gt = { class: "flex flex-col gap-16 w-full h-full" }, St = { class: "flex justify-between" }, _t = { class: "fm-typo-en-body-lg-600" }, wt = { class: "flex flex-col gap-8" }, Rt = { class: "flex flex-col gap-4" }, Ot = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Dt = { class: "flex gap-1" }, kt = { class: "fm-typo-en-body-lg-600" }, At = {
758
758
  key: 0,
759
759
  class: "flex flex-col gap-4"
760
- }, At = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Nt = { class: "fm-typo-en-body-lg-600" }, Tt = { class: "flex flex-col gap-4" }, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pt = { class: "fm-typo-en-body-lg-600" }, Ct = {
760
+ }, qt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Nt = { class: "fm-typo-en-body-lg-600" }, xt = { class: "flex flex-col gap-4" }, Tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pt = { class: "fm-typo-en-body-lg-600" }, Ct = {
761
761
  key: 1,
762
762
  class: "flex flex-col gap-4"
763
763
  }, $t = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Et = { class: "fm-typo-en-body-lg-600" }, It = {
@@ -793,7 +793,7 @@ const ot = {
793
793
  }, Sr = { class: "flex-1 flex flex-col items-center" }, _r = {
794
794
  class: "py-12 flex flex-col gap-4 flex-1",
795
795
  name: "delivery details"
796
- }, wr = { class: "flex flex-col gap-8" }, Rr = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Or = { class: "flex flex-col gap-4" }, Dr = { class: "flex gap-8 xs:flex-col" }, Ir = /* @__PURE__ */ _e({
796
+ }, wr = { class: "flex flex-col gap-8" }, Rr = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Or = { class: "flex flex-col gap-4" }, Dr = { class: "flex gap-8 xs:flex-col" }, Er = /* @__PURE__ */ _e({
797
797
  __name: "TransferDetails",
798
798
  props: {
799
799
  poRequest: {},
@@ -806,7 +806,7 @@ const ot = {
806
806
  },
807
807
  emits: ["update:show", "submitted"],
808
808
  setup(v, { emit: y }) {
809
- const b = v, r = y, O = we(), c = Re(), R = Ue(), { t: l } = je(), h = Y(
809
+ const b = v, r = y, O = we(), c = Re(), R = Be(), { t: l } = je(), h = Y(
810
810
  () => {
811
811
  var t, a, P, N;
812
812
  return ((a = (t = b.purchaseOrder) == null ? void 0 : t.supplier) == null ? void 0 : a.internal) === "restaurant" || ((N = (P = b.purchaseOrder) == null ? void 0 : P.supplier) == null ? void 0 : N.internal) === "warehouse" ? ie.TRANSFER : ie.PURCHASE;
@@ -878,7 +878,7 @@ const ot = {
878
878
  var t, a;
879
879
  return ((t = b.purchaseOrder) == null ? void 0 : t.status) === B.enum.RECEIVING || ((a = b.purchaseOrder) == null ? void 0 : a.status) === B.enum.COMPLETE;
880
880
  }), J = Y(() => {
881
- var d, q, n;
881
+ var d, A, n;
882
882
  const P = (((d = b.purchaseOrder) == null ? void 0 : d.deliveryOrder) ?? []).flatMap((_) => _.received ?? []).reduce(
883
883
  (_, w) => {
884
884
  const $ = _[w.sku._id] ?? [];
@@ -887,23 +887,23 @@ const ot = {
887
887
  {}
888
888
  ), N = Object.entries(P).reduce(
889
889
  (_, [w, $]) => {
890
- const x = $.reduce((L, j) => {
890
+ const T = $.reduce((L, j) => {
891
891
  const Q = Je(
892
892
  L,
893
893
  Math.max(L.precision, j.amount.precision)
894
894
  );
895
895
  return Se(Q, j.amount);
896
896
  }, he(0));
897
- return _[w] = x, _;
897
+ return _[w] = T, _;
898
898
  },
899
899
  {}
900
- ), p = ((q = b.purchaseOrder) == null ? void 0 : q.items) ?? [];
900
+ ), p = ((A = b.purchaseOrder) == null ? void 0 : A.items) ?? [];
901
901
  for (const _ of p)
902
902
  N[n = _.sku._id] ?? (N[n] = he(0));
903
903
  return N;
904
904
  }), re = Y(() => {
905
- var d, q;
906
- const t = ((d = b.purchaseOrder) == null ? void 0 : d.deliveryOrder) ?? [], a = ((q = b.purchaseOrder) == null ? void 0 : q.deliveryFullfillment) ?? [], P = [
905
+ var d, A;
906
+ const t = ((d = b.purchaseOrder) == null ? void 0 : d.deliveryOrder) ?? [], a = ((A = b.purchaseOrder) == null ? void 0 : A.deliveryFullfillment) ?? [], P = [
907
907
  ...t.map((n) => ({
908
908
  createdAt: n.createdAt,
909
909
  type: "grn",
@@ -917,7 +917,7 @@ const ot = {
917
917
  ];
918
918
  P.reverse().sort((n, _) => n.createdAt.localeCompare(_.createdAt));
919
919
  function N(n) {
920
- var w, $, x, L, j, Q, se;
920
+ var w, $, T, L, j, Q, se;
921
921
  const _ = a.findIndex((M) => M.id === n.fullfillmentId);
922
922
  return {
923
923
  header: "Received",
@@ -946,7 +946,7 @@ const ot = {
946
946
  label: "Fulfilment's sequence",
947
947
  values: [`${_ + 1}`]
948
948
  } : null,
949
- (x = ($ = a[_]) == null ? void 0 : $.netSuite) != null && x.refNo ? {
949
+ (T = ($ = a[_]) == null ? void 0 : $.netSuite) != null && T.refNo ? {
950
950
  label: "Fulfillment's ref no. (Netsuite)",
951
951
  values: [(j = (L = a[_]) == null ? void 0 : L.netSuite) == null ? void 0 : j.refNo]
952
952
  } : null,
@@ -959,7 +959,7 @@ const ot = {
959
959
  }
960
960
  function p(n) {
961
961
  var w, $;
962
- const _ = a.findIndex((x) => x.id === n.id);
962
+ const _ = a.findIndex((T) => T.id === n.id);
963
963
  return {
964
964
  header: "Fulfillment",
965
965
  date: Ee(new Date(n.createdAt)),
@@ -970,16 +970,16 @@ const ot = {
970
970
  },
971
971
  {
972
972
  label: "Receiveable items",
973
- values: n.items.map((x) => {
973
+ values: n.items.map((T) => {
974
974
  var L;
975
- return `(${x.sku.code}) ${x.sku.name}: ${fe(x.amount, !1)} ${((L = x.measurement) == null ? void 0 : L.abbrev) ?? x.sku.unit.abbrev}`;
975
+ return `(${T.sku.code}) ${T.sku.name}: ${fe(T.amount, !1)} ${((L = T.measurement) == null ? void 0 : L.abbrev) ?? T.sku.unit.abbrev}`;
976
976
  })
977
977
  },
978
978
  (w = n.netSuite) != null && w.refNo ? {
979
979
  label: "Ref no. (Netsuite)",
980
980
  values: [($ = n.netSuite) == null ? void 0 : $.refNo]
981
981
  } : null
982
- ].filter((x) => x)
982
+ ].filter((T) => T)
983
983
  };
984
984
  }
985
985
  return P.map((n) => {
@@ -1002,10 +1002,10 @@ const ot = {
1002
1002
  }), t)) ?? t;
1003
1003
  });
1004
1004
  return (t, a) => {
1005
- var x, L;
1006
- const P = Z("FmButtonGroup"), N = Z("FmChip"), p = Z("FmMenuDivider"), d = Z("FmCard"), q = Z("FmIcon"), n = Z("FmTooltip"), _ = Z("FmSpacer"), w = Z("FmButton"), $ = Z("FmSideSheet");
1005
+ var T, L;
1006
+ const P = Z("FmButtonGroup"), N = Z("FmChip"), p = Z("FmMenuDivider"), d = Z("FmCard"), A = Z("FmIcon"), n = Z("FmTooltip"), _ = Z("FmSpacer"), w = Z("FmButton"), $ = Z("FmSideSheet");
1007
1007
  return g(), W($, {
1008
- header: i(l)("inventory.transfer.receiveRequest.details.title") + ((x = t.purchaseOrder) != null && x.seqNumber ? ` #${(L = t.purchaseOrder) == null ? void 0 : L.seqNumber}` : ""),
1008
+ header: i(l)("inventory.transfer.receiveRequest.details.title") + ((T = t.purchaseOrder) != null && T.seqNumber ? ` #${(L = t.purchaseOrder) == null ? void 0 : L.seqNumber}` : ""),
1009
1009
  modelValue: i(te),
1010
1010
  "onUpdate:modelValue": a[9] || (a[9] = (j) => Ge(te) ? te.value = j : null),
1011
1011
  "dismiss-away": C.value,
@@ -1025,7 +1025,7 @@ const ot = {
1025
1025
  U(P, {
1026
1026
  items: s,
1027
1027
  modelValue: u.value,
1028
- "onUpdate:modelValue": a[0] || (a[0] = (A) => u.value = A)
1028
+ "onUpdate:modelValue": a[0] || (a[0] = (q) => u.value = q)
1029
1029
  }, null, 8, ["modelValue"])
1030
1030
  ]),
1031
1031
  u.value.value === "overview" ? (g(), D(ne, { key: 0 }, [
@@ -1035,13 +1035,13 @@ const ot = {
1035
1035
  class: "flex flex-col gap-8 px-12 py-16"
1036
1036
  }, {
1037
1037
  default: de(() => {
1038
- var A, E, I, ee, le, H, Oe, De, ke, qe, Ae, Ne;
1038
+ var q, E, I, ee, le, H, Oe, De, ke, Ae, qe, Ne;
1039
1039
  return [
1040
1040
  e("div", St, [
1041
1041
  e("div", _t, S(i(l)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
1042
1042
  e("div", null, [
1043
1043
  U(N, {
1044
- label: i(l)(`inventory.transfer.status.${(A = t.purchaseOrder) == null ? void 0 : A.status}`),
1044
+ label: i(l)(`inventory.transfer.status.${(q = t.purchaseOrder) == null ? void 0 : q.status}`),
1045
1045
  class: ye(`fm-status-badge fm-status-badge-${(I = (E = t.purchaseOrder) == null ? void 0 : E.status) == null ? void 0 : I.toLocaleLowerCase("en-us")}`),
1046
1046
  compact: ""
1047
1047
  }, null, 8, ["label", "class"])
@@ -1055,24 +1055,24 @@ const ot = {
1055
1055
  ]),
1056
1056
  e("div", kt, S(i(ge)(((ee = t.purchaseOrder) == null ? void 0 : ee._id) ?? "")), 1)
1057
1057
  ]),
1058
- (le = t.purchaseOrder) != null && le.effectiveAt ? (g(), D("div", qt, [
1059
- e("div", At, S(i(l)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
1060
- e("div", Nt, S(i(Be)(new Date((H = t.purchaseOrder) == null ? void 0 : H.effectiveAt))), 1)
1061
- ])) : T("", !0),
1062
- e("div", Tt, [
1063
- e("div", xt, S(i(l)("inventory.transfer.receiveRequest.details.type.title")), 1),
1058
+ (le = t.purchaseOrder) != null && le.effectiveAt ? (g(), D("div", At, [
1059
+ e("div", qt, S(i(l)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
1060
+ e("div", Nt, S(i(Me)(new Date((H = t.purchaseOrder) == null ? void 0 : H.effectiveAt))), 1)
1061
+ ])) : x("", !0),
1062
+ e("div", xt, [
1063
+ e("div", Tt, S(i(l)("inventory.transfer.receiveRequest.details.type.title")), 1),
1064
1064
  e("div", Pt, S(i(l)(
1065
1065
  `inventory.transfer.receiveRequest.details.type.${h.value.toLocaleLowerCase("en-US")}`
1066
1066
  )), 1)
1067
1067
  ]),
1068
1068
  (De = (Oe = t.purchaseOrder) == null ? void 0 : Oe.supplier) != null && De.name ? (g(), D("div", Ct, [
1069
1069
  e("div", $t, S(i(l)("inventory.transfer.receiveRequest.details.from")), 1),
1070
- e("div", Et, S((qe = (ke = t.purchaseOrder) == null ? void 0 : ke.supplier) == null ? void 0 : qe.name), 1)
1071
- ])) : T("", !0),
1070
+ e("div", Et, S((Ae = (ke = t.purchaseOrder) == null ? void 0 : ke.supplier) == null ? void 0 : Ae.name), 1)
1071
+ ])) : x("", !0),
1072
1072
  t.transferTo ? (g(), D("div", It, [
1073
1073
  e("div", Ft, S(i(l)("inventory.transfer.receiveRequest.details.to")), 1),
1074
1074
  e("div", Bt, S(t.transferTo), 1)
1075
- ])) : T("", !0),
1075
+ ])) : x("", !0),
1076
1076
  U(yt, {
1077
1077
  "po-request": t.poRequest,
1078
1078
  "purchase-order": t.purchaseOrder,
@@ -1080,14 +1080,14 @@ const ot = {
1080
1080
  "transfer-to-db-name": t.transferToDbName,
1081
1081
  "is-transfer-between-outlets": o.value
1082
1082
  }, null, 8, ["po-request", "purchase-order", "transfer-type", "transfer-to-db-name", "is-transfer-between-outlets"]),
1083
- (Ae = t.purchaseOrder) != null && Ae.ref ? (g(), D("div", Mt, [
1083
+ (qe = t.purchaseOrder) != null && qe.ref ? (g(), D("div", Mt, [
1084
1084
  e("div", Ut, S(i(l)("inventory.transfer.receiveRequest.details.reference")), 1),
1085
1085
  e("div", Lt, S(t.purchaseOrder.ref), 1)
1086
- ])) : T("", !0),
1086
+ ])) : x("", !0),
1087
1087
  (Ne = t.purchaseOrder) != null && Ne.remark ? (g(), D("div", jt, [
1088
1088
  e("div", Vt, S(i(l)("inventory.transfer.receiveRequest.details.remark")), 1),
1089
1089
  e("div", Kt, S(t.purchaseOrder.remark), 1)
1090
- ])) : T("", !0)
1090
+ ])) : x("", !0)
1091
1091
  ])
1092
1092
  ];
1093
1093
  }),
@@ -1098,7 +1098,7 @@ const ot = {
1098
1098
  e("div", Ht, [
1099
1099
  e("div", zt, [
1100
1100
  e("div", Yt, [
1101
- Te(S(ue.value ? i(l)("inventory.transfer.receiveRequest.details.receivedItems") : i(l)("inventory.transfer.receiveRequest.details.requestedItems")) + " ", 1),
1101
+ xe(S(ue.value ? i(l)("inventory.transfer.receiveRequest.details.receivedItems") : i(l)("inventory.transfer.receiveRequest.details.requestedItems")) + " ", 1),
1102
1102
  (Q = (j = t.purchaseOrder) == null ? void 0 : j.netSuite) != null && Q.missingItems && ((M = (se = t.purchaseOrder) == null ? void 0 : se.netSuite) == null ? void 0 : M.missingItems.length) > 0 ? (g(), W(n, {
1103
1103
  key: 0,
1104
1104
  variant: "rich",
@@ -1106,44 +1106,44 @@ const ot = {
1106
1106
  "z-index": 51
1107
1107
  }, {
1108
1108
  content: de(() => {
1109
- var A, E;
1109
+ var q, E;
1110
1110
  return [
1111
1111
  e("div", Qt, [
1112
- (g(!0), D(ne, null, pe((E = (A = t.purchaseOrder) == null ? void 0 : A.netSuite) == null ? void 0 : E.missingItems, (I, ee) => (g(), D("div", {
1112
+ (g(!0), D(ne, null, pe((E = (q = t.purchaseOrder) == null ? void 0 : q.netSuite) == null ? void 0 : E.missingItems, (I, ee) => (g(), D("div", {
1113
1113
  class: "flex justify-center align-middle",
1114
1114
  key: ee
1115
1115
  }, [
1116
- U(q, {
1116
+ U(A, {
1117
1117
  name: "arrow_right",
1118
1118
  size: "sm"
1119
1119
  }),
1120
- Te(" " + S(`(${I.netSuiteId}) ${I.name}: ${I.reason}`), 1)
1120
+ xe(" " + S(`(${I.netSuiteId}) ${I.name}: ${I.reason}`), 1)
1121
1121
  ]))), 128))
1122
1122
  ])
1123
1123
  ];
1124
1124
  }),
1125
1125
  default: de(() => [
1126
- U(q, {
1126
+ U(A, {
1127
1127
  name: "error",
1128
1128
  color: "#ff2c2c",
1129
1129
  size: "sm"
1130
1130
  })
1131
1131
  ]),
1132
1132
  _: 1
1133
- })) : T("", !0)
1133
+ })) : x("", !0)
1134
1134
  ])
1135
1135
  ]),
1136
- (g(!0), D(ne, null, pe(((ae = t.purchaseOrder) == null ? void 0 : ae.items) ?? [], (A) => (g(), D("div", {
1137
- key: A.code,
1136
+ (g(!0), D(ne, null, pe(((ae = t.purchaseOrder) == null ? void 0 : ae.items) ?? [], (q) => (g(), D("div", {
1137
+ key: q.code,
1138
1138
  class: "flex flex-col"
1139
1139
  }, [
1140
1140
  e("div", Wt, [
1141
- e("div", Zt, S(A.name), 1),
1142
- e("div", Jt, S(i(fe)(J.value[A.sku._id], !1)) + "/" + S(i(Le)(A.quantity, A.sku.unit, A.measurement)), 1)
1141
+ e("div", Zt, S(q.name), 1),
1142
+ e("div", Jt, S(i(fe)(J.value[q.sku._id], !1)) + "/" + S(i(Le)(q.quantity, q.sku.unit, q.measurement)), 1)
1143
1143
  ]),
1144
1144
  e("div", Xt, [
1145
- e("div", er, S(A.code), 1),
1146
- A.totalCost && i(R).enableTotalCost ? (g(), D("div", tr, " (" + S(i($e)(A.totalCost)) + ") ", 1)) : T("", !0)
1145
+ e("div", er, S(q.code), 1),
1146
+ q.totalCost && i(R).enableTotalCost ? (g(), D("div", tr, " (" + S(i($e)(q.totalCost)) + ") ", 1)) : x("", !0)
1147
1147
  ])
1148
1148
  ]))), 128)),
1149
1149
  +i(fe)(X.value) ? (g(), D(ne, { key: 0 }, [
@@ -1154,13 +1154,13 @@ const ot = {
1154
1154
  a[10] || (a[10] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Total:", -1)),
1155
1155
  e("div", ar, S(i($e)(X.value)), 1)
1156
1156
  ])
1157
- ], 64)) : T("", !0)
1157
+ ], 64)) : x("", !0)
1158
1158
  ])
1159
1159
  ])
1160
- ], 64)) : T("", !0),
1160
+ ], 64)) : x("", !0),
1161
1161
  u.value.value === "deliveryHistory" ? (g(), D("div", nr, [
1162
1162
  re.value.length ? (g(), D("div", ur, [
1163
- (g(!0), D(ne, null, pe(re.value, (A, E) => (g(), D(ne, { key: E }, [
1163
+ (g(!0), D(ne, null, pe(re.value, (q, E) => (g(), D(ne, { key: E }, [
1164
1164
  e("div", dr, [
1165
1165
  e("div", mr, [
1166
1166
  e("div", fr, [
@@ -1188,8 +1188,8 @@ const ot = {
1188
1188
  ])
1189
1189
  ]),
1190
1190
  e("div", vr, [
1191
- e("div", yr, S(A.header), 1),
1192
- e("div", hr, S(A.date), 1)
1191
+ e("div", yr, S(q.header), 1),
1192
+ e("div", hr, S(q.date), 1)
1193
1193
  ])
1194
1194
  ]),
1195
1195
  e("div", br, [
@@ -1213,7 +1213,7 @@ const ot = {
1213
1213
  }, {
1214
1214
  default: de(() => [
1215
1215
  e("div", wr, [
1216
- (g(!0), D(ne, null, pe(A.info, (I, ee) => (g(), D("div", {
1216
+ (g(!0), D(ne, null, pe(q.info, (I, ee) => (g(), D("div", {
1217
1217
  key: ee,
1218
1218
  class: "flex flex-col gap-4"
1219
1219
  }, [
@@ -1245,12 +1245,12 @@ const ot = {
1245
1245
  U(_),
1246
1246
  U(_)
1247
1247
  ]))
1248
- ])) : T("", !0)
1248
+ ])) : x("", !0)
1249
1249
  ])
1250
1250
  ];
1251
1251
  }),
1252
1252
  "side-sheet-footer": de(() => {
1253
- var j, Q, se, M, ae, A, E, I, ee, le;
1253
+ var j, Q, se, M, ae, q, E, I, ee, le;
1254
1254
  return [
1255
1255
  e("div", Dr, [
1256
1256
  ((j = t.purchaseOrder) == null ? void 0 : j.status) === i(B).enum.DRAFT && h.value === i(ie).PURCHASE ? (g(), W(w, {
@@ -1259,14 +1259,14 @@ const ot = {
1259
1259
  onClick: a[1] || (a[1] = (H) => G("confirmDraft")),
1260
1260
  loading: f.value === "confirmDraft",
1261
1261
  disabled: f.value !== "confirmDraft" && m.value
1262
- }, null, 8, ["label", "loading", "disabled"])) : T("", !0),
1262
+ }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1263
1263
  ((Q = t.purchaseOrder) == null ? void 0 : Q.status) === i(B).enum.DRAFT && h.value === i(ie).TRANSFER ? (g(), W(w, {
1264
1264
  key: 1,
1265
1265
  label: i(l)("inventory.transfer.receiveRequest.actions.submitRequest"),
1266
1266
  onClick: a[2] || (a[2] = (H) => G("submitRequest")),
1267
1267
  loading: f.value === "submitRequest",
1268
1268
  disabled: f.value !== "submitRequest" && m.value
1269
- }, null, 8, ["label", "loading", "disabled"])) : T("", !0),
1269
+ }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1270
1270
  ((se = t.purchaseOrder) == null ? void 0 : se.status) === i(B).enum.DRAFT ? (g(), W(w, {
1271
1271
  key: 2,
1272
1272
  label: i(l)("inventory.transfer.receiveRequest.actions.cancelDraft"),
@@ -1274,28 +1274,28 @@ const ot = {
1274
1274
  loading: f.value === "cancelDraft",
1275
1275
  disabled: f.value !== "cancelDraft" && m.value,
1276
1276
  variant: "destructive"
1277
- }, null, 8, ["label", "loading", "disabled"])) : T("", !0),
1277
+ }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1278
1278
  ((M = t.purchaseOrder) == null ? void 0 : M.status) === i(B).enum.RECEIVING ? (g(), W(w, {
1279
1279
  key: 3,
1280
1280
  label: i(l)("inventory.transfer.receiveRequest.actions.completeReceive"),
1281
1281
  onClick: a[4] || (a[4] = (H) => G("completeReceive")),
1282
1282
  loading: f.value === "completeReceive",
1283
1283
  disabled: f.value !== "completeReceive" && m.value
1284
- }, null, 8, ["label", "loading", "disabled"])) : T("", !0),
1284
+ }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1285
1285
  t.canResubmit ? (g(), W(w, {
1286
1286
  key: 4,
1287
1287
  label: i(l)("inventory.transfer.receiveRequest.actions.resubmitRequest"),
1288
1288
  onClick: a[5] || (a[5] = (H) => G("submitRequest")),
1289
1289
  loading: f.value === "submitRequest",
1290
1290
  disabled: f.value !== "submitRequest" && m.value
1291
- }, null, 8, ["label", "loading", "disabled"])) : T("", !0),
1292
- (((ae = t.purchaseOrder) == null ? void 0 : ae.status) === i(B).enum.REQUESTING || ((A = t.purchaseOrder) == null ? void 0 : A.status) === i(B).enum.PROCESSING) && t.canApprove ? (g(), W(w, {
1291
+ }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1292
+ (((ae = t.purchaseOrder) == null ? void 0 : ae.status) === i(B).enum.REQUESTING || ((q = t.purchaseOrder) == null ? void 0 : q.status) === i(B).enum.PROCESSING) && t.canApprove ? (g(), W(w, {
1293
1293
  key: 5,
1294
1294
  label: i(l)("inventory.transfer.approval.actions.approveRequest"),
1295
1295
  onClick: a[6] || (a[6] = (H) => G("approveRequest")),
1296
1296
  loading: f.value === "approveRequest",
1297
1297
  disabled: f.value !== "approveRequest" && m.value
1298
- }, null, 8, ["label", "loading", "disabled"])) : T("", !0),
1298
+ }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1299
1299
  ((E = t.purchaseOrder) == null ? void 0 : E.status) === i(B).enum.REQUESTING && t.canApprove ? (g(), W(w, {
1300
1300
  key: 6,
1301
1301
  label: i(l)("inventory.transfer.approval.actions.rejectRequest"),
@@ -1303,13 +1303,13 @@ const ot = {
1303
1303
  loading: f.value === "rejectRequest",
1304
1304
  disabled: f.value !== "rejectRequest" && m.value,
1305
1305
  variant: "destructive"
1306
- }, null, 8, ["label", "loading", "disabled"])) : T("", !0),
1306
+ }, null, 8, ["label", "loading", "disabled"])) : x("", !0),
1307
1307
  ((I = t.purchaseOrder) == null ? void 0 : I.status) !== i(B).enum.COMPLETE && ((ee = t.purchaseOrder) == null ? void 0 : ee.status) !== i(B).enum.CANCEL && (((le = t.purchaseOrder) == null ? void 0 : le.status) !== i(B).enum.REQUESTING || t.canApprove) ? (g(), W(w, {
1308
1308
  key: 7,
1309
1309
  label: i(l)("common.close"),
1310
1310
  variant: "tertiary",
1311
1311
  onClick: a[8] || (a[8] = (H) => r("update:show", !1))
1312
- }, null, 8, ["label"])) : T("", !0)
1312
+ }, null, 8, ["label"])) : x("", !0)
1313
1313
  ])
1314
1314
  ];
1315
1315
  }),
@@ -1319,9 +1319,9 @@ const ot = {
1319
1319
  }
1320
1320
  });
1321
1321
  export {
1322
- Ir as _,
1323
- $r as a,
1324
- Er as b,
1322
+ Er as _,
1323
+ Cr as a,
1324
+ $r as b,
1325
1325
  at as g,
1326
1326
  Ve as u
1327
1327
  };