@feedmepos/mf-inventory-portal 0.0.23-dev.28 → 0.0.23-dev.29

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 (39) hide show
  1. package/dist/{App-DRBjtrVV.js → App-Cb0DKDZS.js} +2 -2
  2. package/dist/{ApprovalView-OzaufzMA.js → ApprovalView-Cifc-Y_m.js} +2 -2
  3. package/dist/{BindingsDialog-DQwWNg1N.js → BindingsDialog-huZq9ea8.js} +2 -2
  4. package/dist/{BindingsPicker-DSYOkBTy.js → BindingsPicker-fFhc3-J_.js} +1 -1
  5. package/dist/{BindingsTable-BB39IdFU.js → BindingsTable-i3JEZnKw.js} +1 -1
  6. package/dist/{ClosingDraftView-CF3wn51T.js → ClosingDraftView-C8yh1aar.js} +3 -3
  7. package/dist/{ClosingTemplateView-Dk5TTe31.js → ClosingTemplateView-CUfFxnXb.js} +1 -1
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-vvfsYTGA.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lcB61e9L.js} +3 -3
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-qqudhwEN.js → FmUnitInput.vue_vue_type_script_setup_true_lang-FrCm7O_S.js} +1 -1
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-g1RpNK-0.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BtwkTwMB.js} +1 -1
  11. package/dist/{IngredientGroupView-CREz-Vh2.js → IngredientGroupView-DS1OeV_l.js} +1 -1
  12. package/dist/{IngredientsView-DzI9vr-u.js → IngredientsView-1ICj0ozR.js} +4 -4
  13. package/dist/{IntegrationView-3cA_x_gB.js → IntegrationView-BCwOX1nf.js} +1 -1
  14. package/dist/{InventoryBindingForm-DDS19Q0p.js → InventoryBindingForm-BObD8RZu.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-5elMjhnH.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-YGmtVDLf.js} +3 -3
  16. package/dist/{InventoryBindingSummary-HSClvlZ5.js → InventoryBindingSummary-D1OHZ8H_.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ni8Q5uWj.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CJSNaaWU.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-ClmXXhpb.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C-oLUbzX.js} +1 -1
  19. package/dist/{PurchaseOrderPrintPreview-wKM6u0Ci.js → PurchaseOrderPrintPreview-s-lWuBrs.js} +1 -1
  20. package/dist/{ReceiveRequestView-CTk9r1bA.js → ReceiveRequestView-BR1NkASK.js} +10 -10
  21. package/dist/{RecipeView-DJzDyKB5.js → RecipeView-BdmH9QHY.js} +3 -3
  22. package/dist/{StockView-DO4ys9XN.js → StockView-CzIY1FD0.js} +7 -7
  23. package/dist/{SupplierView-BIJkWdt4.js → SupplierView-CDdzeK4D.js} +4 -4
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-KSBV1U_z.js → TransferDetails.vue_vue_type_script_setup_true_lang-9gBm-Qpw.js} +4 -4
  25. package/dist/{TransferTemplateView-CDUNWRLQ.js → TransferTemplateView-BYuUr8m6.js} +6 -6
  26. package/dist/{UnitView-DJoSWs6g.js → UnitView-CAKx1qNs.js} +3 -3
  27. package/dist/{WarehouseView-C8YZTOZd.js → WarehouseView-DRveYDl1.js} +1 -1
  28. package/dist/{app-CYk4J4VK.js → app-CutWLf0m.js} +281 -281
  29. package/dist/app.js +1 -1
  30. package/dist/{decimal-0QwuGxcA.js → decimal-Dv59Tc95.js} +1 -1
  31. package/dist/{feature-Q0gPMHLe.js → feature-CcnwSkJs.js} +1 -1
  32. package/dist/{format-unit-display-BIMHakYl.js → format-unit-display-mDGo4-C8.js} +2 -2
  33. package/dist/{index-BQjj0Tdx.js → index-BRw5keOc.js} +1 -1
  34. package/dist/stock-Bqhch78I.js +125 -0
  35. package/dist/{supplier-xeNz-LFV.js → supplier-DElqqxGT.js} +1 -1
  36. package/dist/tsconfig.app.tsbuildinfo +1 -1
  37. package/dist/{use-inventory-binding-dialog-WCVWoWcc.js → use-inventory-binding-dialog-CfHThiv9.js} +1 -1
  38. package/package.json +1 -1
  39. package/dist/stock-ahRK16Qq.js +0 -110
