@feedmepos/mf-inventory-portal 1.2.8 → 1.2.10-dev.1

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 (51) hide show
  1. package/dist/{App-D1IJlQS8.js → App-Bg2M5RwP.js} +1 -1
  2. package/dist/{ApprovalView-GnDYWZHY.js → ApprovalView-C46UDXnc.js} +24 -24
  3. package/dist/{BindingsDialog-Bs00N9mp.js → BindingsDialog-CtJjpbw-.js} +2 -2
  4. package/dist/{BindingsPicker-LO15pMdZ.js → BindingsPicker-B6Er5Lea.js} +1 -1
  5. package/dist/{BindingsTable-g27KG9q4.js → BindingsTable-MPeTr_ip.js} +1 -1
  6. package/dist/{ClosingDraftView-Ddsgcrmg.js → ClosingDraftView-BaD3MLeG.js} +33 -33
  7. package/dist/{ClosingTemplateView-G8Ya81UZ.js → ClosingTemplateView-C4z3GXwd.js} +3 -3
  8. package/dist/{DeliveryOrderPrintPreview-qq1rhFKV.js → DeliveryOrderPrintPreview-BfafKFMa.js} +8 -8
  9. package/dist/{FmAdminBadge-B2NpMmJi.js → FmAdminBadge-Dg5rl1fj.js} +4 -4
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C1i9CHE1.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BATVvC9u.js} +11 -11
  11. package/dist/{FmMultiselectDialog-u2dbuZUp.js → FmMultiselectDialog-DJ-dIe8C.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-vpiiv6C1.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BBWaPrlm.js} +38 -38
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-3T-d1pIb.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-oaujHoaU.js} +1 -1
  14. package/dist/{IngredientGroupView-CqB73-e4.js → IngredientGroupView-u4ubHtNF.js} +15 -15
  15. package/dist/{IngredientsView-Cq42ytcN.js → IngredientsView-CXbJifY6.js} +766 -744
  16. package/dist/{IntegrationView-OHnUGZst.js → IntegrationView-XEypfcAW.js} +137 -137
  17. package/dist/{InventoryBindingForm-DorgxR-Y.js → InventoryBindingForm-CETOb5Nj.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CZy77tY7.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DC52GJ2Y.js} +22 -22
  19. package/dist/{InventoryBindingSummary-B_YavyPb.js → InventoryBindingSummary-DbyJW8z0.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-XuEDo134.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BQWWQxaq.js} +1 -1
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Blq1oE5l.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BruydtsG.js} +9 -9
  22. package/dist/{PublishView-Ds_ztGcV.js → PublishView-Cl3IluMR.js} +12 -12
  23. package/dist/{PurchaseOrderPrintPreview-DnyqN_xE.js → PurchaseOrderPrintPreview-BG_uBL4o.js} +7 -7
  24. package/dist/{ReceiveRequestView-ChpKsDaF.js → ReceiveRequestView-BvGlUVTp.js} +191 -191
  25. package/dist/{RecipeView-Dyp9Xcme.js → RecipeView-C-7XU5F8.js} +12 -12
  26. package/dist/{StockView-D-iP52Zw.js → StockView-rYhlg4fr.js} +680 -665
  27. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-D0kASPO9.js +158 -0
  28. package/dist/{SupplierView-BaEK3C8q.js → SupplierView-BoGoqUS-.js} +4 -4
  29. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-B_ravTwn.js → TransferDetails.vue_vue_type_script_setup_true_lang-D53vhWDq.js} +6 -6
  30. package/dist/{TransferTemplateView-3zS7hNZz.js → TransferTemplateView-DZIDXFp7.js} +143 -143
  31. package/dist/{UnitView-BP5eztAG.js → UnitView-CvHIFkue.js} +27 -27
  32. package/dist/{WarehouseView-DMY7Lgwq.js → WarehouseView-Dh_WZz5L.js} +18 -18
  33. package/dist/{app-P6XaUzjP.js → app-BT34Yv61.js} +8968 -8917
  34. package/dist/app.d.ts +6 -6
  35. package/dist/app.js +4 -4
  36. package/dist/{closing-template-BGYZPBty.js → closing-template-JDCk0_lU.js} +1 -1
  37. package/dist/{decimal-wz5HXhQ8.js → decimal-BTgTm2JD.js} +1 -1
  38. package/dist/{format-unit-display-DOOJqLop.js → format-unit-display-HHCA1rN3.js} +48 -48
  39. package/dist/{index-oR0svfBM.js → index-Bz_lEYOD.js} +1 -1
  40. package/dist/{index-CHTB43Wl.js → index-CdamrmzX.js} +1 -1
  41. package/dist/{purchase-order-template-BGunGekw.js → purchase-order-template-DJiYiY6t.js} +1 -1
  42. package/dist/{stock-TJayQnag.js → stock-C8afHO4C.js} +1 -1
  43. package/dist/stores/integration/netsuite.d.ts +1 -0
  44. package/dist/{supplier-C_vqpE92.js → supplier-C8RMKqQX.js} +1 -1
  45. package/dist/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/{use-ingredient-select-dialog-CIahwuTX.js → use-ingredient-select-dialog-fLK9yq-0.js} +1 -1
  47. package/dist/{use-inventory-binding-dialog-BiKRXVhY.js → use-inventory-binding-dialog--7tzpXgV.js} +1 -1
  48. package/dist/views/ingredients/components/ingredient-dialog/IngredientDialogProps.d.ts +1 -1
  49. package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -0
  50. package/package.json +2 -2
  51. package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +0 -59
