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

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 (58) hide show
  1. package/dist/{App-JINYgYlH.js → App-D-KXb_V4.js} +1 -1
  2. package/dist/{ApprovalView-BOVW2i8o.js → ApprovalView-CsKOxurA.js} +26 -26
  3. package/dist/{BindingsDialog-BKGLpdd-.js → BindingsDialog-kjERSnxa.js} +2 -2
  4. package/dist/{BindingsPicker-Tml6Oxod.js → BindingsPicker-EVKOOG5B.js} +1 -1
  5. package/dist/{BindingsTable-DixFHTyC.js → BindingsTable-B1JqtkAz.js} +1 -1
  6. package/dist/{ClosingDraftView-nYSugXo0.js → ClosingDraftView-DHMT4v-d.js} +203 -203
  7. package/dist/{ClosingTemplateView-C-gfh6s5.js → ClosingTemplateView-BOkJvuFp.js} +53 -53
  8. package/dist/{DeliveryOrderPrintPreview-BM9ZkrEw.js → DeliveryOrderPrintPreview-CPKPeJQI.js} +9 -9
  9. package/dist/{FmAdminBadge-CiWXN0lw.js → FmAdminBadge-pU1X5Yn4.js} +6 -6
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dn_c22ms.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BqmttydS.js} +21 -21
  11. package/dist/{FmMultiselectDialog-Bvekm8TI.js → FmMultiselectDialog-CwqvhCpx.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D62ZdWwZ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Dbej6KBu.js} +27 -27
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BudJCuVV.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-XjYJ03c6.js} +1 -1
  14. package/dist/{IngredientGroupView-DTQzZBKp.js → IngredientGroupView-Dj1wbUXi.js} +12 -12
  15. package/dist/IngredientsView-B7AKdwz5.js +2194 -0
  16. package/dist/{IntegrationView-CN6amPy_.js → IntegrationView-Dyb-shZZ.js} +84 -84
  17. package/dist/{InventoryBindingForm-Dl9n2GJn.js → InventoryBindingForm-8Mo0N4ti.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-4N9XvkmZ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-3Q8zHn_i.js} +41 -41
  19. package/dist/{InventoryBindingSummary-eAPN3X_L.js → InventoryBindingSummary-B9-I5Jo_.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CSp3zFJ3.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-8vhGMGrt.js} +1 -1
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D2L9cWwt.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B-wDdcG4.js} +5 -5
  22. package/dist/{PublishView-BzN2wu_M.js → PublishView-BsTvJ-rb.js} +17 -17
  23. package/dist/{PurchaseOrderPrintPreview-BR40N-ew.js → PurchaseOrderPrintPreview-B4S020Dy.js} +9 -9
  24. package/dist/{ReceiveRequestView-DtYFO3Wi.js → ReceiveRequestView-BpH2TvAE.js} +80 -80
  25. package/dist/{RecipeView-DlK-VV0_.js → RecipeView-CnE96AES.js} +49 -49
  26. package/dist/StockView-DSxsDKW2.js +2101 -0
  27. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bc0fwGq2.js +158 -0
  28. package/dist/{SupplierView-Cs8-A2B0.js → SupplierView-Cv-FJVM7.js} +1103 -1016
  29. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Dzm9Q3SP.js → TransferDetails.vue_vue_type_script_setup_true_lang-DDnhftMb.js} +6 -6
  30. package/dist/{TransferTemplateView-DlzKEqem.js → TransferTemplateView-CpguVi60.js} +88 -87
  31. package/dist/{UnitView-BsYiE8aM.js → UnitView-CbtWqtXO.js} +59 -59
  32. package/dist/{WarehouseView-DIW3iPB6.js → WarehouseView-JYKSCpwD.js} +25 -25
  33. package/dist/api/netsuite.d.ts +3 -0
  34. package/dist/api/purchase-order-template.d.ts +1 -0
  35. package/dist/{app-Bszzf6y-.js → app-CoQo_jq8.js} +2401 -2294
  36. package/dist/app.d.ts +57 -0
  37. package/dist/app.js +3 -3
  38. package/dist/components/FmInventoryTableToolbar.vue.d.ts +9 -2
  39. package/dist/components/SubsidiaryTreeDialog.vue.d.ts +2 -0
  40. package/dist/{decimal-BoNXDQoB.js → decimal-IHcKpXSH.js} +1 -1
  41. package/dist/{format-unit-display-Dbabkv1O.js → format-unit-display-I8vKcqcG.js} +368 -400
  42. package/dist/{index-Dk2QEFDL.js → index-C5WsQ8SM.js} +1 -1
  43. package/dist/{index-DlhdJ3A4.js → index-Dr4zDNEV.js} +1 -1
  44. package/dist/purchase-order-template-R8t_fJYZ.js +41 -0
  45. package/dist/{stock-BXV3de2I.js → stock-BRaT53YB.js} +1 -1
  46. package/dist/stores/integration/netsuite.d.ts +19 -0
  47. package/dist/{supplier-CKKYVzDf.js → supplier-C6KmsrC2.js} +1 -1
  48. package/dist/tsconfig.app.tsbuildinfo +1 -1
  49. package/dist/{use-ingredient-select-dialog-DEmxBaQb.js → use-ingredient-select-dialog-DkjF8Xtg.js} +5 -5
  50. package/dist/{use-inventory-binding-dialog-DCN0J-F8.js → use-inventory-binding-dialog-mzDIl-dW.js} +8 -8
  51. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +16 -0
  52. package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +4 -0
  53. package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
  54. package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
  55. package/package.json +2 -2
  56. package/dist/IngredientsView-DOUCnkCT.js +0 -1886
  57. package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +0 -59
  58. package/dist/StockView-B4acF5it.js +0 -2086
