@feedmepos/mf-inventory-portal 0.0.23-dev.24 → 0.0.23-dev.26

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 (49) hide show
  1. package/dist/{App-dQy0_X6Q.js → App-C0hXAs5E.js} +49 -45
  2. package/dist/{ApprovalView-CxwAuXae.js → ApprovalView-Db5Aq3gK.js} +15 -15
  3. package/dist/{BindingsDialog-BX8J03Uc.js → BindingsDialog-dKNKrWKv.js} +9 -9
  4. package/dist/{BindingsPicker-CAW_3sSv.js → BindingsPicker-dN1bNnc0.js} +5 -5
  5. package/dist/{BindingsTable-7UmxSmdW.js → BindingsTable-BA461fcU.js} +8 -8
  6. package/dist/{ClosingDraftView-DukJAMlK.js → ClosingDraftView-aRHVKTA6.js} +68 -69
  7. package/dist/{ClosingTemplateView-Dm7_gMTo.js → ClosingTemplateView-BYnC4Whw.js} +58 -61
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DN3N20Nb.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BdjeCWX1.js} +13 -13
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BrPRiS_u.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CP2euPwM.js} +46 -46
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bln1lReW.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-C4aYGbW2.js} +7 -7
  11. package/dist/{IngredientGroupView-BKIJHeh9.js → IngredientGroupView-vdG6npct.js} +40 -40
  12. package/dist/{IngredientsView-Blnohl3I.js → IngredientsView-DWRAoLHx.js} +207 -210
  13. package/dist/{IntegrationView-Dna4bUA7.js → IntegrationView-Dp_A-Swf.js} +89 -90
  14. package/dist/{InventoryBindingForm-D6HSF8Wn.js → InventoryBindingForm-D_wSUUKv.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CnWvwNjJ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-2Mnqz6HN.js} +27 -27
  16. package/dist/{InventoryBindingSummary-CNNCv8NX.js → InventoryBindingSummary-oyRdM7Pd.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CrMkMTAt.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CSabNdfV.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Cw3E2NKS.js → PremiumBadge.vue_vue_type_script_setup_true_lang-tu1Al7wM.js} +17 -18
  19. package/dist/{PurchaseOrderPrintPreview-PEN03dZK.js → PurchaseOrderPrintPreview-B4m8t90I.js} +1 -1
  20. package/dist/{ReceiveRequestView-rTUhjMLY.js → ReceiveRequestView-DIJb_dU2.js} +26 -27
  21. package/dist/{RecipeView-V1hx1AUG.js → RecipeView-Ch5KMGLJ.js} +47 -48
  22. package/dist/{StockView-B5nDn8nO.js → StockView-BVuzsMG7.js} +7 -7
  23. package/dist/{SupplierView-DyyRxm6k.js → SupplierView-DEC2LmtN.js} +203 -206
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D6oZOwHL.js → TransferDetails.vue_vue_type_script_setup_true_lang-9UZWws3P.js} +61 -62
  25. package/dist/{TransferTemplateView-OTR9Re51.js → TransferTemplateView-DAMQ_Whn.js} +144 -145
  26. package/dist/{UnitView-DGhm1JXD.js → UnitView-CFwHRgQ-.js} +3 -3
  27. package/dist/{WarehouseView-DMAvFisd.js → WarehouseView-HE71bVOX.js} +52 -52
  28. package/dist/app-CRSuR04o.js +84133 -0
  29. package/dist/app.js +1 -1
  30. package/dist/{decimal-DuJEFEYp.js → decimal-B5DqWjel.js} +1 -1
  31. package/dist/{feature-BRqas45f.js → feature-DxNphYNO.js} +1 -1
  32. package/dist/{format-unit-display-G6VtlQe7.js → format-unit-display-D40MKAIU.js} +50 -53
  33. package/dist/{index-D3f51k-I.js → index-BWDsx2Ik.js} +1 -1
  34. package/dist/{stock-DZkj2LE0.js → stock-BAPZYfON.js} +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/{supplier-Cm5Cw3u7.js → supplier-Bp7xaTFX.js} +1 -1
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/{use-inventory-binding-dialog-DCt0wUiw.js → use-inventory-binding-dialog-cxY29PPx.js} +1 -1
  39. package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
  40. package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
  41. package/dist/views/adjustment-template/import/export.d.ts +60 -0
  42. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1 -1
  43. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1 -1
  44. package/package.json +1 -1
  45. package/dist/FmDroppableField-BqZcDO2v.js +0 -154
  46. package/dist/app-DQRbwx-z.js +0 -58903
  47. package/dist/netsuite-D4b5JceM.js +0 -251
  48. package/dist/xlsx-9Gc42bxv.js +0 -24004
  49. package/dist/xlsx.util-CEvUL8mk.js +0 -78