package/dist/app.d.ts CHANGED
@@ -3481,6 +3481,9 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
3481
3481
  enableIngredientGroup: {
3482
3482
  type: import("vue").PropType<boolean>;
3483
3483
  };
3484
+ readonly: {
3485
+ type: import("vue").PropType<boolean>;
3486
+ };
3484
3487
  disabled: {
3485
3488
  type: import("vue").PropType<boolean>;
3486
3489
  };
@@ -3504,9 +3507,6 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
3504
3507
  }[]>;
3505
3508
  default: () => never[];
3506
3509
  };
3507
- readonly: {
3508
- type: import("vue").PropType<boolean>;
3509
- };
3510
3510
  iframeMode: {
3511
3511
  type: import("vue").PropType<boolean>;
3512
3512
  };
@@ -3559,6 +3559,9 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
3559
3559
  enableIngredientGroup: {
3560
3560
  type: import("vue").PropType<boolean>;
3561
3561
  };
3562
+ readonly: {
3563
+ type: import("vue").PropType<boolean>;
3564
+ };
3562
3565
  disabled: {
3563
3566
  type: import("vue").PropType<boolean>;
3564
3567
  };
@@ -3582,9 +3585,6 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
3582
3585
  }[]>;
3583
3586
  default: () => never[];
3584
3587
  };
3585
- readonly: {
3586
- type: import("vue").PropType<boolean>;
3587
- };
3588
3588
  iframeMode: {
3589
3589
  type: import("vue").PropType<boolean>;
3590
3590
  };
