@feedmepos/mf-inventory-portal 1.1.6-dev.4 → 1.1.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 (57) hide show
  1. package/dist/{App-7aDQCs0e.js → App-eXCck7a5.js} +1 -1
  2. package/dist/{ApprovalView-DTiHrtmv.js → ApprovalView-B0WnIbbC.js} +12 -12
  3. package/dist/{BindingsDialog-CwFtThz3.js → BindingsDialog-CrE8Bq81.js} +2 -2
  4. package/dist/{BindingsPicker-C-gN6_S_.js → BindingsPicker-BYfPxsQb.js} +1 -1
  5. package/dist/{BindingsTable-03rYMdPD.js → BindingsTable-w-9rhRKt.js} +1 -1
  6. package/dist/{ClosingDraftView-CFzIsJ47.js → ClosingDraftView-DvOzoK_0.js} +2 -2
  7. package/dist/ClosingTemplateView-DLL1XO9L.js +1863 -0
  8. package/dist/{DeliveryOrderPrintPreview-CU_7rneV.js → DeliveryOrderPrintPreview-B1IkUCtx.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CJBz08np.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-zrZa5u48.js} +16 -16
  10. package/dist/{FmMultiselectDialog-1yDoDij3.js → FmMultiselectDialog-bxhXcTjC.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Bj0Wj8Xz.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DjryjX5D.js} +20 -20
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-PPX_rDZF.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DIwVPQfD.js} +1 -1
  13. package/dist/{IngredientGroupView-DM7Inm_j.js → IngredientGroupView-DlqotAv3.js} +2 -2
  14. package/dist/{IngredientsView-CYNfI7-d.js → IngredientsView-xysz7RCf.js} +4 -4
  15. package/dist/{IntegrationView-GGqFp4AF.js → IntegrationView-Bl9tz77r.js} +766 -729
  16. package/dist/{InventoryBindingForm-B2NUQyYC.js → InventoryBindingForm-Cpyi3HHr.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DWwDEcts.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DaYCH25K.js} +3 -3
  18. package/dist/{InventoryBindingSummary-BS_KPYvV.js → InventoryBindingSummary-Yx9OMEM9.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-KwJ-92ME.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CVYPx1Tq.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-c3-rBgMz.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BH5KgYxB.js} +6 -6
  21. package/dist/{PublishView-Be-xDCoP.js → PublishView-B6lG5RXd.js} +23 -22
  22. package/dist/{PurchaseOrderPrintPreview-CgBW_CYT.js → PurchaseOrderPrintPreview-BYmfHMdm.js} +6 -6
  23. package/dist/{ReceiveRequestView-DMk5uA4T.js → ReceiveRequestView-BRJq_4JE.js} +123 -122
  24. package/dist/{RecipeView-Btr3k6HN.js → RecipeView-_8gHbL19.js} +3 -3
  25. package/dist/{StockView-B4hURpuW.js → StockView-ZfGClrtp.js} +6 -6
  26. package/dist/{SupplierView-BAlA5PiP.js → SupplierView-BJmiYNly.js} +3 -3
  27. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CaxJcFvC.js → TransferDetails.vue_vue_type_script_setup_true_lang-Bi5M4cFg.js} +781 -762
  28. package/dist/{TransferTemplateView-BX9hZLJK.js → TransferTemplateView-D2DTO0s8.js} +70 -70
  29. package/dist/{UnitView-CLHFLa9Y.js → UnitView-BHKpH-Aq.js} +3 -3
  30. package/dist/{WarehouseView-D7dlQVJG.js → WarehouseView-DW6OJ2eV.js} +1 -1
  31. package/dist/api/adjustment-template.d.ts +0 -2
  32. package/dist/api/closing-template.d.ts +0 -2
  33. package/dist/api/netsuite.d.ts +1 -0
  34. package/dist/{app-BDvExlDk.js → app-uQHV9FP_.js} +30146 -32518
  35. package/dist/app.d.ts +3 -0
  36. package/dist/app.js +5 -5
  37. package/dist/components/FmMultiselectDialogTemporary.vue.d.ts +41 -0
  38. package/dist/components/row-action.enum.d.ts +0 -1
  39. package/dist/{decimal-DH1GxF5C.js → decimal-DKCv75cs.js} +1 -1
  40. package/dist/{format-unit-display-D8HvxRH6.js → format-unit-display-X3MUIbit.js} +22 -22
  41. package/dist/{index-D8hgUJvl.js → index-BvaM_9NR.js} +1 -1
  42. package/dist/{index-j96vAh5F.js → index-D_mBZNHv.js} +1 -1
  43. package/dist/router/index.d.ts +2 -2
  44. package/dist/{stock-DmyqH5zu.js → stock-B-RknLfQ.js} +1 -1
  45. package/dist/style.css +1 -1
  46. package/dist/{supplier-XLhXYVot.js → supplier-BVmAwcSb.js} +1 -1
  47. package/dist/tsconfig.app.tsbuildinfo +1 -1
  48. package/dist/{use-ingredient-select-dialog-CKqSU8JV.js → use-ingredient-select-dialog-C-A9SI3K.js} +1 -1
  49. package/dist/{use-inventory-binding-dialog-CnWPra3F.js → use-inventory-binding-dialog-q_8cEc3p.js} +1 -1
  50. package/dist/views/receive-request/composables/fn.d.ts +6 -5
  51. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1 -618
  52. package/dist/vue-i18n-4cOdM_m_.js +2365 -0
  53. package/package.json +4 -4
  54. package/dist/ClosingTemplateView-fQ5i6sqs.js +0 -1908
  55. package/dist/components/TemplatePublishDialog.d.ts +0 -13
  56. package/dist/components/TemplatePublishDialog.vue.d.ts +0 -12
  57. package/dist/views/dev/components/TemplatePublishDialogTest.vue.d.ts +0 -2
