@feedmepos/mf-inventory-portal 0.0.25-dev.37 → 0.0.25-dev.39

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 (46) hide show
  1. package/dist/{App-C0_9-oDP.js → App-B7L9LuKI.js} +2 -2
  2. package/dist/{ApprovalView-BDUbQAH0.js → ApprovalView-P7uUdpuJ.js} +2 -2
  3. package/dist/{BindingsDialog-BvKDyWAP.js → BindingsDialog-E4j9FuOl.js} +2 -2
  4. package/dist/{BindingsPicker-zAexcP3H.js → BindingsPicker-3mrWImf-.js} +1 -1
  5. package/dist/{BindingsTable-6dPndhbk.js → BindingsTable-DMoC7BEJ.js} +1 -1
  6. package/dist/{ClosingDraftView-NwwxcHA-.js → ClosingDraftView-hUFOQ9pI.js} +241 -237
  7. package/dist/{ClosingTemplateView-Cfh0BZXH.js → ClosingTemplateView-DGG2zD13.js} +2 -2
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DKxW0e2c.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BjYwi7Vb.js} +3 -3
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CD0p0eOE.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B7CfRiCR.js} +1 -1
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-eGofs51J.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DH5ud0qJ.js} +1 -1
  11. package/dist/{IngredientGroupView-Cz4zcWgF.js → IngredientGroupView-D63u-gSo.js} +1 -1
  12. package/dist/{IngredientsView-Ctmor1Ds.js → IngredientsView-DzzIoie9.js} +115 -106
  13. package/dist/{IntegrationView-DYV2ISmc.js → IntegrationView-SO7nVoSn.js} +1 -1
  14. package/dist/{InventoryBindingForm-Be75Cpzd.js → InventoryBindingForm-CNBLyKuy.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-D8dK7h0Z.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-gcdA5y3h.js} +3 -3
  16. package/dist/{InventoryBindingSummary-Cw1Woc3L.js → InventoryBindingSummary-Cx5doszw.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BhKk5nMz.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-uBLwHGx6.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DECtXs-3.js → PremiumBadge.vue_vue_type_script_setup_true_lang-U-MNov1N.js} +1 -1
  19. package/dist/{PublishView-D9mnP1d8.js → PublishView-C7-F5H_l.js} +2 -2
  20. package/dist/{PurchaseOrderPrintPreview-2DOgQczG.js → PurchaseOrderPrintPreview-Cn1MGNQG.js} +1 -1
  21. package/dist/ReceiveRequestView-1ltlDUjA.js +2577 -0
  22. package/dist/{RecipeView-DTwkk7M_.js → RecipeView-CFEr9txv.js} +3 -3
  23. package/dist/{StockView-cd047f5L.js → StockView-BCuZoG8u.js} +7 -7
  24. package/dist/{SupplierView-CkYiC3sV.js → SupplierView-BFZYyzZE.js} +4 -4
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CE3vSlpG.js → TransferDetails.vue_vue_type_script_setup_true_lang-XKOcF4q9.js} +19 -20
  26. package/dist/TransferTemplateView-DAcRo6jQ.js +1526 -0
  27. package/dist/{UnitView-C-1I-kVv.js → UnitView-IzqKR_Ue.js} +3 -3
  28. package/dist/{WarehouseView-CJTtNzco.js → WarehouseView-D_lYd_zi.js} +1 -1
  29. package/dist/api/stock.d.ts +1 -0
  30. package/dist/{app-C720GM9g.js → app-D8JtDgcD.js} +1660 -1659
  31. package/dist/app.js +1 -1
  32. package/dist/{decimal-BCdHyq3s.js → decimal-BzA7nhoj.js} +1 -1
  33. package/dist/{feature-Df0TfAlQ.js → feature-DZpzqRzb.js} +1 -1
  34. package/dist/{format-unit-display-DhVGfJ3A.js → format-unit-display-gJA_tWyb.js} +2 -2
  35. package/dist/{index-BcO0U3XD.js → index-4_4oJqYY.js} +2 -2
  36. package/dist/{stock-AgQ9Kd12.js → stock-Cw4_XPhT.js} +29 -25
  37. package/dist/{supplier-y6wN-U1P.js → supplier-FQRxjLKh.js} +1 -1
  38. package/dist/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/{use-ingredient-select-dialog-DedAlRiZ.js → use-ingredient-select-dialog-CxxnIrMR.js} +1 -1
  40. package/dist/{use-inventory-binding-dialog-D6ESCCxB.js → use-inventory-binding-dialog-C9t7UpkK.js} +1 -1
  41. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +2 -2
  42. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +3 -2
  43. package/dist/{vue-i18n-C4yPgaCz.js → vue-i18n-UenefCe4.js} +321 -321
  44. package/package.json +3 -3
  45. package/dist/ReceiveRequestView-Ss803mII.js +0 -2547
  46. package/dist/TransferTemplateView-C6-6Db2r.js +0 -1524
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as H, ref as C, onMounted as re, resolveComponent as S, openBlock as x, createElementBlock as $, Fragment as ie, createElementVNode as R, toDisplayString as ce, createVNode as v, createCommentVNode as j, computed as F, watch as ue, createBlock as T, withCtx as P, unref as b, isRef as Z, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
2
- import { a as A, d as V, e as O, S as ye, f as ge, D as ee, h as Y, i as q, F as te, l as be, U as _e, A as we, o as ne, p as Re, r as he, q as Ve, u as xe, y as Ee, _ as Ce, z as Se, B as Fe, E as oe } from "./app-C720GM9g.js";
2
+ import { a as A, d as V, e as O, S as ye, f as ge, D as ee, h as Y, i as q, F as te, l as be, U as _e, A as we, o as ne, p as Re, r as he, q as Ve, u as xe, y as Ee, _ as Ce, z as Se, B as Fe, E as oe } from "./app-D8JtDgcD.js";
3
3
  import { useDialog as ke, useSnackbar as se, useProxiedModel as ae, useBreakpoints as De } from "@feedmepos/ui-library";
