@feedmepos/mf-inventory-portal 1.2.5-dev.1 → 1.2.6

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 (70) hide show
  1. package/dist/{App-plHMDZk7.js → App-B2pFxU6Q.js} +1 -1
  2. package/dist/{ApprovalView-CChHxp4X.js → ApprovalView-MLCuBCV2.js} +49 -50
  3. package/dist/{BindingsDialog-CU-u0hJx.js → BindingsDialog-CL68c1d8.js} +2 -2
  4. package/dist/{BindingsPicker-BpbNVNQQ.js → BindingsPicker-C1PiRtoM.js} +1 -1
  5. package/dist/{BindingsTable-v1QcskCd.js → BindingsTable-B4VyAoNq.js} +1 -1
  6. package/dist/ClosingDraftView-bLQW2std.js +1739 -0
  7. package/dist/{ClosingTemplateView-ancesrdQ.js → ClosingTemplateView-CABbUEYU.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-DLSzR6HB.js → DeliveryOrderPrintPreview-BybM2hq8.js} +8 -8
  9. package/dist/{FmAdminBadge-Cb9aT29U.js → FmAdminBadge-iN9PJ5nY.js} +1 -1
  10. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-1G6EEocg.js +227 -0
  11. package/dist/{FmMultiselectDialog-SoaYz3_K.js → FmMultiselectDialog-nsl8cwzo.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D5k7Xk3M.js → FmUnitInput.vue_vue_type_script_setup_true_lang-COw0sQLE.js} +15 -15
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-NY7TPnoY.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BYcFWA7r.js} +1 -1
  14. package/dist/{IngredientGroupView-DmbPHuWG.js → IngredientGroupView-oIBLqCBm.js} +2 -2
  15. package/dist/{IngredientsView-Bxb_BeyP.js → IngredientsView-DfGezD1v.js} +61 -71
  16. package/dist/{IntegrationView-B8mnGO1_.js → IntegrationView-jcuZnZ67.js} +84 -84
  17. package/dist/{InventoryBindingForm-B2tlc3uk.js → InventoryBindingForm-CQlTv-66.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-C-qi9Mri.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CevEjjIF.js} +3 -3
  19. package/dist/{InventoryBindingSummary-BUkLwuPN.js → InventoryBindingSummary-DRJn6ORe.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-4W5T_8W7.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CwwxbHy9.js} +1 -1
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DCtPbVFp.js → PremiumBadge.vue_vue_type_script_setup_true_lang-O2GL2zkX.js} +7 -7
  22. package/dist/{PublishView-Dkq9VZOG.js → PublishView-CY3Gvt3-.js} +7 -7
  23. package/dist/{PurchaseOrderPrintPreview-C-jyn09w.js → PurchaseOrderPrintPreview-Ck5HQc6r.js} +8 -8
  24. package/dist/{ReceiveRequestView-V4YNI_Jd.js → ReceiveRequestView-Da8bRntN.js} +79 -82
  25. package/dist/{RecipeView-Ck3RZRhC.js → RecipeView-B0_ddeT-.js} +3 -3
  26. package/dist/{StockView-nstUyEXe.js → StockView-BetJ_LZd.js} +7 -7
  27. package/dist/{SupplierView-eXyZsmHQ.js → SupplierView-DpDWVeHg.js} +831 -862
  28. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-AIFutKLT.js +2494 -0
  29. package/dist/{TransferTemplateView-DZG_UCWg.js → TransferTemplateView-L0NONcqq.js} +57 -57
  30. package/dist/{UnitView-COiitpcS.js → UnitView-DSTeDI8u.js} +3 -3
  31. package/dist/WarehouseView-DGJhvS_u.js +1034 -0
  32. package/dist/api/inventory.d.ts +0 -8
  33. package/dist/api/warehouse.d.ts +1 -3
  34. package/dist/{app-DayXXH4q.js → app-B7cGGPpZ.js} +15279 -15838
  35. package/dist/app.d.ts +9 -24
  36. package/dist/app.js +1 -1
  37. package/dist/{decimal-CFYWiBC2.js → decimal-DYg5n_FX.js} +1 -1
  38. package/dist/{format-unit-display-DIr9pTFo.js → format-unit-display-DHgB2J8m.js} +21 -21
  39. package/dist/{index-DLOpJmH-.js → index-C6Wn55RU.js} +1 -1
  40. package/dist/{index-tQKFc6GI.js → index-C9zJBvXv.js} +1 -1
  41. package/dist/{stock-DeAkNJnm.js → stock-BcEKPJrt.js} +1 -1
  42. package/dist/stores/feature.d.ts +0 -2
  43. package/dist/stores/inventory.d.ts +0 -1
  44. package/dist/stores/location.d.ts +1 -57
  45. package/dist/stores/supplier.d.ts +0 -96
  46. package/dist/stores/warehouse.d.ts +0 -4
  47. package/dist/{supplier-C4DAoZrI.js → supplier-DFoYi5-b.js} +1 -1
  48. package/dist/tsconfig.app.tsbuildinfo +1 -1
  49. package/dist/{use-ingredient-select-dialog-CV7X8z4O.js → use-ingredient-select-dialog-C7mHdhdS.js} +1 -1
  50. package/dist/{use-inventory-binding-dialog-nuT-Ptlx.js → use-inventory-binding-dialog-CPjMBzhD.js} +1 -1
  51. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +3 -3
  52. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +2 -2
  53. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +0 -1
  54. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -60
  55. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +0 -10
  56. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +0 -94
  57. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1 -72
  58. package/dist/views/supplier/components/SupplierForm.vue.d.ts +0 -8
  59. package/dist/views/supplier/composables/use-supplier-table.d.ts +0 -4
  60. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +0 -8
  61. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +0 -16
  62. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +0 -48
  63. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +0 -48
  64. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +0 -8
  65. package/package.json +2 -2
  66. package/dist/ClosingDraftView-D9HwfK7e.js +0 -1687
  67. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cp0j6Sx0.js +0 -230
  68. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-OCR95cDM.js +0 -2578
  69. package/dist/WarehouseView-DhBpkfGm.js +0 -1066
  70. package/dist/api/shipment.d.ts +0 -11
