@feedmepos/mf-inventory-portal 1.2.7-dev.3 → 1.2.7-dev.4

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 (55) hide show
  1. package/dist/{App-JINYgYlH.js → App-C36fMhxq.js} +1 -1
  2. package/dist/{ApprovalView-BOVW2i8o.js → ApprovalView-BK-UXBwv.js} +26 -26
  3. package/dist/{BindingsDialog-BKGLpdd-.js → BindingsDialog-C5ry8Cg7.js} +2 -2
  4. package/dist/{BindingsPicker-Tml6Oxod.js → BindingsPicker-D1lrIB-Y.js} +1 -1
  5. package/dist/{BindingsTable-DixFHTyC.js → BindingsTable-CoWyge2-.js} +1 -1
  6. package/dist/{ClosingDraftView-nYSugXo0.js → ClosingDraftView-FFi85ylu.js} +203 -203
  7. package/dist/{ClosingTemplateView-C-gfh6s5.js → ClosingTemplateView-BvSH7TM0.js} +53 -53
  8. package/dist/{DeliveryOrderPrintPreview-BM9ZkrEw.js → DeliveryOrderPrintPreview-BVVWnadB.js} +9 -9
  9. package/dist/{FmAdminBadge-CiWXN0lw.js → FmAdminBadge-DtBVrN_M.js} +6 -6
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dn_c22ms.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CSigrMC2.js} +21 -21
  11. package/dist/{FmMultiselectDialog-Bvekm8TI.js → FmMultiselectDialog-Df50mxnw.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D62ZdWwZ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CdSQVfaU.js} +27 -27
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BudJCuVV.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-A7Pgq3Sl.js} +1 -1
  14. package/dist/{IngredientGroupView-DTQzZBKp.js → IngredientGroupView-BVM3Um9Z.js} +12 -12
  15. package/dist/IngredientsView-75ahXQeJ.js +2271 -0
  16. package/dist/{IntegrationView-CN6amPy_.js → IntegrationView-DEUOEn_W.js} +84 -84
  17. package/dist/{InventoryBindingForm-Dl9n2GJn.js → InventoryBindingForm-C2HvBwlT.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-4N9XvkmZ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CXJSFCLP.js} +41 -41
  19. package/dist/{InventoryBindingSummary-eAPN3X_L.js → InventoryBindingSummary-B-V9QkyH.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CSp3zFJ3.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BELqcyvD.js} +1 -1
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D2L9cWwt.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BBE5_txM.js} +5 -5
  22. package/dist/{PublishView-BzN2wu_M.js → PublishView-DKkCs9F8.js} +17 -17
  23. package/dist/{PurchaseOrderPrintPreview-BR40N-ew.js → PurchaseOrderPrintPreview-BvFR-uQk.js} +9 -9
  24. package/dist/{ReceiveRequestView-DtYFO3Wi.js → ReceiveRequestView-BIrBMqdY.js} +80 -80
  25. package/dist/{RecipeView-DlK-VV0_.js → RecipeView-CI_Tec4J.js} +49 -49
  26. package/dist/{StockView-B4acF5it.js → StockView-Bx3lqHZg.js} +327 -327
  27. package/dist/{SupplierView-Cs8-A2B0.js → SupplierView-BT2aZGQE.js} +1103 -1016
  28. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Dzm9Q3SP.js → TransferDetails.vue_vue_type_script_setup_true_lang-DWdnLRCB.js} +6 -6
  29. package/dist/{TransferTemplateView-DlzKEqem.js → TransferTemplateView-DQtlCFze.js} +88 -87
  30. package/dist/{UnitView-BsYiE8aM.js → UnitView-h61yFjgP.js} +59 -59
  31. package/dist/{WarehouseView-DIW3iPB6.js → WarehouseView-I8GqyD2C.js} +25 -25
  32. package/dist/api/netsuite.d.ts +3 -0
  33. package/dist/api/purchase-order-template.d.ts +1 -0
  34. package/dist/{app-Bszzf6y-.js → app-CxSrmhCK.js} +3107 -3010
  35. package/dist/app.d.ts +57 -0
  36. package/dist/app.js +3 -3
  37. package/dist/components/FmInventoryTableToolbar.vue.d.ts +9 -2
  38. package/dist/components/SubsidiaryTreeDialog.vue.d.ts +2 -0
  39. package/dist/{decimal-BoNXDQoB.js → decimal-DpfcXNky.js} +1 -1
  40. package/dist/{format-unit-display-Dbabkv1O.js → format-unit-display-xov4MvuI.js} +368 -400
  41. package/dist/{index-DlhdJ3A4.js → index-B4hWNXtZ.js} +1 -1
  42. package/dist/{index-Dk2QEFDL.js → index-CwzV_5fz.js} +1 -1
  43. package/dist/purchase-order-template-DkBl6qMP.js +41 -0
  44. package/dist/{stock-BXV3de2I.js → stock-Nt176YY7.js} +1 -1
  45. package/dist/stores/integration/netsuite.d.ts +10 -0
  46. package/dist/{supplier-CKKYVzDf.js → supplier-B7gAUwhb.js} +1 -1
  47. package/dist/tsconfig.app.tsbuildinfo +1 -1
  48. package/dist/{use-ingredient-select-dialog-DEmxBaQb.js → use-ingredient-select-dialog-9HkEvXXS.js} +5 -5
  49. package/dist/{use-inventory-binding-dialog-DCN0J-F8.js → use-inventory-binding-dialog-pSVgqxMM.js} +8 -8
  50. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +16 -0
  51. package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +4 -0
  52. package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
  53. package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
  54. package/package.json +2 -2
  55. package/dist/IngredientsView-DOUCnkCT.js +0 -1886
