@feedmepos/mf-inventory-portal 0.0.25-dev.50 → 0.0.25-dev.52

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 (44) hide show
  1. package/dist/{App-B7fIlPKw.js → App-DkPiRPu7.js} +34 -34
  2. package/dist/{ApprovalView-Dp20w8em.js → ApprovalView-BEF-qPdZ.js} +20 -20
  3. package/dist/{BindingsDialog-BIHCuoDe.js → BindingsDialog-B6vjaPiA.js} +4 -4
  4. package/dist/{BindingsPicker-DoM1Dh1y.js → BindingsPicker-BmWf3j6H.js} +7 -7
  5. package/dist/{BindingsTable-ChJYIxrf.js → BindingsTable-VVNmzkzf.js} +1 -1
  6. package/dist/{ClosingDraftView-L4EHR0Sb.js → ClosingDraftView-C6sNEHK5.js} +120 -120
  7. package/dist/{ClosingTemplateView-CFVINyCr.js → ClosingTemplateView-5k8R-fMI.js} +285 -285
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dn-DgO81.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DclFOxv5.js} +37 -37
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CdWkJ2U-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BFqAE1ZI.js} +32 -32
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BN2ec0EU.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DwAyTAFy.js} +1 -1
  11. package/dist/{IngredientGroupView-Vz6XV_-q.js → IngredientGroupView-DAeurvqt.js} +1 -1
  12. package/dist/{IngredientsView-D1lmg_97.js → IngredientsView-Ca8fShPE.js} +4 -4
  13. package/dist/{IntegrationView-CfDmLYwt.js → IntegrationView-Db4XlQvK.js} +62 -62
  14. package/dist/{InventoryBindingForm-C68ZfWme.js → InventoryBindingForm-BTtpF1P5.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bd13FqsE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-ByJPHKqO.js} +15 -15
  16. package/dist/{InventoryBindingSummary-DT9cg2b4.js → InventoryBindingSummary-Bb5gN9Bu.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BfhvXVHK.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D4vUOy_R.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Dvj1F-DM.js → PremiumBadge.vue_vue_type_script_setup_true_lang-fFfOjNOU.js} +3 -3
  19. package/dist/{PublishView-DMzULnCX.js → PublishView-BqE9qfwb.js} +25 -25
  20. package/dist/{PurchaseOrderPrintPreview-D6wcth8H.js → PurchaseOrderPrintPreview-Cp6a-P8I.js} +1 -1
  21. package/dist/{ReceiveRequestView-DsX41zj-.js → ReceiveRequestView-DKPPCyAU.js} +52 -52
  22. package/dist/{RecipeView-DlKk9-tm.js → RecipeView-BEsrqzuU.js} +3 -3
  23. package/dist/{StockView-CNmvVK0V.js → StockView-DplJi2OM.js} +573 -569
  24. package/dist/{SupplierView-BcoOgM67.js → SupplierView-DL3D84U2.js} +7 -7
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CDDvq_mI.js → TransferDetails.vue_vue_type_script_setup_true_lang-BzFkrRui.js} +120 -120
  26. package/dist/{TransferTemplateView-BI96LQfP.js → TransferTemplateView-DakAYozL.js} +153 -153
  27. package/dist/{UnitView-BF2eBWtF.js → UnitView-C_Wqv69Z.js} +3 -3
  28. package/dist/{WarehouseView-joOR4EsJ.js → WarehouseView-CeoVZ9cs.js} +19 -19
  29. package/dist/{app-DavuMSpS.js → app-CulzKCFs.js} +6375 -5538
  30. package/dist/app.d.ts +842 -0
  31. package/dist/app.js +1 -1
  32. package/dist/{decimal-C_LJTg2_.js → decimal-DdjfkmJS.js} +1 -1
  33. package/dist/{feature-D3M-bziy.js → feature-jwErVPVw.js} +1 -1
  34. package/dist/{format-unit-display-BebmN2s-.js → format-unit-display-BMC3HZ0N.js} +30 -30
  35. package/dist/helper/number.d.ts +1 -1
  36. package/dist/{index-DzshvJTA.js → index-BDCZItPF.js} +1 -1
  37. package/dist/{index-BDEeA1dY.js → index-C7-QVxlo.js} +1 -1
  38. package/dist/{stock-CHVVTrSI.js → stock-Czw9__W8.js} +1 -1
  39. package/dist/{supplier-Ddl4sUpm.js → supplier-f0XPCLm-.js} +1 -1
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/dist/{use-ingredient-select-dialog-Z6bbIKfM.js → use-ingredient-select-dialog-DDeNnPW0.js} +1 -1
  42. package/dist/{use-inventory-binding-dialog-Dj45RBWc.js → use-inventory-binding-dialog-BTE0Ceov.js} +1 -1
  43. package/dist/{vue-i18n-Cak3W4nS.js → vue-i18n-B0gOxrrS.js} +153 -153
  44. package/package.json +3 -3
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { a_ as s, a$ as e, b0 as o, aZ as t, b1 as i, a as m } from "./app-DavuMSpS.js";
2
+ import { a_ as s, a$ as e, b0 as o, aZ as t, b1 as i, a as m } from "./app-CulzKCFs.js";
3
3
  export {
4
4
  s as FmApp,
5
5
  e as InventoryBindingForm,
@@ -1,4 +1,4 @@
1
- import "./app-DavuMSpS.js";
1
+ import "./app-CulzKCFs.js";
2
2
  function m(a) {
3
3
  function t(o, n = !0) {
4
4
  const e = Math.round(Math.log10(o));
@@ -2,7 +2,7 @@ var fe = Object.defineProperty;
2
2
  var pe = (p, l, v) => l in p ? fe(p, l, { enumerable: !0, configurable: !0, writable: !0, value: v }) : p[l] = v;
3
3
  var ht = (p, l, v) => pe(p, typeof l != "symbol" ? l + "" : l, v);
4
4
  import { useCoreStore as vt } from "@feedmepos/mf-common";
5
- import { a4 as dt, u as Dt, aG as re, a as ye } from "./app-DavuMSpS.js";
5
+ import { a5 as dt, u as Dt, aH as re, a as ye } from "./app-CulzKCFs.js";
6
6
  import { ref as gt, readonly as Kt } from "vue";
7
7
  var Gt = { exports: {} };
8
8
  (function(p, l) {
@@ -1,10 +1,10 @@
1
- import { W as Ee, a as q, K as Ie, ad as U, r as Ae, ae as fe, s as ye, u as W, i as B, v as Ne, aG as ae, w as he, b as J, t as V, O as j, aF as Oe, ay as De, T as Fe, x as Pe, y as Ue, d as se, e as X, R as ie, H as Be, ac as Me, D as G, h as D, f as Le } from "./app-DavuMSpS.js";
1
+ import { X as Ee, a as q, K as Ie, ae as U, r as Ae, af as fe, s as ye, u as W, i as B, v as Ne, aH as ae, w as he, b as Z, t as V, P as j, aG as De, az as Oe, V as Fe, x as Pe, y as Ue, d as se, e as J, R as ie, H as Be, ad as Me, D as G, h as O, f as Le } from "./app-CulzKCFs.js";
2
2
  import { useCoreStore as ee, useI18n as te } from "@feedmepos/mf-common";
3
3
  import { useDialogChild as Qe, useSnackbar as ve, useDialog as He, FmButtonVariant as le, components as ce } from "@feedmepos/ui-library";
4
4
  import { defineStore as ge } from "pinia";
5
- import { defineComponent as be, resolveComponent as L, openBlock as T, createElementBlock as w, createElementVNode as $, normalizeClass as Q, createTextVNode as qe, toDisplayString as I, unref as E, createCommentVNode as H, createVNode as F, withCtx as Z, Fragment as M, renderList as K, ref as C, onMounted as Ve, computed as me, watch as je, createSlots as ze, createBlock as z, h as Y } from "vue";
5
+ import { defineComponent as be, resolveComponent as L, openBlock as T, createElementBlock as w, createElementVNode as $, normalizeClass as Q, createTextVNode as qe, toDisplayString as I, unref as E, createCommentVNode as H, createVNode as F, withCtx as X, Fragment as M, renderList as K, ref as C, onMounted as Ve, computed as me, watch as je, createSlots as ze, createBlock as z, h as Y } from "vue";
6
6
  import { useRouter as Ke } from "vue-router";
7
- import { u as re } from "./supplier-Ddl4sUpm.js";
7
+ import { u as re } from "./supplier-f0XPCLm-.js";
8
8
  const Se = Ee((e, t) => {
9
9
  function a() {
10
10
  var n;
@@ -293,7 +293,7 @@ function Ye(e, t) {
293
293
  errors: a
294
294
  };
295
295
  }
296
- function Ze(e) {
296
+ function Xe(e) {
297
297
  if (!e.length || `${e[0]}`.toLocaleLowerCase() === "all")
298
298
  return [];
299
299
  const t = /(.*) \(((warehouse_|restaurant_).{24,})\)/, c = W().locationByDbName;
@@ -314,7 +314,7 @@ function Ze(e) {
314
314
  });
315
315
  });
316
316
  }
317
- function Je(e) {
317
+ function Ze(e) {
318
318
  const [
319
319
  t,
320
320
  a,
@@ -338,7 +338,7 @@ function Je(e) {
338
338
  remark: `${y[1] ?? ""}`.trim()
339
339
  };
340
340
  }
341
- function Xe(e) {
341
+ function Je(e) {
342
342
  const [
343
343
  t,
344
344
  a,
@@ -383,7 +383,7 @@ function Xe(e) {
383
383
  });
384
384
  }
385
385
  function et(e, t, a) {
386
- const c = q(), s = J(), n = c.skuByCode[e.code], f = new Array();
386
+ const c = q(), s = Z(), n = c.skuByCode[e.code], f = new Array();
387
387
  if (!n)
388
388
  return f.push(`Cannot find ingredient with code (${e.code}) ${e.name}.`), {
389
389
  index: t,
@@ -423,7 +423,7 @@ function et(e, t, a) {
423
423
  j(o, l)
424
424
  );
425
425
  (Number.isNaN(Number(e.quantityStep)) || Number(e.quantityStep) <= 0) && f.push("Amount step must be more than 0");
426
- const h = Oe(d), y = V(
426
+ const h = De(d), y = V(
427
427
  e.minimumQuantity,
428
428
  j(o, l)
429
429
  );
@@ -433,7 +433,7 @@ function et(e, t, a) {
433
433
  j(o, l)
434
434
  );
435
435
  h(m), +e.minimumQuantity > +e.maximumQuantity && f.push("Minimum amount must be less than or equal to maximum amount");
436
- const v = De(+e.minimumQuantity, +e.maximumQuantity), b = V(
436
+ const v = Oe(+e.minimumQuantity, +e.maximumQuantity), b = V(
437
437
  e.defaultQuantity,
438
438
  j(o, l)
439
439
  ), r = h(b), x = v(`${e.defaultQuantity}`);
@@ -462,11 +462,11 @@ function tt(e) {
462
462
  return t.reduce(
463
463
  (n, f) => {
464
464
  var i;
465
- const o = new Array(), l = e.Sheets[f], d = Je(l), h = Ye(d.transferFrom, d.type);
465
+ const o = new Array(), l = e.Sheets[f], d = Ze(l), h = Ye(d.transferFrom, d.type);
466
466
  o.push(...h.errors);
467
- const y = h.from, m = Ze(d.locations), v = m.filter((p) => p.location).map((p) => p.location);
467
+ const y = h.from, m = Xe(d.locations), v = m.filter((p) => p.location).map((p) => p.location);
468
468
  o.push(...m.flatMap((p) => p.errors));
469
- const b = Xe(l).filter((p) => p.data.code), r = b.map(
469
+ const b = Je(l).filter((p) => p.data.code), r = b.map(
470
470
  (p, S) => et(p.data, S, b)
471
471
  );
472
472
  o.push(
@@ -598,12 +598,12 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
598
598
  ], 2),
599
599
  t.errors.length ? (T(), w("div", lt, [
600
600
  F(s, { "z-index": 50 }, {
601
- content: Z(() => [
601
+ content: X(() => [
602
602
  $("ol", null, [
603
603
  (T(!0), w(M, null, K(t.errors, (l, d) => (T(), w("li", { key: d }, I(l), 1))), 128))
604
604
  ])
605
605
  ]),
606
- default: Z(() => [
606
+ default: X(() => [
607
607
  F(c, {
608
608
  name: "error",
609
609
  size: "sm",
@@ -729,7 +729,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
729
729
  }, ze({ _: 2 }, [
730
730
  t.value ? {
731
731
  name: "default",
732
- fn: Z(({ openFileDialog: i }) => [
732
+ fn: X(({ openFileDialog: i }) => [
733
733
  $("div", ut, [
734
734
  $("div", {
735
735
  class: Q([
@@ -817,7 +817,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
817
817
  });
818
818
  function bt(e) {
819
819
  var n, f;
820
- const t = J();
820
+ const t = Z();
821
821
  if (!t.isEnabled) return !0;
822
822
  if (!e.internal) {
823
823
  const o = t.getNetSuiteVendor(e._id), l = o == null ? void 0 : o.subsidiaryId, d = (n = t.currentVendorSubsidiary(e._id)) == null ? void 0 : n.id;
@@ -827,7 +827,7 @@ function bt(e) {
827
827
  return c && c == s;
828
828
  }
829
829
  const St = ge("transferTemplateActions", () => {
830
- const e = He(), t = ve(), a = W(), c = we(), s = Se(), n = J(), f = Ke(), { t: o } = te(), l = C({});
830
+ const e = He(), t = ve(), a = W(), c = we(), s = Se(), n = Z(), f = Ke(), { t: o } = te(), l = C({});
831
831
  function d() {
832
832
  l.value = {
833
833
  mode: se.CREATE,
@@ -897,7 +897,7 @@ const St = ge("transferTemplateActions", () => {
897
897
  m.value.show = i;
898
898
  },
899
899
  "onAction:edit"() {
900
- m.value.show = !1, h(X(u));
900
+ m.value.show = !1, h(J(u));
901
901
  }
902
902
  };
903
903
  }
@@ -905,11 +905,11 @@ const St = ge("transferTemplateActions", () => {
905
905
  const { promise: u, resolve: i } = Promise.withResolvers(), p = (g) => {
906
906
  i(g);
907
907
  }, S = c.templates.filter((g) => {
908
- var A, N, O;
908
+ var A, N, D;
909
909
  if (((A = g.purchaseOrder.supplier) == null ? void 0 : A._id) === a.currentLocation.doc._id) return !1;
910
910
  if (!((N = g.locations) != null && N.length)) return !0;
911
911
  if (g.locationTags) {
912
- const P = (O = a.currentLocation.doc.customAttributes) == null ? void 0 : O.tag;
912
+ const P = (D = a.currentLocation.doc.customAttributes) == null ? void 0 : D.tag;
913
913
  if (g.locationTags.includes(P)) return !0;
914
914
  }
915
915
  return g.locations.find((P) => P.doc._id === a.currentLocation.doc._id);
@@ -931,10 +931,10 @@ const St = ge("transferTemplateActions", () => {
931
931
  }).onSecondary(() => p(void 0)).onClose(() => p(void 0)), u;
932
932
  const k = S.map((g) => {
933
933
  var oe;
934
- const A = !g.purchaseOrder.items.length || g.purchaseOrder.items.some(xe), N = !bt(g.purchaseOrder.supplier), O = g.purchaseOrder.supplier.internal ? n.getNetSuiteLocation(
934
+ const A = !g.purchaseOrder.items.length || g.purchaseOrder.items.some(xe), N = !bt(g.purchaseOrder.supplier), D = g.purchaseOrder.supplier.internal ? n.getNetSuiteLocation(
935
935
  `${g.purchaseOrder.supplier.internal}_${g.purchaseOrder.supplier._id}`
936
936
  ) : n.getNetSuiteVendor(g.purchaseOrder.supplier._id), P = N ? `The subsidiary of the request
937
- location is ${(oe = n.getLocationSubsidiary(O == null ? void 0 : O.netSuiteId)) == null ? void 0 : oe.fullName}.` : void 0, ke = A || N, Ce = A ? "This template is invalid. Update this template." : N ? P : void 0, Re = `${g.purchaseOrder.supplier.internal ? "Transfer" : "Purchase"} from ${g.purchaseOrder.supplier.name}`;
937
+ location is ${(oe = n.getLocationSubsidiary(D == null ? void 0 : D.netSuiteId)) == null ? void 0 : oe.fullName}.` : void 0, ke = A || N, Ce = A ? "This template is invalid. Update this template." : N ? P : void 0, Re = `${g.purchaseOrder.supplier.internal ? "Transfer" : "Purchase"} from ${g.purchaseOrder.supplier.name}`;
938
938
  return {
939
939
  label: g.name,
940
940
  value: g._id,
@@ -1067,7 +1067,7 @@ const St = ge("transferTemplateActions", () => {
1067
1067
  };
1068
1068
  });
1069
1069
  function pe(e) {
1070
- const { skuById: t } = q(), a = X(e);
1070
+ const { skuById: t } = q(), a = J(e);
1071
1071
  return a.purchaseOrder.items = e.purchaseOrder.items.filter((c) => t[c.sku._id]), a;
1072
1072
  }
1073
1073
  const we = ge(
@@ -1103,12 +1103,12 @@ const we = ge(
1103
1103
  }
1104
1104
  }
1105
1105
  function d(y, m) {
1106
- switch (m = X(m), y) {
1107
- case D.Details:
1106
+ switch (m = J(m), y) {
1107
+ case O.Details:
1108
1108
  return a.viewTemplate(m);
1109
- case D.Edit:
1109
+ case O.Edit:
1110
1110
  return a.updateTemplate(m);
1111
- case D.Delete:
1111
+ case O.Delete:
1112
1112
  return a.deleteTemplate(m, c, o);
1113
1113
  }
1114
1114
  }
@@ -1188,9 +1188,9 @@ const we = ge(
1188
1188
  id: "action",
1189
1189
  cell(y) {
1190
1190
  const m = y.row.original, v = [
1191
- G[D.Details],
1192
- G[D.Edit],
1193
- G[D.Delete]
1191
+ G[O.Details],
1192
+ G[O.Edit],
1193
+ G[O.Delete]
1194
1194
  ];
1195
1195
  return Le(v, (b) => d(b, m));
1196
1196
  },
@@ -30,7 +30,7 @@ export declare function toAdjustmentWithPrecision(amt: string | number, precisio
30
30
  amount: number;
31
31
  precision: number;
32
32
  };
33
- export declare function countDivisibleByTrailingZero(n: number): number;
33
+ export declare function countDivisibleByTrailingZero(n: number | BigInt): number;
34
34
  /**
35
35
  * Returns the valid precision for a base unit or a converted measurement.
36
36
  * Documentation at: https://www.notion.so/feedmepos/Precision-Handling-Logic-8e2211106b4a4a0f9fae8ee9c1e897da?pvs=4
@@ -1,5 +1,5 @@
1
1
  import { ref as c, computed as l } from "vue";
2
- import { u as g, aR as d, b as m } from "./app-DavuMSpS.js";
2
+ import { u as g, aS as d, b as m } from "./app-CulzKCFs.js";
3
3
  import { useSnackbar as f } from "@feedmepos/ui-library";
4
4
  function b() {
5
5
  return {
@@ -1,4 +1,4 @@
1
- import { aQ as L, a1 as U, aW as q, a2 as Fe, aX as tl, a4 as ar, aY as Nt } from "./app-DavuMSpS.js";
1
+ import { aR as L, a2 as U, aW as q, a3 as Fe, aX as tl, a5 as ar, aY as Nt } from "./app-CulzKCFs.js";
2
2
  function rl(t, e) {
3
3
  for (var r = 0; r < e.length; r++) {
4
4
  const n = e[r];
@@ -1,4 +1,4 @@
1
- import { W as m, u as B, a as l, an as k, K as v } from "./app-DavuMSpS.js";
1
+ import { X as m, u as B, a as l, ao as k, K as v } from "./app-CulzKCFs.js";
2
2
  import { useCoreStore as p } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as y } from "@feedmepos/ui-library";
4
4
  import { ref as $, computed as S } from "vue";
@@ -1,4 +1,4 @@
1
- import { W as m, u, v as y, ao as b, ap as v } from "./app-DavuMSpS.js";
1
+ import { X as m, u, v as y, ap as b, aq as v } from "./app-CulzKCFs.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";