@@ -1,17 +1,17 @@
1
- import { ref as H, h as Q, defineComponent as se, computed as S, resolveComponent as w, openBlock as h, createBlock as T, withCtx as V, createVNode as p, unref as d, createElementBlock as B, Fragment as X, createElementVNode as c, createCommentVNode as j, renderSlot as ve, createTextVNode as Ae, toDisplayString as D, normalizeClass as J, mergeModels as Oe, onMounted as ft, watch as et, useModel as yt, renderList as ye, isRef as He, createSlots as tt, normalizeStyle as gt, Teleport as je, normalizeProps as bt, guardReactiveProps as ht } from "vue";
2
- import { a as ee, e as q, f as nt, S as _t, h as xt, D as Ye, i as xe, A as Ve, b as Re, j as ot, k as Se, t as lt, l as kt, m as ge, n as Me, U as Vt, o as St, M as Ft, p as qe, q as Ge, c as at, r as We, s as st, v as wt, w as rt, x as Ct, y as Mt, I as It, z as $t, B as Et, N as Ut, H as At, u as Rt, C as Tt, _ as Dt, E as Bt, G as Pt, J as Ke, K as Nt } from "./app-DayXXH4q.js";
1
+ import { ref as H, h as Q, defineComponent as se, computed as S, resolveComponent as w, openBlock as h, createBlock as T, withCtx as V, createVNode as p, unref as d, createElementBlock as B, Fragment as X, createElementVNode as c, createCommentVNode as j, renderSlot as ve, createTextVNode as Re, toDisplayString as D, normalizeClass as J, mergeModels as Oe, onMounted as ft, watch as et, useModel as yt, renderList as ye, isRef as He, createSlots as tt, normalizeStyle as gt, Teleport as je, normalizeProps as bt, guardReactiveProps as ht } from "vue";
2
+ import { a as ee, e as q, f as nt, S as _t, h as xt, D as Ye, i as xe, A as Ve, b as Ae, j as ot, k as Se, t as lt, l as kt, m as ge, n as Me, U as Vt, o as St, M as Ft, p as qe, q as Ge, c as at, r as We, s as st, v as wt, w as rt, x as Ct, y as Mt, I as It, z as $t, B as Et, N as Ut, H as Rt, u as At, C as Tt, _ as Dt, E as Bt, G as Pt, J as Ke, K as Nt } from "./app-B7cGGPpZ.js";
3
3
  import { useDialog as it, useSnackbar as Fe, components as Je, useProxiedModel as Ze, useDialogChild as zt, useBreakpoints as Lt } from "@feedmepos/ui-library";
