@feedmepos/mf-inventory-portal 1.0.13 → 1.0.15-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-D3tAuqoa.js → App-DtuHbzaj.js} +3 -3
- package/dist/{ApprovalView-CZSEkuxs.js → ApprovalView-C8gHcI4o.js} +2 -2
- package/dist/{BindingsDialog-BCw5xmh3.js → BindingsDialog-CLp5DbdF.js} +2 -2
- package/dist/{BindingsPicker-B--B9aT5.js → BindingsPicker-ChB_dM_r.js} +1 -1
- package/dist/{BindingsTable-z4ohAK-T.js → BindingsTable-usQiwRyf.js} +1 -1
- package/dist/{ClosingDraftView-5fVFzVpD.js → ClosingDraftView-C7mlsyK5.js} +20 -20
- package/dist/{ClosingTemplateView-BuJtrXgC.js → ClosingTemplateView-C3csSJ5x.js} +10 -10
- package/dist/{DeliveryOrderPrintPreview-DPlR2qhc.js → DeliveryOrderPrintPreview-DGI0Mk4p.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-P1dvKMS3.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D8iQyzaJ.js} +3 -3
- package/dist/{FmMultiselectDialog-CVNqlp0n.js → FmMultiselectDialog-B3MYE2b7.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-ublLlB16.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DFidOxdU.js} +12 -12
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-MSbWAo1i.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CIKQ6nC1.js} +1 -1
- package/dist/{IngredientGroupView-CgNdkuae.js → IngredientGroupView-91WE1P4g.js} +2 -2
- package/dist/{IngredientsView-Bg9XhCNT.js → IngredientsView-CLZX2W7Y.js} +4 -4
- package/dist/{IntegrationView-DKzLjZig.js → IntegrationView-D8VbNV6H.js} +1009 -1000
- package/dist/{InventoryBindingForm-CZl0uidf.js → InventoryBindingForm-rGVDi4T8.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BhxHbT2g.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Dx4rHyb5.js} +24 -24
- package/dist/{InventoryBindingSummary-BTO2qsNW.js → InventoryBindingSummary-BGLbSQRD.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B4GyfLV-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CJ5FPRac.js} +26 -20
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Cfup6M3u.js → PremiumBadge.vue_vue_type_script_setup_true_lang-qUWKfasI.js} +1 -1
- package/dist/{PublishView-CjmtkaiI.js → PublishView-ClqhWcBu.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-KG9VkV-7.js → PurchaseOrderPrintPreview-s2TN-ZJL.js} +1 -1
- package/dist/{ReceiveRequestView-Og_mkJHQ.js → ReceiveRequestView-0r85gHww.js} +63 -63
- package/dist/{RecipeView-SvMt9zdS.js → RecipeView-FRHv7v2K.js} +4 -4
- package/dist/{StockView-DjO6wmxl.js → StockView-DeE60k1a.js} +7 -7
- package/dist/{SupplierView-CMatOKL0.js → SupplierView-DQSYItBZ.js} +37 -37
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Bm9lLcf5.js +2020 -0
- package/dist/{TransferTemplateView-CNZtqhhI.js → TransferTemplateView-rPjPeB7z.js} +88 -88
- package/dist/UnitView-BLfRD-MZ.js +667 -0
- package/dist/{WarehouseView-C9Yi9nQV.js → WarehouseView-DmzmdKUj.js} +12 -12
- package/dist/api/netsuite.d.ts +3 -0
- package/dist/api/purchase-order.d.ts +1 -1
- package/dist/{app-9KyslrXV.js → app-BmrQUin8.js} +4445 -4396
- package/dist/app.d.ts +1 -0
- package/dist/app.js +1 -1
- package/dist/{decimal-CX0eUEB3.js → decimal-Ba0cFNkn.js} +1 -1
- package/dist/{feature-CmWqoog1.js → feature-CAfGclDp.js} +1856 -965
- package/dist/{format-unit-display-UiaVS36D.js → format-unit-display-6JZPqi0z.js} +29 -29
- package/dist/{index-CKAZMrqi.js → index-0LAqB9Nf.js} +2 -2
- package/dist/{index-BRtGevm6.js → index-Df8rBaGT.js} +4070 -4049
- package/dist/{stock-CT3LESH2.js → stock-Ca2xlSi5.js} +1 -1
- package/dist/{supplier-BrQo7L81.js → supplier-BFRlDSmN.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BLcnX7uY.js → use-ingredient-select-dialog-BleZLcKu.js} +1 -1
- package/dist/{use-inventory-binding-dialog-CegZeDD6.js → use-inventory-binding-dialog-C8-NZufG.js} +1 -1
- package/dist/views/receive-request/components/netsuite/NetSuiteLog.vue.d.ts +17 -0
- package/dist/views/receive-request/components/netsuite/NetSuitePanel.vue.d.ts +21 -0
- package/dist/views/receive-request/components/transfer-details/usePurchaseOrderFn.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +4 -4
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +6 -2
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +6 -6
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +6 -6
- package/dist/views/receive-request/constants/po-action-to-ui-style.d.ts +1 -0
- package/dist/views/unit/components/unit-form/UnitFormProps.d.ts +1 -1
- package/dist/{vue-i18n-C2C5um-s.js → vue-i18n-CLUATIwy.js} +222 -222
- package/package.json +3 -3
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BDbUensL.js +0 -1898
- package/dist/UnitView-D75e_8B3.js +0 -648
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { reactive as vt, onMounted as ze, watch as pe, computed as U, h as j, defineComponent as ne, openBlock as h, createElementBlock as T, Fragment as le, renderList as Ce, createElementVNode as l, toDisplayString as E, unref as t, resolveComponent as I, createVNode as d, withCtx as V, createCommentVNode as B, ref as q, createBlock as Q, normalizeClass as K, normalizeStyle as yt, createTextVNode as Fe, nextTick as St, mergeProps as Ke, isRef as ke, createSlots as Ft, Teleport as $t, normalizeProps as Dt, guardReactiveProps as It } from "vue";
|
|
2
|
-
import { b as Be,
|
|
3
|
-
import { u as
|
|
4
|
-
import { _ as kt, u as
|
|
2
|
+
import { b as Be, J as bt, l as Pe, i as xe, a1 as Qe, K as Tt, ao as Vt, A as Ne, M as Rt, m as gt, a8 as Xe, E as de, af as Pt, a as Le, ap as Et, aq as At, ar as qt, G as _t, u as Ze, as as Ut, at as Mt, a0 as Ot, V as Nt, au as zt, C as ht, X as Bt, d as Re, w as Lt, x as Ht, y as jt, av as Oe, a2 as dt, z as Yt, _ as Kt, B as Qt, N as mt } from "./app-BmrQUin8.js";
|
|
3
|
+
import { u as Ge, a as Xt, P as Ye, b as Zt, _ as Gt, g as Jt } from "./TransferDetails.vue_vue_type_script_setup_true_lang-Bm9lLcf5.js";
|
|
4
|
+
import { _ as kt, u as Wt, i as es, e as ts } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-qUWKfasI.js";
|
|
5
5
|
import { u as ss } from "./useTabStorage-BkIVScW_.js";
|
|
6
|
-
import { useBreakpoints as
|
|
7
|
-
import { P as te, u as Ct } from "./format-unit-display-
|
|
8
|
-
import { _ as ls, F as ns, a as rs, b as is } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as
|
|
10
|
-
import { c as ye, u as us, _ as ds } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { useBreakpoints as Je, components as ce, FmButtonVariant as os, useSnackbar as $e, useDialog as as, useProxiedModel as xt } from "@feedmepos/ui-library";
|
|
7
|
+
import { P as te, u as Ct } from "./format-unit-display-6JZPqi0z.js";
|
|
8
|
+
import { _ as ls, F as ns, a as rs, b as is } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DFidOxdU.js";
|
|
9
|
+
import { u as We } from "./feature-CAfGclDp.js";
|
|
10
|
+
import { c as ye, u as us, _ as ds } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D8iQyzaJ.js";
|
|
11
11
|
import { useI18n as fe } from "@feedmepos/mf-common";
|
|
12
|
-
import "./FmMultiselectDialog-
|
|
13
|
-
import { u as et } from "./supplier-
|
|
12
|
+
import "./FmMultiselectDialog-B3MYE2b7.js";
|
|
13
|
+
import { u as et } from "./supplier-BFRlDSmN.js";
|
|
14
14
|
import { _ as ms } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
15
|
-
import { u as cs } from "./vue-i18n-
|
|
15
|
+
import { u as cs } from "./vue-i18n-CLUATIwy.js";
|
|
16
16
|
import "./array-Ca8T3f_G.js";
|
|
17
17
|
var Z = /* @__PURE__ */ ((b) => (b.Code = "Code", b.Name = "Name", b.TemplateName = "TemplateName", b.Amount = "Amount", b.Cost = "Cost", b.TotalCost = "TotalCost", b.Delete = "Delete", b))(Z || {});
|
|
18
18
|
const ps = () => (fe(), j(
|
|
@@ -24,7 +24,7 @@ const ps = () => (fe(), j(
|
|
|
24
24
|
`Total (${gt()})`
|
|
25
25
|
));
|
|
26
26
|
function fs(b) {
|
|
27
|
-
const { t: x } = fe(), n = vt({}), { breakpoints: r } =
|
|
27
|
+
const { t: x } = fe(), n = vt({}), { breakpoints: r } = Je(), g = We(), e = Be();
|
|
28
28
|
ze(() => {
|
|
29
29
|
for (const i of b.items) {
|
|
30
30
|
if (!i.totalCost)
|
|
@@ -579,7 +579,7 @@ const Ps = {
|
|
|
579
579
|
},
|
|
580
580
|
emits: ["update:poItems"],
|
|
581
581
|
setup(b, { emit: x }) {
|
|
582
|
-
const n = x, r = q(!1), g = q(7), e =
|
|
582
|
+
const n = x, r = q(!1), g = q(7), e = Wt(), u = $e(), C = Le(), { t: F } = fe();
|
|
583
583
|
async function i() {
|
|
584
584
|
if (g.value < 1)
|
|
585
585
|
return;
|
|
@@ -694,7 +694,7 @@ const Ps = {
|
|
|
694
694
|
}
|
|
695
695
|
});
|
|
696
696
|
function Qs() {
|
|
697
|
-
const b = $e(), x =
|
|
697
|
+
const b = $e(), x = Ge(), n = q(!1);
|
|
698
698
|
pe(n, (u) => {
|
|
699
699
|
u && (g.value = !0, r().finally(() => {
|
|
700
700
|
g.value = !1;
|
|
@@ -738,7 +738,7 @@ function Qs() {
|
|
|
738
738
|
comparePriceBySku: e
|
|
739
739
|
};
|
|
740
740
|
}
|
|
741
|
-
const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 },
|
|
741
|
+
const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }, Gs = ["colspan"], Js = /* @__PURE__ */ ne({
|
|
742
742
|
__name: "TransferItemTable",
|
|
743
743
|
props: {
|
|
744
744
|
templateItem: {},
|
|
@@ -787,12 +787,12 @@ const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }
|
|
|
787
787
|
d(wt, {
|
|
788
788
|
prices: n.comparePriceBySku[(e = n.row.original.sku) == null ? void 0 : e._id]
|
|
789
789
|
}, null, 8, ["prices"])
|
|
790
|
-
], 8,
|
|
790
|
+
], 8, Gs)
|
|
791
791
|
])) : B("", !0)
|
|
792
792
|
], 64);
|
|
793
793
|
};
|
|
794
794
|
}
|
|
795
|
-
}),
|
|
795
|
+
}), Ws = {
|
|
796
796
|
key: 0,
|
|
797
797
|
class: "flex flex-col gap-8"
|
|
798
798
|
}, eo = { class: "flex flex-col gap-4" }, to = { class: "flex items-center gap-4" }, so = {
|
|
@@ -868,7 +868,7 @@ const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }
|
|
|
868
868
|
});
|
|
869
869
|
return (s, a) => {
|
|
870
870
|
const p = I("FmLabel"), m = I("FmIcon"), c = I("FmField"), S = I("FmTooltip");
|
|
871
|
-
return t(n).isEnabled && r.required ? (h(), T("div",
|
|
871
|
+
return t(n).isEnabled && r.required ? (h(), T("div", Ws, [
|
|
872
872
|
d(p, {
|
|
873
873
|
label: `NetSuite ${t(e)("inventory.transfer.form.netsuite.subsidiary")}`
|
|
874
874
|
}, null, 8, ["label"]),
|
|
@@ -929,7 +929,7 @@ const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }
|
|
|
929
929
|
},
|
|
930
930
|
emits: ["validation-success", "form:ready"],
|
|
931
931
|
setup(b, { expose: x, emit: n }) {
|
|
932
|
-
const r = b, g = n, e = _t(), { t: u } = fe(), C = Ze(), F = Le(), i = Be(), s = et(), a =
|
|
932
|
+
const r = b, g = n, e = _t(), { t: u } = fe(), C = Ze(), F = Le(), i = Be(), s = et(), a = We(), p = Ct(), { breakpoints: m } = Je(), c = U(() => m.value.xs || m.value.sm), S = vt({
|
|
933
933
|
value: !1
|
|
934
934
|
}), _ = q(!1), $ = U(
|
|
935
935
|
() => {
|
|
@@ -1063,31 +1063,31 @@ const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }
|
|
|
1063
1063
|
function Ae() {
|
|
1064
1064
|
var ve, De, Ue, Me, Ie;
|
|
1065
1065
|
const o = (Ue = (De = (ve = $.value) == null ? void 0 : ve.purchaseOrder) == null ? void 0 : De.items) == null ? void 0 : Ue.groupBy((N) => N.sku._id), f = i.isEnabled ? i.getAvailableItems((Ie = (Me = e.netSuite) == null ? void 0 : Me.subsidiary) == null ? void 0 : Ie.id) : [], M = o != null && o.size ? F.skus.filter((N) => o.has(N._id)) : F.skus, re = i.isEnabled ? M.filter((N) => {
|
|
1066
|
-
var ee,
|
|
1067
|
-
const
|
|
1066
|
+
var ee, J, ae, ue;
|
|
1067
|
+
const G = (J = (ee = $.value) == null ? void 0 : ee.purchaseOrder) == null ? void 0 : J.items.find(
|
|
1068
1068
|
(me) => me.sku._id === N._id
|
|
1069
1069
|
);
|
|
1070
|
-
if (
|
|
1070
|
+
if (G != null && G.measurement != null) {
|
|
1071
1071
|
const me = i.getAvailableMeasurements(
|
|
1072
|
-
|
|
1072
|
+
G.sku._id,
|
|
1073
1073
|
(ue = (ae = e.netSuite) == null ? void 0 : ae.subsidiary) == null ? void 0 : ue.id
|
|
1074
1074
|
);
|
|
1075
|
-
return f.includes(
|
|
1075
|
+
return f.includes(G.sku._id) && me.includes(G.measurement.id);
|
|
1076
1076
|
}
|
|
1077
1077
|
return f.includes(N._id);
|
|
1078
1078
|
}).map((N) => N._id) : M.map((N) => N._id), ie = M.map(
|
|
1079
1079
|
(N) => {
|
|
1080
|
-
var
|
|
1080
|
+
var G, ee, J, ae;
|
|
1081
1081
|
return {
|
|
1082
|
-
label: ((ee = (
|
|
1083
|
-
sublabel: ((ae = (
|
|
1082
|
+
label: ((ee = (G = o == null ? void 0 : o.get(N._id)) == null ? void 0 : G[0]) == null ? void 0 : ee.name) ?? N.name,
|
|
1083
|
+
sublabel: ((ae = (J = o == null ? void 0 : o.get(N._id)) == null ? void 0 : J[0]) == null ? void 0 : ae.code) ?? N.code,
|
|
1084
1084
|
value: N,
|
|
1085
1085
|
disabled: !re.includes(N._id)
|
|
1086
1086
|
};
|
|
1087
1087
|
}
|
|
1088
1088
|
), _e = ie.filter((N) => {
|
|
1089
|
-
var
|
|
1090
|
-
return (
|
|
1089
|
+
var G;
|
|
1090
|
+
return (G = e.items) == null ? void 0 : G.find((ee) => ee.sku._id === N.value._id);
|
|
1091
1091
|
}).map((N) => N.value);
|
|
1092
1092
|
L.open({
|
|
1093
1093
|
title: u("inventory.transfer.form.items.selectItem"),
|
|
@@ -1108,17 +1108,17 @@ const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }
|
|
|
1108
1108
|
variant: "tertiary"
|
|
1109
1109
|
}
|
|
1110
1110
|
}).onPrimary((N) => {
|
|
1111
|
-
const
|
|
1111
|
+
const G = e.items ?? [], ee = N.map((J) => {
|
|
1112
1112
|
var me, Te;
|
|
1113
|
-
const ae =
|
|
1113
|
+
const ae = G.find((he) => he.sku._id === J._id);
|
|
1114
1114
|
if (ae)
|
|
1115
1115
|
return ae;
|
|
1116
1116
|
const ue = ((Te = (me = $.value) == null ? void 0 : me.purchaseOrder.items) == null ? void 0 : Te.find(
|
|
1117
|
-
(he) => he.sku._id ===
|
|
1117
|
+
(he) => he.sku._id === J._id
|
|
1118
1118
|
)) ?? {
|
|
1119
|
-
sku:
|
|
1120
|
-
code:
|
|
1121
|
-
name:
|
|
1119
|
+
sku: J,
|
|
1120
|
+
code: J.code,
|
|
1121
|
+
name: J.name,
|
|
1122
1122
|
quantity: {
|
|
1123
1123
|
amount: 1,
|
|
1124
1124
|
precision: 0
|
|
@@ -1133,7 +1133,7 @@ const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }
|
|
|
1133
1133
|
}
|
|
1134
1134
|
)), ue;
|
|
1135
1135
|
});
|
|
1136
|
-
ee.sort((
|
|
1136
|
+
ee.sort((J, ae) => J.sku.code.localeCompare(ae.sku.code)), e.items = ee;
|
|
1137
1137
|
});
|
|
1138
1138
|
}
|
|
1139
1139
|
function He(o) {
|
|
@@ -1154,7 +1154,7 @@ const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }
|
|
|
1154
1154
|
});
|
|
1155
1155
|
return (o, f) => {
|
|
1156
1156
|
var me, Te;
|
|
1157
|
-
const M = I("FmChip"), re = I("FmLabel"), ie = I("FmIcon"), _e = I("FmField"), ve = I("FmTooltip"), De = I("FmSelect"), Ue = I("FmTextField"), Me = I("FmTextarea"), Ie = I("FmSwitch"), N = I("FmDatePicker"),
|
|
1157
|
+
const M = I("FmChip"), re = I("FmLabel"), ie = I("FmIcon"), _e = I("FmField"), ve = I("FmTooltip"), De = I("FmSelect"), Ue = I("FmTextField"), Me = I("FmTextarea"), Ie = I("FmSwitch"), N = I("FmDatePicker"), G = I("FmTimePicker"), ee = I("FmFormGroup"), J = I("FmButton"), ae = I("FmTable"), ue = I("FmForm");
|
|
1158
1158
|
return h(), T("div", ao, [
|
|
1159
1159
|
l("div", lo, [
|
|
1160
1160
|
(me = r.modelValue) != null && me.template ? (h(), Q(M, {
|
|
@@ -1256,7 +1256,7 @@ const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }
|
|
|
1256
1256
|
}, null, 8, ["color"]),
|
|
1257
1257
|
l("div", {
|
|
1258
1258
|
class: K({ "text-fm-color-typo-disabled": o.disabled })
|
|
1259
|
-
}, E((D = Y.value.find((
|
|
1259
|
+
}, E((D = Y.value.find((W) => W.value === O.value)) == null ? void 0 : D.label), 3)
|
|
1260
1260
|
])
|
|
1261
1261
|
];
|
|
1262
1262
|
}),
|
|
@@ -1294,11 +1294,11 @@ const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }
|
|
|
1294
1294
|
items: Y.value
|
|
1295
1295
|
}, {
|
|
1296
1296
|
"menu-wrapper": V((D) => {
|
|
1297
|
-
var
|
|
1297
|
+
var W, Ve;
|
|
1298
1298
|
return [
|
|
1299
1299
|
d(ds, Ke(D, {
|
|
1300
1300
|
items: Y.value,
|
|
1301
|
-
"model-value": (Ve = (
|
|
1301
|
+
"model-value": (Ve = (W = o.modelValue) == null ? void 0 : W.supplier) == null ? void 0 : Ve._id
|
|
1302
1302
|
}), null, 16, ["items", "model-value"])
|
|
1303
1303
|
];
|
|
1304
1304
|
}),
|
|
@@ -1310,7 +1310,7 @@ const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }
|
|
|
1310
1310
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
1311
1311
|
o.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
1312
1312
|
])
|
|
1313
|
-
}, E((D = Y.value.find((
|
|
1313
|
+
}, E((D = Y.value.find((W) => W.value === O.value)) == null ? void 0 : D.label), 3)
|
|
1314
1314
|
];
|
|
1315
1315
|
}),
|
|
1316
1316
|
_: 1
|
|
@@ -1337,8 +1337,8 @@ const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }
|
|
|
1337
1337
|
supplier: t(e).supplier,
|
|
1338
1338
|
setting: t(e).netSuite,
|
|
1339
1339
|
items: t(e).items,
|
|
1340
|
-
onChange: (D,
|
|
1341
|
-
t(e).items = D, t(e).netSuite =
|
|
1340
|
+
onChange: (D, W) => {
|
|
1341
|
+
t(e).items = D, t(e).netSuite = W;
|
|
1342
1342
|
},
|
|
1343
1343
|
"onNetsuite:ready": f[4] || (f[4] = (D) => {
|
|
1344
1344
|
S.value = !0;
|
|
@@ -1372,7 +1372,7 @@ const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }
|
|
|
1372
1372
|
}, null, 8, ["modelValue"])
|
|
1373
1373
|
]),
|
|
1374
1374
|
l("div", go, [
|
|
1375
|
-
d(
|
|
1375
|
+
d(G, {
|
|
1376
1376
|
modelValue: t(k),
|
|
1377
1377
|
"onUpdate:modelValue": f[7] || (f[7] = (D) => ke(k) ? k.value = D : null)
|
|
1378
1378
|
}, null, 8, ["modelValue"])
|
|
@@ -1412,7 +1412,7 @@ const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }
|
|
|
1412
1412
|
}, [
|
|
1413
1413
|
l("div", xo, E(t(u)("inventory.transfer.form.items.title")), 1),
|
|
1414
1414
|
l("div", Co, [
|
|
1415
|
-
d(
|
|
1415
|
+
d(J, {
|
|
1416
1416
|
disabled: o.disabled,
|
|
1417
1417
|
label: t(u)("inventory.transfer.form.items.addItem"),
|
|
1418
1418
|
"prepend-icon": "add",
|
|
@@ -1471,13 +1471,13 @@ const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }
|
|
|
1471
1471
|
"page-size": t(e).items.length
|
|
1472
1472
|
}, {
|
|
1473
1473
|
"table-row": V((D) => {
|
|
1474
|
-
var
|
|
1474
|
+
var W, Ve, it, ut;
|
|
1475
1475
|
return [
|
|
1476
|
-
d(
|
|
1476
|
+
d(Js, {
|
|
1477
1477
|
"compare-price-by-sku": t(oe),
|
|
1478
1478
|
"show-compare-price": P.value === t(te).PURCHASE && t(z),
|
|
1479
1479
|
row: D,
|
|
1480
|
-
"template-item": (ut = (it = (Ve = (
|
|
1480
|
+
"template-item": (ut = (it = (Ve = (W = o.modelValue) == null ? void 0 : W.templateDoc) == null ? void 0 : Ve.purchaseOrder) == null ? void 0 : it.items) == null ? void 0 : ut.find(
|
|
1481
1481
|
(je) => je.sku._id === D.original.sku._id
|
|
1482
1482
|
),
|
|
1483
1483
|
"onUpdate:item": f[13] || (f[13] = (je) => we.value.updateItem(je)),
|
|
@@ -1488,14 +1488,14 @@ const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }
|
|
|
1488
1488
|
"list-row": V((D) => [
|
|
1489
1489
|
(h(), Q(ht, {
|
|
1490
1490
|
row: D,
|
|
1491
|
-
key: t(e).items.map((
|
|
1491
|
+
key: t(e).items.map((W) => W.sku._id).join(".")
|
|
1492
1492
|
}, {
|
|
1493
|
-
default: V((
|
|
1493
|
+
default: V((W) => [
|
|
1494
1494
|
d(Vs, {
|
|
1495
1495
|
"compare-price-by-sku": t(oe),
|
|
1496
1496
|
"show-compare-price": P.value === t(te).PURCHASE && t(z),
|
|
1497
1497
|
row: D,
|
|
1498
|
-
"cell-by-col-id":
|
|
1498
|
+
"cell-by-col-id": W
|
|
1499
1499
|
}, null, 8, ["compare-price-by-sku", "show-compare-price", "row", "cell-by-col-id"])
|
|
1500
1500
|
]),
|
|
1501
1501
|
_: 2
|
|
@@ -1523,7 +1523,7 @@ const Xs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Zs = { key: 0 }
|
|
|
1523
1523
|
emits: ["update:show", "submitted"],
|
|
1524
1524
|
setup(b, { expose: x, emit: n }) {
|
|
1525
1525
|
var X;
|
|
1526
|
-
const r = b, g = n, e =
|
|
1526
|
+
const r = b, g = n, e = Ge(), u = Ct(), C = $e(), F = et(), i = Le(), s = Ze(), { t: a } = fe(), p = q(!1), m = q(!1), c = q(!1);
|
|
1527
1527
|
async function S(y) {
|
|
1528
1528
|
if (y) {
|
|
1529
1529
|
m.value = !1;
|
|
@@ -1902,13 +1902,13 @@ const Ro = exports.FfCalculator, Po = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
1902
1902
|
}), Yo = { class: "flex flex-col gap-24" }, Ko = {
|
|
1903
1903
|
key: 0,
|
|
1904
1904
|
class: "flex items-center gap-8"
|
|
1905
|
-
}, Qo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xo = { class: "flex flex-col gap-8" }, Zo = { class: "line-clamp-2 text-ellipsis break-all" },
|
|
1905
|
+
}, Qo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xo = { class: "flex flex-col gap-8" }, Zo = { class: "line-clamp-2 text-ellipsis break-all" }, Go = {
|
|
1906
1906
|
key: 2,
|
|
1907
1907
|
class: "shrink-0"
|
|
1908
|
-
},
|
|
1908
|
+
}, Jo = {
|
|
1909
1909
|
key: 0,
|
|
1910
1910
|
class: "flex flex-col"
|
|
1911
|
-
},
|
|
1911
|
+
}, Wo = { class: "text-fm-color-system-error-300 fm-typo-en-body-sm-400" }, ea = {
|
|
1912
1912
|
key: 0,
|
|
1913
1913
|
class: "max-h-[200px] overflow-y-auto flex flex-col gap-8"
|
|
1914
1914
|
}, ta = { class: "fm-typo-en-body-lg-600" }, pt = "Transfer note", sa = /* @__PURE__ */ ne({
|
|
@@ -2113,7 +2113,7 @@ const Ro = exports.FfCalculator, Po = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2113
2113
|
}, [
|
|
2114
2114
|
l("div", Zo, E(n.value.name), 1)
|
|
2115
2115
|
], 2),
|
|
2116
|
-
g.value ? B("", !0) : (h(), T("div",
|
|
2116
|
+
g.value ? B("", !0) : (h(), T("div", Go, [
|
|
2117
2117
|
d(H, {
|
|
2118
2118
|
label: t(_)("inventory.ingredient.import.replaceFile"),
|
|
2119
2119
|
variant: c.value ? "destructive" : "secondary",
|
|
@@ -2122,7 +2122,7 @@ const Ro = exports.FfCalculator, Po = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2122
2122
|
}, null, 8, ["label", "variant", "prepend-icon", "onClick"])
|
|
2123
2123
|
]))
|
|
2124
2124
|
], 2),
|
|
2125
|
-
p.value.length ? (h(), T("div",
|
|
2125
|
+
p.value.length ? (h(), T("div", Jo, [
|
|
2126
2126
|
(h(!0), T(le, null, Ce(p.value, (k, z) => (h(), T("div", {
|
|
2127
2127
|
key: z,
|
|
2128
2128
|
class: "flex gap-8 items-center"
|
|
@@ -2132,7 +2132,7 @@ const Ro = exports.FfCalculator, Po = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2132
2132
|
size: "sm",
|
|
2133
2133
|
color: "system-error-300"
|
|
2134
2134
|
}),
|
|
2135
|
-
l("div",
|
|
2135
|
+
l("div", Wo, E(k), 1)
|
|
2136
2136
|
]))), 128))
|
|
2137
2137
|
])) : B("", !0)
|
|
2138
2138
|
])
|
|
@@ -2164,7 +2164,7 @@ const Ro = exports.FfCalculator, Po = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2164
2164
|
},
|
|
2165
2165
|
emits: ["update:show", "submitted"],
|
|
2166
2166
|
setup(b, { expose: x, emit: n }) {
|
|
2167
|
-
const r = n, e = xt(b, "show"), u = $e(), C =
|
|
2167
|
+
const r = n, e = xt(b, "show"), u = $e(), C = Ge(), F = q(!1), i = q(), s = q();
|
|
2168
2168
|
x({
|
|
2169
2169
|
validateInputs: () => {
|
|
2170
2170
|
var m, c;
|
|
@@ -2291,7 +2291,7 @@ const Ro = exports.FfCalculator, Po = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2291
2291
|
});
|
|
2292
2292
|
const r = U(
|
|
2293
2293
|
() => !a._currentLocation || i.loading.value
|
|
2294
|
-
), g = ss(), e =
|
|
2294
|
+
), g = ss(), e = We();
|
|
2295
2295
|
function u() {
|
|
2296
2296
|
const R = {
|
|
2297
2297
|
name: "",
|
|
@@ -2320,7 +2320,7 @@ const Ro = exports.FfCalculator, Po = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2320
2320
|
(O) => O.items.map((A) => {
|
|
2321
2321
|
var se;
|
|
2322
2322
|
const H = new Date(es(O._id) ?? ""), X = O.effectiveAt ? new Date(O.effectiveAt) : void 0, y = xe(
|
|
2323
|
-
|
|
2323
|
+
Jt(A.sku, O.deliveryOrder || [])
|
|
2324
2324
|
), k = xe(A.quantity), z = ((se = A == null ? void 0 : A.measurement) == null ? void 0 : se.abbrev) || A.sku.unit.abbrev;
|
|
2325
2325
|
return {
|
|
2326
2326
|
"SKU code": A.code,
|
|
@@ -2390,7 +2390,7 @@ const Ro = exports.FfCalculator, Po = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2390
2390
|
if (R === "export")
|
|
2391
2391
|
return p();
|
|
2392
2392
|
}
|
|
2393
|
-
const { breakpoints: _ } =
|
|
2393
|
+
const { breakpoints: _ } = Je(), $ = U(() => _.value.xs || _.value.sm), v = U(() => $.value ? 10 : 20), w = Yt(), L = U(() => [
|
|
2394
2394
|
{
|
|
2395
2395
|
label: x("inventory.transfer.receiveRequest.actions.create"),
|
|
2396
2396
|
value: "create",
|
|
@@ -2497,7 +2497,7 @@ const Ro = exports.FfCalculator, Po = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2497
2497
|
d(Io, Ke(t(i).transferDialogProps.value, {
|
|
2498
2498
|
onSubmitted: t(i).fetchData
|
|
2499
2499
|
}), null, 16, ["onSubmitted"]),
|
|
2500
|
-
d(
|
|
2500
|
+
d(Gt, Ke({
|
|
2501
2501
|
scope: t(Ye).RECEIVE_REQUEST
|
|
2502
2502
|
}, t(i).transferDetailsProps.value, {
|
|
2503
2503
|
onSubmitted: t(i).fetchData
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as K, ref as E, onMounted as re, resolveComponent as $, openBlock as F, createElementBlock as B, Fragment as ie, createElementVNode as h, toDisplayString as ue, createVNode as g, createCommentVNode as O, computed as k, watch as ce, createBlock as N, withCtx as P, unref as b, isRef as ee, 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 Q, S as ye, f as ge, D as te, h as j, i as U, F as H, l as be, U as _e, A as we, p as ne, q as Re, s as he, r as xe, u as Se, z as Ve, _ as Ce, B as Ee, C as Fe, E as oe } from "./app-
|
|
2
|
+
import { a as A, d as V, e as Q, S as ye, f as ge, D as te, h as j, i as U, F as H, l as be, U as _e, A as we, p as ne, q as Re, s as he, r as xe, u as Se, z as Ve, _ as Ce, B as Ee, C as Fe, E as oe } from "./app-BmrQUin8.js";
|
|
3
3
|
import { useDialog as $e, useSnackbar as se, useProxiedModel as ae, useBreakpoints as ke } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Ie, _ as De } 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-CIKQ6nC1.js";
|
|
6
6
|
import { defineStore as Ae, storeToRefs as Be } from "pinia";
|
|
7
7
|
import { useI18n as q } from "@feedmepos/mf-common";
|
|
8
|
-
import { _ as Pe } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as Pe } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Dx4rHyb5.js";
|
|
9
9
|
import { _ as Te } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
10
|
-
import { u as Ue } from "./feature-
|
|
10
|
+
import { u as Ue } from "./feature-CAfGclDp.js";
|
|
11
11
|
const Me = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "flex flex-col items-center w-full h-full gap-24"
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineComponent as ie, ref as O, computed as U, resolveComponent as M, openBlock as A, createBlock as Y, withCtx as D, createElementVNode as t, normalizeClass as ge, toDisplayString as h, createVNode as g, createElementBlock as R, Fragment as X, renderList as le, unref as r, h as _e, watch as be, isRef as Ie, createCommentVNode as ne, reactive as at, onMounted as qe, normalizeStyle as Je, createTextVNode as ce, Teleport as rt, normalizeProps as we, mergeProps as $e } from "vue";
|
|
2
|
-
import { u as pe,
|
|
3
|
-
import { u as Pe, a as He } from "./stock-
|
|
4
|
-
import { g as Se } from "./decimal-
|
|
5
|
-
import { e as Dt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as pe, N as lt, e as Te, f as it, a as Ue, F as Le, O as ut, P as Be, i as de, H as ct, t as xe, L as De, A as dt, M as mt, K as fe, Q as pt, T as te, V as vt, W as Ne, l as ft, X as yt, Y as _t, Z as kt, $ as Qe, J as G, a0 as ht, r as Xe, a1 as ke, a2 as gt, a3 as bt, n as Ae, k as ze, o as xt, a4 as St, a5 as Ft, a6 as wt, a7 as $t, a8 as At, z as Ct, _ as Vt, B as Mt, C as Bt, E as Ye } from "./app-BmrQUin8.js";
|
|
3
|
+
import { u as Pe, a as He } from "./stock-Ca2xlSi5.js";
|
|
4
|
+
import { g as Se } from "./decimal-Ba0cFNkn.js";
|
|
5
|
+
import { e as Dt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-qUWKfasI.js";
|
|
6
6
|
import { _ as je, S as Ce, g as tt } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
|
|
7
7
|
import { _ as jt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
8
8
|
import { useI18n as ue, useCoreStore as It } from "@feedmepos/mf-common";
|
|
9
9
|
import { useSnackbar as ye, useDialog as nt, useProxiedModel as Ee, useBreakpoints as Tt } from "@feedmepos/ui-library";
|
|
10
10
|
import { defineStore as Ut } from "pinia";
|
|
11
|
-
import { u as Pt } from "./use-inventory-binding-dialog-
|
|
12
|
-
import { _ as Ht } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { u as Pt } from "./use-inventory-binding-dialog-C8-NZufG.js";
|
|
12
|
+
import { _ as Ht } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CJ5FPRac.js";
|
|
13
13
|
import { E as Et } from "./empty-placeholder-wf6-BWE8.js";
|
|
14
14
|
import "./array-Ca8T3f_G.js";
|
|
15
|
-
import { u as Rt } from "./feature-
|
|
15
|
+
import { u as Rt } from "./feature-CAfGclDp.js";
|
|
16
16
|
var he = /* @__PURE__ */ ((f) => (f.History = "History", f.Convert = "Convert", f.Adjust = "Adjust", f))(he || {});
|
|
17
17
|
const Ot = [
|
|
18
18
|
{
|