@@ -1,4 +1,4 @@
1
- import { a as g, H as y } from "./app-CYk4J4VK.js";
1
+ import { a as g, H as y } from "./app-CutWLf0m.js";
2
2
  import { useDialog as C } from "@feedmepos/ui-library";
3
3
  function P() {
4
4
  const c = g(), u = C();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-inventory-portal",
3
- "version": "0.0.23-dev.28",
3
+ "version": "0.0.23-dev.29",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,110 +0,0 @@
1
- import { W as l, u as m, a as B, am as k } from "./app-CYk4J4VK.js";
2
- import { useCoreStore as p } from "@feedmepos/mf-common";
3
- import { useSnackbar as v } from "@feedmepos/ui-library";
4
- import { ref as y } from "vue";
5
- const $ = l((o, t) => {
6
- const s = m(), u = p(), c = v();
7
- return t.onError(async (e) => {
8
- e.name === "SvcForbiddenError" && (c == null || c.open({
9
- title: e.title,
10
- message: e.message,
11
- type: "error"
12
- }));
13
- }), {
14
- async readStockBalance() {
15
- const e = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${e}/stock-balance`;
16
- return await t.get(n);
17
- },
18
- async readSkuBalance() {
19
- var r;
20
- const e = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${e}/sku/balance`;
21
- return (((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) ?? "") === "v3" ? await t.get(n) : await t.get(`${n}?useInventoryDoc=true`);
22
- },
23
- async readSingleAdjustment(e) {
24
- const n = s.currentLocationDBName, a = `${o.inventoryBackendUrl}/${n}/adjustment`;
25
- return await t.get(`${a}?adjustmentId=${e}`);
26
- },
27
- async readStockAdjustment(e, n, a) {
28
- const r = s.currentLocationDBName, i = `${o.inventoryBackendUrl}/${r}/sku`;
29
- return await t.get(`${i}?skuId=${e}&start=${n}&end=${a}`);
30
- },
31
- async convertSku(e) {
32
- var i;
33
- const n = s.currentLocationDBName, a = `${o.inventoryBackendUrl}/${n}/sku/convert`;
34
- return (((i = u.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await t.post(a, e) : await t.post(`${a}?useInventoryDoc=true`, e);
35
- },
36
- async adjustSku(e) {
37
- var i;
38
- const n = s.currentLocationDBName, a = `${o.inventoryBackendUrl}/${n}/sku/adjust`;
39
- return (((i = u.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await t.post(a, e) : await t.post(`${a}?useInventoryDoc=true`, e);
40
- },
41
- recalculation: {
42
- getRecalculateAbility() {
43
- var r;
44
- const n = `business_${(r = u.currentBusiness.value) == null ? void 0 : r._id}`, a = `${o.inventoryBackendUrl}/${n}/stock/operations/recalculate`;
45
- return t.get(a);
46
- },
47
- startRecalculateTask() {
48
- var r;
49
- const n = `business_${(r = u.currentBusiness.value) == null ? void 0 : r._id}`, a = `${o.inventoryBackendUrl}/${n}/stock/operations/recalculate?refundFromPreviousAdjustment=true`;
50
- return t.post(a);
51
- }
52
- }
53
- };
54
- });
55
- function S() {
56
- return {
57
- stockBalance: {
58
- _id: "",
59
- items: []
60
- },
61
- productBalance: []
62
- };
63
- }
64
- const d = y(S()), N = () => {
65
- const o = $();
66
- return {
67
- // state
68
- get stockBalance() {
69
- return d.value.stockBalance;
70
- },
71
- set stockBalance(t) {
72
- d.value.stockBalance = t;
73
- },
74
- get productBalance() {
75
- return d.value.productBalance;
76
- },
77
- set productBalance(t) {
78
- d.value.productBalance = t;
79
- },
80
- // actions
81
- async readStockBalance() {
82
- this.stockBalance = await o.readStockBalance();
83
- },
84
- async readProductBalance() {
85
- this.productBalance = [];
86
- const t = B(), s = k({
87
- recipes: t.recipes,
88
- skus: t.skus,
89
- inventoryBindingMapping: {},
90
- stockBalance: this.stockBalance
91
- // silent: true
92
- });
93
- function u(c, e) {
94
- return Object.prototype.hasOwnProperty.call(c, e);
95
- }
96
- for (const c in s.convertCountdown)
97
- if (u(s.convertCountdown, c)) {
98
- const e = s.convertCountdown[c];
99
- this.productBalance.push({
100
- id: c,
101
- count: e
102
- });
103
- }
104
- }
105
- };
106
- };
107
- export {
108
- $ as a,
109
- N as u
110
- };