@feedmepos/mf-inventory-portal 1.2.7 → 1.2.8-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-BtLCesbn.js → App-BL2MW6zc.js} +1 -1
- package/dist/{ApprovalView-Ba4XBhGf.js → ApprovalView-C18JNyKG.js} +69 -68
- package/dist/{BindingsDialog-BbBUniCu.js → BindingsDialog-DxXGq2TK.js} +2 -2
- package/dist/{BindingsPicker-C3q3ROku.js → BindingsPicker-BsuXkTQv.js} +1 -1
- package/dist/{BindingsTable-BTxWMif_.js → BindingsTable-BeGm5MK6.js} +1 -1
- package/dist/{ClosingDraftView-DGITBnaY.js → ClosingDraftView-yzzV-yhQ.js} +203 -203
- package/dist/ClosingTemplateView-DgI8ANjn.js +1862 -0
- package/dist/{DeliveryOrderPrintPreview-CUaHpblV.js → DeliveryOrderPrintPreview-B3xmuRAQ.js} +8 -8
- package/dist/{FmAdminBadge-BdwGZY-f.js → FmAdminBadge-9bTzCMaP.js} +6 -6
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B1pioWnC.js +230 -0
- package/dist/{FmMultiselectDialog-BETfHs3j.js → FmMultiselectDialog-D4QIUWaf.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BNdbeRQp.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CwuM-hJU.js} +23 -23
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-VYMMcwLl.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BFeK6K0l.js} +1 -1
- package/dist/{IngredientGroupView-C4d9b3Td.js → IngredientGroupView-Ku7t3MgL.js} +12 -12
- package/dist/IngredientsView-CAn1-40w.js +2306 -0
- package/dist/{IntegrationView-CWFzRDWO.js → IntegrationView-DEtbdogx.js} +4 -4
- package/dist/{InventoryBindingForm-Cx0Prlq8.js → InventoryBindingForm-BqBGbblS.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-cpR3Sf2Y.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CpVc2nGE.js} +41 -41
- package/dist/{InventoryBindingSummary-l8XvpxVU.js → InventoryBindingSummary-dEM8P354.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjRvIX-v.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-0AaD13Wg.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-gjuZveKy.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BqVwcG4Z.js} +11 -11
- package/dist/{PublishView-D2iUnDan.js → PublishView-CE2Ul9NM.js} +14 -14
- package/dist/{PurchaseOrderPrintPreview-DdLvM-wt.js → PurchaseOrderPrintPreview-C6Lg4V4I.js} +11 -11
- package/dist/{ReceiveRequestView-DpF5ZzvH.js → ReceiveRequestView-CDTT3m48.js} +148 -145
- package/dist/{RecipeView-Dvtm8o1Y.js → RecipeView-CROKnpq9.js} +49 -49
- package/dist/StockView-Wv700Rt6.js +2104 -0
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BdtRkUS6.js +158 -0
- package/dist/{SupplierView-7GtIJ3Fz.js → SupplierView-BNWtlH7a.js} +1133 -1015
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BvzSua6d.js +3058 -0
- package/dist/{TransferTemplateView-Cmvg-yvW.js → TransferTemplateView-DlxBMSPW.js} +131 -130
- package/dist/{UnitView-DjVm1iVX.js → UnitView-B56YIwiR.js} +59 -59
- package/dist/WarehouseView-C0d-uE4n.js +1066 -0
- package/dist/api/inventory.d.ts +8 -0
- package/dist/api/netsuite.d.ts +3 -0
- package/dist/api/purchase-order-template.d.ts +1 -0
- package/dist/api/purchase-order.d.ts +2 -0
- package/dist/api/shipment.d.ts +11 -0
- package/dist/api/warehouse.d.ts +3 -1
- package/dist/{app-Z-ylwRmy.js → app-Bo3plhvb.js} +17877 -17113
- package/dist/app.d.ts +96 -9
- package/dist/app.js +3 -3
- package/dist/closing-template-ByR3kWir.js +53 -0
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +9 -2
- package/dist/components/netsuite/SubsidiaryTreeDialog.vue.d.ts +2 -0
- package/dist/{decimal-D1pJ2776.js → decimal-YpqAHWnk.js} +1 -1
- package/dist/{format-unit-display-9BMm-8A4.js → format-unit-display-CpusApo9.js} +372 -404
- package/dist/{index-rEIM0AVC.js → index-BHD7bEuA.js} +1 -1
- package/dist/{index-BOl10vcm.js → index-CJTjmcUN.js} +1 -1
- package/dist/purchase-order-template-CNhjKd6p.js +41 -0
- package/dist/{stock-B8ewk80v.js → stock-BhgeS5mL.js} +1 -1
- package/dist/stores/feature.d.ts +10 -0
- package/dist/stores/integration/netsuite.d.ts +19 -0
- package/dist/stores/inventory.d.ts +1 -0
- package/dist/stores/location.d.ts +57 -1
- package/dist/stores/supplier.d.ts +96 -0
- package/dist/stores/warehouse.d.ts +4 -0
- package/dist/{supplier-DLSXYY1o.js → supplier-DG8JyhMj.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CTjwdY3T.js → use-ingredient-select-dialog-LIEBAng-.js} +5 -5
- package/dist/{use-inventory-binding-dialog-zXJB7MQY.js → use-inventory-binding-dialog-Df7DfQ1b.js} +8 -8
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +24 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +6 -0
- package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
- package/dist/views/receive-request/components/delivery-order-form/CreateForm.vue.d.ts +16 -0
- package/dist/views/receive-request/components/delivery-order-form/CreateFormProps.d.ts +4 -0
- package/dist/views/receive-request/components/delivery-order-form/EditForm.vue.d.ts +16 -0
- package/dist/views/receive-request/components/delivery-order-form/EditFormProps.d.ts +4 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +60 -0
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +10 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +94 -0
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +72 -1
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +8 -0
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
- package/dist/views/supplier/composables/use-supplier-table.d.ts +4 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +16 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -0
- package/package.json +3 -3
- package/dist/ClosingTemplateView-eRvwxXBq.js +0 -1908
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lDkElrkF.js +0 -227
- package/dist/IngredientsView-BvqWuIVT.js +0 -1876
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +0 -59
- package/dist/StockView-CRDu_GQ_.js +0 -2086
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DbmLtbZt.js +0 -2494
- package/dist/WarehouseView-CBso3SXT.js +0 -1034
|
@@ -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-Bo3plhvb.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
|
+
};
|