@feedmepos/mf-inventory-portal 0.0.23-dev.27 → 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.
- package/dist/{App-B2-rB0yC.js → App-Cb0DKDZS.js} +2 -2
- package/dist/{ApprovalView-DrL44_4i.js → ApprovalView-Cifc-Y_m.js} +2 -2
- package/dist/{BindingsDialog-G_9Qdbjt.js → BindingsDialog-huZq9ea8.js} +2 -2
- package/dist/{BindingsPicker-D6Dbm59Q.js → BindingsPicker-fFhc3-J_.js} +1 -1
- package/dist/{BindingsTable-rpkfHFu6.js → BindingsTable-i3JEZnKw.js} +1 -1
- package/dist/ClosingDraftView-C8yh1aar.js +1190 -0
- package/dist/{ClosingTemplateView-Cbq14r2J.js → ClosingTemplateView-CUfFxnXb.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CiK3jJzv.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lcB61e9L.js} +3 -3
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BCnEgLFo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-FrCm7O_S.js} +1 -1
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-6e20tPAa.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BtwkTwMB.js} +1 -1
- package/dist/{IngredientGroupView-DXvlg9T2.js → IngredientGroupView-DS1OeV_l.js} +1 -1
- package/dist/{IngredientsView-Oasfl3n4.js → IngredientsView-1ICj0ozR.js} +4 -4
- package/dist/{IntegrationView-Ba2eeCeF.js → IntegrationView-BCwOX1nf.js} +1 -1
- package/dist/{InventoryBindingForm-B4v03AdY.js → InventoryBindingForm-BObD8RZu.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DmkxsM2R.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-YGmtVDLf.js} +3 -3
- package/dist/{InventoryBindingSummary-B74nSYWo.js → InventoryBindingSummary-D1OHZ8H_.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BIcIrcdw.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CJSNaaWU.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CSVYXLNb.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C-oLUbzX.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-DjMM9eMI.js → PurchaseOrderPrintPreview-s-lWuBrs.js} +1 -1
- package/dist/{ReceiveRequestView-C-8s7_EU.js → ReceiveRequestView-BR1NkASK.js} +10 -10
- package/dist/{RecipeView-Dj_0TDsF.js → RecipeView-BdmH9QHY.js} +3 -3
- package/dist/{StockView-stjLfg3f.js → StockView-CzIY1FD0.js} +7 -7
- package/dist/{SupplierView-DeglTp5H.js → SupplierView-CDdzeK4D.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CmQCMEiN.js → TransferDetails.vue_vue_type_script_setup_true_lang-9gBm-Qpw.js} +4 -4
- package/dist/{TransferTemplateView-BPP181lL.js → TransferTemplateView-BYuUr8m6.js} +6 -6
- package/dist/{UnitView-DY0X-xIJ.js → UnitView-CAKx1qNs.js} +3 -3
- package/dist/{WarehouseView-D1rxo-vc.js → WarehouseView-DRveYDl1.js} +1 -1
- package/dist/{app-CCSWGqGQ.js → app-CutWLf0m.js} +1347 -1300
- package/dist/app.js +1 -1
- package/dist/{decimal-GRRZU5-3.js → decimal-Dv59Tc95.js} +1 -1
- package/dist/{feature-3Nr7NqEl.js → feature-CcnwSkJs.js} +1 -1
- package/dist/{format-unit-display-BA-KI-a-.js → format-unit-display-mDGo4-C8.js} +2 -2
- package/dist/{index-i0DM_jxR.js → index-BRw5keOc.js} +1 -1
- package/dist/stock-Bqhch78I.js +125 -0
- package/dist/{supplier-BmEIB4Jq.js → supplier-DElqqxGT.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-DKJCAeBg.js → use-inventory-binding-dialog-CfHThiv9.js} +1 -1
- package/package.json +2 -2
- package/dist/ClosingDraftView-CbIQxG9i.js +0 -1144
- package/dist/stock-ntKQ4Rgr.js +0 -110
package/dist/stock-ntKQ4Rgr.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { W as l, u as m, a as B, am as k } from "./app-CCSWGqGQ.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
|
-
};
|