@feedmepos/mf-inventory-portal 1.2.12-dev.3 → 1.2.13

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 (74) hide show
  1. package/dist/{App-D5hXQpVn.js → App-ZoXow3DD.js} +40 -44
  2. package/dist/{ApprovalView-B__WDklZ.js → ApprovalView-BWX6xBQs.js} +30 -30
  3. package/dist/{BindingsDialog-DXdwRSnn.js → BindingsDialog-CuwkcDKX.js} +2 -2
  4. package/dist/{BindingsPicker-CqAD3aHc.js → BindingsPicker-BibFsY0g.js} +1 -1
  5. package/dist/{BindingsTable-DVNjpusl.js → BindingsTable-AdjKwSPH.js} +1 -1
  6. package/dist/{ClosingDraftView-DL678GBB.js → ClosingDraftView-DWFHP9nE.js} +129 -129
  7. package/dist/{ClosingTemplateView-DThiXLtp.js → ClosingTemplateView-DOCF5f_u.js} +28 -28
  8. package/dist/{DeliveryOrderPrintPreview-B2MB9S6a.js → DeliveryOrderPrintPreview-DNDtL_Vo.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BNxs6Bcr.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BWhINOE8.js} +3 -3
  10. package/dist/{FmMultiselectDialog-B45ZLjVp.js → FmMultiselectDialog-Dfo04ak5.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D8ks6AEM.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DGVs4zLl.js} +45 -45
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C5zIvG2h.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BESx2u4Y.js} +1 -1
  13. package/dist/{IngredientGroupView-D95dFXIZ.js → IngredientGroupView-M9sXlnE0.js} +32 -31
  14. package/dist/IngredientsView-DUwhH3j1.js +2475 -0
  15. package/dist/{IntegrationView-9m3N_9lW.js → IntegrationView-BlUNz1yc.js} +57 -57
  16. package/dist/{InventoryBindingForm-kLoQskao.js → InventoryBindingForm-CvQ5zh6v.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BytErBcK.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BEAEmPsU.js} +31 -31
  18. package/dist/{InventoryBindingSummary-Dg0FH7ad.js → InventoryBindingSummary-CsJ-6G2P.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BKrUNLuG.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DjN_ktl1.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BL1f817e.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BN_e7k7U.js} +1 -1
  21. package/dist/{PublishView-BcOHSAj3.js → PublishView-DZgCyLK2.js} +15 -15
  22. package/dist/{PurchaseOrderPrintPreview-UfF8RVkv.js → PurchaseOrderPrintPreview-CB2xvQ33.js} +1 -1
  23. package/dist/{ReceiveRequestView-D_y_xNUb.js → ReceiveRequestView-DgDHOS-Y.js} +63 -62
  24. package/dist/RecipeView-DQDfwCJd.js +621 -0
  25. package/dist/{StockView-ciU6aAV7.js → StockView-eJOngk08.js} +166 -165
  26. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-XwDTGpR-.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BMFfegsk.js} +1 -1
  27. package/dist/{SupplierView-DFwtALPg.js → SupplierView-BS8rBAKC.js} +492 -490
  28. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-w98ibfql.js +3060 -0
  29. package/dist/{TransferTemplateView-BXr_GqTi.js → TransferTemplateView-By5Ci4Yg.js} +48 -48
  30. package/dist/UnitView-DmuWMFlA.js +667 -0
  31. package/dist/{WarehouseView-BYd0bPhi.js → WarehouseView-4ZLSJXYc.js} +32 -32
  32. package/dist/api/inventory.d.ts +0 -306
  33. package/dist/api/purchase-order.d.ts +0 -1
  34. package/dist/{app-Bb0-8bRg.js → app-D2lun71R.js} +11108 -11723
  35. package/dist/app.d.ts +0 -421
  36. package/dist/app.js +1 -1
  37. package/dist/array-Ca8T3f_G.js +44 -0
  38. package/dist/{closing-template-DPVNEyI7.js → closing-template-Cm1TtVzm.js} +1 -1
  39. package/dist/{decimal-BdBZYISm.js → decimal-eeicE4jp.js} +1 -1
  40. package/dist/{format-unit-display-DlmCwWo_.js → format-unit-display-vHKazw0l.js} +25 -25
  41. package/dist/helper/number.d.ts +0 -1
  42. package/dist/{index-CqBKFj1B.js → index-C5s-1g7c.js} +1 -1
  43. package/dist/{index-CKFmV1Pk.js → index-DvX9cMJV.js} +1 -1
  44. package/dist/{purchase-order-template-CLtEYr5E.js → purchase-order-template-uTs7bR89.js} +1 -1
  45. package/dist/router/name.d.ts +0 -1
  46. package/dist/{stock-nHQhfe2W.js → stock-CL2LNdXp.js} +1 -1
  47. package/dist/stores/feature.d.ts +0 -2
  48. package/dist/stores/inventory.d.ts +199 -26
  49. package/dist/{supplier-DuOjLpOa.js → supplier-CuzoW2k4.js} +1 -1
  50. package/dist/tsconfig.app.tsbuildinfo +1 -1
  51. package/dist/{use-ingredient-select-dialog-B-11Eqlm.js → use-ingredient-select-dialog-Cpg4lHHC.js} +1 -1
  52. package/dist/{use-inventory-binding-dialog-DhLSdRtp.js → use-inventory-binding-dialog-h4M4ICQK.js} +1 -1
  53. package/dist/views/ingredients/helper/import-export.helper.d.ts +1 -3
  54. package/dist/views/recipe/RecipeView.vue.d.ts +0 -1
  55. package/dist/views/unit/UnitView.vue.d.ts +0 -1
  56. package/package.json +2 -2
  57. package/dist/ImportView-EXm_g_jD.js +0 -1303
  58. package/dist/IngredientsView-MF1USuZI.js +0 -2240
  59. package/dist/RecipeView-DOaU9GIF.js +0 -636
  60. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CdA5_lEz.js +0 -3221
  61. package/dist/UnitView-CAXHvh3n.js +0 -674
  62. package/dist/import-export.helper-B04wszRI.js +0 -243
  63. package/dist/views/import/ImportView.vue.d.ts +0 -3
  64. package/dist/views/import/components/ImportDialog.vue.d.ts +0 -2
  65. package/dist/views/import/helper/import-export.helper.d.ts +0 -4
  66. package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +0 -17
  67. package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +0 -16
  68. package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +0 -2
  69. package/dist/views/recipe/helper/import-recipe.d.ts +0 -48
  70. package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +0 -12
  71. package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +0 -6
  72. package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +0 -9
  73. package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +0 -5
  74. package/dist/views/unit/helper/import-export.helper.d.ts +0 -40