4
4
  import { i as Ot, _ as Ht } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { useI18n as re, useCoreStore as be } from "@feedmepos/mf-common";
6
6
  import { defineStore as jt, storeToRefs as Yt } from "pinia";
7
7
  import { g as qt, _ as Ie, S as $e } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
8
- import { _ as Gt } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-C-qi9Mri.js";
9
- import { _ as Ee } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-NY7TPnoY.js";
8
+ import { _ as Gt } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CevEjjIF.js";
9
+ import { _ as Ee } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-BYcFWA7r.js";
10
10
  import { _ as ke } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
11
11
  import { _ as Wt } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
12
12
  import { r as Kt } from "./random-CSbEbElR.js";
13
13
  import "./array-Ca8T3f_G.js";
14
- import { u as Jt } from "./FmMultiselectDialog-SoaYz3_K.js";
14
+ import { u as Jt } from "./FmMultiselectDialog-nsl8cwzo.js";
15
15
  const Ue = jt("ingredientForm", function() {
16
16
  const o = it(), y = Fe(), l = ee(), n = H(!1), { t: a } = re(), r = H();
17
17
  function m() {
@@ -159,7 +159,7 @@ function Zt() {
159
159
  },
160
160
  {
161
161
  accessorKey: "isInactive",
162
- header: () => l("inventory.ingredient.status.title"),
162
+ header: () => l("inventory.ingredient.isInactive.title"),
163
163
  cell(r) {
164
164
  const m = r.row.original.isInactive;
165
165
  return Q(
@@ -170,7 +170,7 @@ function Zt() {
170
170
  m ? "bg-red-100 text-red-700" : "bg-green-100 text-green-700"
171
171
  ].join(" ")
172
172
  },
173
- l(m ? "inventory.ingredient.status.inactive" : "inventory.ingredient.status.active")
173
+ l(m ? "inventory.ingredient.isInactive.yes" : "inventory.ingredient.isInactive.no")
174
174
  );
175
175
  },
176
176
  enableSorting: !0,
@@ -320,7 +320,7 @@ const Xt = {
320
320
  "z-index": o.tooltipZIndex
321
321
  }, {
322
322
  content: V(() => [
323
- Ae(D(o.tooltipMessage), 1)
323
+ Re(D(o.tooltipMessage), 1)
324
324
  ]),
325
325
  default: V(() => [
326
326
  p(n, {
@@ -378,7 +378,7 @@ const Xt = {
378
378
  emits: /* @__PURE__ */ Oe(["update:modelValue", "click:submit"], ["update:search"]),
379
379
  setup(i, { expose: o, emit: y }) {
380
380
  var ae;
381
- const { t: l } = re(), n = i, a = y, r = ee(), m = be(), v = at(), g = Re(), u = S(() => g.isEnabled);
381
+ const { t: l } = re(), n = i, a = y, r = ee(), m = be(), v = at(), g = Ae(), u = S(() => g.isEnabled);
382
382
  function b(t) {
383
383
  if (t.length === 0) return;
384
384
  const e = t[0], f = n.modelValue ?? {
@@ -434,7 +434,7 @@ const Xt = {
434
434
  return t ? +ot(t) : 0;
435
435
  },
436
436
  set(t) {
437
- var f, k, A, M;
437
+ var f, k, R, M;
438
438
  const e = n.modelValue ? {
439
439
  ...n.modelValue
440
440
  } : {};
@@ -444,7 +444,7 @@ const Xt = {
444
444
  precision: 2,
445
445
  currency: ((f = Se(m.currentCountry.value)) == null ? void 0 : f.currency) ?? "MYR"
446
446
  },
447
- measurement: (M = (A = (k = n.modelValue) == null ? void 0 : k.unit) == null ? void 0 : A.measurements) == null ? void 0 : M.find(
447
+ measurement: (M = (R = (k = n.modelValue) == null ? void 0 : k.unit) == null ? void 0 : R.measurements) == null ? void 0 : M.find(
448
448
  (G) => {
449
449
  var K;
450
450
  return G.id === ((K = n.modelValue) == null ? void 0 : K.trackingMeasurement);
@@ -457,13 +457,13 @@ const Xt = {
457
457
  }
458
458
  }), x = S(() => {
459
459
  var e, f, k;
460
- const t = ((e = n.modelValue) == null ? void 0 : e.unit) ?? r.units.find((A) => A);
460
+ const t = ((e = n.modelValue) == null ? void 0 : e.unit) ?? r.units.find((R) => R);
461
461
  return t ? {
462
462
  _id: t._id,
463
463
  measurement: (f = n.modelValue) == null ? void 0 : f.trackingMeasurement,
464
- name: ((k = t.measurements.find((A) => {
464
+ name: ((k = t.measurements.find((R) => {
465
465
  var M;
466
- return A.id === ((M = n.modelValue) == null ? void 0 : M.trackingMeasurement);
466
+ return R.id === ((M = n.modelValue) == null ? void 0 : M.trackingMeasurement);
467
467
  })) == null ? void 0 : k.name) ?? t.name
468
468
  } : null;
469
469
  }), $ = S(
@@ -478,9 +478,9 @@ const Xt = {
478
478
  value: { _id: e },
479
479
  displayAsSection: !1
480
480
  },
481
- ...k.map(({ id: A, name: M, abbrev: G }) => ({
481
+ ...k.map(({ id: R, name: M, abbrev: G }) => ({
482
482
  label: `${M} (${G})`,
483
- value: { _id: e, measurement: A },
483
+ value: { _id: e, measurement: R },
484
484
  displayAsSection: !1
485
485
  }))
486
486
  ])
@@ -491,18 +491,18 @@ const Xt = {
491
491
  })
492
492
  ), ne = S(() => te.value.search(C.value));
493
493
  function W(t) {
494
- var e, f, k, A, M;
495
- return ((f = (e = n.modelValue) == null ? void 0 : e.unit) == null ? void 0 : f._id) === ((k = t.value) == null ? void 0 : k._id) && ((A = n.modelValue) == null ? void 0 : A.trackingMeasurement) === ((M = t.value) == null ? void 0 : M.measurement);
494
+ var e, f, k, R, M;
495
+ return ((f = (e = n.modelValue) == null ? void 0 : e.unit) == null ? void 0 : f._id) === ((k = t.value) == null ? void 0 : k._id) && ((R = n.modelValue) == null ? void 0 : R.trackingMeasurement) === ((M = t.value) == null ? void 0 : M.measurement);
496
496
  }
497
497
  function we(t) {
498
498
  var G, K;
499
499
  if (!t) return;
500
- const { _id: e, measurement: f } = t, k = f || void 0, A = r.units.find((pe) => pe._id === e);
501
- if (!A)
500
+ const { _id: e, measurement: f } = t, k = f || void 0, R = r.units.find((pe) => pe._id === e);
501
+ if (!R)
502
502
  return;
503
503
  const M = n.modelValue ?? {};
504
- M.unit = A, M.trackingMeasurement = k, M.convert && (M.convert.measurement = k || null), v.enableTotalCost && (M.defaultCost = {
505
- measurement: A.measurements.find((pe) => pe.id === k),
504
+ M.unit = R, M.trackingMeasurement = k, M.convert && (M.convert.measurement = k || null), v.enableTotalCost && (M.defaultCost = {
505
+ measurement: R.measurements.find((pe) => pe.id === k),
506
506
  costPerUnit: {
507
507
  ...((G = M.defaultCost) == null ? void 0 : G.costPerUnit) ?? {
508
508
  amount: 0,
@@ -594,15 +594,15 @@ const Xt = {
594
594
  }
595
595
  const L = S(
596
596
  () => {
597
- var t, e, f, k, A, M;
597
+ var t, e, f, k, R, M;
598
598
  return ((k = (f = (e = (t = n.modelValue) == null ? void 0 : t.unit) == null ? void 0 : e.measurements) == null ? void 0 : f.find(
599
599
  (G) => {
600
600
  var K;
601
601
  return G.id === ((K = n.modelValue) == null ? void 0 : K.trackingMeasurement);
602
602
  }
603
- )) == null ? void 0 : k.abbrev) ?? ((M = (A = n.modelValue) == null ? void 0 : A.unit) == null ? void 0 : M.abbrev);
603
+ )) == null ? void 0 : k.abbrev) ?? ((M = (R = n.modelValue) == null ? void 0 : R.unit) == null ? void 0 : M.abbrev);
604
604
  }
605
- ), R = S({
605
+ ), A = S({
606
606
  get() {
607
607
  var t, e;
608
608
  return ((e = (t = n.modelValue) == null ? void 0 : t.thresholds) == null ? void 0 : e.low) ?? ue().low;
@@ -637,7 +637,7 @@ const Xt = {
637
637
  };
638
638
  }
639
639
  return (t, e) => {
640
- const f = w("FmTextField"), k = w("FmLabel"), A = w("FmField"), M = w("FmIcon"), G = w("FmMenuHeader"), K = w("FmMenuDivider"), pe = w("FmMenuItem"), mt = w("FmMenu"), Te = w("FmFormGroup"), ct = w("FmSelect"), De = w("FmSwitch"), Be = w("FmStepperField"), pt = w("FmForm");
640
+ const f = w("FmTextField"), k = w("FmLabel"), R = w("FmField"), M = w("FmIcon"), G = w("FmMenuHeader"), K = w("FmMenuDivider"), pe = w("FmMenuItem"), mt = w("FmMenu"), Te = w("FmFormGroup"), ct = w("FmSelect"), De = w("FmSwitch"), Be = w("FmStepperField"), pt = w("FmForm");
641
641
  return h(), T(pt, {
642
642
  disabled: t.disabled,
643
643
  ref_key: "formRef",
@@ -717,7 +717,7 @@ const Xt = {
717
717
  default: V(({ invalid: I }) => [
718
718
  p(mt, null, {
719
719
  "menu-button": V(() => [
720
- p(A, {
720
+ p(R, {
721
721
  class: J([
722
722
  "fm-typo-en-body-lg-400",
723
723
  {
@@ -731,7 +731,7 @@ const Xt = {
731
731
  default: V(() => {
732
732
  var Y;
733
733
  return [
734
- Ae(D((Y = x.value) == null ? void 0 : Y.name), 1)
734
+ Re(D((Y = x.value) == null ? void 0 : Y.name), 1)
735
735
  ];
736
736
  }),
737
737
  _: 2
@@ -865,14 +865,14 @@ const Xt = {
865
865
  }, null, 8, ["model-value", "root-value", "readonly"])) : j("", !0),
866
866
  t.mode !== d(q).CREATE ? (h(), B("div", sn, [
867
867
  p(De, {
868
- label: d(l)("inventory.ingredient.status.inactive"),
868
+ label: d(l)("inventory.ingredient.isInactive.title"),
869
869
  "model-value": N.value,
870
870
  "onUpdate:modelValue": e[8] || (e[8] = (I) => N.value = I),
871
871
  "label-placement": "right",
872
872
  disabled: u.value
873
873
  }, null, 8, ["label", "model-value", "disabled"]),
874
874
  c("div", rn, [
875
- c("div", un, D(d(l)("inventory.ingredient.status.preventFromOrder")), 1)
875
+ c("div", un, D(d(l)("inventory.ingredient.isInactive.preventFromOrder")), 1)
876
876
  ])
877
877
  ])) : j("", !0),
878
878
  t.mode !== d(q).CREATE ? (h(), B("div", dn, [
@@ -912,22 +912,22 @@ const Xt = {
912
912
  ]),
913
913
  c("div", fn, [
914
914
  p(Te, {
915
- "model-value": { low: R.value, mid: P.value },
915
+ "model-value": { low: A.value, mid: P.value },
916
916
  rules: [O()]
917
917
  }, null, 8, ["model-value", "rules"]),
918
918
  c("div", yn, [
919
919
  c("div", gn, [
920
920
  c("div", bn, [
921
921
  p(Ie, {
922
- days: R.value,
922
+ days: A.value,
923
923
  level: d($e).low
924
924
  }, null, 8, ["days", "level"])
925
925
  ]),
926
926
  c("div", hn, [
927
927
  c("div", _n, D(d(l)("inventory.ingredient.threshold.whenRemaining")), 1),
928
928
  p(Be, {
929
- modelValue: R.value,
930
- "onUpdate:modelValue": e[10] || (e[10] = (I) => R.value = I),
929
+ modelValue: A.value,
930
+ "onUpdate:modelValue": e[10] || (e[10] = (I) => A.value = I),
931
931
  rules: [d(Ve)(0)]
932
932
  }, {
933
933
  append: V(() => e[13] || (e[13] = [
@@ -1018,7 +1018,7 @@ const Xt = {
1018
1018
  },
1019
1019
  emits: ["update:show"],
1020
1020
  setup(i) {
1021
- const o = i, y = ee(), l = Re(), n = Fe(), { t: a } = re(), r = Ze(o, "show"), m = Ze(o, "unit"), v = S(
1021
+ const o = i, y = ee(), l = Ae(), n = Fe(), { t: a } = re(), r = Ze(o, "show"), m = Ze(o, "unit"), v = S(
1022
1022
  () => {
1023
1023
  var x;
1024
1024
  return l.isEnabled && l.netSuiteItemBySkuId.has((x = o.unit) == null ? void 0 : x._id);
@@ -1145,10 +1145,10 @@ const Xt = {
1145
1145
  };
1146
1146
  }
1147
1147
  });
1148
- function An() {
1148
+ function Rn() {
1149
1149
  return `sku_${(/* @__PURE__ */ new Date()).toISOString()}_${Kt()}`;
1150
1150
  }
1151
- const Rn = {
1151
+ const An = {
1152
1152
  _id: "",
1153
1153
  name: "",
1154
1154
  abbrev: "",
@@ -1310,10 +1310,10 @@ function Qe(i, o, y) {
1310
1310
  return {
1311
1311
  type: "create",
1312
1312
  sku: {
1313
- _id: An(),
1313
+ _id: Rn(),
1314
1314
  code: i.code,
1315
1315
  name: i.name,
1316
- unit: m ?? n.find((C) => C) ?? Rn,
1316
+ unit: m ?? n.find((C) => C) ?? An,
1317
1317
  trackingMeasurement: v == null ? void 0 : v.id,
1318
1318
  valuation: g,
1319
1319
  defaultCost: _,
@@ -1386,7 +1386,7 @@ const Ln = { class: "flex items-center gap-12 pl-8" }, On = { class: "flex flex-
1386
1386
  "text-fm-color-system-error-300": o.errors.length
1387
1387
  })
1388
1388
  }, [
1389
- Ae(D(o.name) + " ", 1),
1389
+ Re(D(o.name) + " ", 1),
1390
1390
  o.type === "create" ? (h(), B("span", jn, "(new)")) : j("", !0)
1391
1391
  ], 2),
1392
1392
  o.errors.length ? (h(), B("div", Yn, [
@@ -1589,33 +1589,23 @@ const Ln = { class: "flex items-center gap-12 pl-8" }, On = { class: "flex flex-
1589
1589
  },
1590
1590
  {
1591
1591
  type: "string",
1592
- key: "status",
1592
+ key: "skuInactive",
1593
1593
  entity: "sku",
1594
- values: ["Inactive", "Active"]
1594
+ values: ["Yes", "No"]
1595
1595
  }
1596
- ]), l = H({
1597
- logic: "AND",
1598
- rules: [
1599
- {
1600
- property: "status",
1601
- operator: "$in",
1602
- value: ["Active"],
1603
- type: "string"
1604
- }
1605
- ]
1606
- }), n = S(() => {
1596
+ ]), l = H(null), n = S(() => {
1607
1597
  if (!l.value)
1608
1598
  return o.skus;
1609
1599
  const U = Ut.build(l.value);
1610
- return o.skus.filter((F) => At(
1600
+ return o.skus.filter((F) => Rt(
1611
1601
  {
1612
1602
  skuCode: F.code,
1613
1603
  skuUnitAbbrev: F.unit.abbrev,
1614
- status: F.isInactive ? "Inactive" : "Active"
1604
+ skuInactive: F.isInactive ? "Yes" : "No"
1615
1605
  },
1616
1606
  U
1617
1607
  ));
1618
- }), a = Rt(), r = it(), m = Jt(), v = Fe(), g = Re(), { t: u } = re(), { createIngredient: b, updateIngredient: s } = Ue(), { ingredientDialogProps: _, ingredientViewLoading: N } = Yt(Ue()), { columnDefs: E } = Zt();
1608
+ }), a = At(), r = it(), m = Jt(), v = Fe(), g = Ae(), { t: u } = re(), { createIngredient: b, updateIngredient: s } = Ue(), { ingredientDialogProps: _, ingredientViewLoading: N } = Yt(Ue()), { columnDefs: E } = Zt();
1619
1609
  function z(U) {
1620
1610
  switch (U) {
1621
1611
  case "add":
@@ -1714,8 +1704,8 @@ const Ln = { class: "flex items-center gap-12 pl-8" }, On = { class: "flex flex-
1714
1704
  $.value = !0;
1715
1705
  try {
1716
1706
  const F = [
1717
- ...U.importCreateResult.map(({ sku: R }) => ({ type: "create", sku: R })),
1718
- ...U.importUpdateResult.map(({ sku: R }) => ({ type: "update", sku: R }))
1707
+ ...U.importCreateResult.map(({ sku: A }) => ({ type: "create", sku: A })),
1708
+ ...U.importUpdateResult.map(({ sku: A }) => ({ type: "update", sku: A }))
1719
1709
  ], me = 100;
1720
1710
  let ie = 0;
1721
1711
  const ce = () => {
@@ -1726,17 +1716,17 @@ const Ln = { class: "flex items-center gap-12 pl-8" }, On = { class: "flex flex-
1726
1716
  ])
1727
1717
  });
1728
1718
  }, L = new Array();
1729
- for (const R of F.chunk(100)) {
1719
+ for (const A of F.chunk(100)) {
1730
1720
  ce();
1731
1721
  try {
1732
1722
  const P = await o.importSkus({
1733
- create: R.filter((O) => O.type === "create").map((O) => O.sku),
1734
- update: R.filter((O) => O.type === "update").map((O) => O.sku)
1723
+ create: A.filter((O) => O.type === "create").map((O) => O.sku),
1724
+ update: A.filter((O) => O.type === "update").map((O) => O.sku)
1735
1725
  });
1736
1726
  L.push(...P.errors);
1737
1727
  } catch (P) {
1738
1728
  L.push(
1739
- ...R.map((O) => {
1729
+ ...A.map((O) => {
1740
1730
  const ae = {
1741
1731
  module: Nt.enum.sku,
1742
1732
  _id: O.sku._id,
@@ -1760,12 +1750,12 @@ const Ln = { class: "flex items-center gap-12 pl-8" }, On = { class: "flex flex-
1760
1750
  "div",
1761
1751
  { class: "flex flex-col gap-8" },
1762
1752
  L.map(
1763
- (R) => Q("div", { class: "flex flex-col" }, [
1764
- Q("div", { class: "fm-typo-en-body-lg-600" }, `(${R.data.code}) ${R.data.name}`),
1753
+ (A) => Q("div", { class: "flex flex-col" }, [
1754
+ Q("div", { class: "fm-typo-en-body-lg-600" }, `(${A.data.code}) ${A.data.name}`),
1765
1755
  Q(
1766
1756
  "div",
1767
1757
  { class: "fm-typo-en-body-lg-400" },
1768
- `${R.error.map((P) => (P == null ? void 0 : P.message) ?? "Unknown error").join(", ")}`
1758
+ `${A.error.map((P) => (P == null ? void 0 : P.message) ?? "Unknown error").join(", ")}`
1769
1759
  )
1770
1760
  ])
1771
1761
  )
@@ -1823,20 +1813,20 @@ const Ln = { class: "flex items-center gap-12 pl-8" }, On = { class: "flex flex-
1823
1813
  row: L,
1824
1814
  onRowClick: d(s)
1825
1815
  }, tt({
1826
- default: V((R) => {
1827
- var P, O, ae, t, e, f, k, A, M, G;
1816
+ default: V((A) => {
1817
+ var P, O, ae, t, e, f, k, R, M, G;
1828
1818
  return [
1829
1819
  c("div", no, [
1830
1820
  c("div", oo, [
1831
1821
  p(d(Ke), {
1832
- render: (ae = (O = (P = R.code) == null ? void 0 : P.column) == null ? void 0 : O.columnDef) == null ? void 0 : ae.cell,
1833
- props: (e = (t = R.code) == null ? void 0 : t.getContext) == null ? void 0 : e.call(t)
1822
+ render: (ae = (O = (P = A.code) == null ? void 0 : P.column) == null ? void 0 : O.columnDef) == null ? void 0 : ae.cell,
1823
+ props: (e = (t = A.code) == null ? void 0 : t.getContext) == null ? void 0 : e.call(t)
1834
1824
  }, null, 8, ["render", "props"])
1835
1825
  ]),
1836
1826
  c("div", lo, [
1837
1827
  p(d(Ke), {
1838
- render: (A = (k = (f = R.name) == null ? void 0 : f.column) == null ? void 0 : k.columnDef) == null ? void 0 : A.cell,
1839
- props: (G = (M = R.name) == null ? void 0 : M.getContext) == null ? void 0 : G.call(M)
1828
+ render: (R = (k = (f = A.name) == null ? void 0 : f.column) == null ? void 0 : k.columnDef) == null ? void 0 : R.cell,
1829
+ props: (G = (M = A.name) == null ? void 0 : M.getContext) == null ? void 0 : G.call(M)
1840
1830
  }, null, 8, ["render", "props"])
1841
1831
  ])
1842
1832
  ])