@feedmepos/mf-inventory-portal 1.2.12-dev.2 → 1.2.12
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-T4sL7Sy4.js → App-CP0Qx_82.js} +40 -44
- package/dist/{ApprovalView-CfmNwkYs.js → ApprovalView-D8_PzEpZ.js} +30 -30
- package/dist/{BindingsDialog-DDYAQsNs.js → BindingsDialog-BbpKhb0L.js} +2 -2
- package/dist/{BindingsPicker-CXZhlZ4b.js → BindingsPicker-DzDxisHj.js} +1 -1
- package/dist/{BindingsTable-LQ59h-NA.js → BindingsTable-DCXXSY8e.js} +1 -1
- package/dist/{ClosingDraftView-B1J4RCvY.js → ClosingDraftView-CkF-9An8.js} +129 -129
- package/dist/{ClosingTemplateView-6NoqcDMF.js → ClosingTemplateView-Ce1l7n0x.js} +28 -28
- package/dist/{DeliveryOrderPrintPreview--XMB1yg_.js → DeliveryOrderPrintPreview-CFzsECiK.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BXxGymbF.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ZSERZzyn.js} +3 -3
- package/dist/{FmMultiselectDialog-DPPNjHO8.js → FmMultiselectDialog-DP992D0Q.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CSgYZv-j.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CzUvuj_c.js} +45 -45
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-tUefDFh2.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DsYwSn0d.js} +1 -1
- package/dist/{IngredientGroupView-BjtjeGay.js → IngredientGroupView-DUiKKpvF.js} +32 -31
- package/dist/IngredientsView-C3ozIXV8.js +2475 -0
- package/dist/{IntegrationView-D8HiAM5K.js → IntegrationView-CydpIwrf.js} +57 -57
- package/dist/{InventoryBindingForm-DCtBdWkM.js → InventoryBindingForm-BVd2FzOW.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-RxoPehX0.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CYp_JSBb.js} +31 -31
- package/dist/{InventoryBindingSummary-DGLMoDKd.js → InventoryBindingSummary-Dthool-6.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D0ElZcnn.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DR0_Qtyc.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BNm3V8o4.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BLfGb7mm.js} +1 -1
- package/dist/{PublishView-DQcrQkVJ.js → PublishView-BE_aIhZ6.js} +15 -15
- package/dist/{PurchaseOrderPrintPreview-1NMEozJD.js → PurchaseOrderPrintPreview-CGeqqFg-.js} +1 -1
- package/dist/{ReceiveRequestView-BFs8VYre.js → ReceiveRequestView-Bul9Esf1.js} +63 -62
- package/dist/RecipeView-B9AGELV7.js +621 -0
- package/dist/{StockView-B80E0r1r.js → StockView-fpJrx4Bd.js} +166 -165
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CFFDw9Mj.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DeOEgJ1N.js} +1 -1
- package/dist/{SupplierView-E_fX8cgQ.js → SupplierView-cfZTJqef.js} +492 -490
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-m5o77oG-.js +3057 -0
- package/dist/{TransferTemplateView-B-uBdQgp.js → TransferTemplateView-PZ8Mad4D.js} +48 -48
- package/dist/UnitView-C3gJq1Mt.js +667 -0
- package/dist/{WarehouseView-DZSetx-S.js → WarehouseView-CWGQjwJm.js} +32 -32
- package/dist/api/inventory.d.ts +0 -306
- package/dist/api/purchase-order.d.ts +0 -1
- package/dist/{app-CLG8lnmY.js → app-D5PlbdVa.js} +8475 -8810
- package/dist/app.d.ts +0 -169
- package/dist/app.js +1 -1
- package/dist/array-Ca8T3f_G.js +44 -0
- package/dist/{closing-template-CHz79DOu.js → closing-template-C4FizLUw.js} +1 -1
- package/dist/{decimal-BNFgzHyV.js → decimal-Cv7FZ14q.js} +1 -1
- package/dist/{format-unit-display-DYY0F6KV.js → format-unit-display-B0NO6FLh.js} +25 -25
- package/dist/helper/number.d.ts +0 -1
- package/dist/{index-Bu7FmfHi.js → index-BCo2jtpG.js} +1 -1
- package/dist/{index-DiYSFnk1.js → index-DaJ92t7D.js} +1 -1
- package/dist/{purchase-order-template-DtfKTZLV.js → purchase-order-template-DLkR7Mva.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/{stock-RE6RExO9.js → stock-AUSAF9Ij.js} +1 -1
- package/dist/stores/feature.d.ts +0 -2
- package/dist/stores/inventory.d.ts +199 -26
- package/dist/{supplier-DkLAGLl7.js → supplier-DBXoP2UX.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Bg_kT9z-.js → use-ingredient-select-dialog-DZQR6jfi.js} +1 -1
- package/dist/{use-inventory-binding-dialog-CpS4GfwM.js → use-inventory-binding-dialog-8PZ37vLV.js} +1 -1
- package/dist/views/ingredients/helper/import-export.helper.d.ts +1 -3
- package/dist/views/recipe/RecipeView.vue.d.ts +0 -1
- package/dist/views/unit/UnitView.vue.d.ts +0 -1
- package/package.json +1 -1
- package/dist/ImportView-ClHIcxRw.js +0 -1195
- package/dist/IngredientsView-BA6Y-uhX.js +0 -2240
- package/dist/RecipeView-DgF_kShy.js +0 -636
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Bxl2Gege.js +0 -3221
- package/dist/UnitView-DOIy_8oz.js +0 -674
- package/dist/import-export.helper-uZNU9S1q.js +0 -243
- package/dist/views/import/ImportView.vue.d.ts +0 -3
- package/dist/views/import/components/ImportDialog.vue.d.ts +0 -2
- package/dist/views/import/helper/import-export.helper.d.ts +0 -4
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +0 -17
- package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +0 -16
- package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +0 -2
- package/dist/views/recipe/helper/import-recipe.d.ts +0 -48
- package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +0 -12
- package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +0 -6
- package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +0 -9
- package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +0 -5
- package/dist/views/unit/helper/import-export.helper.d.ts +0 -40
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { reactive as gt, onMounted as
|
|
2
|
-
import { b as Ue,
|
|
3
|
-
import { u as st, a as ts, P as Xe, b as ss, _ as os, g as as } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { reactive as gt, onMounted as Ye, watch as ge, computed as N, h as L, defineComponent as ce, openBlock as S, createElementBlock as T, Fragment as de, renderList as Se, createElementVNode as n, toDisplayString as M, unref as s, resolveComponent as $, createVNode as y, withCtx as A, createCommentVNode as j, ref as q, createBlock as W, normalizeClass as J, normalizeStyle as _t, createTextVNode as $e, nextTick as It, mergeProps as Ze, isRef as xe, createSlots as $t, Teleport as Tt, normalizeProps as Dt, guardReactiveProps as Vt } from "vue";
|
|
2
|
+
import { b as Ue, a0 as Ge, c as Je, p as Me, l as Ce, af as Qe, a1 as Pt, aE as Rt, A as qe, M as At, q as ht, am as We, V as fe, av as Et, aF as Ot, aG as Mt, aa as qt, aH as Ut, X as kt, u as et, a as tt, aI as Nt, aJ as Bt, ae as zt, a6 as Lt, aK as Ht, T as xt, v as jt, e as Oe, aL as Qt, G as Yt, J as Kt, K as Xt, aM as je, ag as ft, O as Zt, N as Gt, L as Jt, P as Wt, Q as es, a3 as vt } from "./app-D5PlbdVa.js";
|
|
3
|
+
import { u as st, a as ts, P as Xe, b as ss, _ as os, g as as } from "./TransferDetails.vue_vue_type_script_setup_true_lang-m5o77oG-.js";
|
|
4
|
+
import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-BLfGb7mm.js";
|
|
5
5
|
import { u as is } from "./useTabStorage-BkIVScW_.js";
|
|
6
6
|
import { useBreakpoints as ot, components as be, FmButtonVariant as us, useSnackbar as Te, useDialog as ds, useProxiedModel as St } from "@feedmepos/ui-library";
|
|
7
|
-
import { P as ne, u as wt } from "./format-unit-display-
|
|
8
|
-
import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { c as Ie, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { P as ne, u as wt } from "./format-unit-display-B0NO6FLh.js";
|
|
8
|
+
import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CzUvuj_c.js";
|
|
9
|
+
import { c as Ie, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ZSERZzyn.js";
|
|
10
10
|
import { useI18n as _e } from "@feedmepos/mf-common";
|
|
11
|
-
import "./FmMultiselectDialog-
|
|
12
|
-
import { u as at } from "./supplier-
|
|
11
|
+
import "./FmMultiselectDialog-DP992D0Q.js";
|
|
12
|
+
import { u as at } from "./supplier-DBXoP2UX.js";
|
|
13
13
|
import { _ as bs } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
14
|
+
import "./array-Ca8T3f_G.js";
|
|
14
15
|
var ee = /* @__PURE__ */ ((g) => (g.Code = "Code", g.Name = "Name", g.TemplateName = "TemplateName", g.Amount = "Amount", g.Cost = "Cost", g.TotalCost = "TotalCost", g.Delete = "Delete", g))(ee || {});
|
|
15
16
|
const gs = () => (_e(), L(
|
|
16
17
|
Ct,
|
|
@@ -22,7 +23,7 @@ const gs = () => (_e(), L(
|
|
|
22
23
|
));
|
|
23
24
|
function _s(g) {
|
|
24
25
|
const { t: w } = _e(), r = gt({}), { breakpoints: p } = ot(), x = Je(), t = Ue();
|
|
25
|
-
|
|
26
|
+
Ye(() => {
|
|
26
27
|
for (const v of g.items) {
|
|
27
28
|
if (!v.totalCost)
|
|
28
29
|
continue;
|
|
@@ -270,7 +271,7 @@ function _s(g) {
|
|
|
270
271
|
[
|
|
271
272
|
L(
|
|
272
273
|
"span",
|
|
273
|
-
k ?
|
|
274
|
+
k ? Qe(a) : Ce(a)
|
|
274
275
|
),
|
|
275
276
|
L(
|
|
276
277
|
"span",
|
|
@@ -291,7 +292,7 @@ function _s(g) {
|
|
|
291
292
|
]
|
|
292
293
|
},
|
|
293
294
|
[
|
|
294
|
-
|
|
295
|
+
Qe(i.costPerUnit),
|
|
295
296
|
"/",
|
|
296
297
|
i.measurement ? L(
|
|
297
298
|
"span",
|
|
@@ -424,7 +425,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
424
425
|
class: "flex flex-col w-[150px] xs:flex-1 text-ellipsis cursor-pointer"
|
|
425
426
|
}, [
|
|
426
427
|
n("div", Cs, [
|
|
427
|
-
n("span", null, M(F.totalCost ? s(
|
|
428
|
+
n("span", null, M(F.totalCost ? s(Qe)(F.totalCost) : "No data"), 1),
|
|
428
429
|
x[0] || (x[0] = n("span", { class: "text-fm-color-typo-secondary" }, "/", -1)),
|
|
429
430
|
n("span", null, M(s(Ce)(F.totalUnit, !1)), 1),
|
|
430
431
|
n("span", null, M(((I = F.measurement) == null ? void 0 : I.abbrev) ?? F.unit.abbrev), 1)
|
|
@@ -455,7 +456,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
455
456
|
setup(g) {
|
|
456
457
|
const { t: w } = _e();
|
|
457
458
|
return (r, p) => {
|
|
458
|
-
var f, F, I, v, e, u, k, a, i, h, _, C, l, c, D, B,
|
|
459
|
+
var f, F, I, v, e, u, k, a, i, h, _, C, l, c, D, B, Q, Y, K, O, U, P, d, b, R, X, Z;
|
|
459
460
|
const x = $("FmLabel"), t = $("FmSpacer");
|
|
460
461
|
return S(), T("div", ws, [
|
|
461
462
|
n("div", Fs, [
|
|
@@ -498,7 +499,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
498
499
|
label: s(w)(`inventory.transfer.form.items.table.${s(ee).Amount}`)
|
|
499
500
|
}, null, 8, ["label"]),
|
|
500
501
|
y(s(fe), {
|
|
501
|
-
render: (
|
|
502
|
+
render: (Y = (Q = (B = r.cellByColId[s(ee).Amount]) == null ? void 0 : B.column) == null ? void 0 : Q.columnDef) == null ? void 0 : Y.cell,
|
|
502
503
|
props: (O = (K = r.cellByColId[s(ee).Amount]) == null ? void 0 : K.getContext) == null ? void 0 : O.call(K)
|
|
503
504
|
}, null, 8, ["render", "props"]),
|
|
504
505
|
p[2] || (p[2] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
@@ -611,7 +612,7 @@ const qs = {
|
|
|
611
612
|
}, null, 8, zs)
|
|
612
613
|
]));
|
|
613
614
|
}
|
|
614
|
-
}), Hs = { class: "flex gap-8 items-center" }, js = { class: "fm-typo-en-body-lg-600 line-clamp-1" },
|
|
615
|
+
}), Hs = { class: "flex gap-8 items-center" }, js = { class: "fm-typo-en-body-lg-600 line-clamp-1" }, Qs = { class: "w-[343px] px-24 py-16 rounded-lg shadow-light-300 flex flex-col gap-[20px]" }, Ys = { class: "flex items-center w-full" }, Ks = { class: "flex-1" }, Xs = { class: "fm-typo-en-title-sm-800" }, Zs = { class: "flex items-start gap-8" }, Gs = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Js = { class: "flex gap-1" }, Ws = /* @__PURE__ */ ce({
|
|
615
616
|
__name: "ForecastStock",
|
|
616
617
|
props: {
|
|
617
618
|
templateId: {},
|
|
@@ -672,7 +673,7 @@ const qs = {
|
|
|
672
673
|
}
|
|
673
674
|
const i = r.templateItems.reduce((_, C) => {
|
|
674
675
|
var B;
|
|
675
|
-
const l = (B = r.poItems) == null ? void 0 : B.find((
|
|
676
|
+
const l = (B = r.poItems) == null ? void 0 : B.find((Q) => Q.sku._id === C.sku._id), c = a.find((Q) => Q.id === C.sku._id);
|
|
676
677
|
if (!c)
|
|
677
678
|
return l && _.push(l), _;
|
|
678
679
|
if (!r.templateId && c.amount <= 0) return _;
|
|
@@ -689,15 +690,15 @@ const qs = {
|
|
|
689
690
|
})
|
|
690
691
|
), _;
|
|
691
692
|
}, []), h = a.map((_) => {
|
|
692
|
-
const C = r.templateItems.find((
|
|
693
|
+
const C = r.templateItems.find((Y) => Y.sku._id === _.id);
|
|
693
694
|
let l = _.amount, c = 0;
|
|
694
695
|
if (C != null && C.measurement) {
|
|
695
|
-
const
|
|
696
|
-
l = Math.ceil(_.amount /
|
|
696
|
+
const Y = e(C.measurement.conversion) ?? 1;
|
|
697
|
+
l = Math.ceil(_.amount / Y);
|
|
697
698
|
} else
|
|
698
699
|
l = Math.ceil(_.amount);
|
|
699
|
-
const D = e(C == null ? void 0 : C.minimumQuantity) ?? 0, B = e(C == null ? void 0 : C.maximumQuantity) ?? 1 / 0,
|
|
700
|
-
return { skuId: _.id, amount: l, precision: c, helperState:
|
|
700
|
+
const D = e(C == null ? void 0 : C.minimumQuantity) ?? 0, B = e(C == null ? void 0 : C.maximumQuantity) ?? 1 / 0, Q = l < D || l > B ? "error" : "success";
|
|
701
|
+
return { skuId: _.id, amount: l, precision: c, helperState: Q };
|
|
701
702
|
});
|
|
702
703
|
p("update:poItems", i), p("update:forecastAmounts", h);
|
|
703
704
|
}
|
|
@@ -731,8 +732,8 @@ const qs = {
|
|
|
731
732
|
}, 8, ["text-color", "border-color", "disabled"])
|
|
732
733
|
]),
|
|
733
734
|
default: A(() => [
|
|
734
|
-
n("div",
|
|
735
|
-
n("div",
|
|
735
|
+
n("div", Qs, [
|
|
736
|
+
n("div", Ys, [
|
|
736
737
|
n("div", Ks, [
|
|
737
738
|
y(bs, { "z-index": 99 }, {
|
|
738
739
|
default: A(() => [
|
|
@@ -903,7 +904,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
903
904
|
emits: ["netsuite:ready"],
|
|
904
905
|
setup(g, { emit: w }) {
|
|
905
906
|
const r = Ue(), p = g, x = w, { t } = Ut(), f = q(!1), F = q();
|
|
906
|
-
|
|
907
|
+
Ye(() => {
|
|
907
908
|
var u, k, a, i;
|
|
908
909
|
let e = {
|
|
909
910
|
id: "",
|
|
@@ -1066,7 +1067,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1066
1067
|
throw new Error("Unable to resolve supplier from template");
|
|
1067
1068
|
}
|
|
1068
1069
|
}
|
|
1069
|
-
}),
|
|
1070
|
+
}), Ye(() => {
|
|
1070
1071
|
var o;
|
|
1071
1072
|
try {
|
|
1072
1073
|
const m = I.skuById;
|
|
@@ -1084,7 +1085,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1084
1085
|
F.watchLocation(async () => {
|
|
1085
1086
|
location && (t.supplier || (t.supplier = e.suppliers.find((o) => o) ?? t.supplier));
|
|
1086
1087
|
});
|
|
1087
|
-
const
|
|
1088
|
+
const Q = ds(), Y = vs(
|
|
1088
1089
|
() => t,
|
|
1089
1090
|
(o) => {
|
|
1090
1091
|
Object.assign(t, o);
|
|
@@ -1099,7 +1100,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1099
1100
|
set(o) {
|
|
1100
1101
|
var E;
|
|
1101
1102
|
const m = typeof ((E = t == null ? void 0 : t.supplier) == null ? void 0 : E.internal) == "string" ? ne.TRANSFER : ne.PURCHASE;
|
|
1102
|
-
o !== m && (t.supplier = o === ne.PURCHASE ?
|
|
1103
|
+
o !== m && (t.supplier = o === ne.PURCHASE ? Y.locationOptionsTypePurchase.value[0] : Y.locationOptionsTypeTransfer.value[0]);
|
|
1103
1104
|
}
|
|
1104
1105
|
});
|
|
1105
1106
|
ge(
|
|
@@ -1110,7 +1111,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1110
1111
|
(o) => {
|
|
1111
1112
|
u.mustUsePoTemplate && !o && It(() => {
|
|
1112
1113
|
var m, E;
|
|
1113
|
-
t.supplier = ((E = (m =
|
|
1114
|
+
t.supplier = ((E = (m = Y.locationOptionsTypeTransfer.value) == null ? void 0 : m.filter(
|
|
1114
1115
|
(H) => H.internal === "restaurant"
|
|
1115
1116
|
)) == null ? void 0 : E[0]) ?? t.supplier;
|
|
1116
1117
|
});
|
|
@@ -1118,7 +1119,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1118
1119
|
{ immediate: !0 }
|
|
1119
1120
|
);
|
|
1120
1121
|
const O = N(() => {
|
|
1121
|
-
let o =
|
|
1122
|
+
let o = Y.transferLocationOptions.value;
|
|
1122
1123
|
return u.mustUsePoTemplate && !t.template && (o = o.filter((m) => {
|
|
1123
1124
|
var E;
|
|
1124
1125
|
return (E = m.sublabel) == null ? void 0 : E.startsWith("restaurant");
|
|
@@ -1129,7 +1130,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1129
1130
|
return (o = t.supplier) == null ? void 0 : o._id;
|
|
1130
1131
|
},
|
|
1131
1132
|
set(o) {
|
|
1132
|
-
|
|
1133
|
+
Y.transferLocationModel.value = o;
|
|
1133
1134
|
}
|
|
1134
1135
|
}), P = N({
|
|
1135
1136
|
get() {
|
|
@@ -1222,7 +1223,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1222
1223
|
var te;
|
|
1223
1224
|
return (te = t.items) == null ? void 0 : te.find((ae) => ae.sku._id === z.value._id);
|
|
1224
1225
|
}).map((z) => z.value);
|
|
1225
|
-
|
|
1226
|
+
Q.open({
|
|
1226
1227
|
title: f("inventory.transfer.form.items.selectItem"),
|
|
1227
1228
|
closeButton: !0,
|
|
1228
1229
|
contentComponent: jt,
|
|
@@ -1737,22 +1738,22 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1737
1738
|
return u("inventory.transfer.receiveRequest.update.title");
|
|
1738
1739
|
}
|
|
1739
1740
|
return "";
|
|
1740
|
-
}),
|
|
1741
|
+
}), Q = q();
|
|
1741
1742
|
w({
|
|
1742
1743
|
validateInputs: () => {
|
|
1743
1744
|
var d, b;
|
|
1744
|
-
(b = (d =
|
|
1745
|
+
(b = (d = Q.value) == null ? void 0 : d.validateInputs) == null || b.call(d);
|
|
1745
1746
|
},
|
|
1746
1747
|
resetInputsValidation: () => {
|
|
1747
1748
|
var d, b;
|
|
1748
|
-
(b = (d =
|
|
1749
|
+
(b = (d = Q.value) == null ? void 0 : d.resetInputsValidation) == null || b.call(d);
|
|
1749
1750
|
},
|
|
1750
1751
|
resetInputs: () => {
|
|
1751
1752
|
var d, b;
|
|
1752
|
-
(b = (d =
|
|
1753
|
+
(b = (d = Q.value) == null ? void 0 : d.resetInputs) == null || b.call(d);
|
|
1753
1754
|
}
|
|
1754
1755
|
});
|
|
1755
|
-
async function
|
|
1756
|
+
async function Y() {
|
|
1756
1757
|
const d = l.value;
|
|
1757
1758
|
if (k.value = !0, d.items = d.items.filter((b) => b.quantity.amount > 0), !d.items.length) {
|
|
1758
1759
|
F.open({
|
|
@@ -1809,14 +1810,14 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1809
1810
|
function O() {
|
|
1810
1811
|
switch (p.mode) {
|
|
1811
1812
|
case Oe.CREATE:
|
|
1812
|
-
return
|
|
1813
|
+
return Y();
|
|
1813
1814
|
case Oe.UPDATE:
|
|
1814
1815
|
return K();
|
|
1815
1816
|
}
|
|
1816
1817
|
}
|
|
1817
1818
|
function U() {
|
|
1818
1819
|
var R, X;
|
|
1819
|
-
const d =
|
|
1820
|
+
const d = Qt.validatePurchaseOrderItems({
|
|
1820
1821
|
skusById: v.skuById ?? {},
|
|
1821
1822
|
items: l.value.items ?? []
|
|
1822
1823
|
}), b = Object.values(d).flat();
|
|
@@ -1829,7 +1830,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1829
1830
|
});
|
|
1830
1831
|
return;
|
|
1831
1832
|
}
|
|
1832
|
-
(X = (R =
|
|
1833
|
+
(X = (R = Q.value) == null ? void 0 : R.validateInputs) == null || X.call(R);
|
|
1833
1834
|
}
|
|
1834
1835
|
return (d, b) => {
|
|
1835
1836
|
const R = $("FmButton"), X = $("FmSideSheet");
|
|
@@ -1849,7 +1850,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1849
1850
|
(S(), W(Vo, {
|
|
1850
1851
|
class: "w-full",
|
|
1851
1852
|
ref_key: "formRef",
|
|
1852
|
-
ref:
|
|
1853
|
+
ref: Q,
|
|
1853
1854
|
"onForm:ready": b[0] || (b[0] = () => i.value = !0),
|
|
1854
1855
|
onValidationSuccess: O,
|
|
1855
1856
|
modelValue: l.value,
|
|
@@ -1883,7 +1884,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1883
1884
|
}
|
|
1884
1885
|
});
|
|
1885
1886
|
function Oo(g) {
|
|
1886
|
-
const [w, r, p, ...x] =
|
|
1887
|
+
const [w, r, p, ...x] = Yt(g), t = p.map((v) => v.toLowerCase().trim().replace(/ /g, "_")), F = ["item_name", "transfer_quantity(uom)", "uom", "scanned_code"].filter((v) => !t.includes(v));
|
|
1887
1888
|
if (F.length)
|
|
1888
1889
|
throw new Error(
|
|
1889
1890
|
`Missing headers (${F.join()}). Excel file does not come from the template.`
|
|
@@ -1957,7 +1958,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
1957
1958
|
class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
|
|
1958
1959
|
}, zo = { key: 0 }, Lo = {
|
|
1959
1960
|
class: /* @__PURE__ */ J(["fm-typo-en-body-lg-600"])
|
|
1960
|
-
}, Ho = { class: "flex-1" }, jo = { class: "flex-auto line-clamp-2 text-ellipsis break-all fm-typo-en-body-sm-400" },
|
|
1961
|
+
}, Ho = { class: "flex-1" }, jo = { class: "flex-auto line-clamp-2 text-ellipsis break-all fm-typo-en-body-sm-400" }, Qo = { class: "flex-auto line-clamp-2 text-ellipsis break-all" }, Yo = { class: "text-fm-color-typo-primary" }, Ko = { class: "ml-auto" }, Xo = { key: 0 }, Zo = /* @__PURE__ */ ce({
|
|
1961
1962
|
__name: "XilnexResult",
|
|
1962
1963
|
props: {
|
|
1963
1964
|
type: {},
|
|
@@ -2020,13 +2021,13 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2020
2021
|
"z-index": 51
|
|
2021
2022
|
}, {
|
|
2022
2023
|
default: A(() => [
|
|
2023
|
-
n("span",
|
|
2024
|
+
n("span", Qo, M(e.name), 1)
|
|
2024
2025
|
]),
|
|
2025
2026
|
_: 2
|
|
2026
2027
|
}, 1032, ["content"])
|
|
2027
2028
|
]),
|
|
2028
2029
|
n("div", null, [
|
|
2029
|
-
n("span",
|
|
2030
|
+
n("span", Yo, M(s(Ge).toFormatString({
|
|
2030
2031
|
value: e.quantity
|
|
2031
2032
|
})), 1),
|
|
2032
2033
|
$e(" " + M(e.measurement ? e.measurement.abbrev : e.sku.unit.abbrev), 1)
|
|
@@ -2097,7 +2098,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2097
2098
|
});
|
|
2098
2099
|
}
|
|
2099
2100
|
});
|
|
2100
|
-
|
|
2101
|
+
Ye(async () => {
|
|
2101
2102
|
const l = await I.getNetSuiteLocations();
|
|
2102
2103
|
console.log(l), F.value = !0;
|
|
2103
2104
|
});
|
|
@@ -2107,8 +2108,8 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2107
2108
|
},
|
|
2108
2109
|
set(l) {
|
|
2109
2110
|
if (l) {
|
|
2110
|
-
const c = f.effectiveAt ? new Date(f.effectiveAt) : /* @__PURE__ */ new Date(), [D, B,
|
|
2111
|
-
c.setFullYear(parseInt(D)), c.setMonth(parseInt(B) - 1), c.setDate(parseInt(
|
|
2111
|
+
const c = f.effectiveAt ? new Date(f.effectiveAt) : /* @__PURE__ */ new Date(), [D, B, Q] = l.split("-");
|
|
2112
|
+
c.setFullYear(parseInt(D)), c.setMonth(parseInt(B) - 1), c.setDate(parseInt(Q)), f.effectiveAt = c.toISOString();
|
|
2112
2113
|
}
|
|
2113
2114
|
}
|
|
2114
2115
|
}), u = N({
|
|
@@ -2175,7 +2176,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2175
2176
|
return ge(r, (l) => {
|
|
2176
2177
|
l && C(l);
|
|
2177
2178
|
}), (l, c) => {
|
|
2178
|
-
const D = $("FmSelect"), B = $("FmDatePicker"),
|
|
2179
|
+
const D = $("FmSelect"), B = $("FmDatePicker"), Q = $("FmTimePicker"), Y = $("FmCircularProgress"), K = $("FmLabel"), O = $("FmIcon"), U = $("FmButton"), P = $("FmForm");
|
|
2179
2180
|
return S(), W(P, {
|
|
2180
2181
|
ref_key: "formRef",
|
|
2181
2182
|
ref: h
|
|
@@ -2205,7 +2206,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2205
2206
|
label: "Transfer date",
|
|
2206
2207
|
rules: [s(Me)()]
|
|
2207
2208
|
}, null, 8, ["modelValue", "rules"]),
|
|
2208
|
-
y(
|
|
2209
|
+
y(Q, {
|
|
2209
2210
|
modelValue: u.value,
|
|
2210
2211
|
"onUpdate:modelValue": c[2] || (c[2] = (d) => u.value = d),
|
|
2211
2212
|
label: "Transfer time",
|
|
@@ -2213,7 +2214,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2213
2214
|
}, null, 8, ["modelValue", "rules"]),
|
|
2214
2215
|
t.value ? (S(), T("div", Jo, [
|
|
2215
2216
|
n("div", null, [
|
|
2216
|
-
y(
|
|
2217
|
+
y(Y, {
|
|
2217
2218
|
size: "md",
|
|
2218
2219
|
color: "neutral-gray-200"
|
|
2219
2220
|
})
|
|
@@ -2251,7 +2252,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2251
2252
|
}
|
|
2252
2253
|
])
|
|
2253
2254
|
}, [
|
|
2254
|
-
x.value ? (S(), W(
|
|
2255
|
+
x.value ? (S(), W(Y, {
|
|
2255
2256
|
key: 0,
|
|
2256
2257
|
size: "md",
|
|
2257
2258
|
color: "neutral-gray-200"
|
|
@@ -2439,7 +2440,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2439
2440
|
}), da = { class: "flex flex-col py-8" }, ca = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ma = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, pa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, fa = {
|
|
2440
2441
|
key: 0,
|
|
2441
2442
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
2442
|
-
}, va = { class: "pt-8" }, bt = "ReceiveRequestViewSearchCriteria",
|
|
2443
|
+
}, va = { class: "pt-8" }, bt = "ReceiveRequestViewSearchCriteria", Da = /* @__PURE__ */ ce({
|
|
2443
2444
|
__name: "ReceiveRequestView",
|
|
2444
2445
|
setup(g) {
|
|
2445
2446
|
const { t: w } = _e(), r = Te();
|
|
@@ -2493,7 +2494,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2493
2494
|
"Received quantity": Z,
|
|
2494
2495
|
"Ordered quantity": he,
|
|
2495
2496
|
Unit: ke,
|
|
2496
|
-
"Total cost": b.totalCost ?
|
|
2497
|
+
"Total cost": b.totalCost ? Qe(b.totalCost) : null
|
|
2497
2498
|
};
|
|
2498
2499
|
})
|
|
2499
2500
|
), P = [
|
|
@@ -2571,7 +2572,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2571
2572
|
label: w("inventory.common.export"),
|
|
2572
2573
|
value: "export"
|
|
2573
2574
|
}
|
|
2574
|
-
]),
|
|
2575
|
+
]), Q = N(() => {
|
|
2575
2576
|
const O = [
|
|
2576
2577
|
{
|
|
2577
2578
|
type: "string",
|
|
@@ -2611,10 +2612,10 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2611
2612
|
}
|
|
2612
2613
|
];
|
|
2613
2614
|
return [...O, ...f.isEnabled ? U : []];
|
|
2614
|
-
}),
|
|
2615
|
-
if (!
|
|
2615
|
+
}), Y = q(null), K = N(() => {
|
|
2616
|
+
if (!Y.value)
|
|
2616
2617
|
return e.purchaseOrders.value;
|
|
2617
|
-
const O = Gt.build(
|
|
2618
|
+
const O = Gt.build(Y.value);
|
|
2618
2619
|
return e.purchaseOrders.value.filter((U) => {
|
|
2619
2620
|
var P, d, b, R;
|
|
2620
2621
|
return Jt(
|
|
@@ -2656,9 +2657,9 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2656
2657
|
search: h.value,
|
|
2657
2658
|
"onUpdate:search": U[1] || (U[1] = (R) => h.value = R),
|
|
2658
2659
|
filterable: "",
|
|
2659
|
-
"filter-attributes":
|
|
2660
|
-
filter:
|
|
2661
|
-
"onUpdate:filter": U[2] || (U[2] = (R) =>
|
|
2660
|
+
"filter-attributes": Q.value,
|
|
2661
|
+
filter: Y.value,
|
|
2662
|
+
"onUpdate:filter": U[2] || (U[2] = (R) => Y.value = R)
|
|
2662
2663
|
}, null, 8, ["date-range", "search", "filter-attributes", "filter"]),
|
|
2663
2664
|
(S(), W(P, {
|
|
2664
2665
|
style: _t(s(D).tableHeight),
|
|
@@ -2736,5 +2737,5 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2736
2737
|
}
|
|
2737
2738
|
});
|
|
2738
2739
|
export {
|
|
2739
|
-
|
|
2740
|
+
Da as default
|
|
2740
2741
|
};
|