@@ -1,16 +1,17 @@
1
- import { reactive as gt, onMounted as Qe, watch as ge, computed as N, h as L, defineComponent as ce, openBlock as S, createElementBlock as T, Fragment as de, renderList as Se, createElementVNode as n, toDisplayString as M, unref as s, resolveComponent as $, createVNode as y, withCtx as A, createCommentVNode as j, ref as q, createBlock as W, normalizeClass as J, normalizeStyle as _t, createTextVNode as $e, nextTick as It, mergeProps as Ze, isRef as xe, createSlots as $t, Teleport as Tt, normalizeProps as Dt, guardReactiveProps as Vt } from "vue";
2
- import { b as Ue, Y as Ge, c as Je, p as Me, l as Ce, ad as Ye, Z as Pt, aE as Rt, A as qe, M as At, q as ht, ak as We, J as fe, av as Et, aF as Ot, aG as Mt, a8 as qt, aH as Ut, O as kt, u as et, a as tt, aI as Nt, aJ as Bt, ac as zt, a4 as Lt, aK as Ht, I as xt, v as jt, e as Oe, aL as Yt, aq as Qt, z as Kt, B as Xt, aM as je, ae as ft, C as Zt, N as Gt, H as Jt, E as Wt, G as es, a0 as vt } from "./app-Bb0-8bRg.js";
3
- import { u as st, a as ts, P as Xe, b as ss, _ as os, g as as } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CdA5_lEz.js";
4
- import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-BL1f817e.js";
1
+ import { reactive as gt, onMounted as Ye, watch as ge, computed as N, h as L, defineComponent as ce, openBlock as S, createElementBlock as T, Fragment as de, renderList as Se, createElementVNode as n, toDisplayString as M, unref as s, resolveComponent as $, createVNode as y, withCtx as A, createCommentVNode as j, ref as q, createBlock as W, normalizeClass as J, normalizeStyle as _t, createTextVNode as $e, nextTick as It, mergeProps as Ze, isRef as xe, createSlots as $t, Teleport as Tt, normalizeProps as Dt, guardReactiveProps as Vt } from "vue";
2
+ import { b as Ue, a0 as Ge, c as Je, p as Me, l as Ce, af as Qe, a1 as Pt, aE as Rt, A as qe, M as At, q as ht, am as We, V as fe, av as Et, aF as Ot, aG as Mt, aa as qt, aH as Ut, X as kt, u as et, a as tt, aI as Nt, aJ as Bt, ae as zt, a6 as Lt, aK as Ht, T as xt, v as jt, e as Oe, aL as Qt, G as Yt, J as Kt, K as Xt, aM as je, ag as ft, O as Zt, N as Gt, L as Jt, P as Wt, Q as es, a3 as vt } from "./app-D2lun71R.js";
3
+ import { u as st, a as ts, P as Xe, b as ss, _ as os, g as as } from "./TransferDetails.vue_vue_type_script_setup_true_lang-w98ibfql.js";
4
+ import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-BN_e7k7U.js";
5
5
  import { u as is } from "./useTabStorage-BkIVScW_.js";
