@feedmepos/mf-inventory-portal 1.0.3 → 1.0.5-dev
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-C1VupiZY.js → App-HiQFjdJ-.js} +1 -1
- package/dist/{ApprovalView-DplI9cBD.js → ApprovalView-CynLDEVc.js} +2 -2
- package/dist/{BindingsDialog-BRODuQYW.js → BindingsDialog-Bnp9wpfo.js} +2 -2
- package/dist/{BindingsPicker-BQJeW4T5.js → BindingsPicker-d0mYW8dg.js} +5 -5
- package/dist/{BindingsTable-DdPACqSs.js → BindingsTable-DTqY2ksc.js} +5 -5
- package/dist/ClosingDraftView-CWioP0pS.js +1394 -0
- package/dist/{ClosingTemplateView-BONrPuvT.js → ClosingTemplateView-BQrAl5fV.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-C9ZT6Hlg.js → DeliveryOrderPrintPreview-BDF8lY7Y.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-YdcIpvT7.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BN_xp-N6.js} +3 -3
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-B0cMgy-R.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BWUrzPyM.js} +1 -1
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DbCkYQRx.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-XhFhN0MD.js} +1 -1
- package/dist/{IngredientGroupView-K00nLk1c.js → IngredientGroupView-CyjtkSE4.js} +1 -1
- package/dist/{IngredientsView-B6Yu-gfy.js → IngredientsView-DcTIYA5r.js} +3 -3
- package/dist/IntegrationView-Jeh9aw2u.js +2148 -0
- package/dist/{InventoryBindingForm-Ck3YkMP8.js → InventoryBindingForm-dlNXDnnO.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Z0ofZoa5.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BeUd7kC6.js} +3 -3
- package/dist/{InventoryBindingSummary-mDDEGGrj.js → InventoryBindingSummary-BPvSql2a.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-p1otjx3-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DFofvMkD.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Q7bKAXW1.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CaBtx2ad.js} +1 -1
- package/dist/{PublishView-DIGrMK7M.js → PublishView-4Mh9EtfQ.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-CIvH6ak4.js → PurchaseOrderPrintPreview-DFNVxR7Q.js} +1 -1
- package/dist/{ReceiveRequestView-Do8YpHUz.js → ReceiveRequestView-DGfyfwbS.js} +8 -8
- package/dist/{RecipeView-D87QEyUM.js → RecipeView-D-M9rodW.js} +3 -3
- package/dist/{StockView-BlAsmxkM.js → StockView-Dmy2nTn9.js} +6 -6
- package/dist/{SupplierView-CJW6pqqq.js → SupplierView-dwayUuSs.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-QGPSA275.js → TransferDetails.vue_vue_type_script_setup_true_lang-DtrWgdXq.js} +6 -6
- package/dist/{TransferTemplateView-Ufv0RRVH.js → TransferTemplateView-zl-E8FWk.js} +6 -6
- package/dist/{UnitView-CRJGTNRn.js → UnitView-DlgkMRfA.js} +3 -3
- package/dist/{WarehouseView-D_iqmtil.js → WarehouseView-Cwm2w_Li.js} +1 -1
- package/dist/api/closing.d.ts +7 -1
- package/dist/api/netsuite.d.ts +82 -0
- package/dist/api/stock.d.ts +44 -0
- package/dist/{app-DUVoMWjT.js → app-7jcARtWe.js} +2150 -2098
- package/dist/app.js +1 -1
- package/dist/{decimal-C2cu01Ty.js → decimal-Df15BvRp.js} +1 -1
- package/dist/{format-unit-display-BhApyqDh.js → format-unit-display-CEjqAYMQ.js} +2 -2
- package/dist/index-D1mi5w82.js +125 -0
- package/dist/{index-CzrCaC5N.js → index-D76OeHWL.js} +1 -1
- package/dist/{stock-BRe9UgbU.js → stock-C2o7RYsv.js} +35 -31
- package/dist/stores/feature.d.ts +4 -1
- package/dist/stores/integration/index.d.ts +1 -0
- package/dist/stores/integration/netsuite.d.ts +11 -0
- package/dist/stores/integration/xilnex.d.ts +12 -0
- package/dist/stores/inventory.d.ts +12 -12
- package/dist/stores/stock.d.ts +12 -12
- package/dist/{supplier-CjOLvGsU.js → supplier-DX4BGHJ3.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-316K96zh.js → use-ingredient-select-dialog-BQq-zLGA.js} +1 -1
- package/dist/{use-inventory-binding-dialog-fGBCj6Ba.js → use-inventory-binding-dialog-NM2fZkBw.js} +1 -1
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +40 -40
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +240 -240
- package/dist/views/integration/XilnexView.vue.d.ts +2 -0
- package/dist/views/integration/components/Xilnex/XilnexOpeningImport.vue.d.ts +2 -0
- package/dist/views/integration/components/Xilnex/XilnexProps.d.ts +7 -0
- package/dist/views/integration/components/Xilnex/XilnexSideSheet.vue.d.ts +24 -0
- package/dist/views/integration/components/Xilnex/importFn.d.ts +16 -0
- package/dist/views/integration/components/netsuite/AddLocationDialog.vue.d.ts +1334 -0
- package/dist/views/integration/components/netsuite/LocationConfigurationDialog.vue.d.ts +174 -0
- package/dist/views/integration/components/netsuite/LocationConfigurationDialogProps.d.ts +16 -0
- package/dist/views/integration/components/netsuite/NetSuiteLocationField.vue.d.ts +71 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +32 -32
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +66 -66
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +66 -66
- package/dist/{vue-i18n-DCtJpaCZ.js → vue-i18n-BRmzzMWS.js} +2 -2
- package/package.json +3 -2
- package/dist/ClosingDraftView-wCIesJUP.js +0 -1348
- package/dist/IntegrationView-CX3c7RQq.js +0 -1197
- package/dist/index-CrxvXOng.js +0 -84
package/dist/app.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Y as Re, a as H, L as Ie, ab as P, s as Ae, ac as pe, v as fe, u as z, j as M, w as Ne, aD as oe, x as ye, b as J, t as j, Q as K, aC as De, av as Oe, W as Fe, y as Pe, z as Me, e as ae, f as Z, R as se, J as Ue, aa as Be, D as W, i as D, h as Le } from "./app-
|
|
1
|
+
import { Y as Re, a as H, L as Ie, ab as P, s as Ae, ac as pe, v as fe, u as z, j as M, w as Ne, aD as oe, x as ye, b as J, t as j, Q as K, aC as De, av as Oe, W as Fe, y as Pe, z as Me, e as ae, f as Z, R as se, J as Ue, aa as Be, D as W, i as D, h as Le } from "./app-7jcARtWe.js";
|
|
2
2
|
import { useCoreStore as X, useI18n as ee } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as Qe, useSnackbar as he, useDialog as He, FmButtonVariant as ie, components as le } from "@feedmepos/ui-library";
|
|
4
4
|
import { defineStore as ve } from "pinia";
|
|
5
5
|
import { defineComponent as ge, resolveComponent as B, openBlock as T, createElementBlock as w, createElementVNode as $, normalizeClass as L, createTextVNode as qe, toDisplayString as I, unref as R, createCommentVNode as Q, createVNode as O, withCtx as G, Fragment as U, renderList as V, ref as C, onMounted as Ve, computed as ce, watch as je, createSlots as ze, createBlock as q, h as Y } from "vue";
|
|
6
6
|
import { useRouter as Ke } from "vue-router";
|
|
7
|
-
import { u as te } from "./supplier-
|
|
7
|
+
import { u as te } from "./supplier-DX4BGHJ3.js";
|
|
8
8
|
const be = Re((e, t) => {
|
|
9
9
|
function s() {
|
|
10
10
|
var n;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { ref as f, computed as l } from "vue";
|
|
2
|
+
import { u as g, aP as b, aJ as v, c as d, b as S } from "./app-7jcARtWe.js";
|
|
3
|
+
import { useSnackbar as p } from "@feedmepos/ui-library";
|
|
4
|
+
import "@feedmepos/mf-common";
|
|
5
|
+
function h() {
|
|
6
|
+
return {
|
|
7
|
+
setting: {
|
|
8
|
+
_id: "",
|
|
9
|
+
enable: !1,
|
|
10
|
+
bindings: [],
|
|
11
|
+
uniqueCode: "",
|
|
12
|
+
branchCode: "",
|
|
13
|
+
server: {
|
|
14
|
+
password: "",
|
|
15
|
+
host: "",
|
|
16
|
+
username: "",
|
|
17
|
+
port: "",
|
|
18
|
+
directory: ""
|
|
19
|
+
},
|
|
20
|
+
histories: [],
|
|
21
|
+
modifiers: [],
|
|
22
|
+
exportAsJson: !1
|
|
23
|
+
},
|
|
24
|
+
menu: [],
|
|
25
|
+
group: [],
|
|
26
|
+
variants: [],
|
|
27
|
+
categories: []
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
const s = f(h());
|
|
31
|
+
function E() {
|
|
32
|
+
return {
|
|
33
|
+
// state
|
|
34
|
+
get isEnabled() {
|
|
35
|
+
return s.value.setting.enable;
|
|
36
|
+
},
|
|
37
|
+
get isBusinessLocation() {
|
|
38
|
+
return g().businessLevel;
|
|
39
|
+
},
|
|
40
|
+
get state() {
|
|
41
|
+
return s.value;
|
|
42
|
+
},
|
|
43
|
+
async init() {
|
|
44
|
+
var a, e, t, i;
|
|
45
|
+
const n = b();
|
|
46
|
+
try {
|
|
47
|
+
const o = await n.readMenu();
|
|
48
|
+
s.value.menu = ((a = o.modules) == null ? void 0 : a.item) ?? [], s.value.group = ((e = o.modules) == null ? void 0 : e.group) ?? [], s.value.variants = ((t = o.modules) == null ? void 0 : t.variant) ?? [];
|
|
49
|
+
const r = (((i = o.modules) == null ? void 0 : i.category) ?? []).map((c) => ({
|
|
50
|
+
...c,
|
|
51
|
+
_id: c._id === void 0 ? null : c._id
|
|
52
|
+
}));
|
|
53
|
+
s.value.categories = r, s.value.setting = await n.readSetting();
|
|
54
|
+
} catch (o) {
|
|
55
|
+
p().open({
|
|
56
|
+
title: "Something went wrong",
|
|
57
|
+
message: "Cannot fetch integration info. Please try again.",
|
|
58
|
+
type: "error"
|
|
59
|
+
}), console.error("Error at fetching integration info", o);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function m() {
|
|
65
|
+
return {
|
|
66
|
+
locationId: ""
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
const u = f(m());
|
|
70
|
+
function x() {
|
|
71
|
+
const n = g(), a = v();
|
|
72
|
+
return n.watchLocation(async (e) => {
|
|
73
|
+
if (d().enabledXilnexOpeningMigration) {
|
|
74
|
+
if (!e) {
|
|
75
|
+
u.value = m();
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
u.value.locationId = e.dbName;
|
|
79
|
+
const i = await a.readLastClosing(e.dbName);
|
|
80
|
+
i ? u.value.closingDocumentId = i._id : u.value.closingDocumentId = "";
|
|
81
|
+
}
|
|
82
|
+
}), {
|
|
83
|
+
get isEnabled() {
|
|
84
|
+
const e = d();
|
|
85
|
+
return l(() => e.enabledXilnexOpeningMigration).value;
|
|
86
|
+
},
|
|
87
|
+
get state() {
|
|
88
|
+
return u.value;
|
|
89
|
+
},
|
|
90
|
+
async fetchClosingDocumentId() {
|
|
91
|
+
const e = g(), t = await a.readLastClosing(e.currentLocationDBName);
|
|
92
|
+
t ? u.value.closingDocumentId = t._id : u.value.closingDocumentId = "";
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function F() {
|
|
97
|
+
const n = S(), a = E(), e = x(), t = l(() => n.isEnabled), i = l(() => a.isEnabled), o = l(() => e.isEnabled);
|
|
98
|
+
return {
|
|
99
|
+
get enabledIntegrations() {
|
|
100
|
+
return [t.value, i.value, o.value].filter((r) => r).length;
|
|
101
|
+
},
|
|
102
|
+
get isNetSuiteEnabled() {
|
|
103
|
+
return t.value;
|
|
104
|
+
},
|
|
105
|
+
async fetchFoodMarketHubSetting() {
|
|
106
|
+
try {
|
|
107
|
+
await a.init();
|
|
108
|
+
} catch (r) {
|
|
109
|
+
console.error("Error fetching FoodMarketHub setting:", r);
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
async fetchNetSuiteSetting() {
|
|
113
|
+
try {
|
|
114
|
+
await n.readSetting();
|
|
115
|
+
} catch (r) {
|
|
116
|
+
console.error("Error fetching NetSuite setting:", r);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
export {
|
|
122
|
+
E as a,
|
|
123
|
+
x as b,
|
|
124
|
+
F as u
|
|
125
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aO as L,
|
|
1
|
+
import { aO as L, aU as U, aV as q, aW as Fe, aX as tl, aY as ar, aZ as Nt } from "./app-7jcARtWe.js";
|
|
2
2
|
function rl(t, e) {
|
|
3
3
|
for (var r = 0; r < e.length; r++) {
|
|
4
4
|
const n = e[r];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Y as m, u as B, a as l, ak as k, L as
|
|
2
|
-
import { useCoreStore as
|
|
3
|
-
import { useSnackbar as
|
|
4
|
-
import { ref as
|
|
5
|
-
const b = m((r,
|
|
6
|
-
const c = B(),
|
|
7
|
-
return
|
|
1
|
+
import { Y as m, u as B, a as l, ak as k, L as p } from "./app-7jcARtWe.js";
|
|
2
|
+
import { useCoreStore as v } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as $ } from "@feedmepos/ui-library";
|
|
4
|
+
import { ref as y, computed as S } from "vue";
|
|
5
|
+
const b = m((r, a) => {
|
|
6
|
+
const c = B(), o = v(), u = $();
|
|
7
|
+
return a.onError(async (t) => {
|
|
8
8
|
t.name === "SvcForbiddenError" && (u == null || u.open({
|
|
9
9
|
title: t.title,
|
|
10
10
|
message: t.message,
|
|
@@ -13,45 +13,49 @@ const b = m((r, o) => {
|
|
|
13
13
|
}), {
|
|
14
14
|
async readStockBalance() {
|
|
15
15
|
const t = c.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/stock-balance`;
|
|
16
|
-
return await
|
|
16
|
+
return await a.get(e);
|
|
17
17
|
},
|
|
18
18
|
async readSkuBalance() {
|
|
19
19
|
var s;
|
|
20
20
|
const t = c.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/sku/balance`;
|
|
21
|
-
return (((s =
|
|
21
|
+
return (((s = o.currentBusiness.value) == null ? void 0 : s.menuVersion) ?? "") === "v3" ? await a.get(e) : await a.get(`${e}?useInventoryDoc=true`);
|
|
22
22
|
},
|
|
23
23
|
async readSingleAdjustment(t) {
|
|
24
24
|
const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/adjustment`;
|
|
25
|
-
return await
|
|
25
|
+
return await a.get(`${n}?adjustmentId=${t}`);
|
|
26
26
|
},
|
|
27
27
|
async readStockAdjustment(t, e, n) {
|
|
28
28
|
const s = c.currentLocationDBName, i = `${r.inventoryBackendUrl}/${s}/sku`;
|
|
29
|
-
return await
|
|
29
|
+
return await a.get(`${i}?skuId=${t}&start=${e}&end=${n}`);
|
|
30
30
|
},
|
|
31
31
|
async readAdjustmentById(t) {
|
|
32
32
|
const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/adjustment`;
|
|
33
|
-
return await
|
|
33
|
+
return await a.get(`${n}?adjustmentId=${t}`);
|
|
34
34
|
},
|
|
35
35
|
async convertSku(t) {
|
|
36
36
|
var i;
|
|
37
37
|
const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/convert`;
|
|
38
|
-
return (((i =
|
|
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
42
|
const e = c.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/adjust`;
|
|
43
|
-
return (((i =
|
|
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
47
|
var s;
|
|
48
|
-
const e = `business_${(s =
|
|
49
|
-
return
|
|
48
|
+
const e = `business_${(s = o.currentBusiness.value) == null ? void 0 : s._id}`, n = `${r.inventoryBackendUrl}/${e}/stock/operations/recalculate`;
|
|
49
|
+
return a.get(n);
|
|
50
50
|
},
|
|
51
51
|
startRecalculateTask() {
|
|
52
52
|
var s;
|
|
53
|
-
const e = `business_${(s =
|
|
54
|
-
return
|
|
53
|
+
const e = `business_${(s = o.currentBusiness.value) == null ? void 0 : s._id}`, n = `${r.inventoryBackendUrl}/${e}/stock/operations/recalculate?refundFromPreviousAdjustment=true`;
|
|
54
|
+
return a.post(n);
|
|
55
|
+
},
|
|
56
|
+
calculateStockSnapshotAtDate(t, e) {
|
|
57
|
+
const n = c.currentLocationDBName, s = `${r.inventoryBackendUrl}/${n}/stock/operations/recalculate/calculate-at-date?effectiveAt=${encodeURIComponent(t)}&closingDraftId=${encodeURIComponent(e)}`;
|
|
58
|
+
return a.get(s);
|
|
55
59
|
}
|
|
56
60
|
}
|
|
57
61
|
};
|
|
@@ -65,17 +69,17 @@ function g() {
|
|
|
65
69
|
productBalance: []
|
|
66
70
|
};
|
|
67
71
|
}
|
|
68
|
-
const f =
|
|
72
|
+
const f = p(0), N = {
|
|
69
73
|
id: "",
|
|
70
74
|
balance: f,
|
|
71
75
|
closing: null,
|
|
72
76
|
costs: null
|
|
73
|
-
}, d =
|
|
74
|
-
const r = l(),
|
|
77
|
+
}, d = y(g()), A = () => {
|
|
78
|
+
const r = l(), a = S(() => {
|
|
75
79
|
var t;
|
|
76
|
-
const
|
|
80
|
+
const o = (t = d.value.stockBalance.skus) == null ? void 0 : t.groupBy((e) => e.id), u = (e) => {
|
|
77
81
|
var n;
|
|
78
|
-
return ((n =
|
|
82
|
+
return ((n = o == null ? void 0 : o.get(e)) == null ? void 0 : n[0]) ?? { ...N, id: e };
|
|
79
83
|
};
|
|
80
84
|
return r.skus.map((e) => u(e._id));
|
|
81
85
|
}), c = b();
|
|
@@ -84,17 +88,17 @@ const f = v(0), w = {
|
|
|
84
88
|
get stockBalance() {
|
|
85
89
|
return {
|
|
86
90
|
...d.value.stockBalance,
|
|
87
|
-
skus:
|
|
91
|
+
skus: a.value
|
|
88
92
|
};
|
|
89
93
|
},
|
|
90
|
-
set stockBalance(
|
|
91
|
-
d.value.stockBalance =
|
|
94
|
+
set stockBalance(o) {
|
|
95
|
+
d.value.stockBalance = o;
|
|
92
96
|
},
|
|
93
97
|
get productBalance() {
|
|
94
98
|
return d.value.productBalance;
|
|
95
99
|
},
|
|
96
|
-
set productBalance(
|
|
97
|
-
d.value.productBalance =
|
|
100
|
+
set productBalance(o) {
|
|
101
|
+
d.value.productBalance = o;
|
|
98
102
|
},
|
|
99
103
|
// actions
|
|
100
104
|
async readStockBalance() {
|
|
@@ -102,9 +106,9 @@ const f = v(0), w = {
|
|
|
102
106
|
},
|
|
103
107
|
async readProductBalance() {
|
|
104
108
|
this.productBalance = [];
|
|
105
|
-
const
|
|
106
|
-
recipes:
|
|
107
|
-
skus:
|
|
109
|
+
const o = l(), u = k({
|
|
110
|
+
recipes: o.recipes,
|
|
111
|
+
skus: o.skus,
|
|
108
112
|
inventoryBindingMapping: {},
|
|
109
113
|
stockBalance: this.stockBalance
|
|
110
114
|
// silent: true
|
package/dist/stores/feature.d.ts
CHANGED
|
@@ -15,7 +15,8 @@ export declare enum InventoryFeature {
|
|
|
15
15
|
inventory_portal_xilnex_transfer_note = "inventory_portal_xilnex_transfer_note",
|
|
16
16
|
inventory_portal_custom_attribute = "inventory_portal_custom_attribute",
|
|
17
17
|
inventory_portal_purchase_order_v2 = "inventory_portal_purchase_order_v2",
|
|
18
|
-
inventory_portal_accept_require_fulfillment = "inventory_portal_accept_require_fulfillment"
|
|
18
|
+
inventory_portal_accept_require_fulfillment = "inventory_portal_accept_require_fulfillment",
|
|
19
|
+
inventory_xilnex_opening_migration = "inventory_xilnex_opening_migration"
|
|
19
20
|
}
|
|
20
21
|
export interface FeatureState {
|
|
21
22
|
enableTotalCost: boolean;
|
|
@@ -36,6 +37,7 @@ export interface FeatureState {
|
|
|
36
37
|
enableCustomAttribute: boolean;
|
|
37
38
|
usePurchaseOrderV2: boolean;
|
|
38
39
|
acceptRequireFulfillment?: boolean;
|
|
40
|
+
inventory_xilnex_opening_migration: boolean;
|
|
39
41
|
}
|
|
40
42
|
export declare const useFeatureStore: () => {
|
|
41
43
|
readonly businessDbName: string;
|
|
@@ -55,6 +57,7 @@ export declare const useFeatureStore: () => {
|
|
|
55
57
|
readonly enableSupplierMasterList: boolean;
|
|
56
58
|
readonly businessSupplierOnly: boolean;
|
|
57
59
|
readonly enableXilnexTransferNote: boolean;
|
|
60
|
+
readonly enabledXilnexOpeningMigration: boolean;
|
|
58
61
|
readonly enableCustomAttribute: boolean;
|
|
59
62
|
readonly usePurchaseOrderV2: boolean;
|
|
60
63
|
readonly acceptRequireFulfillment: boolean | undefined;
|
|
@@ -159,6 +159,7 @@ export declare function useNetSuiteStore(): {
|
|
|
159
159
|
precision: number;
|
|
160
160
|
};
|
|
161
161
|
} | undefined)[]]>;
|
|
162
|
+
readonly isCurrentLocationBindedToNetSuite: boolean;
|
|
162
163
|
getNetSuiteVendor(supplierId: string): FdoNetSuiteVendor | undefined;
|
|
163
164
|
getNetSuiteLocation(locationId: string): FdoNetSuiteLocation | undefined;
|
|
164
165
|
getSubsidiaryFullName(subsidiaryId?: string | null): {
|
|
@@ -188,10 +189,20 @@ export declare function useNetSuiteStore(): {
|
|
|
188
189
|
getAvailableItems(subsidiaryId?: string | null): string[];
|
|
189
190
|
getAvailableMeasurements(skuId: string, subsidiaryId?: string | null): string[];
|
|
190
191
|
readSetting(): Promise<void>;
|
|
192
|
+
updateLocationConfigs(payload: Record<string, {
|
|
193
|
+
netsuiteId: string;
|
|
194
|
+
name: string;
|
|
195
|
+
}>): Promise<any>;
|
|
191
196
|
getNetSuiteLocations(): Promise<any>;
|
|
192
197
|
getVendorSubsidiaryName(supplierId: string): string;
|
|
193
198
|
syncPurchaseOrder(poId: string): Promise<void>;
|
|
194
199
|
getItemPKTCode(sku: FdoInventorySku, measurementId?: string | null): string | null;
|
|
200
|
+
getNetSuiteLocationOptions(): Promise<{
|
|
201
|
+
netsuiteId: string;
|
|
202
|
+
name: string;
|
|
203
|
+
subsidiaryName: string;
|
|
204
|
+
}[]>;
|
|
205
|
+
getItemAverageCosts(): Promise<Record<string, number>>;
|
|
195
206
|
};
|
|
196
207
|
export type FdoNetSuiteSubsidiaryWithChildren = FdoNetSuiteSubsidiary & {
|
|
197
208
|
fullName?: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface NetSuiteState {
|
|
2
|
+
locationId: string;
|
|
3
|
+
closingDocumentId?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function useXilnexStore(): {
|
|
6
|
+
readonly isEnabled: boolean;
|
|
7
|
+
readonly state: {
|
|
8
|
+
locationId: string;
|
|
9
|
+
closingDocumentId?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
fetchClosingDocumentId(): Promise<void>;
|
|
12
|
+
};
|
|
@@ -1970,18 +1970,6 @@ export declare function useInventoryStore(): {
|
|
|
1970
1970
|
} | null | undefined;
|
|
1971
1971
|
_id?: string | undefined;
|
|
1972
1972
|
skus?: {
|
|
1973
|
-
costs?: {
|
|
1974
|
-
adjustmentId?: string | null | undefined;
|
|
1975
|
-
amount: {
|
|
1976
|
-
amount: number;
|
|
1977
|
-
precision: number;
|
|
1978
|
-
};
|
|
1979
|
-
cost: {
|
|
1980
|
-
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
1981
|
-
amount: number;
|
|
1982
|
-
precision: number;
|
|
1983
|
-
};
|
|
1984
|
-
}[] | null | undefined;
|
|
1985
1973
|
closing?: {
|
|
1986
1974
|
costBalances?: {
|
|
1987
1975
|
adjustmentId?: string | null | undefined;
|
|
@@ -2002,6 +1990,18 @@ export declare function useInventoryStore(): {
|
|
|
2002
1990
|
id: string;
|
|
2003
1991
|
createdAt: string;
|
|
2004
1992
|
} | null | undefined;
|
|
1993
|
+
costs?: {
|
|
1994
|
+
adjustmentId?: string | null | undefined;
|
|
1995
|
+
amount: {
|
|
1996
|
+
amount: number;
|
|
1997
|
+
precision: number;
|
|
1998
|
+
};
|
|
1999
|
+
cost: {
|
|
2000
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
2001
|
+
amount: number;
|
|
2002
|
+
precision: number;
|
|
2003
|
+
};
|
|
2004
|
+
}[] | null | undefined;
|
|
2005
2005
|
weightedAverage?: {
|
|
2006
2006
|
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
2007
2007
|
amount: number;
|
package/dist/stores/stock.d.ts
CHANGED
|
@@ -5,18 +5,6 @@ export interface StockStore {
|
|
|
5
5
|
export declare const useStockStore: () => {
|
|
6
6
|
stockBalance: {
|
|
7
7
|
skus?: {
|
|
8
|
-
costs?: {
|
|
9
|
-
adjustmentId?: string | null | undefined;
|
|
10
|
-
amount: {
|
|
11
|
-
amount: number;
|
|
12
|
-
precision: number;
|
|
13
|
-
};
|
|
14
|
-
cost: {
|
|
15
|
-
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
16
|
-
amount: number;
|
|
17
|
-
precision: number;
|
|
18
|
-
};
|
|
19
|
-
}[] | null | undefined;
|
|
20
8
|
closing?: {
|
|
21
9
|
costBalances?: {
|
|
22
10
|
adjustmentId?: string | null | undefined;
|
|
@@ -37,6 +25,18 @@ export declare const useStockStore: () => {
|
|
|
37
25
|
id: string;
|
|
38
26
|
createdAt: string;
|
|
39
27
|
} | null | undefined;
|
|
28
|
+
costs?: {
|
|
29
|
+
adjustmentId?: string | null | undefined;
|
|
30
|
+
amount: {
|
|
31
|
+
amount: number;
|
|
32
|
+
precision: number;
|
|
33
|
+
};
|
|
34
|
+
cost: {
|
|
35
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
36
|
+
amount: number;
|
|
37
|
+
precision: number;
|
|
38
|
+
};
|
|
39
|
+
}[] | null | undefined;
|
|
40
40
|
weightedAverage?: {
|
|
41
41
|
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
42
42
|
amount: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as m, u, w as y, al as b, am as w } from "./app-
|
|
1
|
+
import { Y as m, u, w as y, al as b, am as w } from "./app-7jcARtWe.js";
|
|
2
2
|
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
3
3
|
import { defineStore as v } from "pinia";
|
|
4
4
|
import { ref as l, computed as d } from "vue";
|