4
4
  import { i as Ae, _ as Ie } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
- import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-eGofs51J.js";
5
+ import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DH5ud0qJ.js";
6
6
  import { defineStore as $e, storeToRefs as Pe } from "pinia";
7
7
  import { useI18n as K } from "@feedmepos/mf-common";
8
- import { _ as Be } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-D8dK7h0Z.js";
8
+ import { _ as Be } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-gcdA5y3h.js";
9
9
  import { _ as Te } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
10
10
  const Me = {
11
11
  key: 0,
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as sn, ref as Q, computed as w, resolveComponent as U, openBlock as M, createBlock as ee, withCtx as p, createElementVNode as m, normalizeClass as ao, toDisplayString as P, createVNode as C, createElementBlock as x, Fragment as Be, renderList as on, unref as y, h as Qt, watch as lo, isRef as Fi, createCommentVNode as Ie, reactive as Oa, onMounted as zr, normalizeStyle as Fr, createTextVNode as ut, Teleport as Pa, normalizeProps as Wo, mergeProps as Zo } from "vue";
2
- import { u as Hn, N as Ca, e as gi, f as Aa, a as bi, F as qi, O as ui, i as fn, J as Ma, t as so, L as ci, A as Ba, M as Da, K as ct, P as Na, Q as he, T as ja, V as Wi, l as pa, H as Ua, W as ka, X as La, Y as gr, Z as me, $ as Ya, q as br, a0 as _i, a1 as r, a2 as b, a3 as Er, a4 as Jt, a5 as Ga, a6 as Va, n as Zi, a7 as Ha, a8 as wa, C as Xo, a9 as $a, aa as Ka, ab as qa, y as Wa, _ as Za, z as Xa, B as Qa, E as Xi } from "./app-C720GM9g.js";
3
- import { u as Ei, a as yi } from "./stock-AgQ9Kd12.js";
4
- import { g as uo } from "./decimal-BCdHyq3s.js";
5
- import { e as Ja, u as yr, i as fr, _ as Qi } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-DECtXs-3.js";
2
+ import { u as Hn, N as Ca, e as gi, f as Aa, a as bi, F as qi, O as ui, i as fn, J as Ma, t as so, L as ci, A as Ba, M as Da, K as ct, P as Na, Q as he, T as ja, V as Wi, l as pa, H as Ua, W as ka, X as La, Y as gr, Z as me, $ as Ya, q as br, a0 as _i, a1 as r, a2 as b, a3 as Er, a4 as Jt, a5 as Ga, a6 as Va, n as Zi, a7 as Ha, a8 as wa, C as Xo, a9 as $a, aa as Ka, ab as qa, y as Wa, _ as Za, z as Xa, B as Qa, E as Xi } from "./app-D8JtDgcD.js";
3
+ import { u as Ei, a as yi } from "./stock-Cw4_XPhT.js";
4
+ import { g as uo } from "./decimal-BzA7nhoj.js";
5
+ import { e as Ja, u as yr, i as fr, _ as Qi } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-U-MNov1N.js";
6
6
  import { _ as mi, S as Qo, g as Rr } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
