@feedmepos/mf-inventory-portal 0.0.25-dev.50 → 0.0.25-dev.52
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-B7fIlPKw.js → App-DkPiRPu7.js} +34 -34
- package/dist/{ApprovalView-Dp20w8em.js → ApprovalView-BEF-qPdZ.js} +20 -20
- package/dist/{BindingsDialog-BIHCuoDe.js → BindingsDialog-B6vjaPiA.js} +4 -4
- package/dist/{BindingsPicker-DoM1Dh1y.js → BindingsPicker-BmWf3j6H.js} +7 -7
- package/dist/{BindingsTable-ChJYIxrf.js → BindingsTable-VVNmzkzf.js} +1 -1
- package/dist/{ClosingDraftView-L4EHR0Sb.js → ClosingDraftView-C6sNEHK5.js} +120 -120
- package/dist/{ClosingTemplateView-CFVINyCr.js → ClosingTemplateView-5k8R-fMI.js} +285 -285
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dn-DgO81.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DclFOxv5.js} +37 -37
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CdWkJ2U-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BFqAE1ZI.js} +32 -32
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BN2ec0EU.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DwAyTAFy.js} +1 -1
- package/dist/{IngredientGroupView-Vz6XV_-q.js → IngredientGroupView-DAeurvqt.js} +1 -1
- package/dist/{IngredientsView-D1lmg_97.js → IngredientsView-Ca8fShPE.js} +4 -4
- package/dist/{IntegrationView-CfDmLYwt.js → IntegrationView-Db4XlQvK.js} +62 -62
- package/dist/{InventoryBindingForm-C68ZfWme.js → InventoryBindingForm-BTtpF1P5.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bd13FqsE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-ByJPHKqO.js} +15 -15
- package/dist/{InventoryBindingSummary-DT9cg2b4.js → InventoryBindingSummary-Bb5gN9Bu.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BfhvXVHK.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D4vUOy_R.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Dvj1F-DM.js → PremiumBadge.vue_vue_type_script_setup_true_lang-fFfOjNOU.js} +3 -3
- package/dist/{PublishView-DMzULnCX.js → PublishView-BqE9qfwb.js} +25 -25
- package/dist/{PurchaseOrderPrintPreview-D6wcth8H.js → PurchaseOrderPrintPreview-Cp6a-P8I.js} +1 -1
- package/dist/{ReceiveRequestView-DsX41zj-.js → ReceiveRequestView-DKPPCyAU.js} +52 -52
- package/dist/{RecipeView-DlKk9-tm.js → RecipeView-BEsrqzuU.js} +3 -3
- package/dist/{StockView-CNmvVK0V.js → StockView-DplJi2OM.js} +573 -569
- package/dist/{SupplierView-BcoOgM67.js → SupplierView-DL3D84U2.js} +7 -7
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CDDvq_mI.js → TransferDetails.vue_vue_type_script_setup_true_lang-BzFkrRui.js} +120 -120
- package/dist/{TransferTemplateView-BI96LQfP.js → TransferTemplateView-DakAYozL.js} +153 -153
- package/dist/{UnitView-BF2eBWtF.js → UnitView-C_Wqv69Z.js} +3 -3
- package/dist/{WarehouseView-joOR4EsJ.js → WarehouseView-CeoVZ9cs.js} +19 -19
- package/dist/{app-DavuMSpS.js → app-CulzKCFs.js} +6375 -5538
- package/dist/app.d.ts +842 -0
- package/dist/app.js +1 -1
- package/dist/{decimal-C_LJTg2_.js → decimal-DdjfkmJS.js} +1 -1
- package/dist/{feature-D3M-bziy.js → feature-jwErVPVw.js} +1 -1
- package/dist/{format-unit-display-BebmN2s-.js → format-unit-display-BMC3HZ0N.js} +30 -30
- package/dist/helper/number.d.ts +1 -1
- package/dist/{index-DzshvJTA.js → index-BDCZItPF.js} +1 -1
- package/dist/{index-BDEeA1dY.js → index-C7-QVxlo.js} +1 -1
- package/dist/{stock-CHVVTrSI.js → stock-Czw9__W8.js} +1 -1
- package/dist/{supplier-Ddl4sUpm.js → supplier-f0XPCLm-.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Z6bbIKfM.js → use-ingredient-select-dialog-DDeNnPW0.js} +1 -1
- package/dist/{use-inventory-binding-dialog-Dj45RBWc.js → use-inventory-binding-dialog-BTE0Ceov.js} +1 -1
- package/dist/{vue-i18n-Cak3W4nS.js → vue-i18n-B0gOxrrS.js} +153 -153
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aB as d, aC as f, X as _, u as h } from "./app-CulzKCFs.js";
|
|
2
2
|
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
3
3
|
import { ref as y, defineComponent as v, resolveComponent as p, openBlock as k, createElementBlock as g, renderSlot as S, createVNode as l, withCtx as x } from "vue";
|
|
4
4
|
function I(e, t) {
|
|
@@ -52,7 +52,7 @@ function w() {
|
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
const c = y(w());
|
|
55
|
-
function
|
|
55
|
+
function A() {
|
|
56
56
|
return {
|
|
57
57
|
// state
|
|
58
58
|
get inventoryForecast() {
|
|
@@ -111,5 +111,5 @@ export {
|
|
|
111
111
|
N as _,
|
|
112
112
|
z as e,
|
|
113
113
|
D as i,
|
|
114
|
-
|
|
114
|
+
A as u
|
|
115
115
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as oe, a as ne,
|
|
3
|
-
import { useBreakpoints as ie, useDialog as re, useSnackbar as ue, components as
|
|
4
|
-
import { u as ce } from "./vue-i18n-
|
|
5
|
-
const me = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ge = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as O, ref as D, computed as r, resolveComponent as s, openBlock as I, createBlock as B, unref as h, createSlots as X, withCtx as u, createElementVNode as v, normalizeClass as Z, createVNode as n, normalizeStyle as ee, Teleport as te, h as f } from "vue";
|
|
2
|
+
import { u as oe, a as ne, aQ as ae, z as se, _ as le, aj as H } from "./app-CulzKCFs.js";
|
|
3
|
+
import { useBreakpoints as ie, useDialog as re, useSnackbar as ue, components as R } from "@feedmepos/ui-library";
|
|
4
|
+
import { u as ce } from "./vue-i18n-B0gOxrrS.js";
|
|
5
|
+
const me = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ge = /* @__PURE__ */ O({
|
|
6
6
|
__name: "PublishView",
|
|
7
7
|
setup(be) {
|
|
8
|
-
const { t: o } = ce(), { breakpoints: x } = ie(), l = oe(), A = ne(), S = ae(), g = D(!1), c = r(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), Y = se(), P = re(), N = ue(), $ = r(() => l.locations), _ = r(() => x.value.xs || x.value.sm), U = r(() => _.value ? 10 : 20),
|
|
8
|
+
const { t: o } = ce(), { breakpoints: x } = ie(), l = oe(), A = ne(), S = ae(), g = D(!1), c = r(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), Y = se(), P = re(), N = ue(), $ = r(() => l.locations), _ = r(() => x.value.xs || x.value.sm), U = r(() => _.value ? 10 : 20), j = r(() => [
|
|
9
9
|
{
|
|
10
|
-
label: "
|
|
10
|
+
label: o("inventory.common.refresh"),
|
|
11
11
|
value: "refresh",
|
|
12
12
|
isPrimary: !1
|
|
13
13
|
},
|
|
14
14
|
{ label: o("inventory.publish.actions.publishAll"), value: "publish", isPrimary: !0 }
|
|
15
15
|
]);
|
|
16
|
-
async function
|
|
16
|
+
async function q(e) {
|
|
17
17
|
switch (e) {
|
|
18
18
|
case "publish":
|
|
19
19
|
P.open({
|
|
@@ -30,25 +30,25 @@ const me = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
30
30
|
break;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
const w = D(!1),
|
|
33
|
+
const w = D(!1), E = [
|
|
34
34
|
{
|
|
35
35
|
value: "publish",
|
|
36
36
|
label: o("inventory.publish.actions.publishAll")
|
|
37
37
|
}
|
|
38
38
|
];
|
|
39
|
-
function
|
|
39
|
+
function K(e) {
|
|
40
40
|
switch (w.value = !1, e) {
|
|
41
41
|
case "publish":
|
|
42
42
|
console.log("publish all");
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const Q = [
|
|
46
46
|
{
|
|
47
47
|
id: "type",
|
|
48
48
|
header: () => o("inventory.publish.columns.type"),
|
|
49
49
|
enableSorting: !0,
|
|
50
50
|
cell(e) {
|
|
51
|
-
return f(
|
|
51
|
+
return f(R.FmChip, {
|
|
52
52
|
color: "primary",
|
|
53
53
|
label: e.row.original.type
|
|
54
54
|
});
|
|
@@ -66,7 +66,7 @@ const me = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
66
66
|
enableSorting: !0,
|
|
67
67
|
cell(e) {
|
|
68
68
|
var t, a;
|
|
69
|
-
return (t = e.row.original.inventory) != null && t.updatedAt ?
|
|
69
|
+
return (t = e.row.original.inventory) != null && t.updatedAt ? H((a = e.row.original.inventory) == null ? void 0 : a.updatedAt) : "";
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
{
|
|
@@ -92,9 +92,9 @@ const me = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
92
92
|
t ? "fm-status-badge-success-secondary" : "fm-status-badge-info-secondary"
|
|
93
93
|
]
|
|
94
94
|
},
|
|
95
|
-
t ? "
|
|
95
|
+
o(t ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
|
|
96
96
|
),
|
|
97
|
-
!t && !m ? f(
|
|
97
|
+
!t && !m ? f(R.FmButton, {
|
|
98
98
|
class: "tertiary",
|
|
99
99
|
variant: "secondary",
|
|
100
100
|
icon: "sync",
|
|
@@ -133,11 +133,11 @@ const me = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
133
133
|
// }
|
|
134
134
|
];
|
|
135
135
|
return (e, t) => {
|
|
136
|
-
const a = s("FmChip"), m = s("FlexRender"), d = s("TableActionableRow"),
|
|
137
|
-
return I(),
|
|
136
|
+
const a = s("FmChip"), m = s("FlexRender"), d = s("TableActionableRow"), W = s("FmTable"), G = s("FmCollapsibleTabs"), J = s("FmBottomSheet");
|
|
137
|
+
return I(), B(le, {
|
|
138
138
|
title: h(o)("inventory.publish.title"),
|
|
139
|
-
actions:
|
|
140
|
-
"onClick:action":
|
|
139
|
+
actions: j.value,
|
|
140
|
+
"onClick:action": q
|
|
141
141
|
}, X({
|
|
142
142
|
default: u(() => [
|
|
143
143
|
v("div", {
|
|
@@ -149,9 +149,9 @@ const me = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
149
149
|
}
|
|
150
150
|
])
|
|
151
151
|
}, [
|
|
152
|
-
n(
|
|
152
|
+
n(W, {
|
|
153
153
|
style: ee(h(Y).tableHeight),
|
|
154
|
-
"column-defs":
|
|
154
|
+
"column-defs": Q,
|
|
155
155
|
"row-data": $.value,
|
|
156
156
|
loading: !h(l)._currentLocation || g.value,
|
|
157
157
|
"loading-text": "Loading",
|
|
@@ -184,7 +184,7 @@ const me = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
184
184
|
_: 1
|
|
185
185
|
}, 8, ["style", "row-data", "loading", "page-size"])
|
|
186
186
|
], 2),
|
|
187
|
-
(I(),
|
|
187
|
+
(I(), B(te, { to: "body" }, [
|
|
188
188
|
n(J, {
|
|
189
189
|
"dismiss-away": "",
|
|
190
190
|
modelValue: w.value,
|
|
@@ -193,8 +193,8 @@ const me = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
193
193
|
default: u(() => [
|
|
194
194
|
n(G, {
|
|
195
195
|
class: "pb-8",
|
|
196
|
-
items:
|
|
197
|
-
"onUpdate:modelValue": t[0] || (t[0] = (i) =>
|
|
196
|
+
items: E,
|
|
197
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => K(i))
|
|
198
198
|
})
|
|
199
199
|
]),
|
|
200
200
|
_: 1
|
|
@@ -208,7 +208,7 @@ const me = { class: "flex flex-col py-8" }, de = { class: "fm-typo-en-body-md-40
|
|
|
208
208
|
fn: u(() => [
|
|
209
209
|
n(a, {
|
|
210
210
|
variant: "info",
|
|
211
|
-
label: `Latest: ${h(
|
|
211
|
+
label: `Latest: ${h(H)(c.value)}`
|
|
212
212
|
}, null, 8, ["label"])
|
|
213
213
|
]),
|
|
214
214
|
key: "0"
|
package/dist/{PurchaseOrderPrintPreview-D6wcth8H.js → PurchaseOrderPrintPreview-Cp6a-P8I.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, computed as x, ref as m, onMounted as f, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as d, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { av as y, ai as C } from "./app-CulzKCFs.js";
|
|
4
4
|
const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "text-right" }, N = { class: "header" }, E = { class: "sub-header" }, O = { class: "caption" }, S = { class: "address" }, D = { class: "text-right" }, T = { class: "sub-header" }, q = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
|
|
5
5
|
class: "text-left",
|
|
6
6
|
style: { width: "20%" }
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { reactive as gt, onMounted as Xe, h as j, defineComponent as de, openBlock as k, createElementBlock as D, Fragment as ue, renderList as Ie, createElementVNode as l, toDisplayString as P, unref as t, resolveComponent as $, createVNode as c, withCtx as T, createCommentVNode as H, computed as N, ref as q, createBlock as X, watch as _e, normalizeClass as Q, normalizeStyle as _t, createTextVNode as $e, nextTick as Dt, mergeProps as Ke, isRef as we, createSlots as Tt, Teleport as Vt, normalizeProps as Pt, guardReactiveProps as Rt } from "vue";
|
|
2
|
-
import { b as
|
|
3
|
-
import { u as et, a as Wt, P as Ye, b as Jt, _ as es, g as ts } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as St, u as ss, i as os, e as as } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { b as Ge, $ as ht, l as Me, i as Fe, a1 as Ze, K as At, as as Et, A as ze, M as Mt, m as kt, ac as We, E as ve, at as Ut, a as He, au as qt, av as Ot, aw as Nt, H as Qe, G as xt, u as Je, ax as Bt, ay as Lt, a0 as zt, V as Ht, az as jt, C as Ct, d as Ee, w as Yt, x as Kt, y as Qt, aA as Le, a6 as pt, z as Xt, _ as Gt, B as Zt, N as ft } from "./app-CulzKCFs.js";
|
|
3
|
+
import { u as et, a as Wt, P as Ye, b as Jt, _ as es, g as ts } from "./TransferDetails.vue_vue_type_script_setup_true_lang-BzFkrRui.js";
|
|
4
|
+
import { _ as St, u as ss, i as os, e as as } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-fFfOjNOU.js";
|
|
5
5
|
import { u as ls } from "./useTabStorage-BkIVScW_.js";
|
|
6
6
|
import { useBreakpoints as tt, components as ge, FmButtonVariant as ns, useSnackbar as De, useDialog as wt, useProxiedModel as Ft } from "@feedmepos/ui-library";
|
|
7
|
-
import { u as It, P as ae } from "./format-unit-display-
|
|
8
|
-
import { _ as rs, F as is, a as us, b as ds } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as st } from "./feature-
|
|
10
|
-
import { c as Se, u as cs, _ as ms } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { u as It, P as ae } from "./format-unit-display-BMC3HZ0N.js";
|
|
8
|
+
import { _ as rs, F as is, a as us, b as ds } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BFqAE1ZI.js";
|
|
9
|
+
import { u as st } from "./feature-jwErVPVw.js";
|
|
10
|
+
import { c as Se, u as cs, _ as ms } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DclFOxv5.js";
|
|
11
11
|
import { useI18n as he } from "@feedmepos/mf-common";
|
|
12
|
-
import { u as ot } from "./supplier-
|
|
12
|
+
import { u as ot } from "./supplier-f0XPCLm-.js";
|
|
13
13
|
import { _ as ps } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
14
|
-
import { u as fs } from "./vue-i18n-
|
|
14
|
+
import { u as fs } from "./vue-i18n-B0gOxrrS.js";
|
|
15
15
|
import { defineStore as vs } from "pinia";
|
|
16
16
|
import "./array-hChJVZLE.js";
|
|
17
17
|
var W = /* @__PURE__ */ ((y) => (y.Code = "Code", y.Name = "Name", y.TemplateName = "TemplateName", y.Amount = "Amount", y.Cost = "Cost", y.TotalCost = "TotalCost", y.Delete = "Delete", y))(W || {});
|
|
@@ -24,7 +24,7 @@ const ys = () => j(
|
|
|
24
24
|
`Total (${kt()})`
|
|
25
25
|
);
|
|
26
26
|
function bs(y) {
|
|
27
|
-
const { t: _ } = he(), r = gt({}), { breakpoints: i } = tt(), h = st(), e =
|
|
27
|
+
const { t: _ } = he(), r = gt({}), { breakpoints: i } = tt(), h = st(), e = Ge();
|
|
28
28
|
Xe(() => {
|
|
29
29
|
for (const d of y.items) {
|
|
30
30
|
if (!d.totalCost)
|
|
@@ -242,7 +242,7 @@ function bs(y) {
|
|
|
242
242
|
[
|
|
243
243
|
j(
|
|
244
244
|
"span",
|
|
245
|
-
a ?
|
|
245
|
+
a ? Ze(
|
|
246
246
|
Se(o.sku, o.quantity, o.measurement, {
|
|
247
247
|
supplier: y.supplier
|
|
248
248
|
})
|
|
@@ -372,7 +372,7 @@ const gs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
372
372
|
class: "flex flex-col w-[150px] xs:flex-1 text-ellipsis cursor-pointer"
|
|
373
373
|
}, [
|
|
374
374
|
l("div", ks, [
|
|
375
|
-
l("span", null, P(C.totalCost ? t(
|
|
375
|
+
l("span", null, P(C.totalCost ? t(Ze)(C.totalCost) : "No data"), 1),
|
|
376
376
|
h[0] || (h[0] = l("span", { class: "text-fm-color-typo-secondary" }, "/", -1)),
|
|
377
377
|
l("span", null, P(t(Fe)(C.totalUnit, !1)), 1),
|
|
378
378
|
l("span", null, P(((d = C.measurement) == null ? void 0 : d.abbrev) ?? C.unit.abbrev), 1)
|
|
@@ -403,7 +403,7 @@ const gs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
403
403
|
setup(y) {
|
|
404
404
|
const { t: _ } = he();
|
|
405
405
|
return (r, i) => {
|
|
406
|
-
var u, C, d, o, n, a, b, f, g, x, F, v, m, V, R, B, M, z, L, U, Y, O, S, w,
|
|
406
|
+
var u, C, d, o, n, a, b, f, g, x, F, v, m, V, R, B, M, z, L, U, Y, O, S, w, G, le, ne;
|
|
407
407
|
const h = $("FmLabel"), e = $("FmSpacer");
|
|
408
408
|
return k(), D("div", Cs, [
|
|
409
409
|
l("div", Ss, [
|
|
@@ -462,7 +462,7 @@ const gs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
462
462
|
}),
|
|
463
463
|
c(t(ve), {
|
|
464
464
|
render: (S = (O = (Y = r.cellByColId[t(W).Cost]) == null ? void 0 : Y.column) == null ? void 0 : O.columnDef) == null ? void 0 : S.cell,
|
|
465
|
-
props: (
|
|
465
|
+
props: (G = (w = r.cellByColId[t(W).Cost]) == null ? void 0 : w.getContext) == null ? void 0 : G.call(w)
|
|
466
466
|
}, null, 8, ["render", "props"]),
|
|
467
467
|
i[3] || (i[3] = l("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
468
468
|
])) : H("", !0)
|
|
@@ -559,7 +559,7 @@ const Ms = {
|
|
|
559
559
|
}, null, 8, Ns)
|
|
560
560
|
]));
|
|
561
561
|
}
|
|
562
|
-
}), Ls = { class: "flex gap-8 items-center" }, zs = { class: "fm-typo-en-body-lg-600 line-clamp-1" }, Hs = { class: "w-[343px] px-24 py-16 rounded-lg shadow-light-300 flex flex-col gap-[20px]" }, js = { class: "flex items-center w-full" }, Ys = { class: "flex-1" }, Ks = { class: "fm-typo-en-title-sm-800" }, Qs = { class: "flex items-start gap-8" }, Xs = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" },
|
|
562
|
+
}), Ls = { class: "flex gap-8 items-center" }, zs = { class: "fm-typo-en-body-lg-600 line-clamp-1" }, Hs = { class: "w-[343px] px-24 py-16 rounded-lg shadow-light-300 flex flex-col gap-[20px]" }, js = { class: "flex items-center w-full" }, Ys = { class: "flex-1" }, Ks = { class: "fm-typo-en-title-sm-800" }, Qs = { class: "flex items-start gap-8" }, Xs = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Gs = { class: "flex gap-1" }, vt = /* @__PURE__ */ de({
|
|
563
563
|
__name: "ForecastStock",
|
|
564
564
|
props: {
|
|
565
565
|
disabled: { type: Boolean }
|
|
@@ -661,7 +661,7 @@ const Ms = {
|
|
|
661
661
|
]),
|
|
662
662
|
_: 1
|
|
663
663
|
}, 8, ["modelValue", "label", "rules"]),
|
|
664
|
-
l("div",
|
|
664
|
+
l("div", Gs, [
|
|
665
665
|
a[4] || (a[4] = l("div", { class: "grow" }, null, -1)),
|
|
666
666
|
c(b, {
|
|
667
667
|
label: t(d)("common.cancel"),
|
|
@@ -680,7 +680,7 @@ const Ms = {
|
|
|
680
680
|
};
|
|
681
681
|
}
|
|
682
682
|
});
|
|
683
|
-
function
|
|
683
|
+
function Zs() {
|
|
684
684
|
const y = De(), _ = et(), r = q(!1);
|
|
685
685
|
_e(r, (u) => {
|
|
686
686
|
u && (h.value = !0, i().finally(() => {
|
|
@@ -797,7 +797,7 @@ const Ws = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Js = { key: 0 }
|
|
|
797
797
|
},
|
|
798
798
|
emits: ["netsuite:ready"],
|
|
799
799
|
setup(y, { emit: _ }) {
|
|
800
|
-
const r =
|
|
800
|
+
const r = Ge(), i = y, h = _, { t: e } = fs(), u = q(!1), C = q();
|
|
801
801
|
Xe(() => {
|
|
802
802
|
var a, b, f, g;
|
|
803
803
|
let n = {
|
|
@@ -972,7 +972,7 @@ const Ws = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Js = { key: 0 }
|
|
|
972
972
|
},
|
|
973
973
|
emits: ["validation-success", "form:ready"],
|
|
974
974
|
setup(y, { expose: _, emit: r }) {
|
|
975
|
-
const i = y, h = r, e = xt(), { t: u } = he(), C = ro(), d = Je(), o = He(), n =
|
|
975
|
+
const i = y, h = r, e = xt(), { t: u } = he(), C = ro(), d = Je(), o = He(), n = Ge(), a = ot(), b = st(), f = It(), { breakpoints: g } = tt(), x = N(() => g.value.xs || g.value.sm), F = gt({
|
|
976
976
|
value: !1
|
|
977
977
|
}), v = q(!1), m = N(
|
|
978
978
|
() => {
|
|
@@ -1058,14 +1058,14 @@ const Ws = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Js = { key: 0 }
|
|
|
1058
1058
|
set(s) {
|
|
1059
1059
|
e.remark = s;
|
|
1060
1060
|
}
|
|
1061
|
-
}), { backdatePo: O, backdateSwitch: S, backdateModel: w, backdateTimeModel:
|
|
1061
|
+
}), { backdatePo: O, backdateSwitch: S, backdateModel: w, backdateTimeModel: G } = Es({
|
|
1062
1062
|
getEffectiveAt() {
|
|
1063
1063
|
return e.effectiveAt;
|
|
1064
1064
|
},
|
|
1065
1065
|
setEffectiveAt(s) {
|
|
1066
1066
|
e.effectiveAt = s;
|
|
1067
1067
|
}
|
|
1068
|
-
}), { comparePricesToggle: le, comparePriceFetching: ne, comparePriceBySku: Te } =
|
|
1068
|
+
}), { comparePricesToggle: le, comparePriceFetching: ne, comparePriceBySku: Te } = Zs(), xe = q();
|
|
1069
1069
|
_({
|
|
1070
1070
|
validateInputs: () => {
|
|
1071
1071
|
var s, p;
|
|
@@ -1119,11 +1119,11 @@ const Ws = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Js = { key: 0 }
|
|
|
1119
1119
|
const s = (se = (ye = m.value) == null ? void 0 : ye.purchaseOrder) == null ? void 0 : se.items;
|
|
1120
1120
|
if (!(s != null && s.length)) return;
|
|
1121
1121
|
const p = n.isEnabled ? n.getAvailableItems((pe = (me = e.netSuite) == null ? void 0 : me.subsidiary) == null ? void 0 : pe.id) : [], A = s.map((J) => {
|
|
1122
|
-
var
|
|
1122
|
+
var Z, ee;
|
|
1123
1123
|
let re = !p.includes(J.sku._id);
|
|
1124
1124
|
return J.measurement && !re && (re = !n.getAvailableMeasurements(
|
|
1125
1125
|
J.sku._id,
|
|
1126
|
-
(ee = (
|
|
1126
|
+
(ee = (Z = e.netSuite) == null ? void 0 : Z.subsidiary) == null ? void 0 : ee.id
|
|
1127
1127
|
).includes(J.measurement.id)), {
|
|
1128
1128
|
label: J.name,
|
|
1129
1129
|
sublabel: J.code,
|
|
@@ -1144,30 +1144,30 @@ const Ws = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Js = { key: 0 }
|
|
|
1144
1144
|
var se, me, pe, J, re;
|
|
1145
1145
|
const s = (pe = (me = (se = m.value) == null ? void 0 : se.purchaseOrder) == null ? void 0 : me.items) == null ? void 0 : pe.groupBy((E) => E.sku._id), p = n.isEnabled ? n.getAvailableItems((re = (J = e.netSuite) == null ? void 0 : J.subsidiary) == null ? void 0 : re.id) : [], A = s != null && s.size ? o.skus.filter((E) => s.has(E._id)) : o.skus, K = n.isEnabled ? A.filter((E) => {
|
|
1146
1146
|
var ee, te, ie, fe;
|
|
1147
|
-
const
|
|
1147
|
+
const Z = (te = (ee = m.value) == null ? void 0 : ee.purchaseOrder) == null ? void 0 : te.items.find(
|
|
1148
1148
|
(be) => be.sku._id === E._id
|
|
1149
1149
|
);
|
|
1150
|
-
if (
|
|
1150
|
+
if (Z != null && Z.measurement != null) {
|
|
1151
1151
|
const be = n.getAvailableMeasurements(
|
|
1152
|
-
|
|
1152
|
+
Z.sku._id,
|
|
1153
1153
|
(fe = (ie = e.netSuite) == null ? void 0 : ie.subsidiary) == null ? void 0 : fe.id
|
|
1154
1154
|
);
|
|
1155
|
-
return p.includes(
|
|
1155
|
+
return p.includes(Z.sku._id) && be.includes(Z.measurement.id);
|
|
1156
1156
|
}
|
|
1157
1157
|
return p.includes(E._id);
|
|
1158
1158
|
}).map((E) => E._id) : A.map((E) => E._id), ce = A.map(
|
|
1159
1159
|
(E) => {
|
|
1160
|
-
var
|
|
1160
|
+
var Z, ee, te, ie;
|
|
1161
1161
|
return {
|
|
1162
|
-
label: ((ee = (
|
|
1162
|
+
label: ((ee = (Z = s == null ? void 0 : s.get(E._id)) == null ? void 0 : Z[0]) == null ? void 0 : ee.name) ?? E.name,
|
|
1163
1163
|
sublabel: ((ie = (te = s == null ? void 0 : s.get(E._id)) == null ? void 0 : te[0]) == null ? void 0 : ie.code) ?? E.code,
|
|
1164
1164
|
value: E,
|
|
1165
1165
|
disabled: !K.includes(E._id)
|
|
1166
1166
|
};
|
|
1167
1167
|
}
|
|
1168
1168
|
), ye = ce.filter((E) => {
|
|
1169
|
-
var
|
|
1170
|
-
return (
|
|
1169
|
+
var Z;
|
|
1170
|
+
return (Z = e.items) == null ? void 0 : Z.find((ee) => ee.sku._id === E.value._id);
|
|
1171
1171
|
}).map((E) => E.value);
|
|
1172
1172
|
B.open({
|
|
1173
1173
|
title: u("inventory.transfer.form.items.selectItem"),
|
|
@@ -1188,9 +1188,9 @@ const Ws = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Js = { key: 0 }
|
|
|
1188
1188
|
variant: "tertiary"
|
|
1189
1189
|
}
|
|
1190
1190
|
}).onPrimary((E) => {
|
|
1191
|
-
const
|
|
1191
|
+
const Z = e.items ?? [], ee = E.map((te) => {
|
|
1192
1192
|
var be, Re;
|
|
1193
|
-
const ie =
|
|
1193
|
+
const ie = Z.find((Ce) => Ce.sku._id === te._id);
|
|
1194
1194
|
if (ie)
|
|
1195
1195
|
return ie;
|
|
1196
1196
|
const fe = ((Re = (be = m.value) == null ? void 0 : be.purchaseOrder.items) == null ? void 0 : Re.find(
|
|
@@ -1234,7 +1234,7 @@ const Ws = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Js = { key: 0 }
|
|
|
1234
1234
|
});
|
|
1235
1235
|
return (s, p) => {
|
|
1236
1236
|
var be, Re;
|
|
1237
|
-
const A = $("FmChip"), K = $("FmLabel"), ce = $("FmIcon"), ye = $("FmField"), se = $("FmTooltip"), me = $("FmSelect"), pe = $("FmTextField"), J = $("FmTextarea"), re = $("FmSwitch"), E = $("FmDatePicker"),
|
|
1237
|
+
const A = $("FmChip"), K = $("FmLabel"), ce = $("FmIcon"), ye = $("FmField"), se = $("FmTooltip"), me = $("FmSelect"), pe = $("FmTextField"), J = $("FmTextarea"), re = $("FmSwitch"), E = $("FmDatePicker"), Z = $("FmTimePicker"), ee = $("FmFormGroup"), te = $("FmButton"), ie = $("FmTable"), fe = $("FmForm");
|
|
1238
1238
|
return k(), D("div", io, [
|
|
1239
1239
|
l("div", uo, [
|
|
1240
1240
|
(be = i.modelValue) != null && be.template ? (k(), X(A, {
|
|
@@ -1452,9 +1452,9 @@ const Ws = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Js = { key: 0 }
|
|
|
1452
1452
|
}, null, 8, ["modelValue"])
|
|
1453
1453
|
]),
|
|
1454
1454
|
l("div", xo, [
|
|
1455
|
-
c(
|
|
1456
|
-
modelValue: t(
|
|
1457
|
-
"onUpdate:modelValue": p[7] || (p[7] = (I) => we(
|
|
1455
|
+
c(Z, {
|
|
1456
|
+
modelValue: t(G),
|
|
1457
|
+
"onUpdate:modelValue": p[7] || (p[7] = (I) => we(G) ? G.value = I : null)
|
|
1458
1458
|
}, null, 8, ["modelValue"])
|
|
1459
1459
|
])
|
|
1460
1460
|
])) : H("", !0)
|
|
@@ -1689,7 +1689,7 @@ const Ws = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Js = { key: 0 }
|
|
|
1689
1689
|
});
|
|
1690
1690
|
async function z() {
|
|
1691
1691
|
const S = m.value;
|
|
1692
|
-
b.value = !0, (S.supplier.internal === "warehouse" || S.supplier.internal === "restaurant") && (S.items = S.items.map(({ totalCost: w, ...
|
|
1692
|
+
b.value = !0, (S.supplier.internal === "warehouse" || S.supplier.internal === "restaurant") && (S.items = S.items.map(({ totalCost: w, ...G }) => G));
|
|
1693
1693
|
try {
|
|
1694
1694
|
await e.createPurchaseOrder(S), await new Promise((w) => setTimeout(w, 1e3)), C.open({
|
|
1695
1695
|
title: a("inventory.transfer.receiveRequest.create.success"),
|
|
@@ -1708,7 +1708,7 @@ const Ws = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Js = { key: 0 }
|
|
|
1708
1708
|
}
|
|
1709
1709
|
async function L() {
|
|
1710
1710
|
const S = m.value;
|
|
1711
|
-
b.value = !0, (S.supplier.internal === "warehouse" || S.supplier.internal === "restaurant") && (S.items = S.items.map(({ totalCost: w, ...
|
|
1711
|
+
b.value = !0, (S.supplier.internal === "warehouse" || S.supplier.internal === "restaurant") && (S.items = S.items.map(({ totalCost: w, ...G }) => G));
|
|
1712
1712
|
try {
|
|
1713
1713
|
await e.updatePurchaseOrder(S), await new Promise((w) => setTimeout(w, 1e3)), C.open({
|
|
1714
1714
|
title: a("inventory.transfer.receiveRequest.update.success"),
|
|
@@ -1738,7 +1738,7 @@ const Ws = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Js = { key: 0 }
|
|
|
1738
1738
|
(w = (S = M.value) == null ? void 0 : S.validateInputs) == null || w.call(S);
|
|
1739
1739
|
}
|
|
1740
1740
|
return (S, w) => {
|
|
1741
|
-
const
|
|
1741
|
+
const G = $("FmButton"), le = $("FmSideSheet");
|
|
1742
1742
|
return k(), X(le, {
|
|
1743
1743
|
modelValue: t(v),
|
|
1744
1744
|
"onUpdate:modelValue": w[3] || (w[3] = (ne) => we(v) ? v.value = ne : null),
|
|
@@ -1769,13 +1769,13 @@ const Ws = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Js = { key: 0 }
|
|
|
1769
1769
|
]),
|
|
1770
1770
|
"side-sheet-footer": T(() => [
|
|
1771
1771
|
l("div", Po, [
|
|
1772
|
-
c(
|
|
1772
|
+
c(G, {
|
|
1773
1773
|
loading: b.value,
|
|
1774
1774
|
disabled: R.value,
|
|
1775
1775
|
label: t(a)("common.save"),
|
|
1776
1776
|
onClick: Y
|
|
1777
1777
|
}, null, 8, ["loading", "disabled", "label"]),
|
|
1778
|
-
c(
|
|
1778
|
+
c(G, {
|
|
1779
1779
|
disabled: R.value,
|
|
1780
1780
|
variant: "tertiary",
|
|
1781
1781
|
label: t(a)("common.close"),
|
|
@@ -1954,7 +1954,7 @@ const Mo = exports.FfCalculator, Uo = { class: "flex flex-col flex-1" }, qo = {
|
|
|
1954
1954
|
]);
|
|
1955
1955
|
};
|
|
1956
1956
|
}
|
|
1957
|
-
}),
|
|
1957
|
+
}), Go = { class: "flex flex-col gap-24" }, Zo = {
|
|
1958
1958
|
key: 0,
|
|
1959
1959
|
class: "flex items-center gap-8"
|
|
1960
1960
|
}, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Jo = { class: "flex flex-col gap-8" }, ea = { class: "line-clamp-2 text-ellipsis break-all" }, ta = {
|
|
@@ -2092,7 +2092,7 @@ const Mo = exports.FfCalculator, Uo = { class: "flex flex-col flex-1" }, qo = {
|
|
|
2092
2092
|
ref: g
|
|
2093
2093
|
}, {
|
|
2094
2094
|
default: T(() => [
|
|
2095
|
-
l("div",
|
|
2095
|
+
l("div", Go, [
|
|
2096
2096
|
c(V, {
|
|
2097
2097
|
modelValue: d.value,
|
|
2098
2098
|
"onUpdate:modelValue": m[0] || (m[0] = (O) => d.value = O),
|
|
@@ -2114,7 +2114,7 @@ const Mo = exports.FfCalculator, Uo = { class: "flex flex-col flex-1" }, qo = {
|
|
|
2114
2114
|
label: "Transfer time",
|
|
2115
2115
|
rules: [t(Me)()]
|
|
2116
2116
|
}, null, 8, ["modelValue", "rules"]),
|
|
2117
|
-
e.value ? (k(), D("div",
|
|
2117
|
+
e.value ? (k(), D("div", Zo, [
|
|
2118
2118
|
l("div", null, [
|
|
2119
2119
|
c(M, {
|
|
2120
2120
|
size: "md",
|
|
@@ -2394,7 +2394,7 @@ const Mo = exports.FfCalculator, Uo = { class: "flex flex-col flex-1" }, qo = {
|
|
|
2394
2394
|
"Received quantity": S,
|
|
2395
2395
|
"Ordered quantity": w,
|
|
2396
2396
|
Unit: U.sku.unit.abbrev,
|
|
2397
|
-
"Total cost": U.totalCost ?
|
|
2397
|
+
"Total cost": U.totalCost ? Ze(U.totalCost) : null
|
|
2398
2398
|
};
|
|
2399
2399
|
})
|
|
2400
2400
|
), z = [
|
|
@@ -2467,17 +2467,17 @@ const Mo = exports.FfCalculator, Uo = { class: "flex flex-col flex-1" }, qo = {
|
|
|
2467
2467
|
}
|
|
2468
2468
|
] : [],
|
|
2469
2469
|
{
|
|
2470
|
-
label: _("common.refresh"),
|
|
2470
|
+
label: _("inventory.common.refresh"),
|
|
2471
2471
|
value: "refresh"
|
|
2472
2472
|
},
|
|
2473
2473
|
{
|
|
2474
|
-
label: _("common.export"),
|
|
2474
|
+
label: _("inventory.common.export"),
|
|
2475
2475
|
value: "export"
|
|
2476
2476
|
}
|
|
2477
2477
|
]);
|
|
2478
2478
|
return (B, M) => {
|
|
2479
2479
|
const z = $("FmTable");
|
|
2480
|
-
return k(), X(
|
|
2480
|
+
return k(), X(Gt, {
|
|
2481
2481
|
title: t(_)("inventory.transfer.receiveRequest.title2"),
|
|
2482
2482
|
actions: R.value,
|
|
2483
2483
|
"onClick:action": x
|
|
@@ -2494,7 +2494,7 @@ const Mo = exports.FfCalculator, Uo = { class: "flex flex-col flex-1" }, qo = {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
])
|
|
2496
2496
|
}, [
|
|
2497
|
-
c(
|
|
2497
|
+
c(Zt, {
|
|
2498
2498
|
"date-range-query": "",
|
|
2499
2499
|
"date-range": f.value,
|
|
2500
2500
|
"onUpdate:dateRange": M[0] || (M[0] = (U) => f.value = U),
|
|
@@ -2519,13 +2519,13 @@ const Mo = exports.FfCalculator, Uo = { class: "flex flex-col flex-1" }, qo = {
|
|
|
2519
2519
|
onRowClick: t(o).promptShowTransferDetails
|
|
2520
2520
|
}, {
|
|
2521
2521
|
default: T((Y) => {
|
|
2522
|
-
var O, S, w,
|
|
2522
|
+
var O, S, w, G, le, ne, Te, xe, ke, Ue, qe, Oe, Ne, Ve, Be, Pe, s, p, A, K;
|
|
2523
2523
|
return [
|
|
2524
2524
|
l("div", ua, [
|
|
2525
2525
|
l("div", da, [
|
|
2526
2526
|
c(t(ve), {
|
|
2527
2527
|
render: (w = (S = (O = Y._id) == null ? void 0 : O.column) == null ? void 0 : S.columnDef) == null ? void 0 : w.cell,
|
|
2528
|
-
props: (le = (
|
|
2528
|
+
props: (le = (G = Y._id) == null ? void 0 : G.getContext) == null ? void 0 : le.call(G)
|
|
2529
2529
|
}, null, 8, ["render", "props"])
|
|
2530
2530
|
]),
|
|
2531
2531
|
l("div", ca, [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as H, ref as E, onMounted as re, resolveComponent as S, openBlock as x, createElementBlock as $, Fragment as ie, createElementVNode as R, toDisplayString as ce, createVNode as v, createCommentVNode as j, computed as F, watch as ue, createBlock as T, withCtx as P, unref as b, isRef as Z, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
|
|
2
|
-
import { a as A, d as V, e as O, S as ye, f as ge, D as ee, h as Y, i as q, F as te, l as be, U as _e, A as we, p as ne, q as Re, s as he, r as Ve, u as xe, z as Ce, _ as Ee, B as Se, C as Fe, E as oe } from "./app-
|
|
2
|
+
import { a as A, d as V, e as O, S as ye, f as ge, D as ee, h as Y, i as q, F as te, l as be, U as _e, A as we, p as ne, q as Re, s as he, r as Ve, u as xe, z as Ce, _ as Ee, B as Se, C as Fe, E as oe } from "./app-CulzKCFs.js";
|
|
3
3
|
import { useDialog as ke, useSnackbar as se, useProxiedModel as ae, useBreakpoints as De } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Ae, _ as Ie } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
|
-
import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as le } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DwAyTAFy.js";
|
|
6
6
|
import { defineStore as $e, storeToRefs as Pe } from "pinia";
|
|
7
7
|
import { useI18n as K } from "@feedmepos/mf-common";
|
|
8
|
-
import { _ as Be } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as Be } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-ByJPHKqO.js";
|
|
9
9
|
import { _ as Te } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
10
10
|
const Me = {
|
|
11
11
|
key: 0,
|