@feedmepos/mf-inventory-portal 1.2.9 → 1.2.10-dev.1
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-XpX30-FV.js → App-Bg2M5RwP.js} +1 -1
- package/dist/{ApprovalView-D2J7D_Nm.js → ApprovalView-C46UDXnc.js} +24 -24
- package/dist/{BindingsDialog-Uso69RV0.js → BindingsDialog-CtJjpbw-.js} +2 -2
- package/dist/{BindingsPicker-7w_Pih9R.js → BindingsPicker-B6Er5Lea.js} +1 -1
- package/dist/{BindingsTable-CbV4JqKs.js → BindingsTable-MPeTr_ip.js} +1 -1
- package/dist/{ClosingDraftView-Cs1hLPBv.js → ClosingDraftView-BaD3MLeG.js} +33 -33
- package/dist/{ClosingTemplateView-CzDxdTM8.js → ClosingTemplateView-C4z3GXwd.js} +3 -3
- package/dist/{DeliveryOrderPrintPreview-hVu8tti_.js → DeliveryOrderPrintPreview-BfafKFMa.js} +8 -8
- package/dist/{FmAdminBadge-UDCFElb7.js → FmAdminBadge-Dg5rl1fj.js} +4 -4
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CeEFXW2z.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BATVvC9u.js} +11 -11
- package/dist/{FmMultiselectDialog-Bevvx1r8.js → FmMultiselectDialog-DJ-dIe8C.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C0mdy9Mc.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BBWaPrlm.js} +38 -38
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BKIf5UrZ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-oaujHoaU.js} +1 -1
- package/dist/{IngredientGroupView-_eiXCYvr.js → IngredientGroupView-u4ubHtNF.js} +15 -15
- package/dist/{IngredientsView-okGkhfX0.js → IngredientsView-CXbJifY6.js} +831 -809
- package/dist/{IntegrationView-DYNRksif.js → IntegrationView-XEypfcAW.js} +137 -137
- package/dist/{InventoryBindingForm-DyFPXbNg.js → InventoryBindingForm-CETOb5Nj.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-1AvpT307.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DC52GJ2Y.js} +22 -22
- package/dist/{InventoryBindingSummary-BnzY__W8.js → InventoryBindingSummary-DbyJW8z0.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-iCRT5ZID.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BQWWQxaq.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CxhPTM5O.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BruydtsG.js} +9 -9
- package/dist/{PublishView-BGI8t6ZI.js → PublishView-Cl3IluMR.js} +12 -12
- package/dist/{PurchaseOrderPrintPreview-BY0m_m2t.js → PurchaseOrderPrintPreview-BG_uBL4o.js} +7 -7
- package/dist/{ReceiveRequestView-BN63OwrJ.js → ReceiveRequestView-BvGlUVTp.js} +191 -191
- package/dist/{RecipeView-C6SFIYEV.js → RecipeView-C-7XU5F8.js} +12 -12
- package/dist/{StockView-DxAqF_Uz.js → StockView-rYhlg4fr.js} +680 -665
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-D0kASPO9.js +158 -0
- package/dist/{SupplierView-BGWP3TQ0.js → SupplierView-BoGoqUS-.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Dr6Bst81.js → TransferDetails.vue_vue_type_script_setup_true_lang-D53vhWDq.js} +6 -6
- package/dist/{TransferTemplateView-CSMou2uQ.js → TransferTemplateView-DZIDXFp7.js} +143 -143
- package/dist/{UnitView-Dvn2OFBI.js → UnitView-CvHIFkue.js} +27 -27
- package/dist/{WarehouseView-DFIFxlqz.js → WarehouseView-Dh_WZz5L.js} +18 -18
- package/dist/{app-cExTkfVB.js → app-BT34Yv61.js} +9120 -9069
- package/dist/app.d.ts +6 -6
- package/dist/app.js +4 -4
- package/dist/{closing-template-CIbh7GpK.js → closing-template-JDCk0_lU.js} +1 -1
- package/dist/{decimal-DDB6xkYA.js → decimal-BTgTm2JD.js} +1 -1
- package/dist/{format-unit-display-C5nl2Pn9.js → format-unit-display-HHCA1rN3.js} +48 -48
- package/dist/{index-5McubZjo.js → index-Bz_lEYOD.js} +1 -1
- package/dist/{index-CYvmWIx7.js → index-CdamrmzX.js} +1 -1
- package/dist/{purchase-order-template-DqsMgrgI.js → purchase-order-template-DJiYiY6t.js} +1 -1
- package/dist/{stock-DzSlKGZm.js → stock-C8afHO4C.js} +1 -1
- package/dist/stores/integration/netsuite.d.ts +1 -0
- package/dist/{supplier-m9aBkFoK.js → supplier-C8RMKqQX.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-et1B0WDI.js → use-ingredient-select-dialog-fLK9yq-0.js} +1 -1
- package/dist/{use-inventory-binding-dialog-B7_YL7HE.js → use-inventory-binding-dialog--7tzpXgV.js} +1 -1
- package/dist/views/ingredients/components/ingredient-dialog/IngredientDialogProps.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -0
- package/package.json +1 -1
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +0 -59
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { defineComponent as T, computed as x, openBlock as c, createElementBlock as d, createElementVNode as s, normalizeClass as b, toDisplayString as u, unref as p, ref as P, resolveComponent as k, Fragment as B, createVNode as C, createCommentVNode as w, withCtx as I, createTextVNode as E, renderList as U } from "vue";
|
|
2
|
+
import { useI18n as V, useCoreStore as A } from "@feedmepos/mf-common";
|
|
3
|
+
import { b as H } from "./app-BT34Yv61.js";
|
|
4
|
+
function L(o, r = !1) {
|
|
5
|
+
var l;
|
|
6
|
+
return o ? [
|
|
7
|
+
{
|
|
8
|
+
label: r ? o.abbrev : `1 ${o.name} (${o.abbrev})`,
|
|
9
|
+
abbrev: o.abbrev,
|
|
10
|
+
value: null
|
|
11
|
+
},
|
|
12
|
+
...((l = o.measurements) == null ? void 0 : l.map((n) => ({
|
|
13
|
+
label: r ? n.abbrev : `1 ${n.name} (${n.abbrev})`,
|
|
14
|
+
abbrev: n.abbrev,
|
|
15
|
+
value: n.id
|
|
16
|
+
}))) ?? []
|
|
17
|
+
] : [];
|
|
18
|
+
}
|
|
19
|
+
var y = /* @__PURE__ */ ((o) => (o.noInfo = "no-info", o.low = "low", o.mid = "mid", o.high = "high", o))(y || {});
|
|
20
|
+
const z = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "flex"
|
|
23
|
+
}, O = {
|
|
24
|
+
key: 1,
|
|
25
|
+
class: "flex"
|
|
26
|
+
}, R = { class: "flex px-8 py-4 bg-fm-color-neutral-gray-100 fm-corner-radius-md gap-8" }, j = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, ee = /* @__PURE__ */ T({
|
|
27
|
+
__name: "StockForecast",
|
|
28
|
+
props: {
|
|
29
|
+
days: {},
|
|
30
|
+
level: {}
|
|
31
|
+
},
|
|
32
|
+
setup(o) {
|
|
33
|
+
const r = o, { t: f } = V(), l = x(() => r.level ? r.level : typeof r.days != "number" ? y.noInfo : r.days > 14 ? y.high : r.days >= 7 && r.days <= 14 ? y.mid : y.low);
|
|
34
|
+
return (n, h) => typeof r.days == "number" ? (c(), d("div", z, [
|
|
35
|
+
s("div", {
|
|
36
|
+
class: b([
|
|
37
|
+
`fm-forecast-notification-${l.value}`,
|
|
38
|
+
"flex items-center gap-8 p-4 fm-corner-radius-md fm-typo-en-body-md-600"
|
|
39
|
+
])
|
|
40
|
+
}, [
|
|
41
|
+
s("div", {
|
|
42
|
+
class: b([
|
|
43
|
+
"fm-forecast-notification-indicator",
|
|
44
|
+
`fm-forecast-notification-indicator-${l.value}`
|
|
45
|
+
])
|
|
46
|
+
}, null, 2),
|
|
47
|
+
s("div", null, u(p(f)("inventory.stock.prediction.days", [r.days])), 1)
|
|
48
|
+
], 2)
|
|
49
|
+
])) : (c(), d("div", O, [
|
|
50
|
+
s("div", R, [
|
|
51
|
+
s("p", j, u(p(f)("inventory.stock.prediction.noData")), 1)
|
|
52
|
+
])
|
|
53
|
+
]));
|
|
54
|
+
}
|
|
55
|
+
}), q = {
|
|
56
|
+
key: 0,
|
|
57
|
+
class: "flex items-center gap-8"
|
|
58
|
+
}, G = { class: "flex flex-col" }, J = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, K = {
|
|
59
|
+
key: 0,
|
|
60
|
+
class: "fm-typo-en-body-md-400 text-fm-color-system-warning-300"
|
|
61
|
+
}, M = { class: "flex flex-col" }, Q = { class: "flex flex-col bg-fm-color-bg-secondary font-mono" }, W = { class: "text-fm-color-typo-tertiary flex-shrink-0 fm-typo-en-body-md-400 whitespace-pre flex items-center" }, te = /* @__PURE__ */ T({
|
|
62
|
+
__name: "SubsidiaryTreeDialog",
|
|
63
|
+
setup(o) {
|
|
64
|
+
const r = P(!1), { t: f } = V(), l = A(), n = H(), h = x(() => {
|
|
65
|
+
var i;
|
|
66
|
+
return ((i = l.sessionUser.value) == null ? void 0 : i.role.isAdmin) ?? !1;
|
|
67
|
+
});
|
|
68
|
+
function v(i, e = [], a = []) {
|
|
69
|
+
const m = [];
|
|
70
|
+
return i.forEach((t, N) => {
|
|
71
|
+
const $ = N === i.length - 1, D = [...e, $];
|
|
72
|
+
let _ = "";
|
|
73
|
+
for (let g = 0; g < e.length; g++)
|
|
74
|
+
_ += e[g] ? " " : "│ ";
|
|
75
|
+
_ += $ ? "└── " : "├── ", m.push({
|
|
76
|
+
id: t.id,
|
|
77
|
+
name: t.name,
|
|
78
|
+
prefix: e.length === 0 ? "" : _,
|
|
79
|
+
isCurrentBusiness: t.id === n.businessSubsidiaryId,
|
|
80
|
+
isRoot: e.length === 0,
|
|
81
|
+
isInPath: a.includes(t.id)
|
|
82
|
+
}), t.children && t.children.length > 0 && m.push(...v(t.children, D, a));
|
|
83
|
+
}), m;
|
|
84
|
+
}
|
|
85
|
+
function S(i, e) {
|
|
86
|
+
return i.map((a) => e.includes(a.id) ? {
|
|
87
|
+
...a,
|
|
88
|
+
// Recursively filter children
|
|
89
|
+
children: a.children ? S(a.children, e) : []
|
|
90
|
+
} : null).filter(Boolean);
|
|
91
|
+
}
|
|
92
|
+
const F = x(() => {
|
|
93
|
+
if (!n.businessSubsidiaryId)
|
|
94
|
+
return [];
|
|
95
|
+
const i = n.getBusinessSubsidiaryTree(), e = n.getBusinessSubsidiaryPath();
|
|
96
|
+
if (h.value)
|
|
97
|
+
return v(i, [], e);
|
|
98
|
+
const a = S(i, e);
|
|
99
|
+
return v(a, [], e);
|
|
100
|
+
});
|
|
101
|
+
return (i, e) => {
|
|
102
|
+
const a = k("FmButton"), m = k("FmDialog");
|
|
103
|
+
return c(), d(B, null, [
|
|
104
|
+
p(n).isEnabled ? (c(), d("div", q, [
|
|
105
|
+
C(a, {
|
|
106
|
+
"prepend-icon": "info",
|
|
107
|
+
variant: "tertiary",
|
|
108
|
+
onClick: e[0] || (e[0] = (t) => r.value = !0)
|
|
109
|
+
})
|
|
110
|
+
])) : w("", !0),
|
|
111
|
+
C(m, {
|
|
112
|
+
modelValue: r.value,
|
|
113
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => r.value = t),
|
|
114
|
+
"close-button": ""
|
|
115
|
+
}, {
|
|
116
|
+
"dialog-header": I(() => [
|
|
117
|
+
s("div", G, [
|
|
118
|
+
E(u(p(f)("inventory.integration.netsuite.subsidiaryHierarchy.title")) + " ", 1),
|
|
119
|
+
s("p", J, u(p(f)("inventory.integration.netsuite.subsidiaryHierarchy.description")), 1),
|
|
120
|
+
h.value ? (c(), d("p", K, " All subsidiaries are shown since you are an admin. ")) : w("", !0)
|
|
121
|
+
])
|
|
122
|
+
]),
|
|
123
|
+
default: I(() => [
|
|
124
|
+
s("div", M, [
|
|
125
|
+
s("div", Q, [
|
|
126
|
+
(c(!0), d(B, null, U(F.value, (t) => (c(), d("div", {
|
|
127
|
+
key: t.id,
|
|
128
|
+
class: "flex"
|
|
129
|
+
}, [
|
|
130
|
+
s("span", W, u(t.prefix), 1),
|
|
131
|
+
s("div", {
|
|
132
|
+
class: b([
|
|
133
|
+
"flex flex-col",
|
|
134
|
+
t.isInPath ? "border-fm-color-border-brand-primary bg-fm-color-bg-brand-tertiary" : "border-fm-color-border-secondary bg-fm-color-bg-primary"
|
|
135
|
+
])
|
|
136
|
+
}, [
|
|
137
|
+
s("span", {
|
|
138
|
+
class: b([
|
|
139
|
+
t.isCurrentBusiness ? "fm-typo-en-body-lg-600 text-fm-color-typo-primary" : t.isInPath ? "fm-typo-en-body-md-600 text-fm-color-typo-primary" : "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
140
|
+
])
|
|
141
|
+
}, u(t.name), 3)
|
|
142
|
+
], 2)
|
|
143
|
+
]))), 128))
|
|
144
|
+
])
|
|
145
|
+
])
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
}, 8, ["modelValue"])
|
|
149
|
+
], 64);
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
export {
|
|
154
|
+
y as S,
|
|
155
|
+
ee as _,
|
|
156
|
+
te as a,
|
|
157
|
+
L as g
|
|
158
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as ae, mergeModels as Hd, computed as E, useModel as ed, resolveComponent as L, openBlock as S, createElementBlock as w, createElementVNode as h, createVNode as P, withCtx as U, toDisplayString as T, unref as p, Fragment as ne, renderList as $e, ref as k, createBlock as J, createCommentVNode as W, createTextVNode as wd, isRef as dd, normalizeClass as oe, watch as Ad, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
|
|
2
|
-
import { u as ue } from "./supplier-
|
|
3
|
-
import { b as De, h as Yd, D as td, i as me, f as Fe, a as ke, q as rd, r as nd, l as Xd, s as Zd, C as Td, u as _e, o as q, c as Pe, e as H, w as qd, y as Rd, z as zd, B as Md, E as Jd, G as Qd, H as et, K as dt,
|
|
2
|
+
import { u as ue } from "./supplier-C8RMKqQX.js";
|
|
3
|
+
import { b as De, h as Yd, D as td, i as me, f as Fe, a as ke, q as rd, r as nd, l as Xd, s as Zd, C as Td, u as _e, o as q, c as Pe, e as H, w as qd, y as Rd, z as zd, B as Md, E as Jd, G as Qd, H as et, K as dt, L as tt, O as rt, P as nt, Q as ye } from "./app-BT34Yv61.js";
|
|
4
4
|
import { useI18n as ee, useCoreStore as Ce } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as Ne, useSnackbar as Se, useProxiedModel as od, useDialogChild as ot, useBreakpoints as at } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as it } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
7
|
-
import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as lt } from "./purchase-order-template-
|
|
7
|
+
import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BBWaPrlm.js";
|
|
8
|
+
import { u as lt } from "./purchase-order-template-DJiYiY6t.js";
|
|
9
9
|
import { defineStore as st } from "pinia";
|
|
10
10
|
function ut(e, d) {
|
|
11
11
|
const { t } = ee(), r = De();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a7 as mt, u as _e, aV as F, aW as Ge, aF as Z, c as Fe, b as We, af as xt, ah as wt, ai as $t, aX as Rt, e as it, f as pt, a5 as rt, aY as kt, ac as ft, $ as yt, k as ye, aa as Dt, aZ as vt, am as je, h as ct, i as me, D as ve, a_ as ht, a$ as bt, b0 as Ee, V as gt, a8 as Ue, a9 as ze, ae as Ve, Z as De, t as ut, aD as Te, b1 as Qe, b2 as ke } from "./app-BT34Yv61.js";
|
|
2
2
|
import { ref as Y, computed as H, h as P, defineComponent as Se, reactive as Nt, onMounted as _t, resolveComponent as G, openBlock as f, createBlock as le, withCtx as X, createElementVNode as e, createVNode as I, unref as h, createElementBlock as x, toDisplayString as _, createCommentVNode as M, Fragment as ue, renderList as be, createTextVNode as Ne, normalizeClass as Be, watch as Ct, isRef as At, resolveDynamicComponent as Tt } from "vue";
|
|
3
|
-
import { F as qt } from "./decimal-
|
|
3
|
+
import { F as qt } from "./decimal-BTgTm2JD.js";
|
|
4
4
|
import { useCoreStore as Me, useI18n as st } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as Ye, useSnackbar as Pe, components as Ke, FmButtonVariant as fe, useProxiedModel as Ft } from "@feedmepos/ui-library";
|
|
6
|
-
import { F as qe } from "./FmAdminBadge-
|
|
7
|
-
import { a as Pt, u as It, P as Ce, f as Et } from "./format-unit-display-
|
|
6
|
+
import { F as qe } from "./FmAdminBadge-Dg5rl1fj.js";
|
|
7
|
+
import { a as Pt, u as It, P as Ce, f as Et } from "./format-unit-display-HHCA1rN3.js";
|
|
8
8
|
import { E as Lt } from "./empty-placeholder-wf6-BWE8.js";
|
|
9
|
-
import { _ as Vt, F as Bt, a as Ut } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as Vt, F as Bt, a as Ut } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BBWaPrlm.js";
|
|
10
10
|
import { u as Mt, R as dt } from "./usePromise-CbVUCxhj.js";
|
|
11
|
-
import { u as jt } from "./index-
|
|
11
|
+
import { u as jt } from "./index-Bz_lEYOD.js";
|
|
12
12
|
const Ie = mt((g, r) => {
|
|
13
13
|
const o = _e(), p = Me();
|
|
14
14
|
return {
|