@feedmepos/mf-inventory-portal 1.0.36-dev.6 → 1.0.36

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 (86) hide show
  1. package/dist/{App-p0OfVvta.js → App-BM-ivBnF.js} +46 -47
  2. package/dist/{ApprovalView-DPBSTlsb.js → ApprovalView-C4hE43Zp.js} +8 -8
  3. package/dist/{BindingsDialog-ADhnq8rd.js → BindingsDialog-BqjiXxGY.js} +8 -8
  4. package/dist/{BindingsPicker-C27I8rla.js → BindingsPicker-DqCR7P5k.js} +1 -1
  5. package/dist/{BindingsTable-BCrjUyRA.js → BindingsTable-DD_mVBtS.js} +1 -1
  6. package/dist/{ClosingDraftView-CAeA34YR.js → ClosingDraftView-CL09Xu9q.js} +49 -49
  7. package/dist/ClosingTemplateView-CDWMdZOk.js +1804 -0
  8. package/dist/{DeliveryOrderPrintPreview-BHaatock.js → DeliveryOrderPrintPreview-CNPUHnpX.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-n7mTgY-4.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DB6m8oSF.js} +3 -3
  10. package/dist/{FmMultiselectDialog-D3hCA4Hk.js → FmMultiselectDialog-DJ5cyN7G.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-GRMblS9k.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CPAnSCWa.js} +17 -17
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BMTgY6ZR.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CauBVtK9.js} +1 -1
  13. package/dist/{IngredientGroupView-CoQ5jJq-.js → IngredientGroupView-D0U1ivRz.js} +21 -21
  14. package/dist/IngredientsView-pgJWthql.js +1838 -0
  15. package/dist/IntegrationView-hERgFYsT.js +3303 -0
  16. package/dist/{InventoryBindingForm-rBxn4aQn.js → InventoryBindingForm-vO00BnZP.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DeAbgkjo.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bku7tdc-.js} +37 -37
  18. package/dist/{InventoryBindingSummary-DRnfFnXw.js → InventoryBindingSummary-DWOniuG6.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CFimf-EA.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C4_atZsW.js} +4 -4
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CkLC3e7r.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DUdI1WOL.js} +1 -1
  21. package/dist/{PublishView-CWPu6VU5.js → PublishView-enVS6QHQ.js} +8 -8
  22. package/dist/{PurchaseOrderPrintPreview-BB-UHWyM.js → PurchaseOrderPrintPreview-Z769Yvkh.js} +1 -1
  23. package/dist/{ReceiveRequestView-DzE2O14-.js → ReceiveRequestView-BYYWrgNX.js} +773 -789
  24. package/dist/{RecipeView-CdFqHWFg.js → RecipeView-CU9pkFiv.js} +38 -39
  25. package/dist/{StockView-2QkNXA2I.js → StockView-iqR-h1Mg.js} +68 -69
  26. package/dist/{SupplierView-BmIvZtRX.js → SupplierView-DFzgQ53O.js} +11 -12
  27. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-KakO6jI_.js → TransferDetails.vue_vue_type_script_setup_true_lang-BEVlutvf.js} +67 -68
  28. package/dist/{TransferTemplateView-CiwTECtX.js → TransferTemplateView-EZ_z14kY.js} +107 -108
  29. package/dist/{UnitView-xcRT1636.js → UnitView-gYD75UdW.js} +19 -19
  30. package/dist/{WarehouseView-DFUkzdn3.js → WarehouseView-COLgYw-j.js} +14 -14
  31. package/dist/api/inventory.d.ts +0 -4
  32. package/dist/api/netsuite.d.ts +2 -7
  33. package/dist/app-DMbkakEB.js +124324 -0
  34. package/dist/app.d.ts +0 -9
  35. package/dist/app.js +6 -6
  36. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +0 -1
  37. package/dist/components/row-action.enum.d.ts +1 -2
  38. package/dist/components/shell/inventory/binding-ui.vue.d.ts +0 -1
  39. package/dist/{decimal-tvbOiScu.js → decimal-BLjZMddB.js} +1 -1
  40. package/dist/format-unit-display-BkXJg2Ux.js +1230 -0
  41. package/dist/{index-5P4r_6vv.js → index-Bj0hlHvy.js} +3 -4
  42. package/dist/{index-DunD6flC.js → index-C5rv3Yu2.js} +1 -1
  43. package/dist/{stock-D4Q1lqHe.js → stock-DjOpPBxG.js} +1 -1
  44. package/dist/stores/feature.d.ts +2 -0
  45. package/dist/stores/integration/netsuite.d.ts +2 -7
  46. package/dist/stores/inventory.d.ts +0 -9
  47. package/dist/{supplier-nyMBwI1e.js → supplier-BRKfl2V3.js} +25 -26
  48. package/dist/tsconfig.app.tsbuildinfo +1 -1
  49. package/dist/{use-ingredient-select-dialog-CucQZ-Oc.js → use-ingredient-select-dialog-DRIWNN3P.js} +1 -1
  50. package/dist/{use-inventory-binding-dialog-ZF-LeZNi.js → use-inventory-binding-dialog-DLnKkFpe.js} +1 -1
  51. package/dist/views/adjustment-template/wastage-template/actions.d.ts +1 -4
  52. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +0 -8
  53. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +0 -24
  54. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +0 -1
  55. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1 -16
  56. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +0 -12
  57. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +0 -2
  58. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +0 -1
  59. package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +0 -2
  60. package/dist/views/integration/components/netsuite/InventoryTransferOutTable.vue.d.ts +2 -0
  61. package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +0 -4
  62. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -17
  63. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +0 -2
  64. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +0 -4
  65. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +0 -1
  66. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +0 -4
  67. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +0 -24
  68. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +0 -24
  69. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +0 -2
  70. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +0 -2
  71. package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +0 -2
  72. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +0 -2
  73. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +0 -1
  74. package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +0 -3
  75. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1 -16
  76. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +0 -12
  77. package/dist/vue-i18n-x8-PdKzv.js +2365 -0
  78. package/package.json +1 -1
  79. package/dist/ClosingTemplateView-DdtZPTyt.js +0 -1849
  80. package/dist/IngredientsView-B0n-ed2z.js +0 -1885
  81. package/dist/IntegrationView-CUacWvt2.js +0 -6531
  82. package/dist/api/duplicate-template.d.ts +0 -5
  83. package/dist/app-D8WIbWK8.js +0 -102338
  84. package/dist/feature-CXf7RRWE.js +0 -19100
  85. package/dist/format-unit-display-C42DxO2e.js +0 -1275
  86. package/dist/vue-i18n-BmNDS6W5.js +0 -2365