6
6
  import { useBreakpoints as ot, components as be, FmButtonVariant as us, useSnackbar as Te, useDialog as ds, useProxiedModel as St } from "@feedmepos/ui-library";
7
- import { P as ne, u as wt } from "./format-unit-display-DlmCwWo_.js";
8
- import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-D8ks6AEM.js";
9
- import { c as Ie, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BNxs6Bcr.js";
7
+ import { P as ne, u as wt } from "./format-unit-display-vHKazw0l.js";
8
+ import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DGVs4zLl.js";
9
+ import { c as Ie, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BWhINOE8.js";
10
10
  import { useI18n as _e } from "@feedmepos/mf-common";
11
- import "./FmMultiselectDialog-B45ZLjVp.js";
12
- import { u as at } from "./supplier-DuOjLpOa.js";
11
+ import "./FmMultiselectDialog-Dfo04ak5.js";
12
+ import { u as at } from "./supplier-CuzoW2k4.js";
13
13
  import { _ as bs } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
14
+ import "./array-Ca8T3f_G.js";
14
15
  var ee = /* @__PURE__ */ ((g) => (g.Code = "Code", g.Name = "Name", g.TemplateName = "TemplateName", g.Amount = "Amount", g.Cost = "Cost", g.TotalCost = "TotalCost", g.Delete = "Delete", g))(ee || {});
15
16
  const gs = () => (_e(), L(
16
17
  Ct,
@@ -22,7 +23,7 @@ const gs = () => (_e(), L(
22
23
  ));
23
24
  function _s(g) {
24
25
  const { t: w } = _e(), r = gt({}), { breakpoints: p } = ot(), x = Je(), t = Ue();
25
- Qe(() => {
26
+ Ye(() => {
26
27
  for (const v of g.items) {
27
28
  if (!v.totalCost)
28
29
  continue;
@@ -270,7 +271,7 @@ function _s(g) {
270
271
  [
271
272
  L(
272
273
  "span",
273
- k ? Ye(a) : Ce(a)
274
+ k ? Qe(a) : Ce(a)
274
275
  ),
275
276
  L(
276
277
  "span",
@@ -291,7 +292,7 @@ function _s(g) {
291
292
  ]
292
293
  },
293
294
  [
294
- Ye(i.costPerUnit),
295
+ Qe(i.costPerUnit),
295
296
  "/",
296
297
  i.measurement ? L(
297
298
  "span",
@@ -424,7 +425,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
424
425
  class: "flex flex-col w-[150px] xs:flex-1 text-ellipsis cursor-pointer"
425
426
  }, [
426
427
  n("div", Cs, [
427
- n("span", null, M(F.totalCost ? s(Ye)(F.totalCost) : "No data"), 1),
428
+ n("span", null, M(F.totalCost ? s(Qe)(F.totalCost) : "No data"), 1),
428
429
  x[0] || (x[0] = n("span", { class: "text-fm-color-typo-secondary" }, "/", -1)),
429
430
  n("span", null, M(s(Ce)(F.totalUnit, !1)), 1),
430
431
  n("span", null, M(((I = F.measurement) == null ? void 0 : I.abbrev) ?? F.unit.abbrev), 1)
@@ -455,7 +456,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
455
456
  setup(g) {
456
457
  const { t: w } = _e();
457
458
  return (r, p) => {
458
- var f, F, I, v, e, u, k, a, i, h, _, C, l, c, D, B, Y, Q, K, O, U, P, d, b, R, X, Z;
459
+ var f, F, I, v, e, u, k, a, i, h, _, C, l, c, D, B, Q, Y, K, O, U, P, d, b, R, X, Z;
459
460
  const x = $("FmLabel"), t = $("FmSpacer");
460
461
  return S(), T("div", ws, [
461
462
  n("div", Fs, [
@@ -498,7 +499,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
498
499
  label: s(w)(`inventory.transfer.form.items.table.${s(ee).Amount}`)
499
500
  }, null, 8, ["label"]),
500
501
  y(s(fe), {
501
- render: (Q = (Y = (B = r.cellByColId[s(ee).Amount]) == null ? void 0 : B.column) == null ? void 0 : Y.columnDef) == null ? void 0 : Q.cell,
502
+ render: (Y = (Q = (B = r.cellByColId[s(ee).Amount]) == null ? void 0 : B.column) == null ? void 0 : Q.columnDef) == null ? void 0 : Y.cell,
502
503
  props: (O = (K = r.cellByColId[s(ee).Amount]) == null ? void 0 : K.getContext) == null ? void 0 : O.call(K)
503
504
  }, null, 8, ["render", "props"]),
504
505
  p[2] || (p[2] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
@@ -611,7 +612,7 @@ const qs = {
611
612
  }, null, 8, zs)
612
613
  ]));
613
614
  }
614
- }), Hs = { class: "flex gap-8 items-center" }, js = { class: "fm-typo-en-body-lg-600 line-clamp-1" }, Ys = { class: "w-[343px] px-24 py-16 rounded-lg shadow-light-300 flex flex-col gap-[20px]" }, Qs = { class: "flex items-center w-full" }, Ks = { class: "flex-1" }, Xs = { class: "fm-typo-en-title-sm-800" }, Zs = { class: "flex items-start gap-8" }, Gs = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Js = { class: "flex gap-1" }, Ws = /* @__PURE__ */ ce({
615
+ }), Hs = { class: "flex gap-8 items-center" }, js = { class: "fm-typo-en-body-lg-600 line-clamp-1" }, Qs = { class: "w-[343px] px-24 py-16 rounded-lg shadow-light-300 flex flex-col gap-[20px]" }, Ys = { class: "flex items-center w-full" }, Ks = { class: "flex-1" }, Xs = { class: "fm-typo-en-title-sm-800" }, Zs = { class: "flex items-start gap-8" }, Gs = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Js = { class: "flex gap-1" }, Ws = /* @__PURE__ */ ce({
615
616
  __name: "ForecastStock",
616
617
  props: {
617
618
  templateId: {},
@@ -672,7 +673,7 @@ const qs = {
672
673
  }
673
674
  const i = r.templateItems.reduce((_, C) => {
674
675
  var B;
675
- const l = (B = r.poItems) == null ? void 0 : B.find((Y) => Y.sku._id === C.sku._id), c = a.find((Y) => Y.id === C.sku._id);
676
+ const l = (B = r.poItems) == null ? void 0 : B.find((Q) => Q.sku._id === C.sku._id), c = a.find((Q) => Q.id === C.sku._id);
676
677
  if (!c)
677
678
  return l && _.push(l), _;
678
679
  if (!r.templateId && c.amount <= 0) return _;
@@ -689,15 +690,15 @@ const qs = {
689
690
  })
690
691
  ), _;
691
692
  }, []), h = a.map((_) => {
692
- const C = r.templateItems.find((Q) => Q.sku._id === _.id);
693
+ const C = r.templateItems.find((Y) => Y.sku._id === _.id);
693
694
  let l = _.amount, c = 0;
694
695
  if (C != null && C.measurement) {
695
- const Q = e(C.measurement.conversion) ?? 1;
696
- l = Math.ceil(_.amount / Q);
696
+ const Y = e(C.measurement.conversion) ?? 1;
697
+ l = Math.ceil(_.amount / Y);
697
698
  } else
698
699
  l = Math.ceil(_.amount);
699
- const D = e(C == null ? void 0 : C.minimumQuantity) ?? 0, B = e(C == null ? void 0 : C.maximumQuantity) ?? 1 / 0, Y = l < D || l > B ? "error" : "success";
700
- return { skuId: _.id, amount: l, precision: c, helperState: Y };
700
+ const D = e(C == null ? void 0 : C.minimumQuantity) ?? 0, B = e(C == null ? void 0 : C.maximumQuantity) ?? 1 / 0, Q = l < D || l > B ? "error" : "success";
701
+ return { skuId: _.id, amount: l, precision: c, helperState: Q };
701
702
  });
702
703
  p("update:poItems", i), p("update:forecastAmounts", h);
703
704
  }
@@ -731,8 +732,8 @@ const qs = {
731
732
  }, 8, ["text-color", "border-color", "disabled"])
732
733
  ]),
733
734
  default: A(() => [
734
- n("div", Ys, [
735
- n("div", Qs, [
735
+ n("div", Qs, [
736
+ n("div", Ys, [
736
737
  n("div", Ks, [
737
738
  y(bs, { "z-index": 99 }, {
738
739
  default: A(() => [
@@ -903,7 +904,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
903
904
  emits: ["netsuite:ready"],
904
905
  setup(g, { emit: w }) {
905
906
  const r = Ue(), p = g, x = w, { t } = Ut(), f = q(!1), F = q();
906
- Qe(() => {
907
+ Ye(() => {
907
908
  var u, k, a, i;
908
909
  let e = {
909
910
  id: "",
@@ -1066,7 +1067,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1066
1067
  throw new Error("Unable to resolve supplier from template");
1067
1068
  }
1068
1069
  }
1069
- }), Qe(() => {
1070
+ }), Ye(() => {
1070
1071
  var o;
1071
1072
  try {
1072
1073
  const m = I.skuById;
@@ -1084,7 +1085,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1084
1085
  F.watchLocation(async () => {
1085
1086
  location && (t.supplier || (t.supplier = e.suppliers.find((o) => o) ?? t.supplier));
1086
1087
  });
1087
- const Y = ds(), Q = vs(
1088
+ const Q = ds(), Y = vs(
1088
1089
  () => t,
1089
1090
  (o) => {
1090
1091
  Object.assign(t, o);
@@ -1099,7 +1100,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1099
1100
  set(o) {
1100
1101
  var E;
1101
1102
  const m = typeof ((E = t == null ? void 0 : t.supplier) == null ? void 0 : E.internal) == "string" ? ne.TRANSFER : ne.PURCHASE;
1102
- o !== m && (t.supplier = o === ne.PURCHASE ? Q.locationOptionsTypePurchase.value[0] : Q.locationOptionsTypeTransfer.value[0]);
1103
+ o !== m && (t.supplier = o === ne.PURCHASE ? Y.locationOptionsTypePurchase.value[0] : Y.locationOptionsTypeTransfer.value[0]);
1103
1104
  }
1104
1105
  });
1105
1106
  ge(
@@ -1110,7 +1111,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1110
1111
  (o) => {
1111
1112
  u.mustUsePoTemplate && !o && It(() => {
1112
1113
  var m, E;
1113
- t.supplier = ((E = (m = Q.locationOptionsTypeTransfer.value) == null ? void 0 : m.filter(
1114
+ t.supplier = ((E = (m = Y.locationOptionsTypeTransfer.value) == null ? void 0 : m.filter(
1114
1115
  (H) => H.internal === "restaurant"
1115
1116
  )) == null ? void 0 : E[0]) ?? t.supplier;
1116
1117
  });
@@ -1118,7 +1119,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1118
1119
  { immediate: !0 }
1119
1120
  );
1120
1121
  const O = N(() => {
1121
- let o = Q.transferLocationOptions.value;
1122
+ let o = Y.transferLocationOptions.value;
1122
1123
  return u.mustUsePoTemplate && !t.template && (o = o.filter((m) => {
1123
1124
  var E;
1124
1125
  return (E = m.sublabel) == null ? void 0 : E.startsWith("restaurant");
@@ -1129,7 +1130,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1129
1130
  return (o = t.supplier) == null ? void 0 : o._id;
1130
1131
  },
1131
1132
  set(o) {
1132
- Q.transferLocationModel.value = o;
1133
+ Y.transferLocationModel.value = o;
1133
1134
  }
1134
1135
  }), P = N({
1135
1136
  get() {
@@ -1222,7 +1223,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1222
1223
  var te;
1223
1224
  return (te = t.items) == null ? void 0 : te.find((ae) => ae.sku._id === z.value._id);
1224
1225
  }).map((z) => z.value);
1225
- Y.open({
1226
+ Q.open({
1226
1227
  title: f("inventory.transfer.form.items.selectItem"),
1227
1228
  closeButton: !0,
1228
1229
  contentComponent: jt,
@@ -1737,22 +1738,22 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1737
1738
  return u("inventory.transfer.receiveRequest.update.title");
1738
1739
  }
1739
1740
  return "";
1740
- }), Y = q();
1741
+ }), Q = q();
1741
1742
  w({
1742
1743
  validateInputs: () => {
1743
1744
  var d, b;
1744
- (b = (d = Y.value) == null ? void 0 : d.validateInputs) == null || b.call(d);
1745
+ (b = (d = Q.value) == null ? void 0 : d.validateInputs) == null || b.call(d);
1745
1746
  },
1746
1747
  resetInputsValidation: () => {
1747
1748
  var d, b;
1748
- (b = (d = Y.value) == null ? void 0 : d.resetInputsValidation) == null || b.call(d);
1749
+ (b = (d = Q.value) == null ? void 0 : d.resetInputsValidation) == null || b.call(d);
1749
1750
  },
1750
1751
  resetInputs: () => {
1751
1752
  var d, b;
1752
- (b = (d = Y.value) == null ? void 0 : d.resetInputs) == null || b.call(d);
1753
+ (b = (d = Q.value) == null ? void 0 : d.resetInputs) == null || b.call(d);
1753
1754
  }
1754
1755
  });
1755
- async function Q() {
1756
+ async function Y() {
1756
1757
  const d = l.value;
1757
1758
  if (k.value = !0, d.items = d.items.filter((b) => b.quantity.amount > 0), !d.items.length) {
1758
1759
  F.open({
@@ -1809,14 +1810,14 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1809
1810
  function O() {
1810
1811
  switch (p.mode) {
1811
1812
  case Oe.CREATE:
1812
- return Q();
1813
+ return Y();
1813
1814
  case Oe.UPDATE:
1814
1815
  return K();
1815
1816
  }
1816
1817
  }
1817
1818
  function U() {
1818
1819
  var R, X;
1819
- const d = Yt.validatePurchaseOrderItems({
1820
+ const d = Qt.validatePurchaseOrderItems({
1820
1821
  skusById: v.skuById ?? {},
1821
1822
  items: l.value.items ?? []
1822
1823
  }), b = Object.values(d).flat();
@@ -1829,7 +1830,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1829
1830
  });
1830
1831
  return;
1831
1832
  }
1832
- (X = (R = Y.value) == null ? void 0 : R.validateInputs) == null || X.call(R);
1833
+ (X = (R = Q.value) == null ? void 0 : R.validateInputs) == null || X.call(R);
1833
1834
  }
1834
1835
  return (d, b) => {
1835
1836
  const R = $("FmButton"), X = $("FmSideSheet");
@@ -1849,7 +1850,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1849
1850
  (S(), W(Vo, {
1850
1851
  class: "w-full",
1851
1852
  ref_key: "formRef",
1852
- ref: Y,
1853
+ ref: Q,
1853
1854
  "onForm:ready": b[0] || (b[0] = () => i.value = !0),
1854
1855
  onValidationSuccess: O,
1855
1856
  modelValue: l.value,
@@ -1883,7 +1884,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1883
1884
  }
1884
1885
  });
1885
1886
  function Oo(g) {
1886
- const [w, r, p, ...x] = Qt(g), t = p.map((v) => v.toLowerCase().trim().replace(/ /g, "_")), F = ["item_name", "transfer_quantity(uom)", "uom", "scanned_code"].filter((v) => !t.includes(v));
1887
+ const [w, r, p, ...x] = Yt(g), t = p.map((v) => v.toLowerCase().trim().replace(/ /g, "_")), F = ["item_name", "transfer_quantity(uom)", "uom", "scanned_code"].filter((v) => !t.includes(v));
1887
1888
  if (F.length)
1888
1889
  throw new Error(
1889
1890
  `Missing headers (${F.join()}). Excel file does not come from the template.`
@@ -1957,7 +1958,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
1957
1958
  class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
1958
1959
  }, zo = { key: 0 }, Lo = {
1959
1960
  class: /* @__PURE__ */ J(["fm-typo-en-body-lg-600"])
1960
- }, Ho = { class: "flex-1" }, jo = { class: "flex-auto line-clamp-2 text-ellipsis break-all fm-typo-en-body-sm-400" }, Yo = { class: "flex-auto line-clamp-2 text-ellipsis break-all" }, Qo = { class: "text-fm-color-typo-primary" }, Ko = { class: "ml-auto" }, Xo = { key: 0 }, Zo = /* @__PURE__ */ ce({
1961
+ }, Ho = { class: "flex-1" }, jo = { class: "flex-auto line-clamp-2 text-ellipsis break-all fm-typo-en-body-sm-400" }, Qo = { class: "flex-auto line-clamp-2 text-ellipsis break-all" }, Yo = { class: "text-fm-color-typo-primary" }, Ko = { class: "ml-auto" }, Xo = { key: 0 }, Zo = /* @__PURE__ */ ce({
1961
1962
  __name: "XilnexResult",
1962
1963
  props: {
1963
1964
  type: {},
@@ -2020,13 +2021,13 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2020
2021
  "z-index": 51
2021
2022
  }, {
2022
2023
  default: A(() => [
2023
- n("span", Yo, M(e.name), 1)
2024
+ n("span", Qo, M(e.name), 1)
2024
2025
  ]),
2025
2026
  _: 2
2026
2027
  }, 1032, ["content"])
2027
2028
  ]),
2028
2029
  n("div", null, [
2029
- n("span", Qo, M(s(Ge).toFormatString({
2030
+ n("span", Yo, M(s(Ge).toFormatString({
2030
2031
  value: e.quantity
2031
2032
  })), 1),
2032
2033
  $e(" " + M(e.measurement ? e.measurement.abbrev : e.sku.unit.abbrev), 1)
@@ -2097,7 +2098,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2097
2098
  });
2098
2099
  }
2099
2100
  });
2100
- Qe(async () => {
2101
+ Ye(async () => {
2101
2102
  const l = await I.getNetSuiteLocations();
2102
2103
  console.log(l), F.value = !0;
2103
2104
  });
@@ -2107,8 +2108,8 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2107
2108
  },
2108
2109
  set(l) {
2109
2110
  if (l) {
2110
- const c = f.effectiveAt ? new Date(f.effectiveAt) : /* @__PURE__ */ new Date(), [D, B, Y] = l.split("-");
2111
- c.setFullYear(parseInt(D)), c.setMonth(parseInt(B) - 1), c.setDate(parseInt(Y)), f.effectiveAt = c.toISOString();
2111
+ const c = f.effectiveAt ? new Date(f.effectiveAt) : /* @__PURE__ */ new Date(), [D, B, Q] = l.split("-");
2112
+ c.setFullYear(parseInt(D)), c.setMonth(parseInt(B) - 1), c.setDate(parseInt(Q)), f.effectiveAt = c.toISOString();
2112
2113
  }
2113
2114
  }
2114
2115
  }), u = N({
@@ -2175,7 +2176,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2175
2176
  return ge(r, (l) => {
2176
2177
  l && C(l);
2177
2178
  }), (l, c) => {
2178
- const D = $("FmSelect"), B = $("FmDatePicker"), Y = $("FmTimePicker"), Q = $("FmCircularProgress"), K = $("FmLabel"), O = $("FmIcon"), U = $("FmButton"), P = $("FmForm");
2179
+ const D = $("FmSelect"), B = $("FmDatePicker"), Q = $("FmTimePicker"), Y = $("FmCircularProgress"), K = $("FmLabel"), O = $("FmIcon"), U = $("FmButton"), P = $("FmForm");
2179
2180
  return S(), W(P, {
2180
2181
  ref_key: "formRef",
2181
2182
  ref: h
@@ -2205,7 +2206,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2205
2206
  label: "Transfer date",
2206
2207
  rules: [s(Me)()]
2207
2208
  }, null, 8, ["modelValue", "rules"]),
2208
- y(Y, {
2209
+ y(Q, {
2209
2210
  modelValue: u.value,
2210
2211
  "onUpdate:modelValue": c[2] || (c[2] = (d) => u.value = d),
2211
2212
  label: "Transfer time",
@@ -2213,7 +2214,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2213
2214
  }, null, 8, ["modelValue", "rules"]),
2214
2215
  t.value ? (S(), T("div", Jo, [
2215
2216
  n("div", null, [
2216
- y(Q, {
2217
+ y(Y, {
2217
2218
  size: "md",
2218
2219
  color: "neutral-gray-200"
2219
2220
  })
@@ -2251,7 +2252,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2251
2252
  }
2252
2253
  ])
2253
2254
  }, [
2254
- x.value ? (S(), W(Q, {
2255
+ x.value ? (S(), W(Y, {
2255
2256
  key: 0,
2256
2257
  size: "md",
2257
2258
  color: "neutral-gray-200"
@@ -2439,7 +2440,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2439
2440
  }), da = { class: "flex flex-col py-8" }, ca = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ma = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, pa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, fa = {
2440
2441
  key: 0,
2441
2442
  class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
2442
- }, va = { class: "pt-8" }, bt = "ReceiveRequestViewSearchCriteria", Ta = /* @__PURE__ */ ce({
2443
+ }, va = { class: "pt-8" }, bt = "ReceiveRequestViewSearchCriteria", Da = /* @__PURE__ */ ce({
2443
2444
  __name: "ReceiveRequestView",
2444
2445
  setup(g) {
2445
2446
  const { t: w } = _e(), r = Te();
@@ -2493,7 +2494,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2493
2494
  "Received quantity": Z,
2494
2495
  "Ordered quantity": he,
2495
2496
  Unit: ke,
2496
- "Total cost": b.totalCost ? Ye(b.totalCost) : null
2497
+ "Total cost": b.totalCost ? Qe(b.totalCost) : null
2497
2498
  };
2498
2499
  })
2499
2500
  ), P = [
@@ -2571,7 +2572,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2571
2572
  label: w("inventory.common.export"),
2572
2573
  value: "export"
2573
2574
  }
2574
- ]), Y = N(() => {
2575
+ ]), Q = N(() => {
2575
2576
  const O = [
2576
2577
  {
2577
2578
  type: "string",
@@ -2611,10 +2612,10 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2611
2612
  }
2612
2613
  ];
2613
2614
  return [...O, ...f.isEnabled ? U : []];
2614
- }), Q = q(null), K = N(() => {
2615
- if (!Q.value)
2615
+ }), Y = q(null), K = N(() => {
2616
+ if (!Y.value)
2616
2617
  return e.purchaseOrders.value;
2617
- const O = Gt.build(Q.value);
2618
+ const O = Gt.build(Y.value);
2618
2619
  return e.purchaseOrders.value.filter((U) => {
2619
2620
  var P, d, b, R;
2620
2621
  return Jt(
@@ -2656,9 +2657,9 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2656
2657
  search: h.value,
2657
2658
  "onUpdate:search": U[1] || (U[1] = (R) => h.value = R),
2658
2659
  filterable: "",
2659
- "filter-attributes": Y.value,
2660
- filter: Q.value,
2661
- "onUpdate:filter": U[2] || (U[2] = (R) => Q.value = R)
2660
+ "filter-attributes": Q.value,
2661
+ filter: Y.value,
2662
+ "onUpdate:filter": U[2] || (U[2] = (R) => Y.value = R)
2662
2663
  }, null, 8, ["date-range", "search", "filter-attributes", "filter"]),
2663
2664
  (S(), W(P, {
2664
2665
  style: _t(s(D).tableHeight),
@@ -2736,5 +2737,5 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2736
2737
  }
2737
2738
  });
2738
2739
  export {
2739
- Ta as default
2740
+ Da as default
2740
2741
  };