@@ -1,15 +1,15 @@
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, T as Ge, c as Je, n as Me, j as Ce, ab as Ye, V as Pt, aA as Rt, A as qe, M as At, o as ht, ai as We, J as fe, ar as Et, aB as Ot, aC as Mt, a6 as qt, aD as Ut, L as kt, u as et, a as tt, aE as Nt, aF as Bt, aa as zt, a1 as Lt, aG as Ht, G as xt, a3 as jt, e as Oe, aH as Yt, y as Qt, z as Kt, B as Xt, aI as je, ac as ft, C as Zt, N as Gt, H as Jt, _ as Wt, E as es, X as vt } from "./app-Bszzf6y-.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-Dzm9Q3SP.js";
4
- import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-D2L9cWwt.js";
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 Pt } from "vue";
2
+ import { b as Ue, Y as Ge, c as Je, o as Me, k as Ce, ad as Ye, Z as Vt, aC as Rt, A as qe, M as At, p as ht, ak as We, P as fe, at as Et, aD as Ot, aE as Mt, a8 as qt, aF as Ut, T as kt, u as et, a as tt, aG as Nt, aH as Bt, ac as zt, a4 as Lt, aI as Ht, O as xt, s as jt, e as Oe, aJ as Yt, E as Qt, G as Kt, H as Xt, aK as je, ae as ft, K as Zt, N as Gt, J as Jt, _ as Wt, L as es, a0 as vt } from "./app-CxSrmhCK.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-DWdnLRCB.js";
4
+ import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-BBE5_txM.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-Dbabkv1O.js";
8
- import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-D62ZdWwZ.js";
9
- import { c as Ie, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dn_c22ms.js";
7
+ import { P as ne, u as wt } from "./format-unit-display-xov4MvuI.js";
8
+ import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CdSQVfaU.js";
9
+ import { c as Ie, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CSigrMC2.js";
10
10
  import { useI18n as _e } from "@feedmepos/mf-common";
11
- import "./FmMultiselectDialog-Bvekm8TI.js";
12
- import { u as at } from "./supplier-CKKYVzDf.js";
11
+ import "./FmMultiselectDialog-Df50mxnw.js";
12
+ import { u as at } from "./supplier-B7gAUwhb.js";
13
13
  import { _ as bs } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
14
14
  import "./array-Ca8T3f_G.js";
15
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 || {});
@@ -316,7 +316,7 @@ function _s(g) {
316
316
  g.updateItem({
317
317
  ...e,
318
318
  totalCost: {
319
- ...Pt(+a),
319
+ ...Vt(+a),
320
320
  currency: Rt()
321
321
  }
322
322
  });
@@ -442,7 +442,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
442
442
  }), 128))
443
443
  ]));
444
444
  }