@@ -1,14 +1,14 @@
1
- import { defineComponent as ae, onMounted as Te, computed as L, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as $, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as U, renderSlot as xe, withDirectives as Pe, normalizeClass as re, vModelText as Be, reactive as st, h as j, toDisplayString as S, unref as t, createCommentVNode as oe, Fragment as pe, normalizeStyle as _e, renderList as je, createBlock as le, mergeProps as Qe, createTextVNode as ne, mergeModels as qe, useModel as lt, isRef as Ye, Teleport as nt, normalizeProps as at, guardReactiveProps as rt } from "vue";
2
- import { K as We, aI as he, t as Ne, I as it, aJ as ut, aK as dt, j as se, aL as mt, b as Ke, a as Ge, Q as Le, c as ge, m as ke, Y as be, T as ye, A as we, M as pt, G as ee, u as Je, ak as ct, a0 as ft, E as Ze, e as ue, aM as ve, af as yt, s as vt, a7 as bt, B as gt, i as Ee, _ as ht, C as xt } from "./app-BDvExlDk.js";
1
+ import { defineComponent as ae, onMounted as Te, computed as E, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as $, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as U, renderSlot as xe, withDirectives as Pe, normalizeClass as re, vModelText as Be, reactive as st, h as j, toDisplayString as S, unref as t, createCommentVNode as oe, Fragment as pe, normalizeStyle as _e, renderList as je, createBlock as le, mergeProps as Qe, createTextVNode as ne, mergeModels as qe, useModel as lt, isRef as Ye, Teleport as nt, normalizeProps as at, guardReactiveProps as rt } from "vue";
2
+ import { K as We, aG as he, t as Ne, I as it, aH as ut, aI as dt, j as se, aJ as mt, b as Ge, a as Ke, Q as Ee, c as ge, m as ke, Y as be, T as ye, A as we, M as pt, G as ee, u as Je, aj as ct, a0 as ft, E as Ze, e as ue, aK as ve, af as yt, s as vt, a7 as bt, B as gt, i as Le, _ as ht, C as xt } from "./app-uQHV9FP_.js";
3
3
  import { useI18n as me } from "@feedmepos/mf-common";
4
- import { P as X, a as _t, f as kt, t as wt, b as ze, u as Tt } from "./format-unit-display-D8HvxRH6.js";
4
+ import { P as X, a as _t, f as kt, t as wt, b as ze, u as Tt } from "./format-unit-display-X3MUIbit.js";
5
5
  import { components as de, useSnackbar as Ct, useProxiedModel as Xe, useBreakpoints as Ft } from "@feedmepos/ui-library";
6
6
  import { defineStore as It, storeToRefs as He } from "pinia";
7
- import { _ as St, b as Mt, F as $t, a as Ot } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Bj0Wj8Xz.js";
8
- import { c as Dt, u as Vt, _ as At } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CJBz08np.js";
9
- import { u as Rt } from "./supplier-XLhXYVot.js";
10
- import { u as Ut } from "./use-ingredient-select-dialog-CKqSU8JV.js";
11
- const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { class: "flex-1" }, Nt = { class: "flex items-center" }, Lt = { class: "flex-1" }, Et = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
7
+ import { _ as St, b as Mt, F as $t, a as Ot } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DjryjX5D.js";
8
+ import { c as Dt, u as Vt, _ as At } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-zrZa5u48.js";
9
+ import { u as Rt } from "./supplier-BVmAwcSb.js";
10
+ import { u as Ut } from "./use-ingredient-select-dialog-C-A9SI3K.js";
11
+ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { class: "flex-1" }, Nt = { class: "flex items-center" }, Et = { class: "flex-1" }, Lt = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
12
12
  __name: "FmMinMaxInput",
13
13
  props: {
14
14
  rules: {},
@@ -54,7 +54,7 @@ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
54
54
  v.min = i, v.max = g;
55
55
  }
56
56
  });