@@ -1,12 +1,11 @@
1
- import { ref as B, computed as V, h as ee, defineComponent as We, resolveComponent as te, openBlock as y, createBlock as J, unref as n, isRef as Je, withCtx as pe, createElementVNode as r, createElementBlock as D, createVNode as Q, createCommentVNode as N, Fragment as re, toDisplayString as v, normalizeClass as ve, renderList as ye } from "vue";
2
- import { N as Ze, u as be, az as R, $ as Xe, a1 as et, a2 as tt, ac as rt, c as $e, d as Le, am as F, K as je, aA as st, P as Oe, z as he, h as le, aB as Be, a6 as ge, e as Ie, D as j, f as I, a0 as at, ai as Fe, V as Me, a8 as Ue } from "./app-DQRbwx-z.js";
3
- import { useDialog as Ke, useSnackbar as Ve, useProxiedModel as nt } from "@feedmepos/ui-library";
4
- import { u as Ge } from "./feature-BRqas45f.js";
5
- import { b as ot, u as lt, f as He, P as se } from "./format-unit-display-G6VtlQe7.js";
6
- import { F as it } from "./decimal-DuJEFEYp.js";
1
+ import { ref as B, computed as V, h as ee, defineComponent as We, resolveComponent as te, openBlock as y, createBlock as J, unref as n, isRef as Je, withCtx as pe, createElementVNode as r, createElementBlock as D, createVNode as Q, createCommentVNode as q, Fragment as re, toDisplayString as v, normalizeClass as ve, renderList as ye } from "vue";
2
+ import { W as Ze, u as be, aJ as R, a5 as Xe, a7 as et, a8 as tt, ak as rt, d as $e, e as Le, au as F, T as je, aK as st, Y as Oe, K as he, i as le, aL as Be, ac as ge, f as Ie, D as j, h as I, b as at, a6 as nt, aq as Fe, a0 as Me, ag as Ue } from "./app-CRSuR04o.js";
3
+ import { useDialog as Ke, useSnackbar as Ve, useProxiedModel as ot } from "@feedmepos/ui-library";
4
+ import { u as Ge } from "./feature-DxNphYNO.js";
5
+ import { b as lt, u as it, f as He, P as se } from "./format-unit-display-D40MKAIU.js";
6
+ import { F as ct } from "./decimal-B5DqWjel.js";
7
7
  import { useI18n as ze } from "@feedmepos/mf-common";