445
- }), ws = { class: "flex flex-col gap-8 py-16" }, Fs = { class: "flex items-center" }, Is = { class: "flex-1 flex gap-1 items-center" }, $s = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ts = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ds = { class: "flex gap-8 w-full" }, Vs = { class: "flex-1 flex flex-col gap-4" }, Ps = { class: "flex-1 flex flex-col gap-4" }, Rs = { class: "flex gap-8 w-full" }, As = { class: "flex-1 flex flex-col gap-4" }, Es = {
445
+ }), ws = { class: "flex flex-col gap-8 py-16" }, Fs = { class: "flex items-center" }, Is = { class: "flex-1 flex gap-1 items-center" }, $s = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ts = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ds = { class: "flex gap-8 w-full" }, Ps = { class: "flex-1 flex flex-col gap-4" }, Vs = { class: "flex-1 flex flex-col gap-4" }, Rs = { class: "flex gap-8 w-full" }, As = { class: "flex-1 flex flex-col gap-4" }, Es = {
446
446
  key: 0,
447
447
  class: "flex-1 flex flex-col gap-4"
448
448
  }, Os = /* @__PURE__ */ ce({
@@ -456,7 +456,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
456
456
  setup(g) {
457
457
  const { t: w } = _e();
458
458
  return (r, p) => {
459
- 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, Y, Q, K, O, U, V, d, b, R, X, Z;
460
460
  const x = $("FmLabel"), t = $("FmSpacer");
461
461
  return S(), T("div", ws, [
462
462
  n("div", Fs, [
@@ -472,7 +472,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
472
472
  ])
473
473
  ]),
474
474
  n("div", Ds, [
475
- n("div", Vs, [
475
+ n("div", Ps, [
476
476
  y(x, {
477
477
  label: s(w)(`inventory.transfer.form.items.table.${s(ee).Code}`)
478
478
  }, null, 8, ["label"]),
@@ -482,7 +482,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
482
482
  }, null, 8, ["render", "props"]),
483
483
  p[0] || (p[0] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
484
484
  ]),
485
- n("div", Ps, [
485
+ n("div", Vs, [
486
486
  y(x, {
487
487
  label: s(w)(`inventory.transfer.form.items.table.${s(ee).Name}`)
488
488
  }, null, 8, ["label"]),
@@ -514,7 +514,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
514
514
  _: 1
515
515
  }),
516
516
  y(s(fe), {
517
- render: (d = (P = (U = r.cellByColId[s(ee).Cost]) == null ? void 0 : U.column) == null ? void 0 : P.columnDef) == null ? void 0 : d.cell,
517
+ render: (d = (V = (U = r.cellByColId[s(ee).Cost]) == null ? void 0 : U.column) == null ? void 0 : V.columnDef) == null ? void 0 : d.cell,
518
518
  props: (R = (b = r.cellByColId[s(ee).Cost]) == null ? void 0 : b.getContext) == null ? void 0 : R.call(b)
519
519
  }, null, 8, ["render", "props"]),
520
520
  p[3] || (p[3] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
@@ -1010,7 +1010,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1010
1010
  }, Co = { class: "flex-1" }, So = { class: "flex-1" }, wo = {
1011
1011
  key: 1,
1012
1012
  class: "flex items-center gap-4"
1013
- }, Fo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary translate-y-[1px]" }, Io = { class: "flex flex-col gap-16" }, $o = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, To = { class: "flex gap-8" }, Do = { key: 0 }, Vo = /* @__PURE__ */ ce({
1013
+ }, Fo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary translate-y-[1px]" }, Io = { class: "flex flex-col gap-16" }, $o = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, To = { class: "flex gap-8" }, Do = { key: 0 }, Po = /* @__PURE__ */ ce({
1014
1014
  __name: "TransferForm2",
1015
1015
  props: {
1016
1016
  modelValue: {},
@@ -1132,7 +1132,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1132
1132
  set(o) {
1133
1133
  Q.transferLocationModel.value = o;
1134
1134
  }
1135
- }), P = N({
1135
+ }), V = N({
1136
1136
  get() {
1137
1137
  return t.remark ?? void 0;
1138
1138
  },
@@ -1293,7 +1293,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1293
1293
  },
1294
1294
  measurement: m.trackingMeasurement ? m.unit.measurements.find((E) => E.id === m.trackingMeasurement) : null
1295
1295
  }));
1296
- }), Ve = N(() => {
1296
+ }), Pe = N(() => {
1297
1297
  const o = [];
1298
1298
  return (!u.mustUsePoTemplate || u.mustUsePoTemplate && t.template) && o.push({
1299
1299
  label: f("inventory.transfer.form.type.purchase"),
@@ -1302,7 +1302,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1302
1302
  label: f("inventory.transfer.form.type.transfer"),
1303
1303
  value: ne.TRANSFER
1304
1304
  }), o;
1305
- }), Pe = N(() => {
1305
+ }), Ve = N(() => {
1306
1306
  var o;
1307
1307
  return (o = p.modelValue) == null ? void 0 : o.items.every((m) => m.quantity.amount <= 0);
1308
1308
  });
@@ -1400,7 +1400,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1400
1400
  default: A(() => [
1401
1401
  y(me, null, {
1402
1402
  default: A(() => {
1403
- var V;
1403
+ var P;
1404
1404
  return [
1405
1405
  n("div", ho, [
1406
1406
  y(le, {
@@ -1410,7 +1410,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1410
1410
  }, null, 8, ["color"]),
1411
1411
  n("div", {
1412
1412
  class: J({ "text-fm-color-typo-disabled": o.disabled })
1413
- }, M((V = O.value.find((oe) => oe.value === U.value)) == null ? void 0 : V.label), 3)
1413
+ }, M((P = O.value.find((oe) => oe.value === U.value)) == null ? void 0 : P.label), 3)
1414
1414
  ])
1415
1415
  ];
1416
1416
  }),
@@ -1426,9 +1426,9 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1426
1426
  label: s(f)("inventory.transfer.form.type.title"),
1427
1427
  "label-mark": "required",
1428
1428
  modelValue: K.value,
1429
- "onUpdate:modelValue": m[0] || (m[0] = (V) => K.value = V),
1430
- items: Ve.value,
1431
- rules: [s(qe)(1)(Ve.value)]
1429
+ "onUpdate:modelValue": m[0] || (m[0] = (P) => K.value = P),
1430
+ items: Pe.value,
1431
+ rules: [s(qe)(1)(Pe.value)]
1432
1432
  }, {
1433
1433
  default: A(() => [
1434
1434
  n("span", {
@@ -1444,28 +1444,28 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1444
1444
  label: K.value === s(ne).PURCHASE ? s(f)("inventory.transfer.form.purchaseFrom") : s(f)("inventory.transfer.form.transferFrom"),
1445
1445
  "label-mark": "required",
1446
1446
  modelValue: U.value,
1447
- "onUpdate:modelValue": m[1] || (m[1] = (V) => U.value = V),
1447
+ "onUpdate:modelValue": m[1] || (m[1] = (P) => U.value = P),
1448
1448
  items: O.value,
1449
1449
  rules: [s(qe)(1)(O.value)]
1450
1450
  }, {
1451
- "menu-wrapper": A((V) => {
1451
+ "menu-wrapper": A((P) => {
1452
1452
  var oe, Ee;
1453
1453
  return [
1454
- y(ys, Ze(V, {
1454
+ y(ys, Ze(P, {
1455
1455
  items: O.value,
1456
1456
  "model-value": (Ee = (oe = o.modelValue) == null ? void 0 : oe.supplier) == null ? void 0 : Ee._id
1457
1457
  }), null, 16, ["items", "model-value"])
1458
1458
  ];
1459
1459
  }),
1460
1460
  default: A(() => {
1461
- var V;
1461
+ var P;
1462
1462
  return [
1463
1463
  n("span", {
1464
1464
  class: J([
1465
1465
  "line-clamp-1 fm-typo-en-body-lg-400",
1466
1466
  o.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
1467
1467
  ])
1468
- }, M((V = O.value.find((oe) => oe.value === U.value)) == null ? void 0 : V.label), 3)
1468
+ }, M((P = O.value.find((oe) => oe.value === U.value)) == null ? void 0 : P.label), 3)
1469
1469
  ];
1470
1470
  }),
1471
1471
  _: 1
@@ -1475,14 +1475,14 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1475
1475
  label: s(f)("inventory.transfer.form.reference"),
1476
1476
  "label-mark": "optional",
1477
1477
  modelValue: s(t).ref,
1478
- "onUpdate:modelValue": m[2] || (m[2] = (V) => s(t).ref = V)
1478
+ "onUpdate:modelValue": m[2] || (m[2] = (P) => s(t).ref = P)
1479
1479
  }, null, 8, ["label", "modelValue"]),
1480
1480
  y(He, {
1481
1481
  label: s(f)("inventory.transfer.form.remark"),
1482
1482
  "label-mark": "optional",
1483
1483
  "max-length": 240,
1484
- modelValue: P.value,
1485
- "onUpdate:modelValue": m[3] || (m[3] = (V) => P.value = V),
1484
+ modelValue: V.value,
1485
+ "onUpdate:modelValue": m[3] || (m[3] = (P) => V.value = P),
1486
1486
  class: J([o.disabled ? "text-fm-color-typo-disabled " : ""])
1487
1487
  }, null, 8, ["label", "modelValue", "class"]),
1488
1488
  _.value ? (S(), W(uo, {
@@ -1492,10 +1492,10 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1492
1492
  supplier: s(t).supplier,
1493
1493
  setting: s(t).netSuite,
1494
1494
  items: s(t).items,
1495
- onChange: (V, oe) => {
1496
- s(t).items = V, s(t).netSuite = oe;
1495
+ onChange: (P, oe) => {
1496
+ s(t).items = P, s(t).netSuite = oe;
1497
1497
  },
1498
- "onNetsuite:ready": m[4] || (m[4] = (V) => {
1498
+ "onNetsuite:ready": m[4] || (m[4] = (P) => {
1499
1499
  h.value = !0;
1500
1500
  })
1501
1501
  }, null, 8, ["required", "disabled", "supplier", "setting", "items", "onChange"])) : j("", !0),
@@ -1510,7 +1510,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1510
1510
  }, [
1511
1511
  y(Re, {
1512
1512
  modelValue: s(b),
1513
- "onUpdate:modelValue": m[5] || (m[5] = (V) => xe(b) ? b.value = V : null),
1513
+ "onUpdate:modelValue": m[5] || (m[5] = (P) => xe(b) ? b.value = P : null),
1514
1514
  label: s(f)("inventory.transfer.form.backdate.title"),
1515
1515
  sublabel: s(f)("inventory.transfer.form.backdate.subtitle"),
1516
1516
  "label-placement": "right",
@@ -1523,13 +1523,13 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1523
1523
  n("div", Co, [
1524
1524
  y(z, {
1525
1525
  modelValue: s(R),
1526
- "onUpdate:modelValue": m[6] || (m[6] = (V) => xe(R) ? R.value = V : null)
1526
+ "onUpdate:modelValue": m[6] || (m[6] = (P) => xe(R) ? R.value = P : null)
1527
1527
  }, null, 8, ["modelValue"])
1528
1528
  ]),
1529
1529
  n("div", So, [
1530
1530
  y(te, {
1531
1531
  modelValue: s(X),
1532
- "onUpdate:modelValue": m[7] || (m[7] = (V) => xe(X) ? X.value = V : null)
1532
+ "onUpdate:modelValue": m[7] || (m[7] = (P) => xe(X) ? X.value = P : null)
1533
1533
  }, null, 8, ["modelValue"])
1534
1534
  ])
1535
1535
  ])) : j("", !0)
@@ -1537,7 +1537,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1537
1537
  s(d) ? (S(), W(ae, {
1538
1538
  key: 0,
1539
1539
  modelValue: s(d),
1540
- "onUpdate:modelValue": m[8] || (m[8] = (V) => xe(d) ? d.value = V : null),
1540
+ "onUpdate:modelValue": m[8] || (m[8] = (P) => xe(d) ? d.value = P : null),
1541
1541
  rules: [s(Ht)(new Date(o.lastClosingDate), /* @__PURE__ */ new Date())]
1542
1542
  }, null, 8, ["modelValue", "rules"])) : j("", !0),
1543
1543
  B.value && !o.lastClosingDate ? (S(), T("div", wo, [
@@ -1575,18 +1575,18 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1575
1575
  "text-color": "primary",
1576
1576
  "bg-color": "transparent",
1577
1577
  "border-color": "primary",
1578
- onClick: m[9] || (m[9] = (V) => ze()),
1578
+ onClick: m[9] || (m[9] = (P) => ze()),
1579
1579
  size: "md"
1580
1580
  }, null, 8, ["disabled", "label"]),
1581
1581
  y(Ws, {
1582
1582
  "template-id": s(t).template || void 0,
1583
1583
  "template-items": Le.value,
1584
1584
  "po-items": s(t).items,
1585
- "onUpdate:forecastAmounts": m[10] || (m[10] = (V) => {
1586
- l.value = V;
1585
+ "onUpdate:forecastAmounts": m[10] || (m[10] = (P) => {
1586
+ l.value = P;
1587
1587
  }),
1588
- "onUpdate:poItems": m[11] || (m[11] = (V) => {
1589
- s(t).items = V, C.value++;
1588
+ "onUpdate:poItems": m[11] || (m[11] = (P) => {
1589
+ s(t).items = P, C.value++;
1590
1590
  })
1591
1591
  }, null, 8, ["template-id", "template-items", "po-items"])
1592
1592
  ])
@@ -1597,13 +1597,13 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1597
1597
  "prepend-icon": "compare_arrows",
1598
1598
  "label-placement": "right",
1599
1599
  "model-value": s(Z),
1600
- "onUpdate:modelValue": m[12] || (m[12] = (V) => xe(Z) ? Z.value = V : null),
1600
+ "onUpdate:modelValue": m[12] || (m[12] = (P) => xe(Z) ? Z.value = P : null),
1601
1601
  disabled: s(he) || o.disabled
1602
1602
  }, null, 8, ["label", "model-value", "disabled"])
1603
1603
  ])) : j("", !0),
1604
1604
  y(ae, {
1605
- "model-value": Pe.value,
1606
- rules: [() => Pe.value ? "Must have at least one non-zero item" : !0]
1605
+ "model-value": Ve.value,
1606
+ rules: [() => Ve.value ? "Must have at least one non-zero item" : !0]
1607
1607
  }, null, 8, ["model-value", "rules"]),
1608
1608
  (S(), W(ue, {
1609
1609
  "column-defs": Be.value,
@@ -1617,31 +1617,31 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1617
1617
  "hide-footer": "",
1618
1618
  "page-size": s(t).items.length
1619
1619
  }, {
1620
- "table-row": A((V) => {
1620
+ "table-row": A((P) => {
1621
1621
  var oe, Ee, mt, pt;
1622
1622
  return [
1623
1623
  y(ao, {
1624
1624
  "compare-price-by-sku": s(ke),
1625
1625
  "show-compare-price": K.value === s(ne).PURCHASE && s(Z),
1626
- row: V,
1626
+ row: P,
1627
1627
  "template-item": (pt = (mt = (Ee = (oe = o.modelValue) == null ? void 0 : oe.templateDoc) == null ? void 0 : Ee.purchaseOrder) == null ? void 0 : mt.items) == null ? void 0 : pt.find(
1628
- (Ke) => Ke.sku._id === V.original.sku._id
1628
+ (Ke) => Ke.sku._id === P.original.sku._id
1629
1629
  ),
1630
1630
  "onUpdate:item": m[13] || (m[13] = (Ke) => we.value.updateItem(Ke)),
1631
1631
  disabled: o.disabled
1632
1632
  }, null, 8, ["compare-price-by-sku", "show-compare-price", "row", "template-item", "disabled"])
1633
1633
  ];
1634
1634
  }),
1635
- "list-row": A((V) => [
1635
+ "list-row": A((P) => [
1636
1636
  (S(), W(xt, {
1637
- row: V,
1637
+ row: P,
1638
1638
  key: s(t).items.map((oe) => oe.sku._id).join(".")
1639
1639
  }, {
1640
1640
  default: A((oe) => [
1641
1641
  y(Os, {
1642
1642
  "compare-price-by-sku": s(ke),
1643
1643
  "show-compare-price": K.value === s(ne).PURCHASE && s(Z),
1644
- row: V,
1644
+ row: P,
1645
1645
  "cell-by-col-id": oe
1646
1646
  }, null, 8, ["compare-price-by-sku", "show-compare-price", "row", "cell-by-col-id"])
1647
1647
  ]),
@@ -1658,7 +1658,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1658
1658
  ]);
1659
1659
  };
1660
1660
  }
1661
- }), Po = { class: "flex items-center" }, Ro = { class: "fm-typo-en-title-md-800" }, Ao = { class: "flex gap-4" }, Eo = /* @__PURE__ */ ce({
1661
+ }), Vo = { class: "flex items-center" }, Ro = { class: "fm-typo-en-title-md-800" }, Ao = { class: "flex gap-4" }, Eo = /* @__PURE__ */ ce({
1662
1662
  __name: "TransferDialog",
1663
1663
  props: {
1664
1664
  mode: {},
@@ -1669,7 +1669,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1669
1669
  },
1670
1670
  emits: ["update:show", "submitted"],
1671
1671
  setup(g, { expose: w, emit: r }) {
1672
- var P;
1672
+ var V;
1673
1673
  const p = g, x = r, t = st(), f = wt(), F = Te(), I = at(), v = tt(), e = et(), { t: u } = _e(), k = q(!1), a = q(!1), i = q(!1);
1674
1674
  async function h(d) {
1675
1675
  if (d) {
@@ -1720,7 +1720,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1720
1720
  templateDoc: f.templates.find((b) => b._id === p.templateId)
1721
1721
  };
1722
1722
  }
1723
- const C = St(p, "show"), l = q(p.modelValue ?? _()), c = q(((P = p.modelValue) == null ? void 0 : P._id) ?? `${Math.random()}`);
1723
+ const C = St(p, "show"), l = q(p.modelValue ?? _()), c = q(((V = p.modelValue) == null ? void 0 : V._id) ?? `${Math.random()}`);
1724
1724
  ge(
1725
1725
  () => p.show,
1726
1726
  (d) => {
@@ -1842,12 +1842,12 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
1842
1842
  "max-width": 900
1843
1843
  }, {
1844
1844
  "side-sheet-header": A(() => [
1845
- n("div", Po, [
1845
+ n("div", Vo, [
1846
1846
  n("div", Ro, M(B.value), 1)
1847
1847
  ])
1848
1848
  ]),
1849
1849
  default: A(() => [
1850
- (S(), W(Vo, {
1850
+ (S(), W(Po, {
1851
1851
  class: "w-full",
1852
1852
  ref_key: "formRef",
1853
1853
  ref: Y,
@@ -2176,8 +2176,8 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2176
2176
  return ge(r, (l) => {
2177
2177
  l && C(l);
2178
2178
  }), (l, c) => {
2179
- const D = $("FmSelect"), B = $("FmDatePicker"), Y = $("FmTimePicker"), Q = $("FmCircularProgress"), K = $("FmLabel"), O = $("FmIcon"), U = $("FmButton"), P = $("FmForm");
2180
- return S(), W(P, {
2179
+ const D = $("FmSelect"), B = $("FmDatePicker"), Y = $("FmTimePicker"), Q = $("FmCircularProgress"), K = $("FmLabel"), O = $("FmIcon"), U = $("FmButton"), V = $("FmForm");
2180
+ return S(), W(V, {
2181
2181
  ref_key: "formRef",
2182
2182
  ref: h
2183
2183
  }, {
@@ -2497,7 +2497,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2497
2497
  "Total cost": b.totalCost ? Ye(b.totalCost) : null
2498
2498
  };
2499
2499
  })
2500
- ), P = [
2500
+ ), V = [
2501
2501
  "SKU code",
2502
2502
  "SKU name",
2503
2503
  "PO #",
@@ -2508,12 +2508,12 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2508
2508
  "Ordered quantity",
2509
2509
  "Unit"
2510
2510
  ];
2511
- t.enableBackdatePo && P.insert("Effective at", 4), t.enableTotalCost && P.push("Total cost"), await rs(
2511
+ t.enableBackdatePo && V.insert("Effective at", 4), t.enableTotalCost && V.push("Total cost"), await rs(
2512
2512
  [
2513
2513
  {
2514
2514
  name: "purchases",
2515
2515
  data: U,
2516
- columns: P
2516
+ columns: V
2517
2517
  }
2518
2518
  ],
2519
2519
  O
@@ -2579,7 +2579,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2579
2579
  key: "status",
2580
2580
  entity: "purchaseOrder",
2581
2581
  values: Array.from(
2582
- new Set(e.purchaseOrders.value.map((P) => P.status))
2582
+ new Set(e.purchaseOrders.value.map((V) => V.status))
2583
2583
  )
2584
2584
  }
2585
2585
  ], U = [
@@ -2587,28 +2587,28 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2587
2587
  type: "string",
2588
2588
  key: "netsuiteTransactionNumber",
2589
2589
  entity: "purchaseOrder",
2590
- values: e.purchaseOrders.value.map((P) => {
2590
+ values: e.purchaseOrders.value.map((V) => {
2591
2591
  var d, b;
2592
- return (b = (d = P.netSuite) == null ? void 0 : d.additionalInfo) == null ? void 0 : b.transactionnumber;
2593
- }).filter((P) => P != null)
2592
+ return (b = (d = V.netSuite) == null ? void 0 : d.additionalInfo) == null ? void 0 : b.transactionnumber;
2593
+ }).filter((V) => V != null)
2594
2594
  },
2595
2595
  {
2596
2596
  type: "string",
2597
2597
  key: "netsuiteOrderNo",
2598
2598
  entity: "purchaseOrder",
2599
- values: e.purchaseOrders.value.map((P) => {
2599
+ values: e.purchaseOrders.value.map((V) => {
2600
2600
  var d;
2601
- return (d = P.netSuite) == null ? void 0 : d.refNo;
2602
- }).filter((P) => P != null)
2601
+ return (d = V.netSuite) == null ? void 0 : d.refNo;
2602
+ }).filter((V) => V != null)
2603
2603
  },
2604
2604
  {
2605
2605
  type: "string",
2606
2606
  key: "netsuiteOrderId",
2607
2607
  entity: "purchaseOrder",
2608
- values: e.purchaseOrders.value.map((P) => {
2608
+ values: e.purchaseOrders.value.map((V) => {
2609
2609
  var d;
2610
- return (d = P.netSuite) == null ? void 0 : d.id;
2611
- }).filter((P) => P != null)
2610
+ return (d = V.netSuite) == null ? void 0 : d.id;
2611
+ }).filter((V) => V != null)
2612
2612
  }
2613
2613
  ];
2614
2614
  return [...O, ...f.isEnabled ? U : []];
@@ -2617,10 +2617,10 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2617
2617
  return e.purchaseOrders.value;
2618
2618
  const O = Gt.build(Q.value);
2619
2619
  return e.purchaseOrders.value.filter((U) => {
2620
- var P, d, b, R;
2620
+ var V, d, b, R;
2621
2621
  return Jt(
2622
2622
  {
2623
- netsuiteTransactionNumber: (d = (P = U.netSuite) == null ? void 0 : P.additionalInfo) == null ? void 0 : d.transactionnumber,
2623
+ netsuiteTransactionNumber: (d = (V = U.netSuite) == null ? void 0 : V.additionalInfo) == null ? void 0 : d.transactionnumber,
2624
2624
  netsuiteOrderNo: (b = U.netSuite) == null ? void 0 : b.refNo,
2625
2625
  netsuiteOrderId: (R = U.netSuite) == null ? void 0 : R.id,
2626
2626
  status: U.status
@@ -2630,7 +2630,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2630
2630
  });
2631
2631
  });
2632
2632
  return (O, U) => {
2633
- const P = $("FmTable");
2633
+ const V = $("FmTable");
2634
2634
  return S(), W(Wt, {
2635
2635
  title: s(w)("inventory.transfer.receiveRequest.title2"),
2636
2636
  actions: B.value,
@@ -2661,7 +2661,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2661
2661
  filter: Q.value,
2662
2662
  "onUpdate:filter": U[2] || (U[2] = (R) => Q.value = R)
2663
2663
  }, null, 8, ["date-range", "search", "filter-attributes", "filter"]),
2664
- (S(), W(P, {
2664
+ (S(), W(V, {
2665
2665
  style: _t(s(D).tableHeight),
2666
2666
  "column-defs": s(u),
2667
2667
  "row-data": K.value,
@@ -2677,7 +2677,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2677
2677
  onRowClick: s(e).promptShowTransferDetails
2678
2678
  }, {
2679
2679
  default: A((X) => {
2680
- var Z, he, ke, ie, we, Ne, Be, ze, De, Le, Ve, Pe, o, m, E, H, le, me, G, re;
2680
+ var Z, he, ke, ie, we, Ne, Be, ze, De, Le, Pe, Ve, o, m, E, H, le, me, G, re;
2681
2681
  return [
2682
2682
  n("div", da, [
2683
2683
  n("div", ca, [
@@ -2695,7 +2695,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2695
2695
  n("div", pa, M(R.original.items.map((Fe) => `${Fe.name}`).join(", ")), 1),
2696
2696
  R.original.ref ? (S(), T("div", fa, [
2697
2697
  y(s(fe), {
2698
- render: (o = (Pe = (Ve = X.ref) == null ? void 0 : Ve.column) == null ? void 0 : Pe.columnDef) == null ? void 0 : o.cell,
2698
+ render: (o = (Ve = (Pe = X.ref) == null ? void 0 : Pe.column) == null ? void 0 : Ve.columnDef) == null ? void 0 : o.cell,
2699
2699
  props: (E = (m = X.ref) == null ? void 0 : m.getContext) == null ? void 0 : E.call(m)
2700
2700
  }, null, 8, ["render", "props"])
2701
2701
  ])) : j("", !0),
@@ -2727,7 +2727,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
2727
2727
  }, {
2728
2728
  onSubmitted: s(e).fetchData
2729
2729
  }), null, 16, ["scope", "onSubmitted"]),
2730
- y(ua, Dt(Vt(s(e).xilnexImportDialogProps.value)), null, 16)
2730
+ y(ua, Dt(Pt(s(e).xilnexImportDialogProps.value)), null, 16)
2731
2731
  ]))
2732
2732
  ];
2733
2733
  }),