@feedmepos/mf-inventory-portal 0.0.23-dev.24 → 0.0.23-dev.26

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 (49) hide show
  1. package/dist/{App-dQy0_X6Q.js → App-C0hXAs5E.js} +49 -45
  2. package/dist/{ApprovalView-CxwAuXae.js → ApprovalView-Db5Aq3gK.js} +15 -15
  3. package/dist/{BindingsDialog-BX8J03Uc.js → BindingsDialog-dKNKrWKv.js} +9 -9
  4. package/dist/{BindingsPicker-CAW_3sSv.js → BindingsPicker-dN1bNnc0.js} +5 -5
  5. package/dist/{BindingsTable-7UmxSmdW.js → BindingsTable-BA461fcU.js} +8 -8
  6. package/dist/{ClosingDraftView-DukJAMlK.js → ClosingDraftView-aRHVKTA6.js} +68 -69
  7. package/dist/{ClosingTemplateView-Dm7_gMTo.js → ClosingTemplateView-BYnC4Whw.js} +58 -61
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DN3N20Nb.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BdjeCWX1.js} +13 -13
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BrPRiS_u.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CP2euPwM.js} +46 -46
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bln1lReW.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-C4aYGbW2.js} +7 -7
  11. package/dist/{IngredientGroupView-BKIJHeh9.js → IngredientGroupView-vdG6npct.js} +40 -40
  12. package/dist/{IngredientsView-Blnohl3I.js → IngredientsView-DWRAoLHx.js} +207 -210
  13. package/dist/{IntegrationView-Dna4bUA7.js → IntegrationView-Dp_A-Swf.js} +89 -90
  14. package/dist/{InventoryBindingForm-D6HSF8Wn.js → InventoryBindingForm-D_wSUUKv.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CnWvwNjJ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-2Mnqz6HN.js} +27 -27
  16. package/dist/{InventoryBindingSummary-CNNCv8NX.js → InventoryBindingSummary-oyRdM7Pd.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CrMkMTAt.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CSabNdfV.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Cw3E2NKS.js → PremiumBadge.vue_vue_type_script_setup_true_lang-tu1Al7wM.js} +17 -18
  19. package/dist/{PurchaseOrderPrintPreview-PEN03dZK.js → PurchaseOrderPrintPreview-B4m8t90I.js} +1 -1
  20. package/dist/{ReceiveRequestView-rTUhjMLY.js → ReceiveRequestView-DIJb_dU2.js} +26 -27
  21. package/dist/{RecipeView-V1hx1AUG.js → RecipeView-Ch5KMGLJ.js} +47 -48
  22. package/dist/{StockView-B5nDn8nO.js → StockView-BVuzsMG7.js} +7 -7
  23. package/dist/{SupplierView-DyyRxm6k.js → SupplierView-DEC2LmtN.js} +203 -206
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D6oZOwHL.js → TransferDetails.vue_vue_type_script_setup_true_lang-9UZWws3P.js} +61 -62
  25. package/dist/{TransferTemplateView-OTR9Re51.js → TransferTemplateView-DAMQ_Whn.js} +144 -145
  26. package/dist/{UnitView-DGhm1JXD.js → UnitView-CFwHRgQ-.js} +3 -3
  27. package/dist/{WarehouseView-DMAvFisd.js → WarehouseView-HE71bVOX.js} +52 -52
  28. package/dist/app-CRSuR04o.js +84133 -0
  29. package/dist/app.js +1 -1
  30. package/dist/{decimal-DuJEFEYp.js → decimal-B5DqWjel.js} +1 -1
  31. package/dist/{feature-BRqas45f.js → feature-DxNphYNO.js} +1 -1
  32. package/dist/{format-unit-display-G6VtlQe7.js → format-unit-display-D40MKAIU.js} +50 -53
  33. package/dist/{index-D3f51k-I.js → index-BWDsx2Ik.js} +1 -1
  34. package/dist/{stock-DZkj2LE0.js → stock-BAPZYfON.js} +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/{supplier-Cm5Cw3u7.js → supplier-Bp7xaTFX.js} +1 -1
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/{use-inventory-binding-dialog-DCt0wUiw.js → use-inventory-binding-dialog-cxY29PPx.js} +1 -1
  39. package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
  40. package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
  41. package/dist/views/adjustment-template/import/export.d.ts +60 -0
  42. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1 -1
  43. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1 -1
  44. package/package.json +1 -1
  45. package/dist/FmDroppableField-BqZcDO2v.js +0 -154
  46. package/dist/app-DQRbwx-z.js +0 -58903
  47. package/dist/netsuite-D4b5JceM.js +0 -251
  48. package/dist/xlsx-9Gc42bxv.js +0 -24004
  49. package/dist/xlsx.util-CEvUL8mk.js +0 -78
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { aN as s, aO as e, aP as o, aM as t, aQ as i, a as m } from "./app-DQRbwx-z.js";
2
+ import { aX as s, aY as e, aZ as o, aW as t, a_ as i, a as m } from "./app-CRSuR04o.js";
3
3
  export {
4
4
  s as FmApp,
5
5
  e as InventoryBindingForm,
@@ -1,4 +1,4 @@
1
- import "./app-DQRbwx-z.js";
1
+ import "./app-CRSuR04o.js";
2
2
  function m(a) {
3
3
  function t(o, n = !0) {
4
4
  const e = Math.round(Math.log10(o));
@@ -1,5 +1,5 @@
1
1
  import { useCoreStore as t } from "@feedmepos/mf-common";
2
- import { u as o, ao as a, a as i } from "./app-DQRbwx-z.js";
2
+ import { u as o, aw as a, a as i } from "./app-CRSuR04o.js";
3
3
  const c = /* @__PURE__ */ new Set([
4
4
  // vivo pizza prod
5
5
  "business_6687e91fa7240b001ba3f4c2",
@@ -1,13 +1,10 @@
1
- import { N as Ce, a as L, z as Ie, n as Ne, u as z, h as O, o as Ae, av as ne, t as H, G as q, au as De, ap as Fe, K as Oe, c as oe, d as Z, R as ae, x as Pe, a6 as Ue, D as W, f as A, e as Me } from "./app-DQRbwx-z.js";
1
+ import { W as Ce, a as L, K as Ie, ad as F, p as Ne, ae as de, q as pe, u as z, i as P, r as Ae, aF as ne, s as fe, t as H, O as q, aE as De, ax as Oe, T as Fe, v as Pe, w as Ue, b as ye, d as oe, e as Z, R as ae, H as Me, ac as Be, D as W, h as A, f as Qe } from "./app-CRSuR04o.js";
2
2
  import { useCoreStore as J, useI18n as X } from "@feedmepos/mf-common";
3
- import { useDialogChild as Be, useSnackbar as de, useDialog as Qe, FmButtonVariant as se, components as ie } from "@feedmepos/ui-library";
4
- import { defineStore as pe } from "pinia";
5
- import { defineComponent as fe, resolveComponent as M, openBlock as T, createElementBlock as w, createElementVNode as $, normalizeClass as B, createTextVNode as Le, toDisplayString as I, unref as C, createCommentVNode as Q, createVNode as D, withCtx as G, Fragment as P, renderList as j, ref as E, onMounted as He, computed as le, watch as qe, createSlots as Ve, createBlock as V, h as Y } from "vue";
6
- import { useRouter as je } from "vue-router";
7
- import { a as U, b as ye, d as he, s as ve, r as ze } from "./xlsx.util-CEvUL8mk.js";
8
- import { F as Ke } from "./FmDroppableField-BqZcDO2v.js";
9
- import { u as ee } from "./supplier-Cm5Cw3u7.js";
10
- import { u as ge } from "./netsuite-D4b5JceM.js";
3
+ import { useDialogChild as Le, useSnackbar as he, useDialog as He, FmButtonVariant as se, components as ie } from "@feedmepos/ui-library";
4
+ import { defineStore as ve } from "pinia";
5
+ import { defineComponent as ge, resolveComponent as M, openBlock as T, createElementBlock as w, createElementVNode as $, normalizeClass as B, createTextVNode as qe, toDisplayString as I, unref as C, createCommentVNode as Q, createVNode as D, withCtx as G, Fragment as U, renderList as j, ref as E, onMounted as Ve, computed as le, watch as je, createSlots as ze, createBlock as V, h as Y } from "vue";
6
+ import { useRouter as Ke } from "vue-router";
7
+ import { u as ee } from "./supplier-Bp7xaTFX.js";
11
8
  const be = Ce((e, r) => {
12
9
  function i() {
13
10
  var n;
@@ -55,10 +52,10 @@ function Se(e) {
55
52
  code: r.code,
56
53
  name: r.name,
57
54
  unit: ((m = r.unit.measurements.find((a) => a.id === r.trackingMeasurement)) == null ? void 0 : m.abbrev) ?? r.unit.abbrev,
58
- defaultQuantity: +O(e.quantity),
59
- minimumQuantity: +O(e.minimumQuantity ?? ce),
60
- maximumQuantity: +O(e.maximumQuantity ?? ce),
61
- quantityStep: +O(e.quantityStep)
55
+ defaultQuantity: +P(e.quantity),
56
+ minimumQuantity: +P(e.minimumQuantity ?? ce),
57
+ maximumQuantity: +P(e.maximumQuantity ?? ce),
58
+ quantityStep: +P(e.quantityStep)
62
59
  };
63
60
  }
64
61
  function Te() {
@@ -120,7 +117,7 @@ function We(e) {
120
117
  [],
121
118
  h.map((t) => t.name),
122
119
  ...c.map((t) => h.map((S) => t[S.id]))
123
- ], v = h.map((t) => `system:${t.id}`), y = U(b, v);
120
+ ], v = h.map((t) => `system:${t.id}`), y = F(b, v);
124
121
  return { name: l.name, sheet: y };
125
122
  }).reduce(
126
123
  (l, c) => {
@@ -132,8 +129,8 @@ function We(e) {
132
129
  sheets: {},
133
130
  sheetOccurence: {}
134
131
  }
135
- )) == null ? void 0 : s.sheets, n = `${i == null ? void 0 : i.name} transfer templates (${Ne(/* @__PURE__ */ new Date())}).xlsx`, p = ye(a);
136
- return he(p, n), n;
132
+ )) == null ? void 0 : s.sheets, n = `${i == null ? void 0 : i.name} transfer templates (${Ne(/* @__PURE__ */ new Date())}).xlsx`, p = de(a);
133
+ return pe(p, n), n;
137
134
  }
138
135
  function Ye() {
139
136
  const e = J(), r = ee(), i = z(), m = L(), a = e.currentBusiness.value, n = Se({
@@ -189,7 +186,7 @@ function Ye() {
189
186
  [],
190
187
  p.map((t) => t.name),
191
188
  p.map((t) => n[t.id])
192
- ], l = p.map((t) => `system:${t.id}`), c = U(s, l), h = U(
189
+ ], l = p.map((t) => `system:${t.id}`), c = F(s, l), h = F(
193
190
  [
194
191
  ...r.businessSuppliers.map((t) => [
195
192
  `${t.name} (${t._id})`,
@@ -216,7 +213,7 @@ function Ye() {
216
213
  })
217
214
  ],
218
215
  ["Name", "Type", "Line 1", "Line 2", "City", "Postal", "State", "Country"]
219
- ), b = U(
216
+ ), b = F(
220
217
  i.locations.map((t) => {
221
218
  var S, _, d, o, u, x;
222
219
  return [
@@ -230,7 +227,7 @@ function Ye() {
230
227
  ];
231
228
  }),
232
229
  ["Name", "Line 1", "Line 2", "City", "Postal", "State", "Country"]
233
- ), v = U(
230
+ ), v = F(
234
231
  m.skus.map((t) => [
235
232
  t.code,
236
233
  t.name,
@@ -238,13 +235,13 @@ function Ye() {
238
235
  ...t.unit.measurements.map((S) => S.abbrev)
239
236
  ]),
240
237
  ["Code", "Name", "Base unit", "Measurements"]
241
- ), y = ye({
238
+ ), y = de({
242
239
  Template: c,
243
240
  Source: h,
244
241
  Destination: b,
245
242
  Ingredient: v
246
243
  }), f = `${a == null ? void 0 : a.name} transfer templates import.xlsx`;
247
- return he(y, f), f;
244
+ return pe(y, f), f;
248
245
  }
249
246
  function Ge(e, r) {
250
247
  const i = new Array(), m = /(.*) \(((supplier_|warehouse_|restaurant_).{24,})\)/, n = z().locationByDbName, s = ee().supplierById, l = e.trim(), c = m.exec(l);
@@ -322,7 +319,7 @@ function Je(e) {
322
319
  c,
323
320
  h,
324
321
  b
325
- ] = ve(e);
322
+ ] = fe(e);
326
323
  return {
327
324
  id: `${i[1] ?? ""}`.trim(),
328
325
  name: `${m[1] ?? ""}`.trim(),
@@ -349,7 +346,7 @@ function Xe(e) {
349
346
  v,
350
347
  y,
351
348
  ...f
352
- ] = ve(e);
349
+ ] = fe(e);
353
350
  if (!r || !r.length || r.some((o) => o.length && !o.startsWith("system:")))
354
351
  throw new Error("Missing meta header. Excel file does not come from the template.");
355
352
  const t = r.map((o) => o.split(":")[1]), _ = [
@@ -424,7 +421,7 @@ function et(e, r, i) {
424
421
  q(p, s)
425
422
  ), y = c(v);
426
423
  typeof y == "string" && n.push(`Maximum amount: ${y}`), +e.minimumQuantity > +e.maximumQuantity && n.push("Minimum amount must be less than or equal to maximum amount");
427
- const f = Fe(+e.minimumQuantity, +e.maximumQuantity), t = H(
424
+ const f = Oe(+e.minimumQuantity, +e.maximumQuantity), t = H(
428
425
  e.defaultQuantity,
429
426
  q(p, s)
430
427
  ), S = c(t), _ = f(`${e.defaultQuantity}`);
@@ -560,7 +557,7 @@ function rt() {
560
557
  const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-col" }, at = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, st = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, it = {
561
558
  key: 0,
562
559
  class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
563
- }, lt = { key: 0 }, me = /* @__PURE__ */ fe({
560
+ }, lt = { key: 0 }, me = /* @__PURE__ */ ge({
564
561
  __name: "TransferTemplateImportItem",
565
562
  props: {
566
563
  type: {},
@@ -583,15 +580,15 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
583
580
  "text-fm-color-system-error-300": r.errors.length
584
581
  })
585
582
  }, [
586
- Le(I(r.name) + " ", 1),
587
- $("span", st, " (" + I(C(Oe)(`${r.transferType}`)) + ") ", 1),
583
+ qe(I(r.name) + " ", 1),
584
+ $("span", st, " (" + I(C(Fe)(`${r.transferType}`)) + ") ", 1),
588
585
  r.type === "create" ? (T(), w("span", it, "(new)")) : Q("", !0)
589
586
  ], 2),
590
587
  r.errors.length ? (T(), w("div", lt, [
591
588
  D(a, { "z-index": 50 }, {
592
589
  content: G(() => [
593
590
  $("ol", null, [
594
- (T(!0), w(P, null, j(r.errors, (l, c) => (T(), w("li", { key: c }, I(l), 1))), 128))
591
+ (T(!0), w(U, null, j(r.errors, (l, c) => (T(), w("li", { key: c }, I(l), 1))), 128))
595
592
  ])
596
593
  ]),
597
594
  default: G(() => [
@@ -630,11 +627,11 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
630
627
  }, yt = { class: "text-fm-color-system-error-300 fm-typo-en-body-sm-400" }, ht = {
631
628
  key: 0,
632
629
  class: "max-h-[200px] overflow-y-auto flex flex-col gap-8"
633
- }, vt = { class: "fm-typo-en-body-lg-600" }, gt = /* @__PURE__ */ fe({
630
+ }, vt = { class: "fm-typo-en-body-lg-600" }, gt = /* @__PURE__ */ ge({
634
631
  __name: "TransferTemplateImport",
635
632
  setup(e) {
636
- const r = E(null), i = Be(), m = de(), a = E(!1), n = E(!1), p = ee();
637
- He(async () => {
633
+ const r = E(null), i = Le(), m = he(), a = E(!1), n = E(!1), p = ee();
634
+ Ve(async () => {
638
635
  n.value = !0;
639
636
  try {
640
637
  await p.readSuppliers().delayed(1e3);
@@ -658,7 +655,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
658
655
  try {
659
656
  a.value = !0;
660
657
  const [t] = await Promise.all([
661
- ze(f),
658
+ Ue(f),
662
659
  // fake buffer
663
660
  new Promise((o) => setTimeout(o, 1e3))
664
661
  ]);
@@ -693,7 +690,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
693
690
  }), a.value = !1;
694
691
  }
695
692
  }
696
- return qe(r, (f) => {
693
+ return je(r, (f) => {
697
694
  f && y(f);
698
695
  }), (f, t) => {
699
696
  const S = M("FmCircularProgress"), _ = M("FmIcon"), d = M("FmButton");
@@ -707,8 +704,8 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
707
704
  })
708
705
  ]),
709
706
  t[1] || (t[1] = $("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, "Loading...", -1))
710
- ])) : (T(), w(P, { key: 1 }, [
711
- D(Ke, {
707
+ ])) : (T(), w(U, { key: 1 }, [
708
+ D(Pe, {
712
709
  class: B({
713
710
  "w-full": !0,
714
711
  "h-[200px]": !r.value
@@ -717,7 +714,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
717
714
  onFileUpload: t[0] || (t[0] = (o) => r.value = o),
718
715
  label: C(v)("inventory.ingredient.import.uploadTemplate"),
719
716
  "button-label": C(v)("inventory.ingredient.import.selectFile")
720
- }, Ve({ _: 2 }, [
717
+ }, ze({ _: 2 }, [
721
718
  r.value ? {
722
719
  name: "default",
723
720
  fn: G(({ openFileDialog: o }) => [
@@ -763,7 +760,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
763
760
  ]))
764
761
  ], 2),
765
762
  s.value.length ? (T(), w("div", ft, [
766
- (T(!0), w(P, null, j(s.value, (u, x) => (T(), w("div", {
763
+ (T(!0), w(U, null, j(s.value, (u, x) => (T(), w("div", {
767
764
  key: x,
768
765
  class: "flex gap-8 items-center"
769
766
  }, [
@@ -782,7 +779,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
782
779
  ]), 1032, ["class", "label", "button-label"]),
783
780
  b.value ? (T(), w("div", ht, [
784
781
  $("div", vt, I(C(v)("inventory.ingredient.import.summary")), 1),
785
- (T(!0), w(P, null, j(l.value, (o, u) => (T(), V(me, {
782
+ (T(!0), w(U, null, j(l.value, (o, u) => (T(), V(me, {
786
783
  key: u,
787
784
  name: o.template.name,
788
785
  "transfer-type": typeof o.template.purchaseOrder.supplier.internal == "string" ? C(R).TRANSFER : C(R).PURCHASE,
@@ -791,7 +788,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
791
788
  errors: o.errors,
792
789
  type: "create"
793
790
  }, null, 8, ["name", "transfer-type", "locations", "items", "errors"]))), 128)),
794
- (T(!0), w(P, null, j(c.value, (o) => (T(), V(me, {
791
+ (T(!0), w(U, null, j(c.value, (o) => (T(), V(me, {
795
792
  key: o.template._id,
796
793
  name: o.template.name,
797
794
  "transfer-type": typeof o.template.purchaseOrder.supplier.internal == "string" ? C(R).TRANSFER : C(R).PURCHASE,
@@ -808,7 +805,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
808
805
  });
809
806
  function bt(e) {
810
807
  var n, p;
811
- const r = ge();
808
+ const r = ye();
812
809
  if (!r.isEnabled) return !0;
813
810
  if (!e.internal) {
814
811
  const s = r.getNetSuiteVendor(e._id), l = s == null ? void 0 : s.subsidiaryId, c = (n = r.currentVendorSubsidiary(e._id)) == null ? void 0 : n.id;
@@ -817,8 +814,8 @@ function bt(e) {
817
814
  const i = r.getNetSuiteLocation(`${e.internal}_${e._id}`), m = r.getLocationSubsidiary(i == null ? void 0 : i.netSuiteId).id, a = (p = r.currentLocationSubsidiary()) == null ? void 0 : p.id;
818
815
  return m && m == a;
819
816
  }
820
- const xt = pe("transferTemplateActions", () => {
821
- const e = Qe(), r = de(), i = z(), m = $e(), a = be(), n = ge(), p = je(), { t: s } = X(), l = E({});
817
+ const xt = ve("transferTemplateActions", () => {
818
+ const e = He(), r = he(), i = z(), m = $e(), a = be(), n = ye(), p = Ke(), { t: s } = X(), l = E({});
822
819
  function c() {
823
820
  l.value = {
824
821
  mode: oe.CREATE,
@@ -898,7 +895,7 @@ const xt = pe("transferTemplateActions", () => {
898
895
  }, x = m.templates.filter(
899
896
  (g) => {
900
897
  var N;
901
- return (!g.locations || g.locations.find((F) => F.doc._id === i.currentLocation.doc._id)) && ((N = g.purchaseOrder.supplier) == null ? void 0 : N._id) !== i.currentLocation.doc._id;
898
+ return (!g.locations || g.locations.find((O) => O.doc._id === i.currentLocation.doc._id)) && ((N = g.purchaseOrder.supplier) == null ? void 0 : N._id) !== i.currentLocation.doc._id;
902
899
  }
903
900
  );
904
901
  if (!x.length)
@@ -918,10 +915,10 @@ const xt = pe("transferTemplateActions", () => {
918
915
  }).onSecondary(() => u(void 0)).onClose(() => u(void 0)), d;
919
916
  const k = x.map((g) => {
920
917
  var re;
921
- const N = !g.purchaseOrder.items.length || g.purchaseOrder.items.some(xe), F = !bt(g.purchaseOrder.supplier), K = g.purchaseOrder.supplier.internal ? n.getNetSuiteLocation(
918
+ const N = !g.purchaseOrder.items.length || g.purchaseOrder.items.some(xe), O = !bt(g.purchaseOrder.supplier), K = g.purchaseOrder.supplier.internal ? n.getNetSuiteLocation(
922
919
  `${g.purchaseOrder.supplier.internal}_${g.purchaseOrder.supplier._id}`
923
- ) : n.getNetSuiteVendor(g.purchaseOrder.supplier._id), we = F ? `The subsidiary of the request
924
- location is ${(re = n.getLocationSubsidiary(K == null ? void 0 : K.netSuiteId)) == null ? void 0 : re.fullName}.` : void 0, ke = N || F, Ee = N ? "This template is invalid. Update this template." : F ? we : void 0, Re = `${g.purchaseOrder.supplier.internal ? "Transfer" : "Purchase"} from ${g.purchaseOrder.supplier.name}`;
920
+ ) : n.getNetSuiteVendor(g.purchaseOrder.supplier._id), we = O ? `The subsidiary of the request
921
+ location is ${(re = n.getLocationSubsidiary(K == null ? void 0 : K.netSuiteId)) == null ? void 0 : re.fullName}.` : void 0, ke = N || O, Ee = N ? "This template is invalid. Update this template." : O ? we : void 0, Re = `${g.purchaseOrder.supplier.internal ? "Transfer" : "Purchase"} from ${g.purchaseOrder.supplier.name}`;
925
922
  return {
926
923
  label: g.name,
927
924
  value: g._id,
@@ -931,7 +928,7 @@ const xt = pe("transferTemplateActions", () => {
931
928
  });
932
929
  return k.sort((g, N) => +!!g.disabled - +!!N.disabled), e.open({
933
930
  title: "Select one template",
934
- contentComponent: Pe,
931
+ contentComponent: Me,
935
932
  contentComponentProps: {
936
933
  items: k,
937
934
  singleSelect: !0
@@ -1057,7 +1054,7 @@ function ue(e) {
1057
1054
  const { skuById: r } = L(), i = Z(e);
1058
1055
  return i.purchaseOrder.items = e.purchaseOrder.items.filter((m) => r[m.sku._id]), i;
1059
1056
  }
1060
- const $e = pe(
1057
+ const $e = ve(
1061
1058
  "transferTemplateTable",
1062
1059
  function() {
1063
1060
  const { t: r } = X(), { viewTemplate: i, updateTemplate: m, deleteTemplate: a } = xt(), n = E(!1), p = E(new Array()), s = be(), l = L();
@@ -1106,7 +1103,7 @@ const $e = pe(
1106
1103
  accessorKey: "_id",
1107
1104
  header: () => r("inventory.transfer.table.createdAt"),
1108
1105
  cell(y) {
1109
- return Ue(`${y.getValue()}`);
1106
+ return Be(`${y.getValue()}`);
1110
1107
  },
1111
1108
  enableSorting: !0
1112
1109
  },
@@ -1179,7 +1176,7 @@ const $e = pe(
1179
1176
  W[A.Edit],
1180
1177
  W[A.Delete]
1181
1178
  ];
1182
- return Me(t, (S) => b(S, f));
1179
+ return Qe(t, (S) => b(S, f));
1183
1180
  },
1184
1181
  enableSorting: !1,
1185
1182
  size: 40,
@@ -1196,15 +1193,15 @@ const $e = pe(
1196
1193
  };
1197
1194
  }
1198
1195
  );
1199
- function At(e, r, i) {
1196
+ function Ct(e, r, i) {
1200
1197
  const m = (i == null ? void 0 : i.abbrev) ?? r.abbrev;
1201
- return `${O(e, !1)} ${m}`;
1198
+ return `${P(e, !1)} ${m}`;
1202
1199
  }
1203
1200
  export {
1204
1201
  R as P,
1205
1202
  be as a,
1206
1203
  xt as b,
1207
- At as f,
1204
+ Ct as f,
1208
1205
  xe as t,
1209
1206
  $e as u
1210
1207
  };
@@ -1,4 +1,4 @@
1
- import { aI as L, W as U, aJ as J, X as Oe, aK as Us, Z as tr, aL as Rt } from "./app-DQRbwx-z.js";
1
+ import { aS as L, a1 as U, aT as J, a2 as Oe, aU as Us, a4 as tr, aV as Rt } from "./app-CRSuR04o.js";
2
2
  function Vs(t, e) {
3
3
  for (var r = 0; r < e.length; r++) {
4
4
  const n = e[r];
@@ -1,4 +1,4 @@
1
- import { N as l, u as m, a as B, ae as k } from "./app-DQRbwx-z.js";
1
+ import { W as l, u as m, a as B, am as k } from "./app-CRSuR04o.js";
2
2
  import { useCoreStore as p } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as v } from "@feedmepos/ui-library";
4
4
  import { ref as y } from "vue";
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .fade-enter-active,.fade-leave-active{transition:opacity .5s ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-enter-active[data-v-0b70e452],.fade-leave-active[data-v-0b70e452]{transition:opacity .25s ease}.fade-enter[data-v-0b70e452],.fade-leave-to[data-v-0b70e452]{opacity:0}.fm-forecast-notification-low{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-forecast-notification-mid{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-forecast-notification-high{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-forecast-notification-indicator{display:inline-block;height:12px;width:12px;border-radius:9999px}.fm-forecast-notification-indicator-low{background-color:var(--fm-color-system-red-400)}.fm-forecast-notification-indicator-mid{background-color:var(--fm-color-system-orange-400)}.fm-forecast-notification-indicator-high{background-color:var(--fm-color-system-green-400)}.fm-droppable-field[data-v-e121b2c1]{display:flex;flex-direction:column;gap:4px}.fm-droppable-field__container[data-v-e121b2c1]{position:relative;background-color:var(--fm-color-neutral-white);padding:12px;border-radius:8px;border-width:2px;border-style:dashed;border-color:var(--fm-color-neutral-gray-300);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}.fm-droppable-field__container--disabled[data-v-e121b2c1]{cursor:not-allowed;color:var(--fm-color-neutral-gray-200);border-color:var(--fm-color-neutral-gray-200)}.fm-droppable-field__container--dragging[data-v-e121b2c1]{border-color:var(--fm-color-primary)}.fm-droppable-field__container--invalid[data-v-e121b2c1]{border-color:var(--fm-color-system-red-300)}.fm-droppable-field__container[data-v-e121b2c1]:hover:not(.fm-droppable-field__container--disabled){border-color:var(--fm-color-neutral-gray-400)}.fm-droppable-field__input[data-v-e121b2c1]{cursor:pointer;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%}.fm-droppable-field__input[data-v-e121b2c1]:disabled{display:none;cursor:not-allowed}.map-button[data-v-272f5e8b]{border-top-width:1px;border-top-color:var(--fm-color-neutral-gray-200);color:var(--fm-color-neutral-gray-400);padding:.2rem 1rem;border-radius:8px}table[data-v-92a03d5c]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-92a03d5c],table th[data-v-92a03d5c]{padding:3px 5px;vertical-align:top}hr[data-v-92a03d5c]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-92a03d5c]{text-align:left}.text-right[data-v-92a03d5c]{text-align:right}.purchase-box[data-v-92a03d5c]{max-width:800px;margin:auto;padding:30px;border:1px solid #eee;box-shadow:0 0 10px #00000026;font-size:16px;line-height:1.5;font-family:Helvetica Neue,Helvetica,Helvetica,Arial,sans-serif;color:#555}.title[data-v-92a03d5c]{padding-bottom:0;font-size:30px;color:#333}.header[data-v-92a03d5c]{font-weight:600;color:#333}.sub-header[data-v-92a03d5c]{font-size:18px;color:#333}.caption[data-v-92a03d5c]{font-size:14px;color:#666}.address[data-v-92a03d5c]{font-size:16px;line-height:1.2;color:#666}.purchase-body[data-v-92a03d5c]{margin-top:30px}.item-header[data-v-92a03d5c]{border:0px;background:#ccc;color:#444}.v-enter-active[data-v-fb8b7488],.v-leave-active[data-v-fb8b7488]{transition:opacity .1s ease}.v-enter-from[data-v-fb8b7488],.v-leave-to[data-v-fb8b7488]{opacity:0}.fm-status-badge{font-size:.875rem;font-weight:600;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;border-radius:8px;display:flex;align-items:center;padding-left:8px;padding-right:8px;height:22px}.fm-status-badge-draft{background-color:var(--fm-color-neutral-gray-100);color:var(--fm-color-neutral-gray-500)}.fm-status-badge-receiving{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-cancel{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-status-badge-complete{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-status-badge-processing,.fm-status-badge-requesting{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-status-badge-transfer-info,.fm-status-badge-info-secondary{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-success-secondary{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}
1
+ .fm-droppable-field[data-v-e121b2c1]{display:flex;flex-direction:column;gap:4px}.fm-droppable-field__container[data-v-e121b2c1]{position:relative;background-color:var(--fm-color-neutral-white);padding:12px;border-radius:8px;border-width:2px;border-style:dashed;border-color:var(--fm-color-neutral-gray-300);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}.fm-droppable-field__container--disabled[data-v-e121b2c1]{cursor:not-allowed;color:var(--fm-color-neutral-gray-200);border-color:var(--fm-color-neutral-gray-200)}.fm-droppable-field__container--dragging[data-v-e121b2c1]{border-color:var(--fm-color-primary)}.fm-droppable-field__container--invalid[data-v-e121b2c1]{border-color:var(--fm-color-system-red-300)}.fm-droppable-field__container[data-v-e121b2c1]:hover:not(.fm-droppable-field__container--disabled){border-color:var(--fm-color-neutral-gray-400)}.fm-droppable-field__input[data-v-e121b2c1]{cursor:pointer;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%}.fm-droppable-field__input[data-v-e121b2c1]:disabled{display:none;cursor:not-allowed}.fade-enter-active,.fade-leave-active{transition:opacity .5s ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-enter-active[data-v-0b70e452],.fade-leave-active[data-v-0b70e452]{transition:opacity .25s ease}.fade-enter[data-v-0b70e452],.fade-leave-to[data-v-0b70e452]{opacity:0}.fm-forecast-notification-low{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-forecast-notification-mid{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-forecast-notification-high{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-forecast-notification-indicator{display:inline-block;height:12px;width:12px;border-radius:9999px}.fm-forecast-notification-indicator-low{background-color:var(--fm-color-system-red-400)}.fm-forecast-notification-indicator-mid{background-color:var(--fm-color-system-orange-400)}.fm-forecast-notification-indicator-high{background-color:var(--fm-color-system-green-400)}.map-button[data-v-272f5e8b]{border-top-width:1px;border-top-color:var(--fm-color-neutral-gray-200);color:var(--fm-color-neutral-gray-400);padding:.2rem 1rem;border-radius:8px}table[data-v-92a03d5c]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-92a03d5c],table th[data-v-92a03d5c]{padding:3px 5px;vertical-align:top}hr[data-v-92a03d5c]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-92a03d5c]{text-align:left}.text-right[data-v-92a03d5c]{text-align:right}.purchase-box[data-v-92a03d5c]{max-width:800px;margin:auto;padding:30px;border:1px solid #eee;box-shadow:0 0 10px #00000026;font-size:16px;line-height:1.5;font-family:Helvetica Neue,Helvetica,Helvetica,Arial,sans-serif;color:#555}.title[data-v-92a03d5c]{padding-bottom:0;font-size:30px;color:#333}.header[data-v-92a03d5c]{font-weight:600;color:#333}.sub-header[data-v-92a03d5c]{font-size:18px;color:#333}.caption[data-v-92a03d5c]{font-size:14px;color:#666}.address[data-v-92a03d5c]{font-size:16px;line-height:1.2;color:#666}.purchase-body[data-v-92a03d5c]{margin-top:30px}.item-header[data-v-92a03d5c]{border:0px;background:#ccc;color:#444}.v-enter-active[data-v-4515fce1],.v-leave-active[data-v-4515fce1]{transition:opacity .1s ease}.v-enter-from[data-v-4515fce1],.v-leave-to[data-v-4515fce1]{opacity:0}.fm-status-badge{font-size:.875rem;font-weight:600;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;border-radius:8px;display:flex;align-items:center;padding-left:8px;padding-right:8px;height:22px}.fm-status-badge-draft{background-color:var(--fm-color-neutral-gray-100);color:var(--fm-color-neutral-gray-500)}.fm-status-badge-receiving{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-cancel{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-status-badge-complete{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-status-badge-processing,.fm-status-badge-requesting{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-status-badge-transfer-info,.fm-status-badge-info-secondary{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-success-secondary{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}
@@ -1,4 +1,4 @@
1
- import { N as m, u, o as y, af as b, ag as v } from "./app-DQRbwx-z.js";
1
+ import { W as m, u, r as y, an as b, ao as v } from "./app-CRSuR04o.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  import { defineStore as w } from "pinia";
4
4
  import { ref as l, computed as d } from "vue";