@feedmepos/mf-inventory-portal 1.1.8-dev.1 → 1.1.8-dev.3

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-veHf70us.js → App-DdY-tL6d.js} +1 -1
  2. package/dist/{ApprovalView-BHmFwrSI.js → ApprovalView-D1apNSin.js} +2 -2
  3. package/dist/{BindingsDialog-BtsPrnkN.js → BindingsDialog-NYYC7EMS.js} +2 -2
  4. package/dist/{BindingsPicker-BZLdo3j7.js → BindingsPicker-DJ3sTg_e.js} +1 -1
  5. package/dist/{BindingsTable-Cl_202xc.js → BindingsTable-B5FasJWs.js} +1 -1
  6. package/dist/{ClosingDraftView-BmYBBxXF.js → ClosingDraftView-BKu_losH.js} +2 -2
  7. package/dist/{ClosingTemplateView-D_q5Cqh0.js → ClosingTemplateView--1VxQU7U.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-OpO2cRqM.js → DeliveryOrderPrintPreview-DmVmPHIL.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DnD-9Xlp.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BRG0Rfbm.js} +3 -3
  10. package/dist/{FmMultiselectDialog-BAXYhHXd.js → FmMultiselectDialog-Cz_Dmt91.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BhNXYuvq.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DXB6plH-.js} +1 -1
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C7SW2nNO.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-llPqmeTt.js} +1 -1
  13. package/dist/{IngredientGroupView-D0h1YsbP.js → IngredientGroupView-Cl24Ekok.js} +2 -2
  14. package/dist/{IngredientsView-C_3wyh5v.js → IngredientsView-BQsC-7Fw.js} +4 -4
  15. package/dist/{IntegrationView-QqGcH-dN.js → IntegrationView-C9gSyaTU.js} +3 -3
  16. package/dist/{InventoryBindingForm-z8_qpiTO.js → InventoryBindingForm-YxAIUhiw.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Lx9VL2I6.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BFvVKi21.js} +3 -3
  18. package/dist/{InventoryBindingSummary-Bsl4Gv9C.js → InventoryBindingSummary-5uoBPt2b.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BxHFH1_k.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CvBN72EI.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D5oYHtLv.js → PremiumBadge.vue_vue_type_script_setup_true_lang-By0rf6sh.js} +1 -1
  21. package/dist/{PublishView-D4MSi6ZU.js → PublishView-BkEiBVqj.js} +1 -1
  22. package/dist/{PurchaseOrderPrintPreview-BfIw_wm3.js → PurchaseOrderPrintPreview-EyMcD2XW.js} +1 -1
  23. package/dist/{ReceiveRequestView-BLN4uh1f.js → ReceiveRequestView-Dc09tWcz.js} +8 -8
  24. package/dist/{RecipeView-BYrXdWYU.js → RecipeView-CdqrhnMz.js} +3 -3
  25. package/dist/{StockView-BkOpMBkI.js → StockView-BvBAtCrX.js} +733 -704
  26. package/dist/{SupplierView-DCes9XEn.js → SupplierView-EsdZPvdM.js} +3 -3
  27. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DdmVEYUZ.js → TransferDetails.vue_vue_type_script_setup_true_lang-KPBQ3gpI.js} +254 -253
  28. package/dist/{TransferTemplateView-CSQWhzL3.js → TransferTemplateView-Ba5-1Ewp.js} +6 -6
  29. package/dist/{UnitView-BR8h1-Fg.js → UnitView-B84IPbML.js} +3 -3
  30. package/dist/{WarehouseView-C0owHwI6.js → WarehouseView-d-ecUPlf.js} +1 -1
  31. package/dist/api/stock.d.ts +1 -0
  32. package/dist/{app-CsCsQ8Wq.js → app-BhhwuRBL.js} +21 -17
  33. package/dist/app.d.ts +3 -0
  34. package/dist/app.js +1 -1
  35. package/dist/{decimal-CCcb_ZM5.js → decimal-DS1ycjoO.js} +1 -1
  36. package/dist/{format-unit-display-LULBvgMu.js → format-unit-display-CWtXsCmx.js} +2 -2
  37. package/dist/{index-GxCc62xJ.js → index-DgOQJh8U.js} +1 -1
  38. package/dist/{index-CcJb5oyS.js → index-ueQSTssg.js} +1 -1
  39. package/dist/{stock-DYOew5RJ.js → stock-BnEVp_Jj.js} +32 -28
  40. package/dist/{supplier-CeQJLRf5.js → supplier-DWViUySA.js} +1 -1
  41. package/dist/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/{use-ingredient-select-dialog-DjZg2Cco.js → use-ingredient-select-dialog-FetvENOi.js} +1 -1
  43. package/dist/{use-inventory-binding-dialog-CBXOv0gD.js → use-inventory-binding-dialog-DWuCe_pt.js} +1 -1
  44. package/package.json +3 -3