7
7
  import { _ as xa } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
8
8
  import { useI18n as un, useCoreStore as ed } from "@feedmepos/mf-common";
9
9
  import { useSnackbar as Ft, useDialog as hr, useProxiedModel as fi, useBreakpoints as nd } from "@feedmepos/ui-library";
10
10
  import { defineStore as td } from "pinia";
11
- import { u as od } from "./use-inventory-binding-dialog-D6ESCCxB.js";
12
- import { _ as id } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BhKk5nMz.js";
11
+ import { u as od } from "./use-inventory-binding-dialog-C9t7UpkK.js";
12
+ import { _ as id } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-uBLwHGx6.js";
13
13
  import { E as rd } from "./empty-placeholder-wf6-BWE8.js";
14
14
  import "./array-hChJVZLE.js";
15
- import { u as ad } from "./feature-Df0TfAlQ.js";
15
+ import { u as ad } from "./feature-DZpzqRzb.js";
16
16
  var io = /* @__PURE__ */ ((n) => (n.History = "History", n.Convert = "Convert", n.Adjust = "Adjust", n))(io || {});
17
17
  const dd = [
18
18
  {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Q, mergeModels as Bd, computed as F, useModel as Gd, resolveComponent as T, openBlock as E, createElementBlock as O, createElementVNode as g, createVNode as N, withCtx as k, toDisplayString as A, unref as f, Fragment as q, renderList as ee, ref as L, createBlock as j, createCommentVNode as K, isRef as Qe, normalizeClass as J, createTextVNode as Hd, watch as Id, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
2
- import { u as re } from "./supplier-y6wN-U1P.js";
3
- import { b as Fe, f as Yd, D as ed, h as ie, e as Pe, a as Fd, n as dd, j as Xd, H as Zd, C as he, s as Od, u as pe, l as G, d as U, p as wd, q as zd, r as Ad, v as qd, w as Jd, x as Qd, y as et, _ as dt, z as tt, B as rt, E as le } from "./app-C720GM9g.js";
2
+ import { u as re } from "./supplier-FQRxjLKh.js";
3
+ import { b as Fe, f as Yd, D as ed, h as ie, e as Pe, a as Fd, n as dd, j as Xd, H as Zd, C as he, s as Od, u as pe, l as G, d as U, p as wd, q as zd, r as Ad, v as qd, w as Jd, x as Qd, y as et, _ as dt, z as tt, B as rt, E as le } from "./app-D8JtDgcD.js";
4
4
  import { useI18n as X, useCoreStore as Oe } from "@feedmepos/mf-common";
5
5
  import { useDialog as we, useSnackbar as me, useProxiedModel as td, useDialogChild as nt, useBreakpoints as ot } from "@feedmepos/ui-library";
6
6
  import { _ as at } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
7
- import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CD0p0eOE.js";
8
- import { u as Rd } from "./feature-Df0TfAlQ.js";
7
+ import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-B7CfRiCR.js";
8
+ import { u as Rd } from "./feature-DZpzqRzb.js";
9
9
  import { defineStore as it } from "pinia";
10
10
  function lt(e, d) {
11
11
  const { t } = X(), r = Fe();
@@ -1,13 +1,13 @@
1
- import { W as ze, u as ge, aM as N, a5 as Qe, a7 as Ye, a8 as We, am as Xe, d as Ce, e as Be, av as I, T as Le, aN as Je, Y as Oe, K as be, i as fe, aO as Me, ac as _e, f as Ie, D as Q, h as M, b as je, a6 as Ze, as as Fe, a0 as ve, ai as Ue } from "./app-C720GM9g.js";
2
- import { ref as K, computed as Z, h as x, defineComponent as xe, onMounted as et, unref as i, openBlock as b, createElementBlock as O, createElementVNode as t, toDisplayString as _, createCommentVNode as k, resolveComponent as re, createVNode as H, createBlock as te, isRef as tt, withCtx as de, Fragment as oe, normalizeClass as he, createTextVNode as Se, renderList as pe, resolveDynamicComponent as st } from "vue";
3
- import { F as rt } from "./decimal-BCdHyq3s.js";
4
- import { b as at, u as nt, f as Ve, P as ue } from "./format-unit-display-DhVGfJ3A.js";
1
+ import { W as ze, u as we, aM as N, a5 as Qe, a7 as Ye, a8 as We, am as Xe, d as Ce, e as Be, av as I, T as Le, aN as Je, Y as Oe, K as be, i as fe, aO as Me, ac as ge, f as Ie, D as Q, h as M, b as je, a6 as Ze, as as Fe, a0 as ve, ai as Ue } from "./app-D8JtDgcD.js";
2
+ import { ref as K, computed as Z, h as x, defineComponent as xe, onMounted as et, unref as i, openBlock as b, createElementBlock as O, createElementVNode as t, toDisplayString as _, createCommentVNode as k, resolveComponent as re, createVNode as H, createBlock as te, isRef as tt, withCtx as de, Fragment as oe, normalizeClass as he, createTextVNode as _e, renderList as pe, resolveDynamicComponent as st } from "vue";
3
+ import { F as rt } from "./decimal-BzA7nhoj.js";
4
+ import { b as at, u as nt, f as Ve, P as ue } from "./format-unit-display-gJA_tWyb.js";
5
5
  import { useI18n as Ke } from "@feedmepos/mf-common";
6
6
  import { E as ot } from "./empty-placeholder-wf6-BWE8.js";
7
7
  import { useDialog as Ne, useSnackbar as De, useProxiedModel as lt } from "@feedmepos/ui-library";
8
- import { u as Ge } from "./feature-Df0TfAlQ.js";
8
+ import { u as Ge } from "./feature-DZpzqRzb.js";
9
9
  const Ae = ze((f, p) => {
10
- const u = ge();
10
+ const u = we();
11
11
  return {
12
12
  async readRequests(o) {
13
13
  const S = o ?? u.currentLocationDBName, w = `${f.inventoryBackendUrl}/${S}/purchase-request`;
@@ -104,9 +104,9 @@ const Ae = ze((f, p) => {
104
104
  }
105
105
  };
106
106
  var Re = /* @__PURE__ */ ((f) => (f.RECEIVE_REQUEST = "receive/request", f.APPROVAL = "approval", f))(Re || {});
107
- const ye = K(), we = K();
107
+ const ye = K(), Se = K();
108
108
  function Gs(f, p) {
109
- const u = Ne(), o = ge(), S = Ge(), w = at(), E = nt(), h = K(!1), a = De(), e = Ae(), n = K(new Array()), r = K(
109
+ const u = Ne(), o = we(), S = Ge(), w = at(), E = nt(), h = K(!1), a = De(), e = Ae(), n = K(new Array()), r = K(
110
110
  p != null && p.startDate && (p != null && p.endDate) ? p : Qe()
111
111
  ), d = Z(() => {
112
112
  const v = new Date(r.value.startDate), m = new Date(r.value.endDate);
@@ -257,7 +257,7 @@ function Gs(f, p) {
257
257
  },
258
258
  g
259
259
  ), await new Promise((D) => setTimeout(D, 1e3));
260
- const P = ge().currentLocationDBName.startsWith("restaurant_");
260
+ const P = we().currentLocationDBName.startsWith("restaurant_");
261
261
  m === N.enum.confirmDraft && v.effectiveAt && P ? a.open({
262
262
  title: "Success",
263
263
  message: `${c}. The backdate will be reflected once your POS has received this change.`,
@@ -311,10 +311,10 @@ function Gs(f, p) {
311
311
  const v = {
312
312
  show: !0,
313
313
  "onUpdate:show"(m) {
314
- we.value.show = m;
314
+ Se.value.show = m;
315
315
  }
316
316
  };
317
- we.value = v;
317
+ Se.value = v;
318
318
  });
319
319
  }
320
320
  return {
@@ -329,7 +329,7 @@ function Gs(f, p) {
329
329
  transferDetailsProps: X,
330
330
  promptShowTransferDetails: l,
331
331
  submitAction: T,
332
- xilnexImportDialogProps: we,
332
+ xilnexImportDialogProps: Se,
333
333
  promptUploadTransferDialog: le
334
334
  };
335
335
  }
@@ -388,7 +388,7 @@ function it(f, p) {
388
388
  })
389
389
  })), e = {
390
390
  orderNumber: f.seqNumber.toString(),
391
- createdAt: _e(f._id),
391
+ createdAt: ge(f._id),
392
392
  ref: f.ref || "",
393
393
  remark: f.remark || "",
394
394
  buyer: w,
@@ -442,7 +442,6 @@ const me = {
442
442
  }
443
443
  };
444
444
  function Hs(f, p) {
445
- ge();
446
445
  const { t: u } = Ke();
447
446
  function o(e) {
448
447
  switch (e.status) {
@@ -522,7 +521,7 @@ function Hs(f, p) {
522
521
  accessorKey: "_id",
523
522
  header: () => u("inventory.transfer.table.createdAt"),
524
523
  cell(e) {
525
- return _e(`${e.getValue()}`);
524
+ return ge(`${e.getValue()}`);
526
525
  },
527
526
  enableSorting: !0
528
527
  },
@@ -596,7 +595,7 @@ function Hs(f, p) {
596
595
  accessorKey: "purchaseOrder._id",
597
596
  header: () => u("inventory.transfer.table.createdAt"),
598
597
  cell(e) {
599
- return _e(`${e.getValue()}`);
598
+ return ge(`${e.getValue()}`);
600
599
  },
601
600
  enableSorting: !0
602
601
  },
@@ -1260,7 +1259,7 @@ const ut = {
1260
1259
  t("div", Ct, [
1261
1260
  t("div", It, _(i(h)("inventory.transfer.receiveRequest.details.createdAt")), 1)
1262
1261
  ]),
1263
- t("div", Ft, _(i(_e)(((ae = s.purchaseOrder) == null ? void 0 : ae._id) ?? "")), 1)
1262
+ t("div", Ft, _(i(ge)(((ae = s.purchaseOrder) == null ? void 0 : ae._id) ?? "")), 1)
1264
1263
  ]),
1265
1264
  (ne = s.purchaseOrder) != null && ne.effectiveAt ? (b(), O("div", Ut, [
1266
1265
  t("div", Bt, _(i(h)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
@@ -1306,7 +1305,7 @@ const ut = {
1306
1305
  t("div", rs, [
1307
1306
  t("div", as, [
1308
1307
  t("div", ns, [
1309
- Se(_(ee.value ? i(h)("inventory.transfer.receiveRequest.details.receivedItems") : i(h)("inventory.transfer.receiveRequest.details.requestedItems")) + " ", 1),
1308
+ _e(_(ee.value ? i(h)("inventory.transfer.receiveRequest.details.receivedItems") : i(h)("inventory.transfer.receiveRequest.details.requestedItems")) + " ", 1),
1310
1309
  (se = (V = s.purchaseOrder) == null ? void 0 : V.netSuite) != null && se.missingItems && ((U = (ce = s.purchaseOrder) == null ? void 0 : ce.netSuite) == null ? void 0 : U.missingItems.length) > 0 ? (b(), te(c, {
1311
1310
  key: 0,
1312
1311
  variant: "rich",
@@ -1325,7 +1324,7 @@ const ut = {
1325
1324
  name: "arrow_right",
1326
1325
  size: "sm"
1327
1326
  }),
1328
- Se(" " + _(`(${L.netSuiteId}) ${L.name}: ${L.reason}`), 1)
1327
+ _e(" " + _(`(${L.netSuiteId}) ${L.name}: ${L.reason}`), 1)
1329
1328
  ]))), 128))
1330
1329
  ])
1331
1330
  ];
@@ -1432,7 +1431,7 @@ const ut = {
1432
1431
  class: "fm-typo-en-body-lg-600"
1433
1432
  }, [
1434
1433
  typeof ne == "string" ? (b(), O(oe, { key: 0 }, [
1435
- Se(_(ne), 1)
1434
+ _e(_(ne), 1)
1436
1435
  ], 64)) : (b(), te(st(ne), { key: 1 }))
1437
1436
  ]))), 128))
1438
1437
  ])