8
- import { E as ct } from "./empty-placeholder-wf6-BWE8.js";
9
- import { u as ut } from "./netsuite-D4b5JceM.js";
8
+ import { E as ut } from "./empty-placeholder-wf6-BWE8.js";
10
9
  const Ye = Ze((m, _) => {
11
10
  const u = be();
12
11
  return {
@@ -18,15 +17,15 @@ const Ye = Ze((m, _) => {
18
17
  start: s,
19
18
  end: w
20
19
  }) {
21
- const S = u.currentLocationDBName, q = `${m.inventoryBackendUrl}/${S}/purchase-order`;
22
- return await _.get(`${q}?start=${s}&end=${w}`);
20
+ const S = u.currentLocationDBName, N = `${m.inventoryBackendUrl}/${S}/purchase-order`;
21
+ return await _.get(`${N}?start=${s}&end=${w}`);
23
22
  },
24
23
  async getPurchaseOrderById(s) {
25
24
  const w = u.currentLocationDBName, S = `${m.inventoryBackendUrl}/${w}/purchase-order`;
26
25
  return await _.get(`${S}/${s}`);
27
26
  },
28
27
  async processPurchaseOrder(s, w) {
29
- const S = u.currentLocationDBName, q = w || S, $ = `${m.inventoryBackendUrl}/${q}/purchase-order/run-operation`;
28
+ const S = u.currentLocationDBName, N = w || S, $ = `${m.inventoryBackendUrl}/${N}/purchase-order/run-operation`;
30
29
  return await _.put($, s);
31
30
  },
32
31
  async createPurchaseOrder(s) {
@@ -96,8 +95,8 @@ const Ye = Ze((m, _) => {
96
95
  successMessage: "Purchase order has been rejected"
97
96
  }
98
97
  }, me = B();
99
- function $r(m, _) {
100
- const u = Ke(), s = be(), w = Ge(), S = ot(), q = lt(), $ = B(!1), d = Ve(), M = Ye(), i = B(new Array()), p = B(
98
+ function Er(m, _) {
99
+ const u = Ke(), s = be(), w = Ge(), S = lt(), N = it(), $ = B(!1), d = Ve(), M = Ye(), i = B(new Array()), p = B(
101
100
  _ != null && _.startDate && (_ != null && _.endDate) ? _ : Xe()
102
101
  ), h = V(() => {
103
102
  const f = new Date(p.value.startDate), c = new Date(p.value.endDate);
@@ -139,7 +138,7 @@ function $r(m, _) {
139
138
  try {
140
139
  i.value = await M.getPurchaseOrders(h.value).then((t) => t.sort((e, a) => a._id.localeCompare(e._id)));
141
140
  const f = await O.readLastClosing(!0), c = f == null ? void 0 : f._id;
142
- c && (G.value = st(c)), w.mustUsePoTemplate && await q.fetchTemplates();
141
+ c && (G.value = st(c)), w.mustUsePoTemplate && await N.fetchTemplates();
143
142
  } catch {
144
143
  d.open({
145
144
  title: "Something went wrong",
@@ -286,10 +285,10 @@ function $r(m, _) {
286
285
  function dt(m, _) {
287
286
  return _.reduce(
288
287
  (s, w) => {
289
- const S = w.received.find((q) => q.sku._id === m._id);
288
+ const S = w.received.find((N) => N.sku._id === m._id);
290
289
  return S && (s = Oe(s, S.amount)), s;
291
290
  },
292
- it.toPrecision(he(0), m.unit.precision)
291
+ ct.toPrecision(he(0), m.unit.precision)
293
292
  );
294
293
  }
295
294
  function mt(m, _) {
@@ -302,7 +301,7 @@ function mt(m, _) {
302
301
  city: s == null ? void 0 : s.city,
303
302
  state: s == null ? void 0 : s.state,
304
303
  country: s == null ? void 0 : s.country
305
- }, q = {
304
+ }, N = {
306
305
  name: m.supplier.name,
307
306
  registrationNumber: m.supplier.registrationNumber,
308
307
  line1: m.supplier.address.line1,
@@ -342,7 +341,7 @@ function mt(m, _) {
342
341
  ref: m.ref || "",
343
342
  remark: m.remark || "",
344
343
  buyer: S,
345
- supplier: q,
344
+ supplier: N,
346
345
  items: $,
347
346
  status: m.status,
348
347
  deliveryOrders: d
@@ -391,7 +390,7 @@ const oe = {
391
390
  value: R.enum.completeReceive
392
391
  }
393
392
  };
394
- function Ir(m, _) {
393
+ function $r(m, _) {
395
394
  const u = be(), { t: s } = ze();
396
395
  function w(i) {
397
396
  switch (i.status) {
@@ -427,7 +426,7 @@ function Ir(m, _) {
427
426
  function S(i) {
428
427
  return Object.values(R.enum).includes(i);
429
428
  }
430
- async function q(i, p, h) {
429
+ async function N(i, p, h) {
431
430
  var O, G;
432
431
  const g = Le(p);
433
432
  if (i === I.Print) {
@@ -510,7 +509,7 @@ function Ir(m, _) {
510
509
  id: "action",
511
510
  cell(i) {
512
511
  const p = i.row.original, h = w(p);
513
- return Ie(h, (g) => q(g, p));
512
+ return Ie(h, (g) => N(g, p));
514
513
  },
515
514
  enableSorting: !1,
516
515
  size: 40,
@@ -582,7 +581,7 @@ function Ir(m, _) {
582
581
  const p = i.row.original, h = p.purchaseOrder ? w(p.purchaseOrder) : [];
583
582
  return Ie(
584
583
  h,
585
- (g) => p.purchaseOrder ? q(g, p.purchaseOrder, p) : void 0
584
+ (g) => p.purchaseOrder ? N(g, p.purchaseOrder, p) : void 0
586
585
  );
587
586
  },
588
587
  enableSorting: !1,
@@ -610,7 +609,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
610
609
  }, wt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ot = { class: "fm-typo-en-body-lg-600" }, Dt = { class: "flex flex-col gap-4" }, At = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, kt = { class: "fm-typo-en-body-lg-600" }, xt = {
611
610
  key: 1,
612
611
  class: "flex flex-col gap-4"
613
- }, Nt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qt = { class: "fm-typo-en-body-lg-600" }, Pt = {
612
+ }, qt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Nt = { class: "fm-typo-en-body-lg-600" }, Pt = {
614
613
  key: 2,
615
614
  class: "flex flex-col gap-4"
616
615
  }, Tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ct = { class: "fm-typo-en-body-lg-600" }, Et = {
@@ -652,7 +651,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
652
651
  }, Sr = { class: "flex-1 flex flex-col items-center" }, _r = {
653
652
  class: "py-12 flex flex-col gap-4 flex-1",
654
653
  name: "delivery details"
655
- }, Rr = { class: "flex flex-col gap-8" }, wr = { 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" }, Fr = /* @__PURE__ */ We({
654
+ }, Rr = { class: "flex flex-col gap-8" }, wr = { 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__ */ We({
656
655
  __name: "TransferDetails",
657
656
  props: {
658
657
  poRequest: {},
@@ -665,7 +664,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
665
664
  },
666
665
  emits: ["update:show", "submitted"],
667
666
  setup(m, { emit: _ }) {
668
- const u = m, s = _, w = Ke(), S = Ve(), q = ut(), $ = Ge(), { t: d } = ze(), M = V(
667
+ const u = m, s = _, w = Ke(), S = Ve(), N = at(), $ = Ge(), { t: d } = ze(), M = V(
669
668
  () => {
670
669
  var t, e, a, o;
671
670
  return ((e = (t = u.purchaseOrder) == null ? void 0 : t.supplier) == null ? void 0 : e.internal) === "restaurant" || ((o = (a = u.purchaseOrder) == null ? void 0 : a.supplier) == null ? void 0 : o.internal) === "warehouse" ? se.TRANSFER : se.PURCHASE;
@@ -682,7 +681,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
682
681
  label: d("inventory.transfer.receiveRequest.details.deliveryHistory"),
683
682
  value: "deliveryHistory"
684
683
  }
685
- ], h = B(p[0]), g = B(!1), O = B(""), G = B(!0), Se = Ye(), ie = nt(u, "show");
684
+ ], h = B(p[0]), g = B(!1), O = B(""), G = B(!0), Se = Ye(), ie = ot(u, "show");
686
685
  async function _e(t, e, a) {
687
686
  O.value = e, g.value = !0, G.value = !1;
688
687
  try {
@@ -739,7 +738,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
739
738
  }), Re = V(
740
739
  () => {
741
740
  var t, e, a, o, P, k;
742
- return q.getLocationSubsidiary(
741
+ return N.getLocationSubsidiary(
743
742
  ((a = (e = (t = u.purchaseOrder) == null ? void 0 : t.netSuite) == null ? void 0 : e.subsidiary) == null ? void 0 : a.id) || ((k = (P = (o = u.poRequest) == null ? void 0 : o.netSuite) == null ? void 0 : P.subsidiary) == null ? void 0 : k.id)
744
743
  ).fullName;
745
744
  }
@@ -760,7 +759,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
760
759
  ), o = Object.entries(a).reduce(
761
760
  (x, [L, K]) => {
762
761
  const A = K.reduce((b, T) => {
763
- const C = at(
762
+ const C = nt(
764
763
  b,
765
764
  Math.max(b.precision, T.amount.precision)
766
765
  );
@@ -865,7 +864,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
865
864
  }), ne = B(!1), we = V(() => {
866
865
  var o, P, k, U;
867
866
  let t = !0;
868
- q.isEnabled || (t = !1);
867
+ N.isEnabled || (t = !1);
869
868
  const e = u.purchaseOrder, a = u.poRequest;
870
869
  return e && ((o = e == null ? void 0 : e.supplier) != null && o.internal ? (!a && e.status == F.enum.DRAFT && (t = !1), a && !((P = a == null ? void 0 : a.netSuite) != null && P.id) && (t = !1), i.value && (t = !1)) : ((e == null ? void 0 : e.status) !== F.enum.REQUESTING && e.supplier.internal && (t = !1), !a && !((k = e == null ? void 0 : e.netSuite) != null && k.id) && (t = !1), !a && ((U = e == null ? void 0 : e.netSuite) != null && U.id) && (e == null ? void 0 : e.status) == F.enum.REQUESTING && (t = !1))), t;
871
870
  });
@@ -901,7 +900,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
901
900
  });
902
901
  return;
903
902
  }
904
- await q.syncTransferOrder(o, e == null ? void 0 : e._id, a == null ? void 0 : a._id), S.open({
903
+ await N.syncTransferOrder(o, e == null ? void 0 : e._id, a == null ? void 0 : a._id), S.open({
905
904
  title: "Sync with NetSuite",
906
905
  message: "Requested to sync with NetSuite. Please wait a moment.",
907
906
  type: "success"
@@ -952,7 +951,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
952
951
  loading: ne.value,
953
952
  onClick: f
954
953
  }, null, 8, ["loading"])
955
- ])) : N("", !0),
954
+ ])) : q("", !0),
956
955
  r("div", null, [
957
956
  Q(o, {
958
957
  items: p,
@@ -967,7 +966,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
967
966
  class: "flex flex-col gap-8 px-12 py-16"
968
967
  }, {
969
968
  default: pe(() => {
970
- var b, T, C, H, E, z, ce, ue, de, Y, De, Ae, ke, xe, Ne, qe, Pe, Te, Ce, Ee;
969
+ var b, T, C, H, E, z, ce, ue, de, Y, De, Ae, ke, xe, qe, Ne, Pe, Te, Ce, Ee;
971
970
  return [
972
971
  r("div", vt, [
973
972
  r("div", yt, v(n(d)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
@@ -990,7 +989,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
990
989
  (E = t.purchaseOrder) != null && E.effectiveAt ? (y(), D("div", Rt, [
991
990
  r("div", wt, v(n(d)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
992
991
  r("div", Ot, v(n(Be)(new Date((z = t.purchaseOrder) == null ? void 0 : z.effectiveAt))), 1)
993
- ])) : N("", !0),
992
+ ])) : q("", !0),
994
993
  r("div", Dt, [
995
994
  r("div", At, v(n(d)("inventory.transfer.receiveRequest.details.type.title")), 1),
996
995
  r("div", kt, v(n(d)(
@@ -998,33 +997,33 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
998
997
  )), 1)
999
998
  ]),
1000
999
  (ue = (ce = t.purchaseOrder) == null ? void 0 : ce.supplier) != null && ue.name ? (y(), D("div", xt, [
1001
- r("div", Nt, v(n(d)("inventory.transfer.receiveRequest.details.from")), 1),
1002
- r("div", qt, v((Y = (de = t.purchaseOrder) == null ? void 0 : de.supplier) == null ? void 0 : Y.name), 1)
1003
- ])) : N("", !0),
1000
+ r("div", qt, v(n(d)("inventory.transfer.receiveRequest.details.from")), 1),
1001
+ r("div", Nt, v((Y = (de = t.purchaseOrder) == null ? void 0 : de.supplier) == null ? void 0 : Y.name), 1)
1002
+ ])) : q("", !0),
1004
1003
  t.transferTo ? (y(), D("div", Pt, [
1005
1004
  r("div", Tt, v(n(d)("inventory.transfer.receiveRequest.details.to")), 1),
1006
1005
  r("div", Ct, v(t.transferTo), 1)
1007
- ])) : N("", !0),
1008
- n(q).isEnabled ? (y(), D("div", Et, [
1006
+ ])) : q("", !0),
1007
+ n(N).isEnabled ? (y(), D("div", Et, [
1009
1008
  e[10] || (e[10] = r("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite subsidiary ", -1)),
1010
1009
  r("div", $t, v(Re.value || "-"), 1)
1011
- ])) : N("", !0),
1012
- n(q).isEnabled && !i.value ? (y(), D("div", It, [
1010
+ ])) : q("", !0),
1011
+ n(N).isEnabled && !i.value ? (y(), D("div", It, [
1013
1012
  r("div", Ft, " NetSuite " + v(M.value === n(se).PURCHASE ? "Purchase order" : "Transfer order") + " (ID) ", 1),
1014
- r("div", Mt, v(t.poRequest ? (Ae = (De = t.poRequest) == null ? void 0 : De.netSuite) == null ? void 0 : Ae.refNo : (xe = (ke = t.purchaseOrder) == null ? void 0 : ke.netSuite) == null ? void 0 : xe.refNo) + " (" + v(t.poRequest ? (qe = (Ne = t.poRequest) == null ? void 0 : Ne.netSuite) == null ? void 0 : qe.id : (Te = (Pe = t.purchaseOrder) == null ? void 0 : Pe.netSuite) == null ? void 0 : Te.id) + ") ", 1)
1015
- ])) : N("", !0),
1016
- n(q).isEnabled && M.value === n(se).TRANSFER && !i.value ? (y(), D("div", Ut, [
1013
+ r("div", Mt, v(t.poRequest ? (Ae = (De = t.poRequest) == null ? void 0 : De.netSuite) == null ? void 0 : Ae.refNo : (xe = (ke = t.purchaseOrder) == null ? void 0 : ke.netSuite) == null ? void 0 : xe.refNo) + " (" + v(t.poRequest ? (Ne = (qe = t.poRequest) == null ? void 0 : qe.netSuite) == null ? void 0 : Ne.id : (Te = (Pe = t.purchaseOrder) == null ? void 0 : Pe.netSuite) == null ? void 0 : Te.id) + ") ", 1)
1014
+ ])) : q("", !0),
1015
+ n(N).isEnabled && M.value === n(se).TRANSFER && !i.value ? (y(), D("div", Ut, [
1017
1016
  e[11] || (e[11] = r("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite fulfillment IDs ", -1)),
1018
1017
  r("div", Lt, v(Z.value), 1)
1019
- ])) : N("", !0),
1018
+ ])) : q("", !0),
1020
1019
  (Ce = t.purchaseOrder) != null && Ce.ref ? (y(), D("div", jt, [
1021
1020
  r("div", Bt, v(n(d)("inventory.transfer.receiveRequest.details.reference")), 1),
1022
1021
  r("div", Kt, v(t.purchaseOrder.ref), 1)
1023
- ])) : N("", !0),
1022
+ ])) : q("", !0),
1024
1023
  (Ee = t.purchaseOrder) != null && Ee.remark ? (y(), D("div", Vt, [
1025
1024
  r("div", Gt, v(n(d)("inventory.transfer.receiveRequest.details.remark")), 1),
1026
1025
  r("div", Ht, v(t.purchaseOrder.remark), 1)
1027
- ])) : N("", !0)
1026
+ ])) : q("", !0)
1028
1027
  ])
1029
1028
  ];
1030
1029
  }),
@@ -1044,7 +1043,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
1044
1043
  ]),
1045
1044
  r("div", Xt, [
1046
1045
  r("div", er, v(b.code), 1),
1047
- b.totalCost && n($).enableTotalCost ? (y(), D("div", tr, " (" + v(n(Me)(b.totalCost)) + ") ", 1)) : N("", !0)
1046
+ b.totalCost && n($).enableTotalCost ? (y(), D("div", tr, " (" + v(n(Me)(b.totalCost)) + ") ", 1)) : q("", !0)
1048
1047
  ])
1049
1048
  ]))), 128)),
1050
1049
  +n(le)(c.value) ? (y(), D(re, { key: 0 }, [
@@ -1055,10 +1054,10 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
1055
1054
  e[12] || (e[12] = r("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Total:", -1)),
1056
1055
  r("div", ar, v(n(Me)(c.value)), 1)
1057
1056
  ])
1058
- ], 64)) : N("", !0)
1057
+ ], 64)) : q("", !0)
1059
1058
  ])
1060
1059
  ])
1061
- ], 64)) : N("", !0),
1060
+ ], 64)) : q("", !0),
1062
1061
  h.value.value === "deliveryHistory" ? (y(), D("div", nr, [
1063
1062
  X.value.length ? (y(), D("div", ur, [
1064
1063
  (y(!0), D(re, null, ye(X.value, (b, T) => (y(), D(re, { key: T }, [
@@ -1137,7 +1136,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
1137
1136
  Q(l),
1138
1137
  r("div", null, [
1139
1138
  r("img", {
1140
- src: n(ct),
1139
+ src: n(ut),
1141
1140
  alt: "List is empty"
1142
1141
  }, null, 8, lr)
1143
1142
  ]),
@@ -1146,7 +1145,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
1146
1145
  Q(l),
1147
1146
  Q(l)
1148
1147
  ]))
1149
- ])) : N("", !0)
1148
+ ])) : q("", !0)
1150
1149
  ])
1151
1150
  ];