57
- const r = L(() => {
57
+ const r = E(() => {
58
58
  const { min: d, max: y } = v ?? {};
59
59
  return Math.max((d == null ? void 0 : d.precision) ?? 0, (y == null ? void 0 : y.precision) ?? 0, h.precision ?? 0);
60
60
  }), s = (d) => {
@@ -79,7 +79,7 @@ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
79
79
  w.max = null;
80
80
  v.min = w.min, v.max = w.max;
81
81
  });
82
- const F = Symbol.for("fm:form-state"), c = ot(F, null), o = L(() => h.disabled ?? (c == null ? void 0 : c.getDisabled()) ?? !1), f = Y(), b = Y(), k = Y(!1), T = Y(!1), R = L(() => k.value || T.value), P = L(() => [...[
82
+ const F = Symbol.for("fm:form-state"), c = ot(F, null), o = E(() => h.disabled ?? (c == null ? void 0 : c.getDisabled()) ?? !1), f = Y(), b = Y(), k = Y(!1), T = Y(!1), R = E(() => k.value || T.value), P = E(() => [...[
83
83
  function() {
84
84
  return typeof a(u.value) == "string" || typeof a(x.value) == "string" ? "Must be a number" : !0;
85
85
  },
@@ -104,7 +104,7 @@ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
104
104
  e("div", Nt, [
105
105
  xe(d.$slots, "prepend"),
106
106
  y[6] || (y[6] = e("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400 pr-4" }, "Min.", -1)),
107
- e("div", Lt, [
107
+ e("div", Et, [
108
108
  Pe(e("input", {
109
109
  type: "text",
110
110
  ref_key: "minInputRef",
@@ -123,7 +123,7 @@ const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
123
123
  ]),
124
124
  y[7] || (y[7] = e("div", { class: "block h-32 mx-4 w-[1px] bg-fm-color-neutral-gray-200" }, null, -1)),
125
125
  y[8] || (y[8] = e("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400 pr-4" }, "Max.", -1)),
126
- e("div", Et, [
126
+ e("div", Lt, [
127
127
  Pe(e("input", {
128
128
  type: "text",
129
129
  ref_key: "maxInputRef",
@@ -176,7 +176,7 @@ function Qt(p) {
176
176
  };
177
177
  }
178
178
  const et = It("netsuite-custom-field-helper", () => {
179
- const p = Ke();
179
+ const p = Ge();
180
180
  function h(v, a, r, s, u) {
181
181
  var F;
182
182
  if (!r) {
@@ -201,7 +201,7 @@ const et = It("netsuite-custom-field-helper", () => {
201
201
  });
202
202
  var Q = /* @__PURE__ */ ((p) => (p.Code = "Code", p.Name = "Name", p.DefaultAmount = "DefaultAmount", p.Limit = "Limit", p.Step = "Step", p.Cost = "Cost", p.Delete = "Delete", p))(Q || {});
203
203
  function Yt(p, h = {}) {
204
- const { t: v } = me(), a = Ge(), r = ge(), s = st({}), u = et();
204
+ const { t: v } = me(), a = Ke(), r = ge(), s = st({}), u = et();
205
205
  Te(() => {
206
206
  for (const c of p.items) {
207
207
  if (!c.totalCost)
@@ -213,7 +213,7 @@ function Yt(p, h = {}) {
213
213
  {
214
214
  supplier: p.supplier
215
215
  }
216
- ), f = c.totalCost ?? Le.reset();
216
+ ), f = c.totalCost ?? Ee.reset();
217
217
  o ? s[c.sku._id] = o.amount !== f.amount || o.precision !== f.precision : s[c.sku._id] = !0;
218
218
  }
219
219
  });
@@ -388,7 +388,7 @@ function Yt(p, h = {}) {
388
388
  cell(c) {
389
389
  const o = c.row.original;
390
390
  return j(de.FmTextField, {
391
- modelValue: se(o.quantityStep ?? Le.reset(), !1),
391
+ modelValue: se(o.quantityStep ?? Ee.reset(), !1),
392
392
  key: o.sku._id,
393
393
  "onUpdate:modelValue": (f) => {
394
394
  p.updateItem({
@@ -480,7 +480,7 @@ function Yt(p, h = {}) {
480
480
  }
481
481
  ];
482
482
  return {
483
- columnDefs: L(() => {
483
+ columnDefs: E(() => {
484
484
  const c = ge(), o = [...x];
485
485
  if (Object.keys(h).length > 0)
486
486
  for (const [f, b] of Object.entries(h))
@@ -492,7 +492,7 @@ function Yt(p, h = {}) {
492
492
  })
493
493
  };
494
494
  }
495
- const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-center" }, Gt = { class: "flex-1 flex gap-1 items-center" }, Jt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Zt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Xt = { class: "flex gap-8 w-full" }, eo = { class: "flex-1 flex flex-col gap-4" }, to = { class: "flex-1 flex flex-col gap-4" }, oo = {
495
+ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-center" }, Kt = { class: "flex-1 flex gap-1 items-center" }, Jt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Zt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Xt = { class: "flex gap-8 w-full" }, eo = { class: "flex-1 flex flex-col gap-4" }, to = { class: "flex-1 flex flex-col gap-4" }, oo = {
496
496
  key: 0,
497
497
  class: "flex gap-8 w-full"
498
498
  }, so = { class: "flex-1 flex flex-col gap-4" }, lo = { class: "flex-1 flex flex-col gap-4" }, no = { class: "flex gap-8 w-full" }, ao = { class: "flex-1 flex flex-col gap-4" }, ro = /* @__PURE__ */ ae({
@@ -507,11 +507,11 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
507
507
  return a;
508
508
  }
509
509
  return (a, r) => {
510
- var u, x, F, c, o, f, b, k, T, R, P, d, y, w, i, g, O, M, _, W, te, E, B, J, l, n, C, q, z, K;
510
+ var u, x, F, c, o, f, b, k, T, R, P, d, y, w, i, g, O, M, _, W, te, L, B, J, l, n, C, q, z, G;
511
511
  const s = V("FmLabel");
512
512
  return $(), N("div", Wt, [
513
- e("div", Kt, [
514
- e("div", Gt, [
513
+ e("div", Gt, [
514
+ e("div", Kt, [
515
515
  e("span", Jt, " (" + S(a.row.original.sku.code) + ") ", 1),
516
516
  e("span", Zt, S(a.row.original.sku.name), 1)
517
517
  ]),
@@ -560,7 +560,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
560
560
  label: t(h)(`inventory.transfer.form.items.table.${t(Q).Step}`)
561
561
  }, null, 8, ["label"]),
562
562
  m(t(ee), {
563
- render: (B = (E = (te = a.cellByColId[t(Q).Step]) == null ? void 0 : te.column) == null ? void 0 : E.columnDef) == null ? void 0 : B.cell,
563
+ render: (B = (L = (te = a.cellByColId[t(Q).Step]) == null ? void 0 : te.column) == null ? void 0 : L.columnDef) == null ? void 0 : B.cell,
564
564
  props: (l = (J = a.cellByColId[t(Q).Step]) == null ? void 0 : J.getContext) == null ? void 0 : l.call(J)
565
565
  }, null, 8, ["render", "props"]),
566
566
  r[3] || (r[3] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
@@ -573,7 +573,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
573
573
  }, null, 8, ["label"]),
574
574
  m(t(ee), {
575
575
  render: (q = (C = (n = a.cellByColId[t(Q).Limit]) == null ? void 0 : n.column) == null ? void 0 : C.columnDef) == null ? void 0 : q.cell,
576
- props: (K = (z = a.cellByColId[t(Q).Limit]) == null ? void 0 : z.getContext) == null ? void 0 : K.call(z)
576
+ props: (G = (z = a.cellByColId[t(Q).Limit]) == null ? void 0 : z.getContext) == null ? void 0 : G.call(z)
577
577
  }, null, 8, ["render", "props"]),
578
578
  r[4] || (r[4] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
579
579
  ])
@@ -637,7 +637,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
637
637
  },
638
638
  emits: ["update:disabled"],
639
639
  setup(p, { expose: h, emit: v }) {
640
- const a = p, r = v, s = We(), { t: u } = me(), x = Y({}), F = Je(), c = Ge(), o = Rt(), f = ge(), b = Ke(), k = et();
640
+ const a = p, r = v, s = We(), { t: u } = me(), x = Y({}), F = Je(), c = Ke(), o = Rt(), f = ge(), b = Ge(), k = et();
641
641
  Ce(
642
642
  () => s.purchaseOrder.items.length,
643
643
  () => {
@@ -654,7 +654,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
654
654
  supplier: l.supplier ?? (s == null ? void 0 : s.purchaseOrder.supplier)
655
655
  };
656
656
  }
657
- ), R = L({
657
+ ), R = E({
658
658
  get() {
659
659
  var l, n;
660
660
  return typeof ((n = (l = s.purchaseOrder) == null ? void 0 : l.supplier) == null ? void 0 : n.internal) == "string" ? X.TRANSFER : X.PURCHASE;
@@ -664,7 +664,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
664
664
  const n = typeof ((q = (C = s.purchaseOrder) == null ? void 0 : C.supplier) == null ? void 0 : q.internal) == "string" ? X.TRANSFER : X.PURCHASE;
665
665
  l !== n && (s.purchaseOrder.supplier = l === X.PURCHASE ? T.locationOptionsTypePurchase.value[0] : T.locationOptionsTypeTransfer.value[0]);
666
666
  }
667
- }), P = L(() => T.transferLocationOptions.value), d = L({
667
+ }), P = E(() => T.transferLocationOptions.value), d = E({
668
668
  get() {
669
669
  var l;
670
670
  return (l = s.purchaseOrder.supplier) == null ? void 0 : l._id;
@@ -701,7 +701,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
701
701
  return ((q = C.doc) == null ? void 0 : q._id) === ((z = s.purchaseOrder.supplier) == null ? void 0 : z._id);
702
702
  }) ? `Location ${(n = s.purchaseOrder.supplier) == null ? void 0 : n.name} must be removed because template cannot be used to transfer to itself.` : !0;
703
703
  }
704
- const M = L({
704
+ const M = E({
705
705
  get() {
706
706
  return s.purchaseOrder.remark ?? void 0;
707
707
  },
@@ -723,7 +723,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
723
723
  (n = (l = _.value) == null ? void 0 : l.resetInputs) == null || n.call(l);
724
724
  }
725
725
  });
726
- const W = L(() => ({
726
+ const W = E(() => ({
727
727
  duplicateItem: (l) => {
728
728
  s.purchaseOrder.items = [
729
729
  ...s.purchaseOrder.items,
@@ -772,7 +772,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
772
772
  });
773
773
  }
774
774
  })
775
- ), E = L(() => te.columnDefs.value), { promptSelectIngredients: B } = Ut();
775
+ ), L = E(() => te.columnDefs.value), { promptSelectIngredients: B } = Ut();
776
776
  async function J() {
777
777
  const n = c.skus.map((D) => ({
778
778
  label: D.name,
@@ -780,13 +780,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
780
780
  value: D
781
781
  })).filter((D) => {
782
782
  var A;
783
- return (A = s.purchaseOrder.items) == null ? void 0 : A.find((G) => G.sku._id === D.value._id);
783
+ return (A = s.purchaseOrder.items) == null ? void 0 : A.find((K) => K.sku._id === D.value._id);
784
784
  }).map((D) => D.value), C = s.purchaseOrder.items ?? [], q = await B(
785
785
  n.map((D) => D._id),
786
786
  (D) => {
787
- const A = c.skuById[D], G = C.find((H) => H.sku._id === A._id);
788
- if (G)
789
- return G;
787
+ const A = c.skuById[D], K = C.find((H) => H.sku._id === A._id);
788
+ if (K)
789
+ return K;
790
790
  const Z = { amount: 1, precision: be(A.unit) };
791
791
  let I = {
792
792
  id: f.usePurchaseOrderV2 ? crypto.randomUUID() : void 0,
@@ -815,21 +815,21 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
815
815
  }
816
816
  );
817
817
  if (!q) return;
818
- const z = q.map((D) => D.sku._id), K = [];
818
+ const z = q.map((D) => D.sku._id), G = [];
819
819
  for (const D of z) {
820
- const A = C.filter((G) => G.sku._id === D);
820
+ const A = C.filter((K) => K.sku._id === D);
821
821
  if (A.length > 0)
822
- K.push(...A);
822
+ G.push(...A);
823
823
  else {
824
- const G = q.find((Z) => Z.sku._id === D);
825
- G && K.push(G);
824
+ const K = q.find((Z) => Z.sku._id === D);
825
+ K && G.push(K);
826
826
  }
827
827
  }
828
- K.sort((D, A) => D.sku.code.localeCompare(A.sku.code)), s.purchaseOrder.items = K;
828
+ G.sort((D, A) => D.sku.code.localeCompare(A.sku.code)), s.purchaseOrder.items = G;
829
829
  }
830
830
  return (l, n) => {
831
- const C = V("FmTextField"), q = V("FmSelect"), z = V("FmTextarea"), K = V("FmButton"), D = V("FmTable"), A = V("FmFormGroup"), G = V("FmForm");
832
- return $(), le(G, {
831
+ const C = V("FmTextField"), q = V("FmSelect"), z = V("FmTextarea"), G = V("FmButton"), D = V("FmTable"), A = V("FmFormGroup"), K = V("FmForm");
832
+ return $(), le(K, {
833
833
  ref_key: "formRef",
834
834
  ref: _,
835
835
  class: "flex flex-col gap-32",
@@ -924,7 +924,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
924
924
  e("div", yo, [
925
925
  e("div", vo, [
926
926
  n[8] || (n[8] = e("div", { class: "flex-1 fm-typo-en-title-sm-600" }, "Locations", -1)),
927
- m(K, {
927
+ m(G, {
928
928
  disabled: l.disabled,
929
929
  label: "Select location",
930
930
  "prepend-icon": "add",
@@ -953,7 +953,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
953
953
  e("div", go, [
954
954
  e("div", ho, [
955
955
  e("div", xo, S(t(u)("inventory.transfer.form.items.title")), 1),
956
- t(b).isEnabled ? ($(), le(K, {
956
+ t(b).isEnabled ? ($(), le(G, {
957
957
  key: 0,
958
958
  label: "Check NetSuite",
959
959
  "prepend-icon": "troubleshoot",
@@ -961,7 +961,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
961
961
  onClick: y,
962
962
  size: "md"
963
963
  })) : oe("", !0),
964
- m(K, {
964
+ m(G, {
965
965
  disabled: l.disabled,
966
966
  label: t(u)("inventory.transfer.form.items.addItem"),
967
967
  "prepend-icon": "add",
@@ -991,7 +991,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
991
991
  n[13] || (n[13] = e("p", null, ' You can leave "Max" empty to remove the limit on the maximum quantity of the item when creating an order request. ', -1))
992
992
  ]),
993
993
  ($(), le(D, {
994
- "column-defs": E.value,
994
+ "column-defs": L.value,
995
995
  "row-data": t(s).purchaseOrder.items,
996
996
  key: t(s).purchaseOrder.items.map((I) => I.sku._id).join("."),
997
997
  "hide-footer": "",
@@ -1141,7 +1141,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1141
1141
  i && (o.value = a.modelValue ?? c(), f.value = ((g = a.modelValue) == null ? void 0 : g._id) ?? `${Math.random()}`);
1142
1142
  }
1143
1143
  );
1144
- const b = lt(p, "disabled"), k = L(() => {
1144
+ const b = lt(p, "disabled"), k = E(() => {
1145
1145
  switch (a.mode) {
1146
1146
  case ue.READ:
1147
1147
  return "";
@@ -1285,13 +1285,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1285
1285
  }), Oo = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, Do = { class: "flex justify-between" }, Vo = { class: "fm-typo-en-body-lg-600" }, Ao = { class: "fm-status-badge fm-status-badge-info-secondary" }, Ro = { class: "flex flex-col gap-8" }, Uo = { class: "flex flex-col gap-4" }, Po = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Bo = { class: "flex gap-1" }, qo = { class: "fm-typo-en-body-lg-600" }, No = {
1286
1286
  key: 0,
1287
1287
  class: "flex flex-col gap-4"
1288
- }, Lo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Eo = { class: "flex gap-1" }, zo = { class: "fm-typo-en-body-lg-600" }, Ho = {
1288
+ }, Eo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Lo = { class: "flex gap-1" }, zo = { class: "fm-typo-en-body-lg-600" }, Ho = {
1289
1289
  key: 1,
1290
1290
  class: "flex flex-col gap-4"
1291
1291
  }, jo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qo = { class: "fm-typo-en-body-lg-600" }, Yo = {
1292
1292
  key: 2,
1293
1293
  class: "flex flex-col gap-4"
1294
- }, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ko = { class: "fm-typo-en-body-lg-600" }, Go = {
1294
+ }, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Go = { class: "fm-typo-en-body-lg-600" }, Ko = {
1295
1295
  key: 3,
1296
1296
  class: "flex flex-col gap-4"
1297
1297
  }, Jo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Zo = { class: "fm-typo-en-body-lg-600" }, Xo = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, es = { class: "flex flex-col gap-8" }, ts = { class: "fm-typo-en-body-lg-600" }, os = { class: "flex w-full gap-4" }, ss = { class: "grow fm-typo-en-body-lg-400 line-clamp-2" }, ls = { class: "fm-typo-en-body-lg-600 shrink-0" }, ns = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, as = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, rs = {
@@ -1308,13 +1308,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1308
1308
  },
1309
1309
  emits: ["update:show", "action:edit"],
1310
1310
  setup(p, { emit: h }) {
1311
- const v = p, a = h, r = ge(), { t: s } = me(), u = L(() => {
1311
+ const v = p, a = h, r = ge(), { t: s } = me(), u = E(() => {
1312
1312
  var b;
1313
1313
  return (b = v.template) == null ? void 0 : b.purchaseOrder;
1314
1314
  }), x = [
1315
1315
  { accessorKey: "name", header: () => "Name" },
1316
1316
  { accessorKey: "type", header: () => "Type" }
1317
- ], F = Y(""), c = L(
1317
+ ], F = Y(""), c = E(
1318
1318
  () => {
1319
1319
  var b, k, T, R;
1320
1320
  return ((k = (b = u.value) == null ? void 0 : b.supplier) == null ? void 0 : k.internal) === "restaurant" || ((R = (T = u.value) == null ? void 0 : T.supplier) == null ? void 0 : R.internal) === "warehouse" ? X.TRANSFER : X.PURCHASE;
@@ -1341,7 +1341,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1341
1341
  class: "flex flex-col gap-8 px-12 py-16"
1342
1342
  }, {
1343
1343
  default: U(() => {
1344
- var _, W, te, E, B, J, l, n, C;
1344
+ var _, W, te, L, B, J, l, n, C;
1345
1345
  return [
1346
1346
  e("div", Do, [
1347
1347
  e("div", Vo, S(t(s)("inventory.transfer.template.details.templateSummary")), 1),
@@ -1358,8 +1358,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1358
1358
  e("div", qo, S(t(yt)(((_ = b.template) == null ? void 0 : _._id) ?? "")), 1)
1359
1359
  ]),
1360
1360
  (W = b.template) != null && W.updatedAt ? ($(), N("div", No, [
1361
- e("div", Lo, [
1362
- e("div", Eo, S(t(s)("inventory.transfer.receiveRequest.details.updatedAt")), 1)
1361
+ e("div", Eo, [
1362
+ e("div", Lo, S(t(s)("inventory.transfer.receiveRequest.details.updatedAt")), 1)
1363
1363
  ]),
1364
1364
  e("div", zo, [
1365
1365
  ne(S(t(vt)(new Date(b.template.updatedAt))) + " ", 1),
@@ -1368,15 +1368,15 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1368
1368
  ], 64)) : oe("", !0)
1369
1369
  ])
1370
1370
  ])) : oe("", !0),
1371
- (B = (E = u.value) == null ? void 0 : E.supplier) != null && B.name ? ($(), N("div", Ho, [
1371
+ (B = (L = u.value) == null ? void 0 : L.supplier) != null && B.name ? ($(), N("div", Ho, [
1372
1372
  e("div", jo, S(t(s)("inventory.transfer.receiveRequest.details.from")), 1),
1373
1373
  e("div", Qo, S((l = (J = u.value) == null ? void 0 : J.supplier) == null ? void 0 : l.name), 1)
1374
1374
  ])) : oe("", !0),
1375
1375
  (n = u.value) != null && n.ref ? ($(), N("div", Yo, [
1376
1376
  e("div", Wo, S(t(s)("inventory.transfer.receiveRequest.details.reference")), 1),
1377
- e("div", Ko, S(u.value.ref), 1)
1377
+ e("div", Go, S(u.value.ref), 1)
1378
1378
  ])) : oe("", !0),
1379
- (C = u.value) != null && C.remark ? ($(), N("div", Go, [
1379
+ (C = u.value) != null && C.remark ? ($(), N("div", Ko, [
1380
1380
  e("div", Jo, S(t(s)("inventory.transfer.receiveRequest.details.remark")), 1),
1381
1381
  e("div", Zo, S(u.value.remark), 1)
1382
1382
  ])) : oe("", !0)
@@ -1457,12 +1457,12 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1457
1457
  setup(p) {
1458
1458
  const { t: h } = me(), { createTemplate: v, viewTemplate: a, importTemplates: r, exportTemplates: s } = ze(), { templateDialogProps: u, templateDetailsProps: x } = He(ze()), F = Tt(), { loading: c, templates: o } = He(F), f = Y(!1), b = gt(), k = Je(), { breakpoints: T } = Ft();
1459
1459
  Te(F.fetchTemplates);
1460
- const R = L(
1460
+ const R = E(
1461
1461
  () => f.value || c.value || !k._currentLocation
1462
- ), P = L(() => o.value), d = Y(""), y = L(() => T.value.xs || T.value.sm), w = L(() => y.value ? 10 : 20);
1462
+ ), P = E(() => o.value), d = Y(""), y = E(() => T.value.xs || T.value.sm), w = E(() => y.value ? 10 : 20);
1463
1463
  function i(M) {
1464
1464
  switch (M) {
1465
- case Ee.Add:
1465
+ case Le.Add:
1466
1466
  return v();
1467
1467
  case "refresh":
1468
1468
  return F.fetchTemplates();
@@ -1475,10 +1475,10 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1475
1475
  function g(M) {
1476
1476
  return M;
1477
1477
  }
1478
- const O = L(() => [
1478
+ const O = E(() => [
1479
1479
  {
1480
1480
  label: h("inventory.closing.template.create.title"),
1481
- value: Ee.Add,
1481
+ value: Le.Add,
1482
1482
  isPrimary: !0,
1483
1483
  prependIcon: "add"
1484
1484
  },
@@ -1521,7 +1521,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1521
1521
  m(xt, {
1522
1522
  searchable: "",
1523
1523
  search: d.value,
1524
- "onUpdate:search": _[0] || (_[0] = (E) => d.value = E)
1524
+ "onUpdate:search": _[0] || (_[0] = (L) => d.value = L)
1525
1525
  }, null, 8, ["search"]),
1526
1526
  ($(), le(W, {
1527
1527
  style: _e(t(b).tableHeight),
@@ -1530,16 +1530,16 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1530
1530
  "search-value": d.value,
1531
1531
  loading: R.value,
1532
1532
  key: (te = t(k)._currentLocation) == null ? void 0 : te.dbName,
1533
- onRowClick: _[1] || (_[1] = (E) => t(a)(E.original)),
1533
+ onRowClick: _[1] || (_[1] = (L) => t(a)(L.original)),
1534
1534
  "page-size": w.value
1535
1535
  }, {
1536
- "list-row": U((E) => [
1536
+ "list-row": U((L) => [
1537
1537
  m(Ze, {
1538
- row: E,
1538
+ row: L,
1539
1539
  onRowClick: (B) => t(a)(B)
1540
1540
  }, {
1541
1541
  default: U((B) => {
1542
- var J, l, n, C, q, z, K, D, A, G, Z, I, H, ie, Fe, Ie, Se, Me, $e, Oe, ce, De, Ve, Ae, Re, fe, Ue;
1542
+ var J, l, n, C, q, z, G, D, A, K, Z, I, H, ie, Fe, Ie, Se, Me, $e, Oe, ce, De, Ve, Ae, Re, fe, Ue;
1543
1543
  return [
1544
1544
  e("div", cs, [
1545
1545
  e("div", fs, [
@@ -1551,8 +1551,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1551
1551
  ]),
1552
1552
  e("div", vs, [
1553
1553
  m(t(ee), {
1554
- render: (D = (K = (z = B.name) == null ? void 0 : z.column) == null ? void 0 : K.columnDef) == null ? void 0 : D.cell,
1555
- props: (G = (A = B.name) == null ? void 0 : A.getContext) == null ? void 0 : G.call(A)
1554
+ render: (D = (G = (z = B.name) == null ? void 0 : z.column) == null ? void 0 : G.columnDef) == null ? void 0 : D.cell,
1555
+ props: (K = (A = B.name) == null ? void 0 : A.getContext) == null ? void 0 : K.call(A)
1556
1556
  }, null, 8, ["render", "props"])
1557
1557
  ]),
1558
1558
  e("div", bs, [
@@ -1561,8 +1561,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1561
1561
  props: (Fe = (ie = B.supplier) == null ? void 0 : ie.getContext) == null ? void 0 : Fe.call(ie)
1562
1562
  }, null, 8, ["render", "props"])
1563
1563
  ]),
1564
- e("div", null, S((Ie = E.original.locations) != null && Ie.length ? `Enabled for ${(Se = E.original.locations) == null ? void 0 : Se.length} outlets` : "Enabled for all outlets"), 1),
1565
- e("div", gs, S(E.original.purchaseOrder.items.length ? E.original.purchaseOrder.items.map((tt) => tt.name).join(", ") : "No items"), 1),
1564
+ e("div", null, S((Ie = L.original.locations) != null && Ie.length ? `Enabled for ${(Se = L.original.locations) == null ? void 0 : Se.length} outlets` : "Enabled for all outlets"), 1),
1565
+ e("div", gs, S(L.original.purchaseOrder.items.length ? L.original.purchaseOrder.items.map((tt) => tt.name).join(", ") : "No items"), 1),
1566
1566
  e("div", hs, [
1567
1567
  m(t(ee), {
1568
1568
  render: (Oe = ($e = (Me = B.ref) == null ? void 0 : Me.column) == null ? void 0 : $e.columnDef) == null ? void 0 : Oe.cell,
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as G, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Y, ref as R, watch as ee, resolveComponent as I, createBlock as T, withCtx as A, createVNode as f, unref as l, isRef as te, normalizeClass as ie, normalizeStyle as ue, Teleport as de, normalizeProps as me, guardReactiveProps as ce } from "vue";
2
- import { a as K, e as U, S as pe, h as ve, D as ne, i as L, f as se, Q as fe, m as j, A as ye, j as J, T as be, V as ge, q as oe, u as xe, b as _e, B as he, _ as Ve, C as Ue, E as we, G as Ce } from "./app-BDvExlDk.js";
2
+ import { a as K, e as U, S as pe, h as ve, D as ne, i as L, f as se, Q as fe, m as j, A as ye, j as J, T as be, V as ge, q as oe, u as xe, b as _e, B as he, _ as Ve, C as Ue, E as we, G as Ce } from "./app-uQHV9FP_.js";
3
3
  import { useDialog as Se, useSnackbar as ae, useProxiedModel as le, useBreakpoints as ke } from "@feedmepos/ui-library";
4
4
  import { i as Fe, _ as Ee } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { defineStore as $e, storeToRefs as Ie } from "pinia";
6
6
  import { useI18n as O } from "@feedmepos/mf-common";
7
- import { F as De } from "./decimal-DH1GxF5C.js";
8
- import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-KwJ-92ME.js";
7
+ import { F as De } from "./decimal-DKCv75cs.js";
8
+ import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CVYPx1Tq.js";
9
9
  const Re = { class: "flex flex-col gap-8" }, Me = {
10
10
  key: 0,
11
11
  class: "flex flex-col"
@@ -1,5 +1,5 @@
1
1
  import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as R, createElementBlock as q, toRaw as ge, reactive as $e, createElementVNode as g, toDisplayString as T, unref as c, createVNode as _, resolveComponent as N, createSlots as Se, withCtx as B, createTextVNode as We, renderSlot as De, createBlock as z, createCommentVNode as Ae, computed as x, isRef as we, normalizeClass as Pe, normalizeStyle as Re } from "vue";
2
- import { a3 as Ue, at as Ee, au as Te, h as Le, D as Ve, i as Q, f as O, av as Ne, al as Be, m as L, e as E, S as qe, u as ze, B as Ie, _ as je, C as Ge, E as Oe, G as X } from "./app-BDvExlDk.js";
2
+ import { a3 as Ue, as as Ee, at as Te, h as Le, D as Ve, i as Q, f as O, au as Ne, ak as Be, m as L, e as E, S as qe, u as ze, B as Ie, _ as je, C as Ge, E as Oe, G as X } from "./app-uQHV9FP_.js";
3
3
  import { useCoreStore as Me, useI18n as j } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as Ke, useDialog as Ce, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as He } from "@feedmepos/ui-library";
5
5
  import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
@@ -14,8 +14,6 @@ export interface PublishingJob {
14
14
  export declare const useAdjustmentTemplateApi: () => {
15
15
  getRecentPublishingJob(): Promise<RecentPublish>;
16
16
  startNewPublish(): Promise<PublishingJob>;
17
- getRecentPublishInfo(): Promise<FdoAdjustmentTemplatePublish>;
18
- publishSingleDoc(_id: string, locationDbNames?: string[] | null): Promise<FdoAdjustmentTemplatePublish>;
19
17
  getTemplate(id: string): Promise<FdoAdjustmentTemplate & RevisionIdMeta>;
20
18
  readTemplates(): Promise<(FdoAdjustmentTemplate & RevisionIdMeta)[]>;
21
19
  createTemplate(template: Omit<FdoAdjustmentTemplate, '_id'>): Promise<FdoAdjustmentTemplate>;
@@ -14,8 +14,6 @@ export interface PublishingJob {
14
14
  export declare const useClosingTemplateApi: () => {
15
15
  getRecentPublishingJob(): Promise<RecentPublish>;
16
16
  startNewPublish(): Promise<PublishingJob>;
17
- getRecentPublishInfo(): Promise<FdoClosingTemplatePublish>;
18
- publishSingleDoc(_id: string, locationDbNames?: string[] | null): Promise<FdoClosingTemplatePublish>;
19
17
  getTemplate(id: string): Promise<FdoClosingTemplate & RevisionIdMeta>;
20
18
  readTemplates(): Promise<(FdoClosingTemplate & RevisionIdMeta)[]>;
21
19
  createTemplate(template: Omit<FdoClosingTemplate, '_id'>): Promise<FdoClosingTemplate>;
@@ -426,6 +426,7 @@ export declare const useNetSuiteApi: () => {
426
426
  }>;
427
427
  getMoreInfo(locationId: string, poId: string): Promise<FdtoNetSuiteOrderDetails>;
428
428
  getUnSyncTransferInOrders(locationId: string): Promise<string[]>;
429
+ manualSyncMultipleTransferInOrders(netsuiteIds: string[]): Promise<void>;
429
430
  urls: {
430
431
  portalBackendUrl: string;
431
432
  netSuiteBackendUrl: string;