@@ -1,11 +1,11 @@
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 W, 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, T as fe, n as j, A as ye, j as Y, V as be, W as ge, r as oe, u as xe, b as _e, C as he, _ as Ve, E as Ue, G as we, J as Ce } from "./app-Bszzf6y-.js";
1
+ import { defineComponent as K, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Z, 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 O, e as U, S as pe, h as ve, D as ne, i as z, f as se, Y as fe, o as j, A as ye, k as J, Z as be, $ as ge, v as oe, u as xe, b as _e, K as he, _ as Ve, L as Ue, O as we, P as Ce } from "./app-CoQo_jq8.js";
3
3
  import { useDialog as Se, useSnackbar as ae, useProxiedModel as le, useBreakpoints as ke } from "@feedmepos/ui-library";
4
- import { i as Fe, _ as Ee } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
- import { defineStore as $e, storeToRefs as Ie } from "pinia";
6
- import { useI18n as J } from "@feedmepos/mf-common";
7
- import { F as De } from "./decimal-BoNXDQoB.js";
8
- import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CSp3zFJ3.js";
4
+ import { i as Fe, _ as $e } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
+ import { defineStore as Ee, storeToRefs as Ie } from "pinia";
6
+ import { useI18n as Y } from "@feedmepos/mf-common";
7
+ import { F as De } from "./decimal-IHcKpXSH.js";
8
+ import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-8vhGMGrt.js";
9
9
  const Re = { class: "flex flex-col gap-8" }, Me = {
10
10
  key: 0,
11
11
  class: "flex flex-col"
@@ -15,22 +15,22 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
15
15
  }, Be = {
16
16
  key: 1,
17
17
  class: "flex flex-col"
18
- }, Ne = { class: "flex-1 py-8 px-16" }, ze = {
18
+ }, Le = { class: "flex-1 py-8 px-16" }, Ne = {
19
19
  class: "flex-0 py-8 px-16",
20
20
  style: { "flex-basis": "240px" }
21
- }, Le = {
21
+ }, ze = {
22
22
  key: 2,
23
23
  class: "flex flex-col"
24
24
  }, je = { class: "flex-1 py-8 px-16" }, qe = {
25
25
  class: "flex-0 py-8 px-16",
26
26
  style: { "flex-basis": "240px" }
27
- }, He = /* @__PURE__ */ G({
27
+ }, He = /* @__PURE__ */ K({
28
28
  __name: "UnitUsedBy",
29
29
  props: {
30
30
  unit: {}
31
31
  },
32
32
  setup(F) {
33
- const c = F, y = K(), m = b(() => y.validateUnitUsage(c.unit)), a = b(() => m.value.filter((n) => n.from === "INGREDIENT")), r = b(() => m.value.filter((n) => n.from === "RECIPE")), d = b(() => m.value.filter((n) => n.from === "MENU"));
33
+ const c = F, y = O(), m = b(() => y.validateUnitUsage(c.unit)), a = b(() => m.value.filter((n) => n.from === "INGREDIENT")), r = b(() => m.value.filter((n) => n.from === "RECIPE")), d = b(() => m.value.filter((n) => n.from === "MENU"));
34
34
  return (n, p) => (v(), w("div", Re, [
35
35
  p[3] || (p[3] = s("div", { class: "fm-typo-en-body-md-400" }, "Sorry, this unit is used in the following modules:", -1)),
36
36
  a.value.length ? (v(), w("div", Me, [
@@ -51,7 +51,7 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
51
51
  s("div", Te, V((t = i.bindedIngredient) != null && t.length ? "Convert binding" : "Item unit"), 1)
52
52
  ]);
53
53
  }), 128))
54
- ])) : W("", !0),
54
+ ])) : Z("", !0),
55
55
  r.value.length ? (v(), w("div", Be, [
56
56
  p[1] || (p[1] = s("div", { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, [
57
57
  s("div", { class: "flex-1 py-8 px-16" }, "Recipe"),
@@ -66,12 +66,12 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
66
66
  key: i.code,
67
67
  class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
68
68
  }, [
69
- s("div", Ne, V(i.code) + " " + V(i.name), 1),
70
- s("div", ze, V((t = i.bindedIngredient) == null ? void 0 : t.slice(0, 3).map((C) => C.code).join(", ")) + " " + V(i.bindedIngredient && ((u = i.bindedIngredient) == null ? void 0 : u.length) > 3 ? `and ${((g = i.bindedIngredient) == null ? void 0 : g.length) - 3} more` : ""), 1)
69
+ s("div", Le, V(i.code) + " " + V(i.name), 1),
70
+ s("div", Ne, V((t = i.bindedIngredient) == null ? void 0 : t.slice(0, 3).map((C) => C.code).join(", ")) + " " + V(i.bindedIngredient && ((u = i.bindedIngredient) == null ? void 0 : u.length) > 3 ? `and ${((g = i.bindedIngredient) == null ? void 0 : g.length) - 3} more` : ""), 1)
71
71
  ]);
72
72
  }), 128))
73
- ])) : W("", !0),
74
- d.value.length ? (v(), w("div", Le, [
73
+ ])) : Z("", !0),
74
+ d.value.length ? (v(), w("div", ze, [
75
75
  p[2] || (p[2] = s("div", { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, [
76
76
  s("div", { class: "flex-1 py-8 px-16" }, "Menu"),
77
77
  s("div", {
@@ -89,11 +89,11 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
89
89
  s("div", qe, V((t = i.bindedIngredient) == null ? void 0 : t.slice(0, 3).map((C) => C.code).join(", ")) + " " + V(i.bindedIngredient && ((u = i.bindedIngredient) == null ? void 0 : u.length) > 3 ? `and ${((g = i.bindedIngredient) == null ? void 0 : g.length) - 3} more` : ""), 1)
90
90
  ]);
91
91
  }), 128))
92
- ])) : W("", !0)
92
+ ])) : Z("", !0)
93
93
  ]));