package/dist/app.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import "vue";
2
- import { bk as a, bl as e, bm as o, bj as m, bn as t, a as i } from "./app-P6XaUzjP.js";
2
+ import { bl as o, bm as a, bn as e, bk as m, bo as t, a as i } from "./app-BT34Yv61.js";
3
3
  export {
4
- a as FmApp,
5
- e as InventoryBindingForm,
6
- o as InventoryBindingSummary,
4
+ o as FmApp,
5
+ a as InventoryBindingForm,
6
+ e as InventoryBindingSummary,
7
7
  m as i18nMessages,
8
8
  t as routers,
9
9
  i as useInventoryStore
@@ -1,4 +1,4 @@
1
- import { a6 as c } from "./app-P6XaUzjP.js";
1
+ import { a7 as c } from "./app-BT34Yv61.js";
2
2
  import { useCoreStore as l } from "@feedmepos/mf-common";
3
3
  const p = c((r, s) => {
4
4
  function o() {
@@ -1,4 +1,4 @@
1
- import "./app-P6XaUzjP.js";
1
+ import "./app-BT34Yv61.js";
2
2
  function m(a) {
3
3
  function t(o, n = !0) {
4
4
  const e = Math.round(Math.log10(o));
@@ -1,19 +1,19 @@
1
- import { a as q, Z as Ae, an as U, z as Ne, ao as ye, B as he, u as Z, k as L, C as De, x as le, E as ve, b as te, t as G, w as J, aQ as Oe, aI as Fe, a4 as Pe, G as Me, H as Ue, ap as Le, e as ce, f as re, R as me, s as Be, al as Qe, D as j, i as N, h as He } from "./app-P6XaUzjP.js";
1
+ import { a as q, $ as Ie, ao as U, z as Ne, ap as ye, B as he, u as J, k as L, C as De, x as le, E as ve, b as te, t as G, w as Z, aR as Oe, aJ as Fe, a5 as Pe, G as Me, H as Ue, aq as Le, e as ce, f as re, R as me, s as Be, am as Qe, D as j, i as N, h as He } from "./app-BT34Yv61.js";
2
2
  import { useCoreStore as ge, useI18n as ne } from "@feedmepos/mf-common";
3
3
  import { useDialogChild as Ve, useSnackbar as be, useDialog as qe, FmButtonVariant as z, components as X } from "@feedmepos/ui-library";
4
4
  import { defineStore as xe } from "pinia";
5
- import { u as Se } from "./purchase-order-template-BGunGekw.js";
6
- import { defineComponent as oe, resolveComponent as Q, openBlock as _, createElementBlock as E, createElementVNode as C, normalizeClass as H, createTextVNode as je, toDisplayString as D, unref as A, createCommentVNode as V, createVNode as P, withCtx as ee, Fragment as B, renderList as Y, ref as R, onMounted as ze, computed as ue, watch as Ke, createSlots as Ye, createBlock as K, h as W } from "vue";
5
+ import { u as Se } from "./purchase-order-template-DJiYiY6t.js";
6
+ import { defineComponent as oe, resolveComponent as Q, openBlock as _, createElementBlock as E, createElementVNode as C, normalizeClass as H, createTextVNode as je, toDisplayString as D, unref as I, createCommentVNode as V, createVNode as P, withCtx as ee, Fragment as B, renderList as Y, ref as k, onMounted as ze, computed as ue, watch as Ke, createSlots as Ye, createBlock as K, h as W } from "vue";
7
7
  import { useRouter as We } from "vue-router";
8
- import { u as ae } from "./supplier-C_vqpE92.js";
8
+ import { u as ae } from "./supplier-C8RMKqQX.js";
9
9
  function Te(e) {
10
10
  const t = q(), a = e.sku, u = t.skuById[a._id];
11
11
  if (u.unit._id !== a.unit._id) return !0;
12
12
  const i = e.measurement;
13
13
  return i ? !t.unitById[u.unit._id].measurements.find((l) => l.id === i.id) : !1;
14
14
  }
15
- var I = /* @__PURE__ */ ((e) => (e.PURCHASE = "PURCHASE", e.TRANSFER = "TRANSFER", e))(I || {}), se = /* @__PURE__ */ ((e) => (e.Source = "Source", e.Destination = "Destination", e.Ingredient = "Ingredient", e))(se || {});
16
- const de = Ae(0);
15
+ var A = /* @__PURE__ */ ((e) => (e.PURCHASE = "PURCHASE", e.TRANSFER = "TRANSFER", e))(A || {}), se = /* @__PURE__ */ ((e) => (e.Source = "Source", e.Destination = "Destination", e.Ingredient = "Ingredient", e))(se || {});
16
+ const de = Ie(0);
17
17
  function _e(e) {
18
18
  var u;
19
19
  const t = e.sku;
@@ -76,7 +76,7 @@ function Ge(e) {
76
76
  ["Menu version", a == null ? void 0 : a.menuVersion],
77
77
  [
78
78
  "Purchase/Transfer",
79
- typeof o.purchaseOrder.supplier.internal == "string" ? I.TRANSFER : I.PURCHASE
79
+ typeof o.purchaseOrder.supplier.internal == "string" ? A.TRANSFER : A.PURCHASE
80
80
  ],
81
81
  [
82
82
  "Transfer from",
@@ -109,8 +109,8 @@ function Ge(e) {
109
109
  )) == null ? void 0 : l.sheets, s = `${a == null ? void 0 : a.name} transfer templates (${Ne(/* @__PURE__ */ new Date())}).xlsx`, f = ye(i);
110
110
  return he(f, s), s;
111
111
  }
112
- function Ze() {
113
- const e = ge(), t = ae(), a = Z(), u = q(), i = e.currentBusiness.value, s = _e({
112
+ function Je() {
113
+ const e = ge(), t = ae(), a = J(), u = q(), i = e.currentBusiness.value, s = _e({
114
114
  sku: {
115
115
  unit: {
116
116
  _id: "",
@@ -220,8 +220,8 @@ function Ze() {
220
220
  }), b = `${i == null ? void 0 : i.name} transfer templates import.xlsx`;
221
221
  return he(v, b), b;
222
222
  }
223
- function Je(e, t) {
224
- const a = new Array(), u = /(.*) \(((supplier_|warehouse_|restaurant_).{24,})\)/, s = Z().locationByDbName, l = ae().supplierById, o = e.trim(), c = u.exec(o);
223
+ function Ze(e, t) {
224
+ const a = new Array(), u = /(.*) \(((supplier_|warehouse_|restaurant_).{24,})\)/, s = J().locationByDbName, l = ae().supplierById, o = e.trim(), c = u.exec(o);
225
225
  if (!c)
226
226
  return a.push(`Transfer from location value of ${o} cannot be read.`), {
227
227
  errors: a
@@ -229,7 +229,7 @@ function Je(e, t) {
229
229
  const h = c[1], d = c[2];
230
230
  let m;
231
231
  if (d.startsWith("supplier"))
232
- m = l[d], t !== I.PURCHASE && a.push(`Expected transfer type Purchase but found ${t} instead.`);
232
+ m = l[d], t !== A.PURCHASE && a.push(`Expected transfer type Purchase but found ${t} instead.`);
233
233
  else {
234
234
  const v = s[d];
235
235
  if (!v)
@@ -265,7 +265,7 @@ function Je(e, t) {
265
265
  function Xe(e) {
266
266
  if (!e.length || `${e[0]}`.toLocaleLowerCase() === "all")
267
267
  return [];
268
- const t = /(.*) \(((warehouse_|restaurant_).{24,})\)/, u = Z().locationByDbName;
268
+ const t = /(.*) \(((warehouse_|restaurant_).{24,})\)/, u = J().locationByDbName;
269
269
  return e.map((i) => {
270
270
  const s = new Array(), f = i.trim(), l = t.exec(f);
271
271
  if (!l)
@@ -300,7 +300,7 @@ function et(e) {
300
300
  return {
301
301
  id: `${a[1] ?? ""}`.trim(),
302
302
  name: `${u[1] ?? ""}`.trim(),
303
- type: `${l[1] ?? ""}`.trim().toLocaleLowerCase() === "transfer" ? I.TRANSFER : I.PURCHASE,
303
+ type: `${l[1] ?? ""}`.trim().toLocaleLowerCase() === "transfer" ? A.TRANSFER : A.PURCHASE,
304
304
  transferFrom: `${o[1] ?? ""}`.trim(),
305
305
  locations: c.slice(1).map((m) => `${m}`.trim()).filter((m) => m),
306
306
  reference: `${h[1] ?? ""}`.trim(),
@@ -397,18 +397,18 @@ function nt(e, t, a) {
397
397
  }
398
398
  const c = G(
399
399
  e.quantityStep,
400
- J(l, o)
400
+ Z(l, o)
401
401
  );
402
402
  (Number.isNaN(Number(e.quantityStep)) || Number(e.quantityStep) <= 0) && f.push("Amount step must be more than 0");
403
403
  const h = Oe(c), d = rt(
404
404
  e.minimumQuantity,
405
405
  e.maximumQuantity,
406
- J(l, o)
406
+ Z(l, o)
407
407
  ), m = d.min, v = d.max;
408
408
  d.compareError && f.push(d.compareError);
409
409
  const b = Fe(+e.minimumQuantity, +e.maximumQuantity), r = G(
410
410
  e.defaultQuantity,
411
- J(l, o)
411
+ Z(l, o)
412
412
  ), x = h(r);
413
413
  typeof x == "string" && f.push(`Default amount: ${x}`);
414
414
  const w = d.min && d.max ? b(`${e.defaultQuantity}`) : null;
@@ -437,7 +437,7 @@ function ot(e) {
437
437
  return t.reduce(
438
438
  (s, f) => {
439
439
  var p;
440
- const l = new Array(), o = e.Sheets[f], c = et(o), h = Je(c.transferFrom, c.type);
440
+ const l = new Array(), o = e.Sheets[f], c = et(o), h = Ze(c.transferFrom, c.type);
441
441
  l.push(...h.errors);
442
442
  const d = h.from, m = Xe(c.locations), v = m.filter((n) => n.location).map((n) => n.location);
443
443
  l.push(...m.flatMap((n) => n.errors));
@@ -568,7 +568,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
568
568
  })
569
569
  }, [
570
570
  je(D(t.name) + " ", 1),
571
- C("span", ct, " (" + D(A(Pe)(`${t.transferType}`)) + ") ", 1),
571
+ C("span", ct, " (" + D(I(Pe)(`${t.transferType}`)) + ") ", 1),
572
572
  t.type === "create" ? (_(), E("span", mt, "(new)")) : V("", !0)
573
573
  ], 2),
574
574
  t.errors.length ? (_(), E("div", ut, [
@@ -617,7 +617,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
617
617
  }, xt = { class: "fm-typo-en-body-lg-600" }, St = /* @__PURE__ */ oe({
618
618
  __name: "TransferTemplateImport",
619
619
  setup(e) {
620
- const t = R(null), a = Ve(), u = be(), i = R(!1), s = R(!1), f = ae();
620
+ const t = k(null), a = Ve(), u = be(), i = k(!1), s = k(!1), f = ae();
621
621
  ze(async () => {
622
622
  s.value = !0;
623
623
  try {
@@ -632,7 +632,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
632
632
  s.value = !1;
633
633
  }
634
634
  });
635
- const l = R(new Array()), o = R([]), c = R([]), h = ue(
635
+ const l = k(new Array()), o = k([]), c = k([]), h = ue(
636
636
  () => !!l.value.length || o.value.some((b) => b.errors.length) || c.value.some((b) => b.errors.length)
637
637
  ), d = ue(
638
638
  () => !!o.value.length || !!c.value.length
@@ -699,8 +699,8 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
699
699
  }),
700
700
  accept: ".xlsx",
701
701
  onFileUpload: r[0] || (r[0] = (p) => t.value = p),
702
- label: A(m)("inventory.ingredient.import.uploadTemplate"),
703
- "button-label": A(m)("inventory.ingredient.import.selectFile")
702
+ label: I(m)("inventory.ingredient.import.uploadTemplate"),
703
+ "button-label": I(m)("inventory.ingredient.import.selectFile")
704
704
  }, Ye({ _: 2 }, [
705
705
  t.value ? {
706
706
  name: "default",
@@ -739,7 +739,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
739
739
  ], 2),
740
740
  i.value ? V("", !0) : (_(), E("div", ht, [
741
741
  P(S, {
742
- label: A(m)("inventory.ingredient.import.replaceFile"),
742
+ label: I(m)("inventory.ingredient.import.replaceFile"),
743
743
  variant: h.value ? "destructive" : "secondary",
744
744
  "prepend-icon": h.value ? void 0 : "autorenew",
745
745
  onClick: p
@@ -765,11 +765,11 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
765
765
  } : void 0
766
766
  ]), 1032, ["class", "label", "button-label"]),
767
767
  d.value ? (_(), E("div", bt, [
768
- C("div", xt, D(A(m)("inventory.ingredient.import.summary")), 1),
768
+ C("div", xt, D(I(m)("inventory.ingredient.import.summary")), 1),
769
769
  (_(!0), E(B, null, Y(o.value, (p, n) => (_(), K(pe, {
770
770
  key: n,
771
771
  name: p.template.name,
772
- "transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? A(I).TRANSFER : A(I).PURCHASE,
772
+ "transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? I(A).TRANSFER : I(A).PURCHASE,
773
773
  locations: p.template.locations,
774
774
  items: p.template.purchaseOrder.items,
775
775
  errors: p.errors,
@@ -778,7 +778,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
778
778
  (_(!0), E(B, null, Y(c.value, (p) => (_(), K(pe, {
779
779
  key: p.template._id,
780
780
  name: p.template.name,
781
- "transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? A(I).TRANSFER : A(I).PURCHASE,
781
+ "transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? I(A).TRANSFER : I(A).PURCHASE,
782
782
  locations: p.template.locations,
783
783
  items: p.template.purchaseOrder.items,
784
784
  errors: p.errors,
@@ -802,7 +802,7 @@ function Tt(e) {
802
802
  return u && u == i;
803
803
  }
804
804
  const _t = xe("transferTemplateActions", () => {
805
- const e = qe(), t = be(), a = Z(), u = Ce(), i = Le(), s = Se(), f = te(), l = We(), { t: o } = ne(), c = R({});
805
+ const e = qe(), t = be(), a = J(), u = Ce(), i = Le(), s = Se(), f = te(), l = We(), { t: o } = ne(), c = k({});
806
806
  function h() {
807
807
  c.value = {
808
808
  mode: ce.CREATE,
@@ -845,7 +845,7 @@ const _t = xe("transferTemplateActions", () => {
845
845
  y.value = !0;
846
846
  const [$] = await Promise.allSettled([
847
847
  s.deleteTemplate(n),
848
- new Promise((k) => setTimeout(k, 1e3))
848
+ new Promise((R) => setTimeout(R, 1e3))
849
849
  ]);
850
850
  if ($.status === "rejected") throw $.reason;
851
851
  t.open({
@@ -881,9 +881,9 @@ const _t = xe("transferTemplateActions", () => {
881
881
  contentComponent: oe({
882
882
  props: ["modelValue"],
883
883
  emits: ["update:modelValue"],
884
- setup(k) {
884
+ setup(R) {
885
885
  return () => W(X.FmTextField, {
886
- modelValue: k.modelValue,
886
+ modelValue: R.modelValue,
887
887
  "onUpdate:modelValue": (g) => $ = g,
888
888
  label: "New Template Name",
889
889
  size: "md",
@@ -898,27 +898,27 @@ const _t = xe("transferTemplateActions", () => {
898
898
  });
899
899
  try {
900
900
  y.value = !0;
901
- const [k] = await Promise.allSettled([
901
+ const [R] = await Promise.allSettled([
902
902
  i.duplicatePurchaseOrderTemplate(n._id, $),
903
903
  new Promise((g) => setTimeout(g, 1e3))
904
904
  ]);
905
- if (k.status === "rejected") throw k.reason;
905
+ if (R.status === "rejected") throw R.reason;
906
906
  t.open({
907
907
  title: `Duplicated ${n.name}`,
908
908
  type: "success"
909
909
  });
910
- } catch (k) {
910
+ } catch (R) {
911
911
  t.open({
912
912
  title: `Unable to duplicate ${n.name}`,
913
- message: `See error from server: ${k}`,
913
+ message: `See error from server: ${R}`,
914
914
  type: "error"
915
- }), console.error("error on duplicating purchase order template", k);
915
+ }), console.error("error on duplicating purchase order template", R);
916
916
  } finally {
917
917
  y.value = !1, T();
918
918
  }
919
919
  });
920
920
  }
921
- const b = R({});
921
+ const b = k({});
922
922
  function r(n) {
923
923
  b.value = {
924
924
  template: n,
@@ -953,24 +953,24 @@ const _t = xe("transferTemplateActions", () => {
953
953
  }).onPrimary(() => {
954
954
  l.push({ name: me.TRANSFER_TEMPLATE }), T(void 0);
955
955
  }).onSecondary(() => T(void 0)).onClose(() => T(void 0)), n;
956
- const k = $.map((g) => {
956
+ const R = $.map((g) => {
957
957
  var ie;
958
958
  const O = !g.purchaseOrder.items.length || g.purchaseOrder.items.some(Te), F = !Tt(g.purchaseOrder.supplier), M = g.purchaseOrder.supplier.internal ? f.getNetSuiteLocation(
959
959
  `${g.purchaseOrder.supplier.internal}_${g.purchaseOrder.supplier._id}`
960
960
  ) : f.getNetSuiteVendor(g.purchaseOrder.supplier._id), Ee = F ? `The subsidiary of the request
961
- location is ${(ie = f.getLocationSubsidiary(M == null ? void 0 : M.netSuiteId)) == null ? void 0 : ie.fullName}.` : void 0, ke = O || F, Re = O ? "This template is invalid. Update this template." : F ? Ee : void 0, Ie = `${g.purchaseOrder.supplier.internal ? "Transfer" : "Purchase"} from ${g.purchaseOrder.supplier.name}`;
961
+ location is ${(ie = f.getLocationSubsidiary(M == null ? void 0 : M.netSuiteId)) == null ? void 0 : ie.fullName}.` : void 0, Re = O || F, ke = O ? "This template is invalid. Update this template." : F ? Ee : void 0, Ae = `${g.purchaseOrder.supplier.internal ? "Transfer" : "Purchase"} from ${g.purchaseOrder.supplier.name}`;
962
962
  return {
963
963
  label: g.name,
964
964
  value: g._id,
965
- disabled: ke,
966
- sublabel: Re ?? Ie
965
+ disabled: Re,
966
+ sublabel: ke ?? Ae
967
967
  };
968
968
  });
969
- return k.sort((g, O) => +!!g.disabled - +!!O.disabled), e.open({
969
+ return R.sort((g, O) => +!!g.disabled - +!!O.disabled), e.open({
970
970
  title: "Select one template",
971
971
  contentComponent: Be,
972
972
  contentComponentProps: {
973
- items: k,
973
+ items: R,
974
974
  singleSelect: !0
975
975
  },
976
976
  primaryActions: {
@@ -1033,7 +1033,7 @@ const _t = xe("transferTemplateActions", () => {
1033
1033
  return;
1034
1034
  }
1035
1035
  e.close(), S(n);
1036
- }).onTertiary(Ze);
1036
+ }).onTertiary(Je);
1037
1037
  }
1038
1038
  async function S(n) {
1039
1039
  try {
@@ -1046,7 +1046,7 @@ const _t = xe("transferTemplateActions", () => {
1046
1046
  )
1047
1047
  ], T = 100;
1048
1048
  let $ = 0;
1049
- const k = () => {
1049
+ const R = () => {
1050
1050
  $ += T, t.open({
1051
1051
  title: o("inventory.ingredient.import.progress", [
1052
1052
  Math.min($, y.length),
@@ -1055,7 +1055,7 @@ const _t = xe("transferTemplateActions", () => {
1055
1055
  });
1056
1056
  };
1057
1057
  for (const g of y.chunk(100))
1058
- k(), await s.importTemplates(g);
1058
+ R(), await s.importTemplates(g);
1059
1059
  t.open({
1060
1060
  title: o("inventory.ingredient.import.success"),
1061
1061
  type: "success"
@@ -1098,7 +1098,7 @@ function fe(e) {
1098
1098
  const Ce = xe(
1099
1099
  "transferTemplateTable",
1100
1100
  function() {
1101
- const { t } = ne(), a = _t(), u = R(!1), i = R(new Array()), s = Se(), f = q();
1101
+ const { t } = ne(), a = _t(), u = k(!1), i = k(new Array()), s = Se(), f = q();
1102
1102
  async function l() {
1103
1103
  i.value = [], u.value = !0;
1104
1104
  try {
@@ -1249,7 +1249,7 @@ function Dt(e, t, a) {
1249
1249
  return `${L(e, !1)} ${u}`;
1250
1250
  }
1251
1251
  export {
1252
- I as P,
1252
+ A as P,
1253
1253
  _t as a,
1254
1254
  Dt as f,
1255
1255
  Te as t,
@@ -1,5 +1,5 @@
1
1
  import { ref as b, computed as u } from "vue";
2
- import { u as d, b4 as p, aW as v, c as m, b as h } from "./app-P6XaUzjP.js";
2
+ import { u as d, b5 as p, aX as v, c as m, b as h } from "./app-BT34Yv61.js";
3
3
  import { useSnackbar as E } from "@feedmepos/ui-library";
4
4
  function I() {
5
5
  return {
@@ -1,4 +1,4 @@
1
- import { b3 as x, bb as V, bc as q, bd as Ne, be as cl, bf as sr, bg as Lt, bh as fl, bi as $l } from "./app-P6XaUzjP.js";
1
+ import { b4 as x, bc as V, bd as q, be as Ne, bf as cl, bg as sr, bh as Lt, bi as fl, bj as $l } from "./app-BT34Yv61.js";
2
2
  function vl(t, e) {
3
3
  for (var r = 0; r < e.length; r++) {
4
4
  const n = e[r];
@@ -1,4 +1,4 @@
1
- import { a6 as s } from "./app-P6XaUzjP.js";
1
+ import { a7 as s } from "./app-BT34Yv61.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  const u = s((n, a) => {
4
4
  function o() {
@@ -1,4 +1,4 @@
1
- import { a6 as m, u as k, a as l, ax as B, Z as p } from "./app-P6XaUzjP.js";
1
+ import { a7 as m, u as k, a as l, ay as B, $ as p } from "./app-BT34Yv61.js";
2
2
  import { useCoreStore as v } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as $ } from "@feedmepos/ui-library";
4
4
  import { ref as y, computed as b } from "vue";
@@ -41,6 +41,7 @@ export declare function useNetSuiteStore(): {
41
41
  transferTemplateColumnDefs(args: {
42
42
  onUpdate: (index: number, sku: FdoInventorySku, code: string, measurement?: FdoUnitMeasurement) => void;
43
43
  }): Record<number, ColumnDef<FdoPurchaseOrderTemplateItem>>;
44
+ readonly skuSettingOptions: Record<string, NetSuiteSettingOption>;
44
45
  readonly inventoryTransferOutEnabled: boolean;
45
46
  readonly isReady: boolean;
46
47
  readonly isEnabled: boolean;
@@ -1,4 +1,4 @@
1
- import { a6 as m, u, c as b, C as w, ay as v, az as $ } from "./app-P6XaUzjP.js";
1
+ import { a7 as m, u, c as b, C as w, az as v, aA as $ } from "./app-BT34Yv61.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  import { defineStore as A } from "pinia";
4
4
  import { ref as l, computed as d } from "vue";