1152
1151
  }),
@@ -1160,14 +1159,14 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
1160
1159
  onClick: e[1] || (e[1] = (Y) => W("confirmDraft")),
1161
1160
  loading: O.value === "confirmDraft",
1162
1161
  disabled: O.value !== "confirmDraft" && g.value
1163
- }, null, 8, ["label", "loading", "disabled"])) : N("", !0),
1162
+ }, null, 8, ["label", "loading", "disabled"])) : q("", !0),
1164
1163
  ((b = t.purchaseOrder) == null ? void 0 : b.status) === n(F).enum.DRAFT && M.value === n(se).TRANSFER ? (y(), J(a, {
1165
1164
  key: 1,
1166
1165
  label: n(d)("inventory.transfer.receiveRequest.actions.submitRequest"),
1167
1166
  onClick: e[2] || (e[2] = (Y) => W("submitRequest")),
1168
1167
  loading: O.value === "submitRequest",
1169
1168
  disabled: O.value !== "submitRequest" && g.value
1170
- }, null, 8, ["label", "loading", "disabled"])) : N("", !0),
1169
+ }, null, 8, ["label", "loading", "disabled"])) : q("", !0),
1171
1170
  ((T = t.purchaseOrder) == null ? void 0 : T.status) === n(F).enum.DRAFT ? (y(), J(a, {
1172
1171
  key: 2,
1173
1172
  label: n(d)("inventory.transfer.receiveRequest.actions.cancelDraft"),
@@ -1175,28 +1174,28 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
1175
1174
  loading: O.value === "cancelDraft",
1176
1175
  disabled: O.value !== "cancelDraft" && g.value,
1177
1176
  variant: "destructive"
1178
- }, null, 8, ["label", "loading", "disabled"])) : N("", !0),
1177
+ }, null, 8, ["label", "loading", "disabled"])) : q("", !0),
1179
1178
  ((C = t.purchaseOrder) == null ? void 0 : C.status) === n(F).enum.RECEIVING ? (y(), J(a, {
1180
1179
  key: 3,
1181
1180
  label: n(d)("inventory.transfer.receiveRequest.actions.completeReceive"),
1182
1181
  onClick: e[4] || (e[4] = (Y) => W("completeReceive")),
1183
1182
  loading: O.value === "completeReceive",
1184
1183
  disabled: O.value !== "completeReceive" && g.value
1185
- }, null, 8, ["label", "loading", "disabled"])) : N("", !0),
1184
+ }, null, 8, ["label", "loading", "disabled"])) : q("", !0),
1186
1185
  t.canResubmit ? (y(), J(a, {
1187
1186
  key: 4,
1188
1187
  label: n(d)("inventory.transfer.receiveRequest.actions.resubmitRequest"),
1189
1188
  onClick: e[5] || (e[5] = (Y) => W("submitRequest")),
1190
1189
  loading: O.value === "submitRequest",
1191
1190
  disabled: O.value !== "submitRequest" && g.value
1192
- }, null, 8, ["label", "loading", "disabled"])) : N("", !0),
1191
+ }, null, 8, ["label", "loading", "disabled"])) : q("", !0),
1193
1192
  (((H = t.purchaseOrder) == null ? void 0 : H.status) === n(F).enum.REQUESTING || ((E = t.purchaseOrder) == null ? void 0 : E.status) === n(F).enum.PROCESSING) && t.canApprove ? (y(), J(a, {
1194
1193
  key: 5,
1195
1194
  label: n(d)("inventory.transfer.approval.actions.approveRequest"),
1196
1195
  onClick: e[6] || (e[6] = (Y) => W("approveRequest")),
1197
1196
  loading: O.value === "approveRequest",
1198
1197
  disabled: O.value !== "approveRequest" && g.value
1199
- }, null, 8, ["label", "loading", "disabled"])) : N("", !0),
1198
+ }, null, 8, ["label", "loading", "disabled"])) : q("", !0),
1200
1199
  ((z = t.purchaseOrder) == null ? void 0 : z.status) === n(F).enum.REQUESTING && t.canApprove ? (y(), J(a, {
1201
1200
  key: 6,
1202
1201
  label: n(d)("inventory.transfer.approval.actions.rejectRequest"),
@@ -1204,13 +1203,13 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
1204
1203
  loading: O.value === "rejectRequest",
1205
1204
  disabled: O.value !== "rejectRequest" && g.value,
1206
1205
  variant: "destructive"
1207
- }, null, 8, ["label", "loading", "disabled"])) : N("", !0),
1206
+ }, null, 8, ["label", "loading", "disabled"])) : q("", !0),
1208
1207
  ((ce = t.purchaseOrder) == null ? void 0 : ce.status) !== n(F).enum.COMPLETE && ((ue = t.purchaseOrder) == null ? void 0 : ue.status) !== n(F).enum.CANCEL && (((de = t.purchaseOrder) == null ? void 0 : de.status) !== n(F).enum.REQUESTING || t.canApprove) ? (y(), J(a, {
1209
1208
  key: 7,
1210
1209
  label: n(d)("common.close"),
1211
1210
  variant: "tertiary",
1212
1211
  onClick: e[8] || (e[8] = (Y) => s("update:show", !1))
1213
- }, null, 8, ["label"])) : N("", !0)
1212
+ }, null, 8, ["label"])) : q("", !0)
1214
1213
  ])
1215
1214
  ];
1216
1215
  }),
@@ -1220,9 +1219,9 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
1220
1219
  }
1221
1220
  });
1222
1221
  export {
1223
- Fr as _,
1224
- $r as a,
1225
- Ir as b,
1222
+ Ir as _,
1223
+ Er as a,
1224
+ $r as b,
1226
1225
  dt as g,
1227
1226
  Ye as u
1228
1227
  };