94
94
  }
95
- }), Q = $e("unitForm", function() {
96
- const c = Se(), y = ae(), m = K(), a = R(!1), r = R();
95
+ }), Q = Ee("unitForm", function() {
96
+ const c = Se(), y = ae(), m = O(), a = R(!1), r = R();
97
97
  function d() {
98
98
  const t = {
99
99
  unit: {},
@@ -127,7 +127,7 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
127
127
  } catch (u) {
128
128
  u instanceof pe && Fe(u) ? c.open({
129
129
  title: "Cannot delete unit",
130
- contentComponent: Ee,
130
+ contentComponent: $e,
131
131
  contentComponentProps: {
132
132
  subject: (t == null ? void 0 : t.name) ?? "",
133
133
  items: u.errorResponse.message
@@ -186,15 +186,15 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
186
186
  unitViewLoading: a
187
187
  };
188
188
  });
189
- function Ge() {
190
- const { updateUnit: F, deleteUnit: c } = Q(), { t: y } = J();
189
+ function Ke() {
190
+ const { updateUnit: F, deleteUnit: c } = Q(), { t: y } = Y();
191
191
  async function m(r, d) {
192
192
  const n = se(d);
193
- if (r === L.Edit) {
193
+ if (r === z.Edit) {
194
194
  await F(n);
195
195
  return;
196
196
  }
197
- if (r === L.Delete) {
197
+ if (r === z.Delete) {
198
198
  await c(n);
199
199
  return;
200
200
  }
@@ -217,7 +217,7 @@ function Ge() {
217
217
  header: "",
218
218
  cell(r) {
219
219
  return ve(
220
- [ne[L.Edit], ne[L.Delete]],
220
+ [ne[z.Edit], ne[z.Delete]],
221
221
  (d) => {
222
222
  m(d, r.row.original);
223
223
  }
@@ -232,7 +232,7 @@ function Ge() {
232
232
  }
233
233
  ] };
234
234
  }
235
- const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe = { class: "flex-1" }, We = { class: "flex-1" }, Ye = { class: "flex" }, Qe = { class: "flex items-center" }, Xe = { class: "fm-typo-en-body-lg-600 flex-grow" }, Ze = { class: "flex flex-col gap-24" }, et = { class: "flex gap-24" }, tt = { class: "flex-1" }, nt = { class: "flex-1" }, ot = /* @__PURE__ */ G({
235
+ const Oe = { class: "flex flex-col gap-24" }, Ye = { class: "flex gap-24" }, Ge = { class: "flex-1" }, Ze = { class: "flex-1" }, Je = { class: "flex" }, Qe = { class: "flex items-center" }, We = { class: "fm-typo-en-body-lg-600 flex-grow" }, Xe = { class: "flex flex-col gap-24" }, et = { class: "flex gap-24" }, tt = { class: "flex-1" }, nt = { class: "flex-1" }, ot = /* @__PURE__ */ K({
236
236
  __name: "UnitForm",
237
237
  props: {
238
238
  mode: {},
@@ -241,7 +241,7 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
241
241
  },
242
242
  emits: ["update:modelValue", "click:submit"],
243
243
  setup(F, { expose: c, emit: y }) {
244
- const m = F, a = y, { t: r } = J();
244
+ const m = F, a = y, { t: r } = Y();
245
245
  function d() {
246
246
  a("click:submit");
247
247
  }
@@ -335,8 +335,8 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
335
335
  (o = (e = S.value) == null ? void 0 : e.resetInputs) == null || o.call(e);
336
336
  }
337
337
  }), (e, o) => {
338
- const x = I("FmTextField"), M = I("FmStepperField"), _ = I("FmButton"), O = I("FmCard"), $ = I("FmForm");
339
- return v(), T($, {
338
+ const x = I("FmTextField"), M = I("FmStepperField"), _ = I("FmButton"), G = I("FmCard"), E = I("FmForm");
339
+ return v(), T(E, {
340
340
  ref_key: "formRef",
341
341
  ref: S,
342
342
  class: "flex flex-col gap-40",
@@ -345,9 +345,9 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
345
345
  default: A(() => {
346
346
  var P;
347
347
  return [
348
- s("div", Ke, [
349
- s("div", Je, [
350
- s("div", Oe, [
348
+ s("div", Oe, [
349
+ s("div", Ye, [
350
+ s("div", Ge, [
351
351
  f(x, {
352
352
  disabled: e.disabled,
353
353
  label: l(r)("inventory.unit.name"),
@@ -357,7 +357,7 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
357
357
  "label-mark": "required"
358
358
  }, null, 8, ["disabled", "label", "modelValue", "rules"])
359
359
  ]),
360
- s("div", We, [
360
+ s("div", Ze, [
361
361
  f(x, {
362
362
  disabled: e.disabled,
363
363
  label: l(r)("inventory.unit.symbol"),
@@ -379,7 +379,7 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
379
379
  }, null, 8, ["disabled", "label", "modelValue", "rules"])
380
380
  ])
381
381
  ]),
382
- s("div", Ye, [
382
+ s("div", Je, [
383
383
  f(_, {
384
384
  disabled: e.disabled,
385
385
  type: "button",
@@ -389,22 +389,22 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
389
389
  onClick: g
390
390
  }, null, 8, ["disabled", "label"])
391
391
  ]),
392
- (v(!0), w(q, null, H((P = e.modelValue) == null ? void 0 : P.measurements, (k, h) => (v(), T(O, {
392
+ (v(!0), w(q, null, H((P = e.modelValue) == null ? void 0 : P.measurements, (k, h) => (v(), T(G, {
393
393
  class: "flex flex-col gap-16 p-16",
394
394
  variant: "outlined",
395
395
  key: k.id
396
396
  }, {
397
397
  default: A(() => [
398
398
  s("div", Qe, [
399
- s("div", Xe, V(l(r)("inventory.unit.measurement.measurementDefault", [h + 1])), 1),
399
+ s("div", We, V(l(r)("inventory.unit.measurement.measurementDefault", [h + 1])), 1),
400
400
  f(_, {
401
401
  disabled: e.disabled,
402
402
  variant: "tertiary",
403
403
  "prepend-icon": "delete",
404
- onClick: (E) => C(h)
404
+ onClick: ($) => C(h)
405
405
  }, null, 8, ["disabled", "onClick"])
406
406
  ]),
407
- s("div", Ze, [
407
+ s("div", Xe, [
408
408
  s("div", et, [
409
409
  s("div", tt, [
410
410
  f(x, {
@@ -412,7 +412,7 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
412
412
  class: "col-span-2",
413
413
  label: l(r)("inventory.unit.measurement.name"),
414
414
  modelValue: e.modelValue.measurements[h].name,
415
- "onUpdate:modelValue": (E) => e.modelValue.measurements[h].name = E,
415
+ "onUpdate:modelValue": ($) => e.modelValue.measurements[h].name = $,
416
416
  rules: [l(j)()],
417
417
  "label-mark": "required"
418
418
  }, null, 8, ["disabled", "label", "modelValue", "onUpdate:modelValue", "rules"])
@@ -422,7 +422,7 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
422
422
  disabled: e.disabled,
423
423
  label: l(r)("inventory.unit.measurement.symbol"),
424
424
  modelValue: e.modelValue.measurements[h].abbrev,
425
- "onUpdate:modelValue": (E) => e.modelValue.measurements[h].abbrev = E,
425
+ "onUpdate:modelValue": ($) => e.modelValue.measurements[h].abbrev = $,
426
426
  rules: [l(j)()],
427
427
  "label-mark": "required"
428
428
  }, null, 8, ["disabled", "label", "modelValue", "onUpdate:modelValue", "rules"])
@@ -432,21 +432,21 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
432
432
  disabled: e.disabled,
433
433
  class: "col-span-3",
434
434
  label: l(r)("inventory.unit.measurement.conversion"),
435
- "model-value": +l(Y)(e.modelValue.measurements[h].conversion),
436
- "onUpdate:modelValue": (E) => u.value = u.value.map(
435
+ "model-value": +l(J)(e.modelValue.measurements[h].conversion),
436
+ "onUpdate:modelValue": ($) => u.value = u.value.map(
437
437
  (D, B) => B === h ? {
438
438
  ...D,
439
439
  conversion: l(De).toPrecision(
440
- l(be)(E),
440
+ l(be)($),
441
441
  t.value
442
442
  )
443
443
  } : D
444
444
  ),
445
445
  rules: [l(ge)(0)],
446
- step: +l(Y)({ amount: 1, precision: t.value }),
446
+ step: +l(J)({ amount: 1, precision: t.value }),
447
447
  "helper-text": l(r)("inventory.unit.measurement.conversionHelper", {
448
448
  measurementSymbol: e.modelValue.measurements[h].name || " measurement unit",
449
- conversion: +l(Y)(e.modelValue.measurements[h].conversion),
449
+ conversion: +l(J)(e.modelValue.measurements[h].conversion),
450
450
  unitSymbol: i.value || "base unit"
451
451
  })
452
452
  }, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue", "rules", "step", "helper-text"])
@@ -460,7 +460,7 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
460
460
  }, 512);
461
461
  };
462
462
  }
463
- }), lt = { class: "flex gap-4" }, st = /* @__PURE__ */ G({
463
+ }), lt = { class: "flex gap-4" }, st = /* @__PURE__ */ K({
464
464
  __name: "UnitDialog",
465
465
  props: {
466
466
  show: { type: Boolean },
@@ -469,7 +469,7 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
469
469
  },
470
470
  emits: ["update:show"],
471
471
  setup(F) {
472
- const c = F, y = K(), m = ae(), { t: a } = J(), r = le(c, "show"), d = le(c, "unit"), n = b(() => {
472
+ const c = F, y = O(), m = ae(), { t: a } = Y(), r = le(c, "show"), d = le(c, "unit"), n = b(() => {
473
473
  switch (c.mode) {
474
474
  case U.READ:
475
475
  return "";
@@ -582,16 +582,16 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
582
582
  }, 8, ["model-value", "header"]);
583
583
  };
584
584
  }
585
- }), at = { class: "flex flex-col py-8" }, rt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, it = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, bt = /* @__PURE__ */ G({
585
+ }), at = { class: "flex flex-col py-8" }, rt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, it = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, bt = /* @__PURE__ */ K({
586
586
  __name: "UnitView",
587
587
  setup(F) {
588
- const c = K(), y = xe(), m = _e(), a = b(() => c.units), { createUnit: r, updateUnit: d } = Q(), { unitDialogProps: n, unitViewLoading: p } = Ie(Q()), { columnDefs: i } = Ge();
588
+ const c = O(), y = xe(), m = _e(), a = b(() => c.units), { createUnit: r, updateUnit: d } = Q(), { unitDialogProps: n, unitViewLoading: p } = Ie(Q()), { columnDefs: i } = Ke();
589
589
  function t(M) {
590
590
  M === "add" && r();
591
591
  }
592
- const u = R(""), g = b(() => p.value), { breakpoints: C } = ke(), S = b(() => C.value.xs || C.value.sm), e = b(() => S.value ? 10 : 20), o = he(), { t: x } = J();
592
+ const u = R(""), g = b(() => p.value), { breakpoints: C } = ke(), S = b(() => C.value.xs || C.value.sm), e = b(() => S.value ? 10 : 20), o = he(), { t: x } = Y();
593
593
  return (M, _) => {
594
- const O = I("FmTable");
594
+ const G = I("FmTable");
595
595
  return v(), T(Ve, {
596
596
  title: l(x)("inventory.unit.title"),
597
597
  actions: l(m).isEnabled ? [] : [
@@ -617,33 +617,33 @@ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe
617
617
  f(Ue, {
618
618
  searchable: "",
619
619
  search: u.value,
620
- "onUpdate:search": _[0] || (_[0] = ($) => u.value = $)
620
+ "onUpdate:search": _[0] || (_[0] = (E) => u.value = E)
621
621
  }, null, 8, ["search"]),
622
- f(O, {
622
+ f(G, {
623
623
  style: ue(l(o).tableHeight),
624
624
  "column-defs": l(i),
625
625
  "row-data": a.value,
626
626
  "search-value": u.value,
627
627
  loading: !l(y)._currentLocation || g.value,
628
- onRowClick: _[1] || (_[1] = ($) => l(d)($.original)),
628
+ onRowClick: _[1] || (_[1] = (E) => l(d)(E.original)),
629
629
  "page-size": e.value
630
630
  }, {
631
- "list-row": A(($) => [
631
+ "list-row": A((E) => [
632
632
  f(we, {
633
- row: $,
633
+ row: E,
634
634
  onRowClick: l(d)
635
635
  }, {
636
636
  default: A((P) => {
637
- var k, h, E, D, B, N, X, z, Z;
637
+ var k, h, $, D, B, L, W, N, X;
638
638
  return [
639
639
  s("div", at, [
640
640
  s("div", rt, [
641
641
  f(l(Ce), {
642
- render: (E = (h = (k = P.name) == null ? void 0 : k.column) == null ? void 0 : h.columnDef) == null ? void 0 : E.cell,
642
+ render: ($ = (h = (k = P.name) == null ? void 0 : k.column) == null ? void 0 : h.columnDef) == null ? void 0 : $.cell,
643
643
  props: (B = (D = P.name) == null ? void 0 : D.getContext) == null ? void 0 : B.call(D)
644
644
  }, null, 8, ["render", "props"])
645
645
  ]),
646
- s("div", it, V((Z = (z = (X = (N = $.original.measurements) == null ? void 0 : N.map) == null ? void 0 : X.call(N, (re) => re.name)) == null ? void 0 : z.join) == null ? void 0 : Z.call(z, ", ")), 1)
646
+ s("div", it, V((X = (N = (W = (L = E.original.measurements) == null ? void 0 : L.map) == null ? void 0 : W.call(L, (re) => re.name)) == null ? void 0 : N.join) == null ? void 0 : X.call(N, ", ")), 1)
647
647
  ])
648
648
  ];
649
649
  }),
@@ -1,9 +1,9 @@
1
- import { ref as D, defineComponent as j, watch as ee, onMounted as te, onUnmounted as $e, openBlock as W, createElementBlock as q, toRaw as we, reactive as Se, createElementVNode as g, toDisplayString as E, unref as u, createVNode as k, resolveComponent as N, createSlots as Te, withCtx as I, createTextVNode as Me, renderSlot as De, createBlock as z, createCommentVNode as ae, computed as $, isRef as Ve, normalizeClass as We, normalizeStyle as Pe } from "vue";
2
- import { a4 as Re, aw as Ue, ax as Ee, h as Ne, D as _e, i as Z, f as G, ay as Le, ap as Ie, az as Be, n as L, c as qe, e as U, S as ze, u as je, C as Oe, _ as Ge, E as Ke, G as He, J as Q } from "./app-Bszzf6y-.js";
3
- import { useCoreStore as Ce, useI18n as O } from "@feedmepos/mf-common";
4
- import { useDialogChild as Je, useDialog as xe, useSnackbar as le, useProxiedModel as oe, useBreakpoints as Ye } from "@feedmepos/ui-library";
1
+ import { ref as D, defineComponent as O, watch as ee, onMounted as te, onUnmounted as $e, openBlock as W, createElementBlock as q, toRaw as we, reactive as Se, createElementVNode as g, toDisplayString as E, unref as u, createVNode as k, resolveComponent as N, createSlots as Te, withCtx as I, createTextVNode as Me, renderSlot as De, createBlock as z, createCommentVNode as ae, computed as $, isRef as Ve, normalizeClass as We, normalizeStyle as Pe } from "vue";
2
+ import { a6 as Re, ay as Ue, az as Ee, h as Ne, D as _e, i as J, f as G, aA as Le, ar as Ie, aB as Be, o as L, c as qe, e as U, S as ze, u as Oe, K as je, _ as Ge, L as Ke, O as He, P as Q } from "./app-CoQo_jq8.js";
3
+ import { useCoreStore as Ce, useI18n as j } from "@feedmepos/mf-common";
4
+ import { useDialogChild as Ye, useDialog as xe, useSnackbar as le, useProxiedModel as oe, useBreakpoints as Ze } from "@feedmepos/ui-library";
5
5
  import { c as se, u as re } from "./googlemap-Dm8ERVai.js";
6
- import { _ as Ze } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
6
+ import { _ as Je } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
7
7
  const X = Re((v, h) => {
8
8
  const b = Ce();
9
9
  return {
@@ -73,16 +73,16 @@ function Fe() {
73
73
  }
74
74
  function Xe(v, h) {
75
75
  function b(r, l) {
76
- if (r === Z.Edit) {
76
+ if (r === J.Edit) {
77
77
  v(G(l));
78
78
  return;
79
79
  }
80
- if (r === Z.Delete) {
80
+ if (r === J.Delete) {
81
81
  h(G(l));
82
82
  return;
83
83
  }
84
84
  }
85
- const { t: a } = O(), n = [
85
+ const { t: a } = j(), n = [
86
86
  {
87
87
  accessorKey: "warehouse",
88
88
  header: () => a("inventory.warehouse.table.warehouse"),
@@ -108,7 +108,7 @@ function Xe(v, h) {
108
108
  header: "",
109
109
  cell(r) {
110
110
  return Ne(
111
- [_e[Z.Edit], _e[Z.Delete]],
111
+ [_e[J.Edit], _e[J.Delete]],
112
112
  (l) => {
113
113
  b(l, r.row.original.original);
114
114
  }
@@ -143,7 +143,7 @@ function Xe(v, h) {
143
143
  }
144
144
  return { columnDefs: n, formatRowData: i };
145
145
  }
146
- const eo = /* @__PURE__ */ j({
146
+ const eo = /* @__PURE__ */ O({
147
147
  __name: "GoogleMap",
148
148
  props: {
149
149
  markers: {
@@ -269,7 +269,7 @@ const eo = /* @__PURE__ */ j({
269
269
  class: "map app-map"
270
270
  }, null, 512));
271
271
  }
272
- }), oo = { class: "flex flex-col gap-24" }, to = { class: "flex flex-col gap-8" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ro = { class: "fm-typo-en-body-lg-600" }, no = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, uo = { class: "fm-typo-en-body-lg-600" }, io = /* @__PURE__ */ j({
272
+ }), oo = { class: "flex flex-col gap-24" }, to = { class: "flex flex-col gap-8" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ro = { class: "fm-typo-en-body-lg-600" }, no = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, uo = { class: "fm-typo-en-body-lg-600" }, io = /* @__PURE__ */ O({
273
273
  __name: "CoordinateDialog",
274
274
  props: {
275
275
  address: {
@@ -282,7 +282,7 @@ const eo = /* @__PURE__ */ j({
282
282
  }
283
283
  },
284
284
  setup(v) {
285
- const h = v, b = Je(), a = re(), { t: n } = O(), i = Se(
285
+ const h = v, b = Ye(), a = re(), { t: n } = j(), i = Se(
286
286
  G(h.coordinate ? h.coordinate : se.jb)
287
287
  ), r = D(""), l = Le(async function() {
288
288
  r.value = await a.getFirstMatchingAddress(
@@ -334,7 +334,7 @@ function Ae([v, h]) {
334
334
  function po({ lng: v, lat: h }) {
335
335
  return [v, h];
336
336
  }
337
- const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1 }, vo = /* @__PURE__ */ j({
337
+ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1 }, vo = /* @__PURE__ */ O({
338
338
  __name: "FmCoordinateInput",
339
339
  props: {
340
340
  address: {},
@@ -351,7 +351,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
351
351
  },
352
352
  emits: ["update:modelValue"],
353
353
  setup(v, { emit: h }) {
354
- const b = v, a = h, n = re(), i = xe(), r = le(), l = oe(b, "modelValue"), d = D(!1), { t: M } = O();
354
+ const b = v, a = h, n = re(), i = xe(), r = le(), l = oe(b, "modelValue"), d = D(!1), { t: M } = j();
355
355
  function w(c) {
356
356
  if (c != null && c[0] && (c != null && c[1]))
357
357
  return M("inventory.formField.coordinate.longLat", [c[0].toFixed(3), c[1].toFixed(3)]);
@@ -452,7 +452,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
452
452
  }), ho = { class: "flex flex-col gap-40" }, bo = { class: "flex flex-col gap-16" }, go = { class: "flex flex-col gap-8" }, wo = { class: "fm-typo-en-title-sm-600" }, Vo = { class: "grid grid-cols-2 gap-24" }, _o = { class: "flex flex-col gap-8" }, ko = { class: "fm-typo-en-title-sm-600" }, Ao = {
453
453
  key: 0,
454
454
  class: "flex flex-col gap-8"
455
- }, Mo = { class: "fm-typo-en-title-sm-600" }, Co = { class: "flex flex-col gap-8" }, xo = { class: "fm-typo-en-title-sm-600" }, Fo = { class: "flex flex-col gap-16" }, $o = /* @__PURE__ */ j({
455
+ }, Mo = { class: "fm-typo-en-title-sm-600" }, Co = { class: "flex flex-col gap-8" }, xo = { class: "fm-typo-en-title-sm-600" }, Fo = { class: "flex flex-col gap-16" }, $o = /* @__PURE__ */ O({
456
456
  __name: "WarehouseForm",
457
457
  props: {
458
458
  modelValue: {},
@@ -460,7 +460,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
460
460
  },
461
461
  emits: ["update:modelValue", "validation-success"],
462
462
  setup(v, { expose: h, emit: b }) {
463
- const a = v, n = b, i = qe(), { t: r } = O(), l = $({
463
+ const a = v, n = b, i = qe(), { t: r } = j(), l = $({
464
464
  get() {
465
465
  var o, e;
466
466
  return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
@@ -729,7 +729,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
729
729
  ])
730
730
  ]),
731
731
  g("div", null, [
732
- k(Ze, {
732
+ k(Je, {
733
733
  entity: "warehouse",
734
734
  modelValue: B.value,
735
735
  "onUpdate:modelValue": e[12] || (e[12] = (p) => B.value = p)
@@ -741,7 +741,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
741
741
  }, 512);
742
742
  };
743
743
  }
744
- }), So = { class: "flex gap-4" }, To = /* @__PURE__ */ j({
744
+ }), So = { class: "flex gap-4" }, To = /* @__PURE__ */ O({
745
745
  __name: "WarehouseDialog",
746
746
  props: {
747
747
  mode: {},
@@ -750,7 +750,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
750
750
  },
751
751
  emits: ["update:show", "submitted"],
752
752
  setup(v, { expose: h, emit: b }) {
753
- const a = v, n = b, i = D(!1), r = le(), { t: l } = O(), d = Fe(), M = $(() => {
753
+ const a = v, n = b, i = D(!1), r = le(), { t: l } = j(), d = Fe(), M = $(() => {
754
754
  switch (a.mode) {
755
755
  case U.READ:
756
756
  return "";
@@ -893,10 +893,10 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
893
893
  }), Do = { class: "flex flex-col py-8" }, Wo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Po = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ro = {
894
894
  key: 0,
895
895
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
896
- }, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, zo = /* @__PURE__ */ j({
896
+ }, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, zo = /* @__PURE__ */ O({
897
897
  __name: "WarehouseView",
898
898
  setup(v) {
899
- const h = Fe(), b = je(), a = $(() => h.warehouses), n = xe(), i = le(), r = D(!1), { t: l } = O();
899
+ const h = Fe(), b = Oe(), a = $(() => h.warehouses), n = xe(), i = le(), r = D(!1), { t: l } = j();
900
900
  te(() => {
901
901
  b._currentLocation && S();
902
902
  }), ee([() => b._currentLocation], () => {
@@ -966,7 +966,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
966
966
  r.value = !1;
967
967
  }
968
968
  }
969
- const { breakpoints: m } = Ye(), f = $(() => m.value.xs || m.value.sm), A = $(() => f.value ? 10 : 20), B = Oe();
969
+ const { breakpoints: m } = Ze(), f = $(() => m.value.xs || m.value.sm), A = $(() => f.value ? 10 : 20), B = je();
970
970
  return (V, o) => {
971
971
  const e = N("FmTable");
972
972
  return W(), z(Ge, {
@@ -1012,7 +1012,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
1012
1012
  onRowClick: (s) => w(s.original)
1013
1013
  }, {
1014
1014
  default: I((s) => {
1015
- var y, _, p, P, K, ne, ue, ie, H, de, ce, pe, me, fe, J, ye, ve, he, be, Y, ge;
1015
+ var y, _, p, P, K, ne, ue, ie, H, de, ce, pe, me, fe, Y, ye, ve, he, be, Z, ge;
1016
1016
  return [
1017
1017
  g("div", Do, [
1018
1018
  g("div", Wo, [
@@ -1030,13 +1030,13 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
1030
1030
  (ce = t.original) != null && ce.email ? (W(), q("div", Ro, [
1031
1031
  k(u(Q), {
1032
1032
  render: (fe = (me = (pe = s.email) == null ? void 0 : pe.column) == null ? void 0 : me.columnDef) == null ? void 0 : fe.cell,
1033
- props: (ye = (J = s.email) == null ? void 0 : J.getContext) == null ? void 0 : ye.call(J)
1033
+ props: (ye = (Y = s.email) == null ? void 0 : Y.getContext) == null ? void 0 : ye.call(Y)
1034
1034
  }, null, 8, ["render", "props"])
1035
1035
  ])) : ae("", !0),
1036
1036
  g("div", Uo, [
1037
1037
  k(u(Q), {
1038
1038
  render: (be = (he = (ve = s.address) == null ? void 0 : ve.column) == null ? void 0 : he.columnDef) == null ? void 0 : be.cell,
1039
- props: (ge = (Y = s.address) == null ? void 0 : Y.getContext) == null ? void 0 : ge.call(Y)
1039
+ props: (ge = (Z = s.address) == null ? void 0 : Z.getContext) == null ? void 0 : ge.call(Z)
1040
1040
  }, null, 8, ["render", "props"])
1041
1041
  ])
1042
1042
  ])
@@ -1,6 +1,7 @@
1
1
  import { FdtoNetSuiteInventoryTransferRecord } from '@feedmepos/netsuite-core';
2
2
  export declare const useNetSuiteApi: () => {
3
3
  readSetting(): Promise<{
4
+ subsidiaryId?: string | null | undefined;
4
5
  accessToken?: string | null | undefined;
5
6
  syncedAt?: string | null | undefined;
6
7
  restlet?: {
@@ -79,6 +80,7 @@ export declare const useNetSuiteApi: () => {
79
80
  netsuiteId: string;
80
81
  name: string;
81
82
  }>): Promise<{
83
+ subsidiaryId?: string | null | undefined;
82
84
  accessToken?: string | null | undefined;
83
85
  syncedAt?: string | null | undefined;
84
86
  restlet?: {
@@ -157,6 +159,7 @@ export declare const useNetSuiteApi: () => {
157
159
  getNetSuiteLocation(): Promise<any>;
158
160
  manualSyncInventoryTransfer(locationId: string): Promise<any>;
159
161
  syncPurchaseOrder(locationId: string, poId: string): Promise<{
162
+ subsidiaryId?: string | null | undefined;
160
163
  accessToken?: string | null | undefined;
161
164
  syncedAt?: string | null | undefined;
162
165
  restlet?: {
@@ -1,6 +1,7 @@
1
1
  import type { RevisionIdMeta } from '@feedmepos/inventory-core';
2
2
  export declare const usePurchaseOrderTemplateApi: () => {
3
3
  getTemplate(id: string): Promise<FdoPurchaseOrderTemplate & RevisionIdMeta>;
4
+ getTemplateBySupplierId(supplierId: string): Promise<(FdoPurchaseOrderTemplate & RevisionIdMeta)[]>;
4
5
  readTemplates(): Promise<(FdoPurchaseOrderTemplate & RevisionIdMeta)[]>;
5
6
  createTemplate(template: Omit<FdoPurchaseOrderTemplate, '_id'>): Promise<FdoPurchaseOrderTemplate>;
6
7
  updateTemplate(template: FdoPurchaseOrderTemplate): Promise<FdoPurchaseOrderTemplate>;