@@ -1,14 +1,13 @@
1
- import { a2 as lt, u as de, aN as O, b as De, a7 as ct, a9 as ut, aa as dt, aO as mt, d as Qe, e as et, $ as Ve, aP as ft, a4 as Le, Q as ke, i as ie, aQ as tt, ae as xe, f as Ye, h as J, D as re, aw as ue, aR as rt, aS as st, a8 as pt, au as Xe, a6 as Oe, ak as Pe, ax as yt } from "./app-D8WIbWK8.js";
2
- import { ref as M, computed as Z, h as A, defineComponent as pe, reactive as vt, onMounted as nt, resolveComponent as z, openBlock as b, createBlock as ae, withCtx as se, createElementVNode as a, createVNode as I, unref as h, createElementBlock as N, toDisplayString as k, createCommentVNode as V, Fragment as te, renderList as me, watch as ht, isRef as bt, normalizeClass as Ne, createTextVNode as Ie, resolveDynamicComponent as gt } from "vue";
3
- import { F as _t } from "./decimal-tvbOiScu.js";
4
- import { u as qe, F as St, a as Fe } from "./feature-CXf7RRWE.js";
1
+ import { a3 as lt, u as de, aN as O, c as De, b as qe, a8 as ct, aa as ut, ab as dt, aO as mt, e as Ye, f as et, a0 as Ve, aP as ft, a5 as Le, T as ke, j as ie, aQ as pt, aR as tt, af as xe, h as Qe, i as J, D as re, aw as ue, aS as rt, aT as st, aU as Pe, a9 as yt, au as Xe, a7 as Oe, ak as Ie, ax as vt } from "./app-DMbkakEB.js";
2
+ import { ref as M, computed as Z, h as A, defineComponent as pe, reactive as ht, onMounted as nt, resolveComponent as z, openBlock as b, createBlock as ae, withCtx as se, createElementVNode as a, createVNode as I, unref as h, createElementBlock as N, toDisplayString as k, createCommentVNode as V, Fragment as te, renderList as me, watch as bt, isRef as gt, normalizeClass as Ne, createTextVNode as Fe, resolveDynamicComponent as _t } from "vue";
3
+ import { F as St } from "./decimal-BLjZMddB.js";
5
4
  import { useCoreStore as Ae, useI18n as at } from "@feedmepos/mf-common";