package/dist/app.d.ts CHANGED
@@ -96,6 +96,7 @@ export declare const i18nMessages: {
96
96
  stock: {
97
97
  stock_balance: {
98
98
  title: string;
99
+ refreshBalance: string;
99
100
  };
100
101
  title: string;
101
102
  code: string;
@@ -954,6 +955,7 @@ export declare const i18nMessages: {
954
955
  stock: {
955
956
  stock_balance: {
956
957
  title: string;
958
+ refreshBalance: string;
957
959
  };
958
960
  title: string;
959
961
  code: string;
@@ -1641,6 +1643,7 @@ export declare const i18nMessages: {
1641
1643
  stock: {
1642
1644
  stock_balance: {
1643
1645
  title: string;
1646
+ refreshBalance: string;
1644
1647
  };
1645
1648
  title: string;
1646
1649
  code: string;
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { bg as a, bh as e, bi as o, bf as i, bj as t, a as m } from "./app-CsCsQ8Wq.js";
2
+ import { bg as a, bh as e, bi as o, bf as i, bj as t, a as m } from "./app-BhhwuRBL.js";
3
3
  export {
4
4
  a as FmApp,
5
5
  e as InventoryBindingForm,
@@ -1,4 +1,4 @@
1
- import "./app-CsCsQ8Wq.js";
1
+ import "./app-BhhwuRBL.js";
2
2
  function m(a) {
3
3
  function t(o, n = !0) {
4
4
  const e = Math.round(Math.log10(o));
@@ -1,10 +1,10 @@
1
- import { a3 as Ae, a as q, T as Ie, ah as M, s as De, ai as he, v as ve, u as Z, j as B, w as Oe, aM as ce, x as ge, b as te, t as G, Y as J, aL as Fe, aD as Pe, a0 as Ue, y as Me, z as Be, aj as Le, e as me, f as re, R as ue, a2 as Qe, af as He, D as j, i as I, h as Ve } from "./app-CsCsQ8Wq.js";
1
+ import { a3 as Ae, a as q, T as Ie, ah as M, s as De, ai as he, v as ve, u as Z, j as B, w as Oe, aM as ce, x as ge, b as te, t as G, Y as J, aL as Fe, aD as Pe, a0 as Ue, y as Me, z as Be, aj as Le, e as me, f as re, R as ue, a2 as Qe, af as He, D as j, i as I, h as Ve } from "./app-BhhwuRBL.js";
2
2
  import { useCoreStore as ne, useI18n as oe } from "@feedmepos/mf-common";
3
3
  import { useDialogChild as qe, useSnackbar as be, useDialog as je, FmButtonVariant as z, components as X } from "@feedmepos/ui-library";
4
4
  import { defineStore as xe } from "pinia";
5
5
  import { defineComponent as ae, resolveComponent as Q, openBlock as _, createElementBlock as k, createElementVNode as C, normalizeClass as H, createTextVNode as ze, toDisplayString as D, unref as A, createCommentVNode as V, createVNode as P, withCtx as ee, Fragment as L, renderList as K, ref as R, onMounted as Ye, computed as de, watch as Ke, createSlots as We, createBlock as Y, h as W } from "vue";
6
6
  import { useRouter as Ge } from "vue-router";
7
- import { u as se } from "./supplier-CeQJLRf5.js";
7
+ import { u as se } from "./supplier-DWViUySA.js";
8
8
  const Te = Ae((e, t) => {
9
9
  function s() {
10
10
  var o;
@@ -1,5 +1,5 @@
1
1
  import { ref as b, computed as u } from "vue";
2
- import { u as d, b1 as p, aT as v, c as m, b as h } from "./app-CsCsQ8Wq.js";
2
+ import { u as d, b1 as p, aT as v, c as m, b as h } from "./app-BhhwuRBL.js";
3
3
  import { useSnackbar as E } from "@feedmepos/ui-library";
4
4
  function I() {
5
5
  return {
@@ -1,4 +1,4 @@
1
- import { b0 as x, b7 as V, b8 as q, b9 as Re, ba as cl, bb as sr, bc as Lt, bd as fl, be as $l } from "./app-CsCsQ8Wq.js";
1
+ import { b0 as x, b7 as V, b8 as q, b9 as Re, ba as cl, bb as sr, bc as Lt, bd as fl, be as $l } from "./app-BhhwuRBL.js";
2
2
  function vl(t, e) {
3
3
  for (var r = 0; r < e.length; r++) {
4
4
  const n = e[r];
@@ -1,9 +1,9 @@
1
- import { a3 as m, u as k, a as l, at as B, T as p } from "./app-CsCsQ8Wq.js";
1
+ import { a3 as m, u as k, a as l, at as B, T as p } from "./app-BhhwuRBL.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 S } from "vue";
5
- const g = m((c, a) => {
6
- const r = k(), o = v(), u = $();
5
+ const b = m((c, a) => {
6
+ const s = k(), o = v(), u = $();
7
7
  return a.onError(async (t) => {
8
8
  t.name === "SvcForbiddenError" && (u == null || u.open({
9
9
  title: t.title,
@@ -12,59 +12,63 @@ const g = m((c, a) => {
12
12
  }));
13
13
  }), {
14
14
  async readStockBalance() {
15
- const t = r.currentLocationDBName, e = `${c.inventoryBackendUrl}/${t}/stock-balance`;
15
+ const t = s.currentLocationDBName, e = `${c.inventoryBackendUrl}/${t}/stock-balance`;
16
16
  return await a.get(e);
17
17
  },
18
18
  async readSkuBalance() {
19
- var s;
20
- const t = r.currentLocationDBName, e = `${c.inventoryBackendUrl}/${t}/sku/balance`;
21
- return (((s = o.currentBusiness.value) == null ? void 0 : s.menuVersion) ?? "") === "v3" ? await a.get(e) : await a.get(`${e}?useInventoryDoc=true`);
19
+ var r;
20
+ const t = s.currentLocationDBName, e = `${c.inventoryBackendUrl}/${t}/sku/balance`;
21
+ return (((r = o.currentBusiness.value) == null ? void 0 : r.menuVersion) ?? "") === "v3" ? await a.get(e) : await a.get(`${e}?useInventoryDoc=true`);
22
22
  },
23
23
  async readSingleAdjustment(t) {
24
- const e = r.currentLocationDBName, n = `${c.inventoryBackendUrl}/${e}/adjustment`;
24
+ const e = s.currentLocationDBName, n = `${c.inventoryBackendUrl}/${e}/adjustment`;
25
25
  return await a.get(`${n}?adjustmentId=${t}`);
26
26
  },
27
27
  async readStockAdjustment(t, e, n) {
28
- const s = r.currentLocationDBName, i = `${c.inventoryBackendUrl}/${s}/sku`;
28
+ const r = s.currentLocationDBName, i = `${c.inventoryBackendUrl}/${r}/sku`;
29
29
  return await a.get(`${i}?skuId=${t}&start=${e}&end=${n}`);
30
30
  },
31
31
  async readAdjustmentById(t) {
32
- const e = r.currentLocationDBName, n = `${c.inventoryBackendUrl}/${e}/adjustment`;
32
+ const e = s.currentLocationDBName, n = `${c.inventoryBackendUrl}/${e}/adjustment`;
33
33
  return await a.get(`${n}?adjustmentId=${t}`);
34
34
  },
35
35
  async convertSku(t) {
36
36
  var i;
37
- const e = r.currentLocationDBName, n = `${c.inventoryBackendUrl}/${e}/sku/convert`;
37
+ const e = s.currentLocationDBName, n = `${c.inventoryBackendUrl}/${e}/sku/convert`;
38
38
  return (((i = o.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await a.post(n, t) : await a.post(`${n}?useInventoryDoc=true`, t);
39
39
  },
40
40
  async adjustSku(t) {
41
41
  var i;
42
- const e = r.currentLocationDBName, n = `${c.inventoryBackendUrl}/${e}/sku/adjust`;
42
+ const e = s.currentLocationDBName, n = `${c.inventoryBackendUrl}/${e}/sku/adjust`;
43
43
  return (((i = o.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await a.post(n, t) : await a.post(`${n}?useInventoryDoc=true`, t);
44
44
  },
45
45
  recalculation: {
46
46
  getRecalculateAbility() {
47
- var s;
48
- const e = `business_${(s = o.currentBusiness.value) == null ? void 0 : s._id}`, n = `${c.inventoryBackendUrl}/${e}/stock/operations/recalculate`;
47
+ var r;
48
+ const e = `business_${(r = o.currentBusiness.value) == null ? void 0 : r._id}`, n = `${c.inventoryBackendUrl}/${e}/stock/operations/recalculate`;
49
49
  return a.get(n);
50
50
  },
51
51
  startRecalculateTask() {
52
- var s;
53
- const e = `business_${(s = o.currentBusiness.value) == null ? void 0 : s._id}`, n = `${c.inventoryBackendUrl}/${e}/stock/operations/recalculate?refundFromPreviousAdjustment=true`;
52
+ var r;
53
+ const e = `business_${(r = o.currentBusiness.value) == null ? void 0 : r._id}`, n = `${c.inventoryBackendUrl}/${e}/stock/operations/recalculate?refundFromPreviousAdjustment=true`;
54
54
  return a.post(n);
55
55
  },
56
+ refreshCurrentBalances() {
57
+ const t = s.currentLocationDBName, e = `${c.inventoryBackendUrl}/${t}/stock/operations/recalculate/refresh-current-balances`;
58
+ return a.post(e);
59
+ },
56
60
  calculateStockSnapshotAtDate(t, e) {
57
- const n = r.currentLocationDBName, s = `${c.inventoryBackendUrl}/${n}/stock/operations/recalculate/calculate-at-date?effectiveAt=${encodeURIComponent(t)}&closingDraftId=${encodeURIComponent(e)}`;
58
- return a.get(s);
61
+ const n = s.currentLocationDBName, r = `${c.inventoryBackendUrl}/${n}/stock/operations/recalculate/calculate-at-date?effectiveAt=${encodeURIComponent(t)}&closingDraftId=${encodeURIComponent(e)}`;
62
+ return a.get(r);
59
63
  },
60
64
  scheduleCalculateStockSnapshotAtDate(t, e) {
61
- const n = r.currentLocationDBName, s = `${c.inventoryBackendUrl}/${n}/stock/operations/recalculate/schedule/calculate-at-date?effectiveAt=${encodeURIComponent(t)}&closingDraftId=${encodeURIComponent(e)}`;
62
- return a.get(s);
65
+ const n = s.currentLocationDBName, r = `${c.inventoryBackendUrl}/${n}/stock/operations/recalculate/schedule/calculate-at-date?effectiveAt=${encodeURIComponent(t)}&closingDraftId=${encodeURIComponent(e)}`;
66
+ return a.get(r);
63
67
  }
64
68
  }
65
69
  };
66
70
  });
67
- function b() {
71
+ function f() {
68
72
  return {
69
73
  stockBalance: {
70
74
  _id: "",
@@ -73,12 +77,12 @@ function b() {
73
77
  productBalance: []
74
78
  };
75
79
  }
76
- const f = p(0), N = {
80
+ const g = p(0), N = {
77
81
  id: "",
78
- balance: f,
82
+ balance: g,
79
83
  closing: null,
80
84
  costs: null
81
- }, d = y(b()), A = () => {
85
+ }, d = y(f()), h = () => {
82
86
  const c = l(), a = S(() => {
83
87
  var t;
84
88
  const o = (t = d.value.stockBalance.skus) == null ? void 0 : t.groupBy((e) => e.id), u = (e) => {
@@ -86,7 +90,7 @@ const f = p(0), N = {
86
90
  return ((n = o == null ? void 0 : o.get(e)) == null ? void 0 : n[0]) ?? { ...N, id: e };
87
91
  };
88
92
  return c.skus.map((e) => u(e._id));
89
- }), r = g();
93
+ }), s = b();
90
94
  return {
91
95
  // state
92
96
  get stockBalance() {
@@ -106,7 +110,7 @@ const f = p(0), N = {
106
110
  },
107
111
  // actions
108
112
  async readStockBalance() {
109
- this.stockBalance = await r.readStockBalance();
113
+ this.stockBalance = await s.readStockBalance();
110
114
  },
111
115
  async readProductBalance() {
112
116
  this.productBalance = [];
@@ -133,6 +137,6 @@ const f = p(0), N = {
133
137
  };
134
138
  };
135
139
  export {
136
- g as a,
137
- A as u
140
+ b as a,
141
+ h as u
138
142
  };
@@ -1,4 +1,4 @@
1
- import { a3 as m, u, c as b, w, au as v, av as $ } from "./app-CsCsQ8Wq.js";
1
+ import { a3 as m, u, c as b, w, au as v, av as $ } from "./app-BhhwuRBL.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";