6
- import { b as wt, u as Rt, P as fe, f as Ot } from "./format-unit-display-C42DxO2e.js";
5
+ import { b as wt, u as Rt, P as fe, f as Ot } from "./format-unit-display-BkXJg2Ux.js";
7
6
  import { E as Nt } from "./empty-placeholder-wf6-BWE8.js";
8
7
  import { useDialog as Me, useSnackbar as Te, components as Je, FmButtonVariant as ee, useProxiedModel as kt } from "@feedmepos/ui-library";
9
- import { _ as xt, F as Dt, a as qt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-GRMblS9k.js";
8
+ import { _ as xt, F as Dt, a as qt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CPAnSCWa.js";
10
9
  import { u as At, R as Ze } from "./usePromise-CbVUCxhj.js";
11
- import { u as Tt } from "./index-5P4r_6vv.js";
10
+ import { u as Tt } from "./index-Bj0hlHvy.js";
12
11
  const $e = lt((_, e) => {
13
12
  const i = de(), g = Ae();
14
13
  return {
@@ -137,7 +136,7 @@ const $e = lt((_, e) => {
137
136
  }
138
137
  };
139
138
  function it() {
140
- const _ = de(), e = $e(), i = qe();
139
+ const _ = de(), e = $e(), i = De();
141
140
  async function g(t, l) {
142
141
  const n = _.currentLocationDBName;
143
142
  return t.doc.supplier.internal && t.operation === O.enum.confirmDraft && (t.operation = O.enum.submitRequest), await e.processPurchaseOrder(t, l || n);
@@ -150,9 +149,9 @@ function it() {
150
149
  }
151
150
  var Ue = /* @__PURE__ */ ((_) => (_.RECEIVE_REQUEST = "receive/request", _.APPROVAL = "approval", _))(Ue || {});
152
151
  const we = M(), Be = M();
153
- function Es(_, e) {
154
- const i = Me(), g = de(), d = qe();
155
- De();
152
+ function Bs(_, e) {
153
+ const i = Me(), g = de(), d = De();
154
+ qe();
156
155
  const t = wt(), l = Rt(), n = M(!1), s = Te(), y = $e(), S = M(new Array()), f = M(
157
156
  e != null && e.startDate && (e != null && e.endDate) ? e : ct()
158
157
  ), c = Z(() => {
@@ -165,7 +164,7 @@ function Es(_, e) {
165
164
  async function D(x) {
166
165
  function r(R) {
167
166
  const w = {
168
- mode: Qe.CREATE,
167
+ mode: Ye.CREATE,
169
168
  modelValue: x || void 0,
170
169
  show: !0,
171
170
  "onUpdate:show"($) {
@@ -197,7 +196,7 @@ function Es(_, e) {
197
196
  }
198
197
  function q(x) {
199
198
  const r = {
200
- mode: Qe.UPDATE,
199
+ mode: Ye.UPDATE,
201
200
  modelValue: et(x),
202
201
  show: !0,
203
202
  "onUpdate:show"(m) {
@@ -311,7 +310,7 @@ function Es(_, e) {
311
310
  payloads: []
312
311
  },
313
312
  transferTo: R
314
- }), await new Promise((Y) => setTimeout(Y, 1e3));
313
+ }), await new Promise((Q) => setTimeout(Q, 1e3));
315
314
  const W = de().currentLocationDBName.startsWith("restaurant_");
316
315
  r === O.enum.confirmDraft && x.effectiveAt && W ? s.open({
317
316
  title: "Success",
@@ -394,7 +393,7 @@ function $t(_, e) {
394
393
  const t = d.received.find((l) => l.sku._id === _._id);
395
394
  return t && (g = Le(g, t.amount)), g;
396
395
  },
397
- _t.toPrecision(ke(0), _.unit.precision)
396
+ St.toPrecision(ke(0), _.unit.precision)
398
397
  );
399
398
  }
400
399
  function Ct(_) {
@@ -428,7 +427,7 @@ function Ct(_) {
428
427
  quantity: ie(T.quantity, !1),
429
428
  unit: (K == null ? void 0 : K.abbrev) || F.unit.abbrev,
430
429
  received: G,
431
- cost: T.totalCost ? `${T.totalCost.currency} ${St.toFormatString({
430
+ cost: T.totalCost ? `${T.totalCost.currency} ${pt.toFormatString({
432
431
  value: T.totalCost
433
432
  })}` : void 0
434
433
  };
@@ -534,8 +533,8 @@ const be = {
534
533
  value: O.enum.returnStock
535
534
  }
536
535
  };
537
- function Ls(_, e) {
538
- const i = de(), g = De(), d = Ae(), { t } = at();
536
+ function Es(_, e) {
537
+ const i = de(), g = qe(), d = Ae(), { t } = at();
539
538
  function l(c) {
540
539
  switch (c.status) {
541
540
  case "DRAFT":
@@ -659,7 +658,7 @@ function Ls(_, e) {
659
658
  id: "action",
660
659
  cell(u) {
661
660
  const o = u.row.original, v = l(o);
662
- return Ye(v, (D) => s(D, o));
661
+ return Qe(v, (D) => s(D, o));
663
662
  },
664
663
  enableSorting: !1,
665
664
  size: 40,
@@ -767,7 +766,7 @@ function Ls(_, e) {
767
766
  ...q,
768
767
  translationKey: "inventory.transfer.receiveRequest.details.printDeliveryOrder"
769
768
  } : q);
770
- return Ye(
769
+ return Qe(
771
770
  D,
772
771
  (q) => o.purchaseOrder ? s(q, o.purchaseOrder, o) : void 0
773
772
  );
@@ -828,7 +827,7 @@ const Pt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
828
827
  },
829
828
  emits: ["update:show"],
830
829
  setup(_, { emit: e }) {
831
- const i = _, g = vt({
830
+ const i = _, g = ht({
832
831
  id: "",
833
832
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
834
833
  items: []
@@ -1025,7 +1024,7 @@ const Pt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
1025
1024
  }
1026
1025
  };
1027
1026
  function Et() {
1028
- const _ = qe();
1027
+ const _ = De();
1029
1028
  return {
1030
1029
  ableToMarkReceived(e) {
1031
1030
  if (!e || e.status !== ue.enum.RECEIVING)
@@ -1054,7 +1053,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1054
1053
  scope: {}
1055
1054
  },
1056
1055
  setup(_) {
1057
- const e = _, i = De(), g = Te(), d = Me(), t = M(!1);
1056
+ const e = _, i = qe(), g = Te(), d = Me(), t = M(!1);
1058
1057
  Z(() => {
1059
1058
  var S, f, c, u;
1060
1059
  let n = !0;
@@ -1124,10 +1123,10 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1124
1123
  }, Mt = { class: "flex flex-col gap-4" }, jt = { class: "fm-typo-en-body-lg-600" }, Kt = {
1125
1124
  key: 0,
1126
1125
  class: "flex flex-col gap-4"
1127
- }, zt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ht = { class: "fm-typo-en-body-lg-600" }, Gt = { key: 0 }, Wt = { key: 1 }, Qt = {
1126
+ }, zt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ht = { class: "fm-typo-en-body-lg-600" }, Gt = { key: 0 }, Wt = { key: 1 }, Yt = {
1128
1127
  key: 1,
1129
1128
  class: "flex flex-col gap-4"
1130
- }, Yt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xt = { class: "fm-typo-en-body-lg-600" }, Jt = { key: 0 }, Zt = { key: 1 }, er = {
1129
+ }, Qt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xt = { class: "fm-typo-en-body-lg-600" }, Jt = { key: 0 }, Zt = { key: 1 }, er = {
1131
1130
  key: 2,
1132
1131
  class: "flex flex-col gap-4"
1133
1132
  }, tr = { class: "fm-typo-en-body-lg-600" }, rr = {
@@ -1144,7 +1143,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1144
1143
  scope: {}
1145
1144
  },
1146
1145
  setup(_) {
1147
- const e = _, i = De(), g = $e(), d = M(e.poRequest);
1146
+ const e = _, i = qe(), g = $e(), d = M(e.poRequest);
1148
1147
  nt(async () => {
1149
1148
  var s;
1150
1149
  if (!e.poRequest && ((s = e.purchaseOrder) != null && s._id)) {
@@ -1182,8 +1181,8 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1182
1181
  (v = (o = s.purchaseOrder) == null ? void 0 : o.netSuite) != null && v.id ? (b(), N("span", Gt, k((q = (D = s.purchaseOrder) == null ? void 0 : D.netSuite) == null ? void 0 : q.refNo) + " (" + k((T = (j = s.purchaseOrder) == null ? void 0 : j.netSuite) == null ? void 0 : T.id) + ") ", 1)) : (b(), N("span", Wt, "N/A"))
1183
1182
  ])
1184
1183
  ])) : V("", !0),
1185
- !s.isTransferBetweenOutlets && d.value || s.scope === h(Ue).APPROVAL ? (b(), N("div", Qt, [
1186
- a("div", Yt, " (Request) NetSuite " + k(s.transferType === h(fe).PURCHASE ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
1184
+ !s.isTransferBetweenOutlets && d.value || s.scope === h(Ue).APPROVAL ? (b(), N("div", Yt, [
1185
+ a("div", Qt, " (Request) NetSuite " + k(s.transferType === h(fe).PURCHASE ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
1187
1186
  a("div", Xt, [
1188
1187
  (K = (F = d.value) == null ? void 0 : F.netSuite) != null && K.id ? (b(), N("span", Jt, k((le = (G = d.value) == null ? void 0 : G.netSuite) == null ? void 0 : le.refNo) + " (" + k((ye = (oe = d.value) == null ? void 0 : oe.netSuite) == null ? void 0 : ye.id) + ") ", 1)) : (b(), N("span", Zt, "N/A"))
1189
1188
  ])
@@ -1390,7 +1389,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1390
1389
  }, Vr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Mr = { class: "fm-typo-en-body-lg-600" }, jr = {
1391
1390
  key: 4,
1392
1391
  class: "flex flex-col gap-4"
1393
- }, Kr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, zr = { class: "fm-typo-en-body-lg-600" }, Hr = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Gr = { class: "flex flex-col gap-8" }, Wr = { class: "flex gap-8 items-center" }, Qr = { class: "flex-1 fm-typo-en-body-lg-600" }, Yr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-4" }, Xr = { class: "flex w-full gap-4" }, Jr = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Zr = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, es = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, ts = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, rs = {
1392
+ }, Kr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, zr = { class: "fm-typo-en-body-lg-600" }, Hr = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Gr = { class: "flex flex-col gap-8" }, Wr = { class: "flex gap-8 items-center" }, Yr = { class: "flex-1 fm-typo-en-body-lg-600" }, Qr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-4" }, Xr = { class: "flex w-full gap-4" }, Jr = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Zr = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, es = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, ts = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, rs = {
1394
1393
  key: 0,
1395
1394
  class: "line-clamp-1 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
1396
1395
  }, ss = { class: "py-8" }, ns = { class: "flex justify-end gap-4 items-center" }, as = { class: "fm-typo-en-body-lg-600" }, os = {
@@ -1414,7 +1413,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1414
1413
  }, Ss = { class: "flex-1 flex flex-col items-center" }, ws = {
1415
1414
  class: "py-12 flex flex-col gap-4 flex-1",
1416
1415
  name: "delivery details"
1417
- }, Rs = { class: "flex flex-col gap-8" }, Os = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ns = { class: "flex flex-col gap-4" }, ks = { class: "flex gap-8 xs:flex-col" }, Us = /* @__PURE__ */ pe({
1416
+ }, Rs = { class: "flex flex-col gap-8" }, Os = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ns = { class: "flex flex-col gap-4" }, ks = { class: "flex gap-8 xs:flex-col" }, Ls = /* @__PURE__ */ pe({
1418
1417
  __name: "TransferDetails",
1419
1418
  props: {
1420
1419
  poRequest: {},
@@ -1428,7 +1427,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1428
1427
  },
1429
1428
  emits: ["update:show", "submitted"],
1430
1429
  setup(_, { emit: e }) {
1431
- const i = _, g = e, d = Me(), t = Te(), l = qe(), n = de(), s = Ae(), y = Z(
1430
+ const i = _, g = e, d = Me(), t = Te(), l = De(), n = de(), s = Ae(), y = Z(
1432
1431
  () => {
1433
1432
  var r, m;
1434
1433
  return {
@@ -1460,16 +1459,16 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1460
1459
  };
1461
1460
  let R = [];
1462
1461
  try {
1463
- r.state === Ze.error ? (console.error("Error fetching workflow config:", r.error), R = Fe.getAvailableActions({
1462
+ r.state === Ze.error ? (console.error("Error fetching workflow config:", r.error), R = Pe.getAvailableActions({
1464
1463
  ...m,
1465
- orderConfig: Fe.getDefaultConfig()
1464
+ orderConfig: Pe.getDefaultConfig()
1466
1465
  }).actions.filter(
1467
1466
  (w) => (
1468
1467
  // TODO: create receiveStock & processRequest dialog
1469
1468
  // to create their payload
1470
1469
  w !== O.enum.receiveStock && w !== O.enum.processRequest && w !== O.enum.closeRequest
1471
1470
  )
1472
- )) : R = Fe.getAvailableActions({
1471
+ )) : R = Pe.getAvailableActions({
1473
1472
  ...m,
1474
1473
  orderConfig: r.data
1475
1474
  }).actions.filter(
@@ -1489,14 +1488,14 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1489
1488
  value: "deliveryHistory"
1490
1489
  }
1491
1490
  ]), G = M(K.value[0]);
1492
- ht(
1491
+ bt(
1493
1492
  () => i.show,
1494
1493
  (r) => {
1495
1494
  r && (G.value = K.value[0]);
1496
1495
  }
1497
1496
  );
1498
1497
  async function le(r, m, R, w, $) {
1499
- return new Promise((W, Y) => {
1498
+ return new Promise((W, Q) => {
1500
1499
  d.open({
1501
1500
  closeButton: !1,
1502
1501
  title: w.title,
@@ -1551,7 +1550,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1551
1550
  transferTo: (E = (H = i.poRequest) == null ? void 0 : H.to) == null ? void 0 : E.dbName
1552
1551
  }).delayed(1e3), W("submitted");
1553
1552
  } catch (X) {
1554
- Y(X);
1553
+ Q(X);
1555
1554
  }
1556
1555
  }).onSecondary(() => {
1557
1556
  W("cancelled");
@@ -1562,7 +1561,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1562
1561
  });
1563
1562
  }
1564
1563
  async function oe(r) {
1565
- var w, $, W, Y;
1564
+ var w, $, W, Q;
1566
1565
  if (r === O.enum.receiveStock)
1567
1566
  return;
1568
1567
  const m = ot[r];
@@ -1583,7 +1582,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1583
1582
  r === O.enum.completeReceive) && l.autoReceiveWarehouse)
1584
1583
  p.autoReceive = !0;
1585
1584
  else if ((r === O.enum.approveRequest || r === O.enum.processRequest) && l.acceptRequireFulfillment) {
1586
- const B = ($ = (w = i.poRequest) == null ? void 0 : w.from) == null ? void 0 : $.dbName, H = (Y = (W = i.poRequest) == null ? void 0 : W.to) == null ? void 0 : Y.dbName;
1585
+ const B = ($ = (w = i.poRequest) == null ? void 0 : w.from) == null ? void 0 : $.dbName, H = (Q = (W = i.poRequest) == null ? void 0 : W.to) == null ? void 0 : Q.dbName;
1587
1586
  if (B && H && (B.startsWith("warehouse_") || H.startsWith("warehouse_"))) {
1588
1587
  const E = await new Promise((X, L) => {
1589
1588
  d.open({
@@ -1629,7 +1628,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1629
1628
  var r, m;
1630
1629
  return ((r = i.purchaseOrder) == null ? void 0 : r.status) === ue.enum.RECEIVING || ((m = i.purchaseOrder) == null ? void 0 : m.status) === ue.enum.COMPLETE;
1631
1630
  }), Ce = Z(() => {
1632
- var W, Y, p;
1631
+ var W, Q, p;
1633
1632
  const R = (((W = i.purchaseOrder) == null ? void 0 : W.deliveryOrder) ?? []).flatMap((C) => C.received ?? []).reduce(
1634
1633
  (C, B) => {
1635
1634
  const H = C[B.sku._id] ?? [];
@@ -1639,7 +1638,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1639
1638
  ), w = Object.entries(R).reduce(
1640
1639
  (C, [B, H]) => {
1641
1640
  const E = H.reduce((X, L) => {
1642
- const ne = pt(
1641
+ const ne = yt(
1643
1642
  X,
1644
1643
  Math.max(X.precision, L.amount.precision)
1645
1644
  );
@@ -1648,13 +1647,13 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1648
1647
  return C[B] = E, C;
1649
1648
  },
1650
1649
  {}
1651
- ), $ = ((Y = i.purchaseOrder) == null ? void 0 : Y.items) ?? [];
1650
+ ), $ = ((Q = i.purchaseOrder) == null ? void 0 : Q.items) ?? [];
1652
1651
  for (const C of $)
1653
1652
  w[p = C.sku._id] ?? (w[p] = ke(0));
1654
1653
  return w;
1655
1654
  }), ce = Z(() => {
1656
- var W, Y;
1657
- const r = ((W = i.purchaseOrder) == null ? void 0 : W.deliveryOrder) ?? [], m = ((Y = i.purchaseOrder) == null ? void 0 : Y.deliveryFullfillment) ?? [], R = [
1655
+ var W, Q;
1656
+ const r = ((W = i.purchaseOrder) == null ? void 0 : W.deliveryOrder) ?? [], m = ((Q = i.purchaseOrder) == null ? void 0 : Q.deliveryFullfillment) ?? [], R = [
1658
1657
  ...r.map((p) => ({
1659
1658
  createdAt: p.createdAt,
1660
1659
  type: "grn",
@@ -1685,12 +1684,12 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1685
1684
  ];
1686
1685
  return {
1687
1686
  header: "Received",
1688
- date: Pe(new Date(p.createdAt)),
1687
+ date: Ie(new Date(p.createdAt)),
1689
1688
  info: [
1690
1689
  {
1691
1690
  label: "Adjustment date",
1692
1691
  values: [
1693
- p.adjustment ? Pe(new Date(yt(p.adjustment))) : "-"
1692
+ p.adjustment ? Ie(new Date(vt(p.adjustment))) : "-"
1694
1693
  ]
1695
1694
  },
1696
1695
  {
@@ -1700,7 +1699,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1700
1699
  {
1701
1700
  label: "Received items",
1702
1701
  values: p.received.map((P) => {
1703
- var Q;
1702
+ var Y;
1704
1703
  return A("div", [
1705
1704
  A(
1706
1705
  "div",
@@ -1754,7 +1753,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1754
1753
  {
1755
1754
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
1756
1755
  },
1757
- ((Q = P.measurement) == null ? void 0 : Q.abbrev) ?? P.sku.unit.abbrev
1756
+ ((Y = P.measurement) == null ? void 0 : Y.abbrev) ?? P.sku.unit.abbrev
1758
1757
  )
1759
1758
  ]
1760
1759
  ),
@@ -1793,7 +1792,7 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1793
1792
  const C = m.findIndex((E) => E.id === p.id);
1794
1793
  return {
1795
1794
  header: "Fulfillment",
1796
- date: Pe(new Date(p.createdAt)),
1795
+ date: Ie(new Date(p.createdAt)),
1797
1796
  info: [
1798
1797
  {
1799
1798
  label: "Sequence",
@@ -1902,11 +1901,11 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1902
1901
  });
1903
1902
  return (r, m) => {
1904
1903
  var E, X;
1905
- const R = z("FmButtonGroup"), w = z("FmChip"), $ = z("FmMenuDivider"), W = z("FmCard"), Y = z("FmIcon"), p = z("FmTooltip"), C = z("FmSpacer"), B = z("FmButton"), H = z("FmSideSheet");
1904
+ const R = z("FmButtonGroup"), w = z("FmChip"), $ = z("FmMenuDivider"), W = z("FmCard"), Q = z("FmIcon"), p = z("FmTooltip"), C = z("FmSpacer"), B = z("FmButton"), H = z("FmSideSheet");
1906
1905
  return b(), ae(H, {
1907
1906
  header: h(f)("inventory.transfer.receiveRequest.details.title") + ((E = r.purchaseOrder) != null && E.seqNumber ? ` #${(X = r.purchaseOrder) == null ? void 0 : X.seqNumber}` : ""),
1908
1907
  modelValue: h(F),
1909
- "onUpdate:modelValue": m[5] || (m[5] = (L) => bt(F) ? F.value = L : null),
1908
+ "onUpdate:modelValue": m[5] || (m[5] = (L) => gt(F) ? F.value = L : null),
1910
1909
  "dismiss-away": v.value,
1911
1910
  "close-button": "",
1912
1911
  "max-width": 600
@@ -1929,14 +1928,14 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1929
1928
  class: "flex flex-col gap-8 px-12 py-16"
1930
1929
  }, {
1931
1930
  default: se(() => {
1932
- var U, P, Q, ve, he, Re, je, Ke, ze, He, Ge, We;
1931
+ var U, P, Y, ve, he, Re, je, Ke, ze, He, Ge, We;
1933
1932
  return [
1934
1933
  a("div", Sr, [
1935
1934
  a("div", wr, k(h(f)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
1936
1935
  a("div", null, [
1937
1936
  I(w, {
1938
1937
  label: h(f)(`inventory.transfer.status.${(U = r.purchaseOrder) == null ? void 0 : U.status}`),
1939
- class: Ne(`fm-status-badge fm-status-badge-${(Q = (P = r.purchaseOrder) == null ? void 0 : P.status) == null ? void 0 : Q.toLocaleLowerCase("en-us")}`),
1938
+ class: Ne(`fm-status-badge fm-status-badge-${(Y = (P = r.purchaseOrder) == null ? void 0 : P.status) == null ? void 0 : Y.toLocaleLowerCase("en-us")}`),
1940
1939
  compact: ""
1941
1940
  }, null, 8, ["label", "class"])
1942
1941
  ])
@@ -1991,8 +1990,8 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
1991
1990
  a("div", Hr, [
1992
1991
  a("div", Gr, [
1993
1992
  a("div", Wr, [
1994
- a("span", Qr, [
1995
- Ie(k(ye.value ? h(f)("inventory.transfer.receiveRequest.details.receivedItems") : h(f)("inventory.transfer.receiveRequest.details.requestedItems")) + " ", 1),
1993
+ a("span", Yr, [
1994
+ Fe(k(ye.value ? h(f)("inventory.transfer.receiveRequest.details.receivedItems") : h(f)("inventory.transfer.receiveRequest.details.requestedItems")) + " ", 1),
1996
1995
  (ne = (L = r.purchaseOrder) == null ? void 0 : L.netSuite) != null && ne.missingItems && ((_e = (ge = r.purchaseOrder) == null ? void 0 : ge.netSuite) == null ? void 0 : _e.missingItems.length) > 0 ? (b(), ae(p, {
1997
1996
  key: 0,
1998
1997
  variant: "rich",
@@ -2002,22 +2001,22 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
2002
2001
  content: se(() => {
2003
2002
  var U, P;
2004
2003
  return [
2005
- a("div", Yr, [
2006
- (b(!0), N(te, null, me((P = (U = r.purchaseOrder) == null ? void 0 : U.netSuite) == null ? void 0 : P.missingItems, (Q, ve) => (b(), N("div", {
2004
+ a("div", Qr, [
2005
+ (b(!0), N(te, null, me((P = (U = r.purchaseOrder) == null ? void 0 : U.netSuite) == null ? void 0 : P.missingItems, (Y, ve) => (b(), N("div", {
2007
2006
  class: "flex justify-center align-middle",
2008
2007
  key: ve
2009
2008
  }, [
2010
- I(Y, {
2009
+ I(Q, {
2011
2010
  name: "arrow_right",
2012
2011
  size: "sm"
2013
2012
  }),
2014
- Ie(" " + k(`(${Q.netSuiteId}) ${Q.name}: ${Q.reason}`), 1)
2013
+ Fe(" " + k(`(${Y.netSuiteId}) ${Y.name}: ${Y.reason}`), 1)
2015
2014
  ]))), 128))
2016
2015
  ])
2017
2016
  ];
2018
2017
  }),
2019
2018
  default: se(() => [
2020
- I(Y, {
2019
+ I(Q, {
2021
2020
  name: "error",
2022
2021
  color: "#ff2c2c",
2023
2022
  size: "sm"
@@ -2110,19 +2109,19 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
2110
2109
  }, {
2111
2110
  default: se(() => [
2112
2111
  a("div", Rs, [
2113
- (b(!0), N(te, null, me(U.info, (Q, ve) => (b(), N("div", {
2112
+ (b(!0), N(te, null, me(U.info, (Y, ve) => (b(), N("div", {
2114
2113
  key: ve,
2115
2114
  class: "flex flex-col gap-4"
2116
2115
  }, [
2117
- a("div", Os, k(Q == null ? void 0 : Q.label), 1),
2116
+ a("div", Os, k(Y == null ? void 0 : Y.label), 1),
2118
2117
  a("div", Ns, [
2119
- (b(!0), N(te, null, me(Q == null ? void 0 : Q.values, (he, Re) => (b(), N("div", {
2118
+ (b(!0), N(te, null, me(Y == null ? void 0 : Y.values, (he, Re) => (b(), N("div", {
2120
2119
  key: Re,
2121
2120
  class: "fm-typo-en-body-lg-600"
2122
2121
  }, [
2123
2122
  typeof he == "string" ? (b(), N(te, { key: 0 }, [
2124
- Ie(k(he), 1)
2125
- ], 64)) : (b(), ae(gt(he), { key: 1 }))
2123
+ Fe(k(he), 1)
2124
+ ], 64)) : (b(), ae(_t(he), { key: 1 }))
2126
2125
  ]))), 128))
2127
2126
  ])
2128
2127
  ]))), 128))
@@ -2197,9 +2196,9 @@ const Lt = { class: "flex flex-row-reverse" }, Ut = /* @__PURE__ */ pe({
2197
2196
  });
2198
2197
  export {
2199
2198
  Ue as P,
2200
- Us as _,
2201
- Es as a,
2202
- Ls as b,
2199
+ Ls as _,
2200
+ Bs as a,
2201
+ Es as b,
2203
2202
  $t as g,
2204
2203
  $e as u
2205
2204
  };