@feedmepos/mf-inventory-portal 1.2.2 → 1.2.4-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-CJcHE7SO.js → App-CdweYGJb.js} +1 -1
- package/dist/{ApprovalView-BdZJkIr1.js → ApprovalView-N5aTAawv.js} +8 -8
- package/dist/{BindingsDialog-MWca_bmU.js → BindingsDialog-CF43nBIL.js} +2 -2
- package/dist/{BindingsPicker-BoBmsimf.js → BindingsPicker-UXffTvIT.js} +1 -1
- package/dist/{BindingsTable-QBDWp4j9.js → BindingsTable-bGEdChlq.js} +1 -1
- package/dist/{ClosingDraftView-CyAhtevG.js → ClosingDraftView-CU6ncRGd.js} +93 -93
- package/dist/{ClosingTemplateView-B26aUQk_.js → ClosingTemplateView-B7hlv-ol.js} +17 -17
- package/dist/{DeliveryOrderPrintPreview-CxE7zXQu.js → DeliveryOrderPrintPreview-BHsASpvc.js} +7 -7
- package/dist/{FmAdminBadge-BodsgRyK.js → FmAdminBadge-phxApe08.js} +3 -3
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CsjT5AZ0.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CQi8T-o4.js} +11 -11
- package/dist/{FmMultiselectDialog-sRLyNp7M.js → FmMultiselectDialog-Cw7978N9.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-9s0vqpVr.js → FmUnitInput.vue_vue_type_script_setup_true_lang-m_DVEWZp.js} +24 -24
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DYxW0unH.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CK2uHzWs.js} +1 -1
- package/dist/{IngredientGroupView-Ctk4HYE6.js → IngredientGroupView-BLlM22XE.js} +31 -31
- package/dist/{IngredientsView-dtDwA_D5.js → IngredientsView-D-MLnQUs.js} +689 -671
- package/dist/{IntegrationView-CJK4FoWD.js → IntegrationView-DS8GfDcu.js} +299 -297
- package/dist/{InventoryBindingForm-f4FJY7WU.js → InventoryBindingForm-Cxl3010v.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BCRie802.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DVytESGu.js} +39 -39
- package/dist/{InventoryBindingSummary-C3xrP0g7.js → InventoryBindingSummary-BPLbgkdU.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CegSNvou.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D6G0tvu8.js} +4 -4
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BldOmlfF.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DIgC7Vso.js} +1 -1
- package/dist/{PublishView-bOQCoZjJ.js → PublishView-C7M3-gQh.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-DpSX1kkc.js → PurchaseOrderPrintPreview-ZhFYuurj.js} +6 -6
- package/dist/{ReceiveRequestView-cyfbwDOt.js → ReceiveRequestView-BCdKPhsr.js} +110 -110
- package/dist/{RecipeView-N4FN3GYa.js → RecipeView-DUmXQOxV.js} +19 -19
- package/dist/{StockView-CBF3sxnP.js → StockView-BcxAyI7w.js} +135 -135
- package/dist/{SupplierView-NiBkcSkm.js → SupplierView-q04_80bh.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CetqKDir.js → TransferDetails.vue_vue_type_script_setup_true_lang-CBFgpKee.js} +6 -6
- package/dist/{TransferTemplateView-BvG3PQr1.js → TransferTemplateView-Cfcu-qeJ.js} +57 -57
- package/dist/{UnitView-DNk7uGXP.js → UnitView-BAPZkTQp.js} +27 -27
- package/dist/{WarehouseView-CcP_C-f5.js → WarehouseView-9AkOoqZV.js} +8 -8
- package/dist/{app-D7pUBlkb.js → app-Bcq0U90V.js} +9806 -9756
- package/dist/app.js +1 -1
- package/dist/composable/defineApi.d.ts +1 -1
- package/dist/{decimal-Dt_QQfvw.js → decimal-Dhnp84Mk.js} +1 -1
- package/dist/{format-unit-display-BcBpuzq_.js → format-unit-display-X0is3zJN.js} +57 -57
- package/dist/{index-CNxvakYX.js → index-Bb9d1Qcc.js} +1 -1
- package/dist/{index-Bao9EhFU.js → index-CnqZ1tak.js} +1 -1
- package/dist/{stock-BipLzZlr.js → stock-DcD5Tbqe.js} +1 -1
- package/dist/{supplier-Bi1zyqXc.js → supplier-njZB-A08.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B_an8zOX.js → use-ingredient-select-dialog-CFxbHyQu.js} +1 -1
- package/dist/{use-inventory-binding-dialog-nf05eODU.js → use-inventory-binding-dialog-CtvdrDNH.js} +1 -1
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +157 -12
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
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 Qe, 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 I, createVNode as y, withCtx as A, createCommentVNode as j, ref as q, createBlock as W, normalizeClass as J, normalizeStyle as _t, createTextVNode as Ie, nextTick as $t, mergeProps as Ze, isRef as xe, createSlots as It, Teleport as Tt, normalizeProps as Dt, guardReactiveProps as Vt } from "vue";
|
|
2
|
+
import { b as Ue, T as Ge, c as Je, n as Me, j as Ce, ab as Ye, V as Pt, az as Rt, A as qe, M as At, o as ht, ai as We, J as fe, ar as Et, aA as Ot, aB as Mt, a6 as qt, aC as Ut, L as kt, u as et, a as tt, aD as Nt, aE as Bt, aa as zt, a1 as Lt, aF as Ht, G as xt, a3 as jt, e as Oe, aG as Yt, y as Qt, z as Kt, B as Xt, aH as je, ac as ft, C as Zt, N as Gt, H as Jt, _ as Wt, E as es, X as vt } from "./app-Bcq0U90V.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-CBFgpKee.js";
|
|
4
|
+
import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-DIgC7Vso.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 $e, 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-X0is3zJN.js";
|
|
8
|
+
import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-m_DVEWZp.js";
|
|
9
|
+
import { c as $e, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CQi8T-o4.js";
|
|
10
10
|
import { useI18n as _e } from "@feedmepos/mf-common";
|
|
11
|
-
import "./FmMultiselectDialog-
|
|
12
|
-
import { u as at } from "./supplier-
|
|
11
|
+
import "./FmMultiselectDialog-Cw7978N9.js";
|
|
12
|
+
import { u as at } from "./supplier-njZB-A08.js";
|
|
13
13
|
import { _ as bs } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
14
14
|
import "./array-Ca8T3f_G.js";
|
|
15
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 || {});
|
|
@@ -22,8 +22,8 @@ const gs = () => (_e(), L(
|
|
|
22
22
|
`Total (${ht()})`
|
|
23
23
|
));
|
|
24
24
|
function _s(g) {
|
|
25
|
-
const { t: w } = _e(), r = gt({}), { breakpoints: p } = ot(), x =
|
|
26
|
-
|
|
25
|
+
const { t: w } = _e(), r = gt({}), { breakpoints: p } = ot(), x = Je(), t = Ue();
|
|
26
|
+
Qe(() => {
|
|
27
27
|
for (const v of g.items) {
|
|
28
28
|
if (!v.totalCost)
|
|
29
29
|
continue;
|
|
@@ -271,7 +271,7 @@ function _s(g) {
|
|
|
271
271
|
[
|
|
272
272
|
L(
|
|
273
273
|
"span",
|
|
274
|
-
k ?
|
|
274
|
+
k ? Ye(a) : Ce(a)
|
|
275
275
|
),
|
|
276
276
|
L(
|
|
277
277
|
"span",
|
|
@@ -292,7 +292,7 @@ function _s(g) {
|
|
|
292
292
|
]
|
|
293
293
|
},
|
|
294
294
|
[
|
|
295
|
-
|
|
295
|
+
Ye(i.costPerUnit),
|
|
296
296
|
"/",
|
|
297
297
|
i.measurement ? L(
|
|
298
298
|
"span",
|
|
@@ -425,7 +425,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
425
425
|
class: "flex flex-col w-[150px] xs:flex-1 text-ellipsis cursor-pointer"
|
|
426
426
|
}, [
|
|
427
427
|
n("div", Cs, [
|
|
428
|
-
n("span", null, M(F.totalCost ? s(
|
|
428
|
+
n("span", null, M(F.totalCost ? s(Ye)(F.totalCost) : "No data"), 1),
|
|
429
429
|
x[0] || (x[0] = n("span", { class: "text-fm-color-typo-secondary" }, "/", -1)),
|
|
430
430
|
n("span", null, M(s(Ce)(F.totalUnit, !1)), 1),
|
|
431
431
|
n("span", null, M((($ = F.measurement) == null ? void 0 : $.abbrev) ?? F.unit.abbrev), 1)
|
|
@@ -433,7 +433,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
433
433
|
n("div", Ss, [
|
|
434
434
|
n("span", null, "(#" + M(F.seqNumber) + ")", 1),
|
|
435
435
|
x[1] || (x[1] = n("span", null, M(" "), -1)),
|
|
436
|
-
n("span", null, M(s(
|
|
436
|
+
n("span", null, M(s(We)(new Date(F.date))), 1)
|
|
437
437
|
])
|
|
438
438
|
]);
|
|
439
439
|
}), 128))
|
|
@@ -456,7 +456,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
456
456
|
setup(g) {
|
|
457
457
|
const { t: w } = _e();
|
|
458
458
|
return (r, p) => {
|
|
459
|
-
var f, F, $, v, e, u, k, a, i, h, _, C, l, c, D, B,
|
|
459
|
+
var f, F, $, v, e, u, k, a, i, h, _, C, l, c, D, B, Y, Q, K, O, U, P, d, b, R, X, Z;
|
|
460
460
|
const x = I("FmLabel"), t = I("FmSpacer");
|
|
461
461
|
return S(), T("div", ws, [
|
|
462
462
|
n("div", Fs, [
|
|
@@ -499,7 +499,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
499
499
|
label: s(w)(`inventory.transfer.form.items.table.${s(ee).Amount}`)
|
|
500
500
|
}, null, 8, ["label"]),
|
|
501
501
|
y(s(fe), {
|
|
502
|
-
render: (
|
|
502
|
+
render: (Q = (Y = (B = r.cellByColId[s(ee).Amount]) == null ? void 0 : B.column) == null ? void 0 : Y.columnDef) == null ? void 0 : Q.cell,
|
|
503
503
|
props: (O = (K = r.cellByColId[s(ee).Amount]) == null ? void 0 : K.getContext) == null ? void 0 : O.call(K)
|
|
504
504
|
}, null, 8, ["render", "props"]),
|
|
505
505
|
p[2] || (p[2] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
@@ -548,7 +548,7 @@ function Ms(g) {
|
|
|
548
548
|
}
|
|
549
549
|
}), p = N({
|
|
550
550
|
get() {
|
|
551
|
-
return w.value === null ? "" :
|
|
551
|
+
return w.value === null ? "" : We(w.value);
|
|
552
552
|
},
|
|
553
553
|
set(t) {
|
|
554
554
|
t ? w.value = /* @__PURE__ */ new Date(`${t} ${x.value}`) : w.value = null;
|
|
@@ -612,7 +612,7 @@ const qs = {
|
|
|
612
612
|
}, null, 8, zs)
|
|
613
613
|
]));
|
|
614
614
|
}
|
|
615
|
-
}), 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" }, Ys = { class: "w-[343px] px-24 py-16 rounded-lg shadow-light-300 flex flex-col gap-[20px]" }, Qs = { 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({
|
|
616
616
|
__name: "ForecastStock",
|
|
617
617
|
props: {
|
|
618
618
|
templateId: {},
|
|
@@ -673,7 +673,7 @@ const qs = {
|
|
|
673
673
|
}
|
|
674
674
|
const i = r.templateItems.reduce((_, C) => {
|
|
675
675
|
var B;
|
|
676
|
-
const l = (B = r.poItems) == null ? void 0 : B.find((
|
|
676
|
+
const l = (B = r.poItems) == null ? void 0 : B.find((Y) => Y.sku._id === C.sku._id), c = a.find((Y) => Y.id === C.sku._id);
|
|
677
677
|
if (!c)
|
|
678
678
|
return l && _.push(l), _;
|
|
679
679
|
if (!r.templateId && c.amount <= 0) return _;
|
|
@@ -690,21 +690,21 @@ const qs = {
|
|
|
690
690
|
})
|
|
691
691
|
), _;
|
|
692
692
|
}, []), h = a.map((_) => {
|
|
693
|
-
const C = r.templateItems.find((
|
|
693
|
+
const C = r.templateItems.find((Q) => Q.sku._id === _.id);
|
|
694
694
|
let l = _.amount, c = 0;
|
|
695
695
|
if (C != null && C.measurement) {
|
|
696
|
-
const
|
|
697
|
-
l = Math.ceil(_.amount /
|
|
696
|
+
const Q = e(C.measurement.conversion) ?? 1;
|
|
697
|
+
l = Math.ceil(_.amount / Q);
|
|
698
698
|
} else
|
|
699
699
|
l = Math.ceil(_.amount);
|
|
700
|
-
const D = e(C == null ? void 0 : C.minimumQuantity) ?? 0, B = e(C == null ? void 0 : C.maximumQuantity) ?? 1 / 0,
|
|
701
|
-
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, Y = l < D || l > B ? "error" : "success";
|
|
701
|
+
return { skuId: _.id, amount: l, precision: c, helperState: Y };
|
|
702
702
|
});
|
|
703
703
|
p("update:poItems", i), p("update:forecastAmounts", h);
|
|
704
704
|
}
|
|
705
705
|
return (a, i) => {
|
|
706
706
|
const h = I("FmButton"), _ = I("FmIcon"), C = I("FmStepperField"), l = I("FmPopover");
|
|
707
|
-
return S(),
|
|
707
|
+
return S(), W(l, {
|
|
708
708
|
disabled: a.disabled,
|
|
709
709
|
class: "flex",
|
|
710
710
|
"show-popover": x.value,
|
|
@@ -732,8 +732,8 @@ const qs = {
|
|
|
732
732
|
}, 8, ["text-color", "border-color", "disabled"])
|
|
733
733
|
]),
|
|
734
734
|
default: A(() => [
|
|
735
|
-
n("div",
|
|
736
|
-
n("div",
|
|
735
|
+
n("div", Ys, [
|
|
736
|
+
n("div", Qs, [
|
|
737
737
|
n("div", Ks, [
|
|
738
738
|
y(bs, { "z-index": 99 }, {
|
|
739
739
|
default: A(() => [
|
|
@@ -767,7 +767,7 @@ const qs = {
|
|
|
767
767
|
]),
|
|
768
768
|
_: 1
|
|
769
769
|
}, 8, ["modelValue", "label", "rules"]),
|
|
770
|
-
n("div",
|
|
770
|
+
n("div", Js, [
|
|
771
771
|
i[4] || (i[4] = n("div", { class: "grow" }, null, -1)),
|
|
772
772
|
y(h, {
|
|
773
773
|
label: s($)("common.cancel"),
|
|
@@ -849,7 +849,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
849
849
|
var x, t;
|
|
850
850
|
return S(), T(de, null, [
|
|
851
851
|
n("tr", {
|
|
852
|
-
class:
|
|
852
|
+
class: J(["border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm", {
|
|
853
853
|
"bg-fm-color-neutral-gray-100": r.row.getIsSelected()
|
|
854
854
|
}])
|
|
855
855
|
}, [
|
|
@@ -857,7 +857,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
857
857
|
var F, $, v, e;
|
|
858
858
|
return S(), T("td", {
|
|
859
859
|
key: f.id,
|
|
860
|
-
class:
|
|
860
|
+
class: J(["h-[56px] text-fm-color-typo-primary", ((F = w(f)) == null ? void 0 : F.cellClass) ?? "px-16"]),
|
|
861
861
|
style: _t({
|
|
862
862
|
width: ($ = w(f)) == null ? void 0 : $.width,
|
|
863
863
|
maxWidth: (v = w(f)) == null ? void 0 : v.maxWidth,
|
|
@@ -904,7 +904,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
904
904
|
emits: ["netsuite:ready"],
|
|
905
905
|
setup(g, { emit: w }) {
|
|
906
906
|
const r = Ue(), p = g, x = w, { t } = Ut(), f = q(!1), F = q();
|
|
907
|
-
|
|
907
|
+
Qe(() => {
|
|
908
908
|
var u, k, a, i;
|
|
909
909
|
let e = {
|
|
910
910
|
id: "",
|
|
@@ -986,7 +986,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
986
986
|
color: e.disabled ? "neutral-gray-200" : "neutral-gray-400"
|
|
987
987
|
}, null, 8, ["color"]),
|
|
988
988
|
n("div", {
|
|
989
|
-
class:
|
|
989
|
+
class: J([e.disabled ? "text-fm-color-typo-disabled" : ""])
|
|
990
990
|
}, M((_ = $.value) == null ? void 0 : _.fullName), 3)
|
|
991
991
|
])
|
|
992
992
|
];
|
|
@@ -1022,7 +1022,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1022
1022
|
},
|
|
1023
1023
|
emits: ["validation-success", "form:ready"],
|
|
1024
1024
|
setup(g, { expose: w, emit: r }) {
|
|
1025
|
-
const p = g, x = r, t = kt(), { t: f } = _e(), F = et(), $ = tt(), v = Ue(), e = at(), u =
|
|
1025
|
+
const p = g, x = r, t = kt(), { t: f } = _e(), F = et(), $ = tt(), v = Ue(), e = at(), u = Je(), k = wt(), { breakpoints: a } = ot(), i = N(() => a.value.xs || a.value.sm), h = gt({
|
|
1026
1026
|
value: !1
|
|
1027
1027
|
}), _ = q(!1), C = q(0), l = q([]), c = N(
|
|
1028
1028
|
() => {
|
|
@@ -1066,7 +1066,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1066
1066
|
throw new Error("Unable to resolve supplier from template");
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
1069
|
-
}),
|
|
1069
|
+
}), Qe(() => {
|
|
1070
1070
|
var o;
|
|
1071
1071
|
try {
|
|
1072
1072
|
const m = $.skuById;
|
|
@@ -1084,7 +1084,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1084
1084
|
F.watchLocation(async () => {
|
|
1085
1085
|
location && (t.supplier || (t.supplier = e.suppliers.find((o) => o) ?? t.supplier));
|
|
1086
1086
|
});
|
|
1087
|
-
const
|
|
1087
|
+
const Y = ds(), Q = vs(
|
|
1088
1088
|
() => t,
|
|
1089
1089
|
(o) => {
|
|
1090
1090
|
Object.assign(t, o);
|
|
@@ -1099,7 +1099,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1099
1099
|
set(o) {
|
|
1100
1100
|
var E;
|
|
1101
1101
|
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 ?
|
|
1102
|
+
o !== m && (t.supplier = o === ne.PURCHASE ? Q.locationOptionsTypePurchase.value[0] : Q.locationOptionsTypeTransfer.value[0]);
|
|
1103
1103
|
}
|
|
1104
1104
|
});
|
|
1105
1105
|
ge(
|
|
@@ -1110,7 +1110,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1110
1110
|
(o) => {
|
|
1111
1111
|
u.mustUsePoTemplate && !o && $t(() => {
|
|
1112
1112
|
var m, E;
|
|
1113
|
-
t.supplier = ((E = (m =
|
|
1113
|
+
t.supplier = ((E = (m = Q.locationOptionsTypeTransfer.value) == null ? void 0 : m.filter(
|
|
1114
1114
|
(H) => H.internal === "restaurant"
|
|
1115
1115
|
)) == null ? void 0 : E[0]) ?? t.supplier;
|
|
1116
1116
|
});
|
|
@@ -1118,7 +1118,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1118
1118
|
{ immediate: !0 }
|
|
1119
1119
|
);
|
|
1120
1120
|
const O = N(() => {
|
|
1121
|
-
let o =
|
|
1121
|
+
let o = Q.transferLocationOptions.value;
|
|
1122
1122
|
return u.mustUsePoTemplate && !t.template && (o = o.filter((m) => {
|
|
1123
1123
|
var E;
|
|
1124
1124
|
return (E = m.sublabel) == null ? void 0 : E.startsWith("restaurant");
|
|
@@ -1129,7 +1129,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1129
1129
|
return (o = t.supplier) == null ? void 0 : o._id;
|
|
1130
1130
|
},
|
|
1131
1131
|
set(o) {
|
|
1132
|
-
|
|
1132
|
+
Q.transferLocationModel.value = o;
|
|
1133
1133
|
}
|
|
1134
1134
|
}), P = N({
|
|
1135
1135
|
get() {
|
|
@@ -1222,7 +1222,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1222
1222
|
var te;
|
|
1223
1223
|
return (te = t.items) == null ? void 0 : te.find((ae) => ae.sku._id === z.value._id);
|
|
1224
1224
|
}).map((z) => z.value);
|
|
1225
|
-
|
|
1225
|
+
Y.open({
|
|
1226
1226
|
title: f("inventory.transfer.form.items.selectItem"),
|
|
1227
1227
|
closeButton: !0,
|
|
1228
1228
|
contentComponent: jt,
|
|
@@ -1310,7 +1310,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1310
1310
|
const E = I("FmChip"), H = I("FmLabel"), le = I("FmIcon"), me = I("FmField"), G = I("FmTooltip"), re = I("FmSelect"), Fe = I("FmTextField"), He = I("FmTextarea"), Re = I("FmSwitch"), z = I("FmDatePicker"), te = I("FmTimePicker"), ae = I("FmFormGroup"), se = I("FmButton"), ue = I("FmTable"), pe = I("FmForm");
|
|
1311
1311
|
return S(), T("div", co, [
|
|
1312
1312
|
n("div", mo, [
|
|
1313
|
-
(ve = p.modelValue) != null && ve.template ? (S(),
|
|
1313
|
+
(ve = p.modelValue) != null && ve.template ? (S(), W(E, {
|
|
1314
1314
|
key: 0,
|
|
1315
1315
|
variant: o.disabled ? "warning" : void 0,
|
|
1316
1316
|
label: `${s(f)("inventory.transfer.template.title")}: ${((Ae = c.value) == null ? void 0 : Ae.name) ?? s(f)("inventory.transfer.form.loading")}`,
|
|
@@ -1322,9 +1322,9 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1322
1322
|
icon: "storefront",
|
|
1323
1323
|
compact: ""
|
|
1324
1324
|
}, null, 8, ["label"]),
|
|
1325
|
-
o.lastClosingDate ? (S(),
|
|
1325
|
+
o.lastClosingDate ? (S(), W(E, {
|
|
1326
1326
|
key: 1,
|
|
1327
|
-
label: `${s(f)("inventory.transfer.form.lastClosing")}: ${s(
|
|
1327
|
+
label: `${s(f)("inventory.transfer.form.lastClosing")}: ${s(We)(o.lastClosingDate)} ${s(zt)(o.lastClosingDate)}`,
|
|
1328
1328
|
icon: "calendar_month",
|
|
1329
1329
|
compact: ""
|
|
1330
1330
|
}, null, 8, ["label"])) : j("", !0)
|
|
@@ -1366,7 +1366,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1366
1366
|
color: o.disabled ? "neutral-gray-200" : "neutral-gray-400"
|
|
1367
1367
|
}, null, 8, ["color"]),
|
|
1368
1368
|
n("div", {
|
|
1369
|
-
class:
|
|
1369
|
+
class: J({ "text-fm-color-typo-disabled": o.disabled })
|
|
1370
1370
|
}, M(s(f)(`inventory.transfer.form.type.${K.value.toLocaleLowerCase("en-us")}`)), 3)
|
|
1371
1371
|
])
|
|
1372
1372
|
]),
|
|
@@ -1376,7 +1376,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1376
1376
|
_: 1
|
|
1377
1377
|
}, 8, ["disabled"]),
|
|
1378
1378
|
n("div", {
|
|
1379
|
-
class:
|
|
1379
|
+
class: J([
|
|
1380
1380
|
"fm-typo-en-body-sm-400",
|
|
1381
1381
|
o.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"
|
|
1382
1382
|
])
|
|
@@ -1408,7 +1408,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1408
1408
|
color: o.disabled ? "neutral-gray-200" : "neutral-gray-400"
|
|
1409
1409
|
}, null, 8, ["color"]),
|
|
1410
1410
|
n("div", {
|
|
1411
|
-
class:
|
|
1411
|
+
class: J({ "text-fm-color-typo-disabled": o.disabled })
|
|
1412
1412
|
}, M((V = O.value.find((oe) => oe.value === U.value)) == null ? void 0 : V.label), 3)
|
|
1413
1413
|
])
|
|
1414
1414
|
];
|
|
@@ -1431,7 +1431,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1431
1431
|
}, {
|
|
1432
1432
|
default: A(() => [
|
|
1433
1433
|
n("span", {
|
|
1434
|
-
class:
|
|
1434
|
+
class: J([
|
|
1435
1435
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
1436
1436
|
o.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
1437
1437
|
])
|
|
@@ -1460,7 +1460,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1460
1460
|
var V;
|
|
1461
1461
|
return [
|
|
1462
1462
|
n("span", {
|
|
1463
|
-
class:
|
|
1463
|
+
class: J([
|
|
1464
1464
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
1465
1465
|
o.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
1466
1466
|
])
|
|
@@ -1482,9 +1482,9 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1482
1482
|
"max-length": 240,
|
|
1483
1483
|
modelValue: P.value,
|
|
1484
1484
|
"onUpdate:modelValue": m[3] || (m[3] = (V) => P.value = V),
|
|
1485
|
-
class:
|
|
1485
|
+
class: J([o.disabled ? "text-fm-color-typo-disabled " : ""])
|
|
1486
1486
|
}, null, 8, ["label", "modelValue", "class"]),
|
|
1487
|
-
_.value ? (S(),
|
|
1487
|
+
_.value ? (S(), W(uo, {
|
|
1488
1488
|
key: 2,
|
|
1489
1489
|
required: s(t).template != null,
|
|
1490
1490
|
disabled: o.disabled,
|
|
@@ -1500,7 +1500,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1500
1500
|
}, null, 8, ["required", "disabled", "supplier", "setting", "items", "onChange"])) : j("", !0),
|
|
1501
1501
|
s(u).enableBackdatePo ? (S(), T("div", ko, [
|
|
1502
1502
|
n("div", {
|
|
1503
|
-
class:
|
|
1503
|
+
class: J([
|
|
1504
1504
|
"flex",
|
|
1505
1505
|
{
|
|
1506
1506
|
"flex-col": i.value
|
|
@@ -1516,7 +1516,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1516
1516
|
disabled: B.value && !o.lastClosingDate || o.disabled
|
|
1517
1517
|
}, null, 8, ["modelValue", "label", "sublabel", "disabled"]),
|
|
1518
1518
|
n("div", {
|
|
1519
|
-
class:
|
|
1519
|
+
class: J({ hidden: i.value, "w-16": !i.value })
|
|
1520
1520
|
}, null, 2),
|
|
1521
1521
|
s(b) ? (S(), T("div", xo, [
|
|
1522
1522
|
n("div", Co, [
|
|
@@ -1533,7 +1533,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1533
1533
|
])
|
|
1534
1534
|
])) : j("", !0)
|
|
1535
1535
|
], 2),
|
|
1536
|
-
s(d) ? (S(),
|
|
1536
|
+
s(d) ? (S(), W(ae, {
|
|
1537
1537
|
key: 0,
|
|
1538
1538
|
modelValue: s(d),
|
|
1539
1539
|
"onUpdate:modelValue": m[8] || (m[8] = (V) => xe(d) ? d.value = V : null),
|
|
@@ -1556,7 +1556,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1556
1556
|
rules: [s(qe)(1)]
|
|
1557
1557
|
}, null, 8, ["model-value", "rules"]),
|
|
1558
1558
|
n("div", {
|
|
1559
|
-
class:
|
|
1559
|
+
class: J([
|
|
1560
1560
|
"flex gap-16",
|
|
1561
1561
|
{
|
|
1562
1562
|
"flex-col items-start": i.value,
|
|
@@ -1577,7 +1577,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1577
1577
|
onClick: m[9] || (m[9] = (V) => ze()),
|
|
1578
1578
|
size: "md"
|
|
1579
1579
|
}, null, 8, ["disabled", "label"]),
|
|
1580
|
-
y(
|
|
1580
|
+
y(Ws, {
|
|
1581
1581
|
"template-id": s(t).template || void 0,
|
|
1582
1582
|
"template-items": Le.value,
|
|
1583
1583
|
"po-items": s(t).items,
|
|
@@ -1604,7 +1604,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1604
1604
|
"model-value": Pe.value,
|
|
1605
1605
|
rules: [() => Pe.value ? "Must have at least one non-zero item" : !0]
|
|
1606
1606
|
}, null, 8, ["model-value", "rules"]),
|
|
1607
|
-
(S(),
|
|
1607
|
+
(S(), W(ue, {
|
|
1608
1608
|
"column-defs": Be.value,
|
|
1609
1609
|
"column-visibility": {
|
|
1610
1610
|
[s(ee).Code]: !(((lt = o.modelValue) == null ? void 0 : lt.template) ?? ((rt = o.modelValue) == null ? void 0 : rt.templateDoc)),
|
|
@@ -1632,7 +1632,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1632
1632
|
];
|
|
1633
1633
|
}),
|
|
1634
1634
|
"list-row": A((V) => [
|
|
1635
|
-
(S(),
|
|
1635
|
+
(S(), W(xt, {
|
|
1636
1636
|
row: V,
|
|
1637
1637
|
key: s(t).items.map((oe) => oe.sku._id).join(".")
|
|
1638
1638
|
}, {
|
|
@@ -1737,22 +1737,22 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1737
1737
|
return u("inventory.transfer.receiveRequest.update.title");
|
|
1738
1738
|
}
|
|
1739
1739
|
return "";
|
|
1740
|
-
}),
|
|
1740
|
+
}), Y = q();
|
|
1741
1741
|
w({
|
|
1742
1742
|
validateInputs: () => {
|
|
1743
1743
|
var d, b;
|
|
1744
|
-
(b = (d =
|
|
1744
|
+
(b = (d = Y.value) == null ? void 0 : d.validateInputs) == null || b.call(d);
|
|
1745
1745
|
},
|
|
1746
1746
|
resetInputsValidation: () => {
|
|
1747
1747
|
var d, b;
|
|
1748
|
-
(b = (d =
|
|
1748
|
+
(b = (d = Y.value) == null ? void 0 : d.resetInputsValidation) == null || b.call(d);
|
|
1749
1749
|
},
|
|
1750
1750
|
resetInputs: () => {
|
|
1751
1751
|
var d, b;
|
|
1752
|
-
(b = (d =
|
|
1752
|
+
(b = (d = Y.value) == null ? void 0 : d.resetInputs) == null || b.call(d);
|
|
1753
1753
|
}
|
|
1754
1754
|
});
|
|
1755
|
-
async function
|
|
1755
|
+
async function Q() {
|
|
1756
1756
|
const d = l.value;
|
|
1757
1757
|
if (k.value = !0, d.items = d.items.filter((b) => b.quantity.amount > 0), !d.items.length) {
|
|
1758
1758
|
F.open({
|
|
@@ -1809,14 +1809,14 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1809
1809
|
function O() {
|
|
1810
1810
|
switch (p.mode) {
|
|
1811
1811
|
case Oe.CREATE:
|
|
1812
|
-
return
|
|
1812
|
+
return Q();
|
|
1813
1813
|
case Oe.UPDATE:
|
|
1814
1814
|
return K();
|
|
1815
1815
|
}
|
|
1816
1816
|
}
|
|
1817
1817
|
function U() {
|
|
1818
1818
|
var R, X;
|
|
1819
|
-
const d =
|
|
1819
|
+
const d = Yt.validatePurchaseOrderItems({
|
|
1820
1820
|
skusById: v.skuById ?? {},
|
|
1821
1821
|
items: l.value.items ?? []
|
|
1822
1822
|
}), b = Object.values(d).flat();
|
|
@@ -1829,11 +1829,11 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1829
1829
|
});
|
|
1830
1830
|
return;
|
|
1831
1831
|
}
|
|
1832
|
-
(X = (R =
|
|
1832
|
+
(X = (R = Y.value) == null ? void 0 : R.validateInputs) == null || X.call(R);
|
|
1833
1833
|
}
|
|
1834
1834
|
return (d, b) => {
|
|
1835
1835
|
const R = I("FmButton"), X = I("FmSideSheet");
|
|
1836
|
-
return S(),
|
|
1836
|
+
return S(), W(X, {
|
|
1837
1837
|
modelValue: s(C),
|
|
1838
1838
|
"onUpdate:modelValue": b[3] || (b[3] = (Z) => xe(C) ? C.value = Z : null),
|
|
1839
1839
|
"dismiss-away": "",
|
|
@@ -1846,10 +1846,10 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1846
1846
|
])
|
|
1847
1847
|
]),
|
|
1848
1848
|
default: A(() => [
|
|
1849
|
-
(S(),
|
|
1849
|
+
(S(), W(Vo, {
|
|
1850
1850
|
class: "w-full",
|
|
1851
1851
|
ref_key: "formRef",
|
|
1852
|
-
ref:
|
|
1852
|
+
ref: Y,
|
|
1853
1853
|
"onForm:ready": b[0] || (b[0] = () => i.value = !0),
|
|
1854
1854
|
onValidationSuccess: O,
|
|
1855
1855
|
modelValue: l.value,
|
|
@@ -1883,7 +1883,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1883
1883
|
}
|
|
1884
1884
|
});
|
|
1885
1885
|
function Oo(g) {
|
|
1886
|
-
const [w, r, p, ...x] =
|
|
1886
|
+
const [w, r, p, ...x] = Qt(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
1887
|
if (F.length)
|
|
1888
1888
|
throw new Error(
|
|
1889
1889
|
`Missing headers (${F.join()}). Excel file does not come from the template.`
|
|
@@ -1956,8 +1956,8 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
1956
1956
|
key: 0,
|
|
1957
1957
|
class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
|
|
1958
1958
|
}, zo = { key: 0 }, Lo = {
|
|
1959
|
-
class: /* @__PURE__ */
|
|
1960
|
-
}, Ho = { class: "flex-1" }, jo = { class: "flex-auto line-clamp-2 text-ellipsis break-all fm-typo-en-body-sm-400" },
|
|
1959
|
+
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" }, Yo = { class: "flex-auto line-clamp-2 text-ellipsis break-all" }, Qo = { class: "text-fm-color-typo-primary" }, Ko = { class: "ml-auto" }, Xo = { key: 0 }, Zo = /* @__PURE__ */ ce({
|
|
1961
1961
|
__name: "XilnexResult",
|
|
1962
1962
|
props: {
|
|
1963
1963
|
type: {},
|
|
@@ -1975,14 +1975,14 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
1975
1975
|
return S(), T("div", qo, [
|
|
1976
1976
|
n("div", {
|
|
1977
1977
|
onClick: x,
|
|
1978
|
-
class:
|
|
1978
|
+
class: J({
|
|
1979
1979
|
"cursor-pointer": t.errors.length
|
|
1980
1980
|
})
|
|
1981
1981
|
}, [
|
|
1982
1982
|
n("div", Uo, [
|
|
1983
1983
|
n("div", No, [
|
|
1984
1984
|
n("div", {
|
|
1985
|
-
class:
|
|
1985
|
+
class: J({
|
|
1986
1986
|
"text-fm-color-system-error-300": t.errors.length
|
|
1987
1987
|
})
|
|
1988
1988
|
}, [
|
|
@@ -2020,13 +2020,13 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2020
2020
|
"z-index": 51
|
|
2021
2021
|
}, {
|
|
2022
2022
|
default: A(() => [
|
|
2023
|
-
n("span",
|
|
2023
|
+
n("span", Yo, M(e.name), 1)
|
|
2024
2024
|
]),
|
|
2025
2025
|
_: 2
|
|
2026
2026
|
}, 1032, ["content"])
|
|
2027
2027
|
]),
|
|
2028
2028
|
n("div", null, [
|
|
2029
|
-
n("span",
|
|
2029
|
+
n("span", Qo, M(s(Ge).toFormatString({
|
|
2030
2030
|
value: e.quantity
|
|
2031
2031
|
})), 1),
|
|
2032
2032
|
Ie(" " + M(e.measurement ? e.measurement.abbrev : e.sku.unit.abbrev), 1)
|
|
@@ -2035,7 +2035,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2035
2035
|
])
|
|
2036
2036
|
]),
|
|
2037
2037
|
n("div", Ko, [
|
|
2038
|
-
t.errors.length ? (S(),
|
|
2038
|
+
t.errors.length ? (S(), W(F, {
|
|
2039
2039
|
key: 0,
|
|
2040
2040
|
name: p.value ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
2041
2041
|
size: "md"
|
|
@@ -2044,7 +2044,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2044
2044
|
], 2),
|
|
2045
2045
|
p.value ? (S(), T("div", {
|
|
2046
2046
|
key: 0,
|
|
2047
|
-
class:
|
|
2047
|
+
class: J(["flex flex-col gap-4 pl-8 fm-typo-en-body-sm-400", {
|
|
2048
2048
|
"text-fm-color-typo-secondary": !t.errors.length,
|
|
2049
2049
|
"text-fm-color-system-error-300": t.errors.length
|
|
2050
2050
|
}])
|
|
@@ -2058,10 +2058,10 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2058
2058
|
]);
|
|
2059
2059
|
};
|
|
2060
2060
|
}
|
|
2061
|
-
}), Go = { class: "flex flex-col gap-24" },
|
|
2061
|
+
}), Go = { class: "flex flex-col gap-24" }, Jo = {
|
|
2062
2062
|
key: 0,
|
|
2063
2063
|
class: "flex items-center gap-8"
|
|
2064
|
-
},
|
|
2064
|
+
}, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ea = { class: "flex flex-col gap-8" }, ta = { class: "line-clamp-2 text-ellipsis break-all" }, sa = {
|
|
2065
2065
|
key: 2,
|
|
2066
2066
|
class: "shrink-0"
|
|
2067
2067
|
}, oa = {
|
|
@@ -2097,7 +2097,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2097
2097
|
});
|
|
2098
2098
|
}
|
|
2099
2099
|
});
|
|
2100
|
-
|
|
2100
|
+
Qe(async () => {
|
|
2101
2101
|
const l = await $.getNetSuiteLocations();
|
|
2102
2102
|
console.log(l), F.value = !0;
|
|
2103
2103
|
});
|
|
@@ -2107,8 +2107,8 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2107
2107
|
},
|
|
2108
2108
|
set(l) {
|
|
2109
2109
|
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(
|
|
2110
|
+
const c = f.effectiveAt ? new Date(f.effectiveAt) : /* @__PURE__ */ new Date(), [D, B, Y] = l.split("-");
|
|
2111
|
+
c.setFullYear(parseInt(D)), c.setMonth(parseInt(B) - 1), c.setDate(parseInt(Y)), f.effectiveAt = c.toISOString();
|
|
2112
2112
|
}
|
|
2113
2113
|
}
|
|
2114
2114
|
}), u = N({
|
|
@@ -2175,8 +2175,8 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2175
2175
|
return ge(r, (l) => {
|
|
2176
2176
|
l && C(l);
|
|
2177
2177
|
}), (l, c) => {
|
|
2178
|
-
const D = I("FmSelect"), B = I("FmDatePicker"),
|
|
2179
|
-
return S(),
|
|
2178
|
+
const D = I("FmSelect"), B = I("FmDatePicker"), Y = I("FmTimePicker"), Q = I("FmCircularProgress"), K = I("FmLabel"), O = I("FmIcon"), U = I("FmButton"), P = I("FmForm");
|
|
2179
|
+
return S(), W(P, {
|
|
2180
2180
|
ref_key: "formRef",
|
|
2181
2181
|
ref: h
|
|
2182
2182
|
}, {
|
|
@@ -2205,24 +2205,24 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2205
2205
|
label: "Transfer date",
|
|
2206
2206
|
rules: [s(Me)()]
|
|
2207
2207
|
}, null, 8, ["modelValue", "rules"]),
|
|
2208
|
-
y(
|
|
2208
|
+
y(Y, {
|
|
2209
2209
|
modelValue: u.value,
|
|
2210
2210
|
"onUpdate:modelValue": c[2] || (c[2] = (d) => u.value = d),
|
|
2211
2211
|
label: "Transfer time",
|
|
2212
2212
|
rules: [s(Me)()]
|
|
2213
2213
|
}, null, 8, ["modelValue", "rules"]),
|
|
2214
|
-
t.value ? (S(), T("div",
|
|
2214
|
+
t.value ? (S(), T("div", Jo, [
|
|
2215
2215
|
n("div", null, [
|
|
2216
|
-
y(
|
|
2216
|
+
y(Q, {
|
|
2217
2217
|
size: "md",
|
|
2218
2218
|
color: "neutral-gray-200"
|
|
2219
2219
|
})
|
|
2220
2220
|
]),
|
|
2221
|
-
n("div",
|
|
2221
|
+
n("div", Wo, M(s(_)("inventory.formField.loading")), 1)
|
|
2222
2222
|
])) : (S(), T(de, { key: 1 }, [
|
|
2223
2223
|
y(Kt, {
|
|
2224
2224
|
"max-file-size": 5,
|
|
2225
|
-
class:
|
|
2225
|
+
class: J({
|
|
2226
2226
|
"w-full": !0,
|
|
2227
2227
|
"h-[200px]": !r.value
|
|
2228
2228
|
}),
|
|
@@ -2242,7 +2242,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2242
2242
|
}),
|
|
2243
2243
|
n("div", ea, [
|
|
2244
2244
|
n("div", {
|
|
2245
|
-
class:
|
|
2245
|
+
class: J([
|
|
2246
2246
|
"fm-corner-radius-md p-16 flex items-center gap-16",
|
|
2247
2247
|
{
|
|
2248
2248
|
"border border-fm-color-neutral-gray-100": x.value,
|
|
@@ -2251,18 +2251,18 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2251
2251
|
}
|
|
2252
2252
|
])
|
|
2253
2253
|
}, [
|
|
2254
|
-
x.value ? (S(),
|
|
2254
|
+
x.value ? (S(), W(Q, {
|
|
2255
2255
|
key: 0,
|
|
2256
2256
|
size: "md",
|
|
2257
2257
|
color: "neutral-gray-200"
|
|
2258
|
-
})) : (S(),
|
|
2258
|
+
})) : (S(), W(O, {
|
|
2259
2259
|
key: 1,
|
|
2260
2260
|
name: i.value ? "error" : "attach_file",
|
|
2261
2261
|
outline: "",
|
|
2262
2262
|
color: i.value ? "system-error-300" : void 0
|
|
2263
2263
|
}, null, 8, ["name", "color"])),
|
|
2264
2264
|
n("div", {
|
|
2265
|
-
class:
|
|
2265
|
+
class: J([
|
|
2266
2266
|
"fm-typo-en-body-md-400 flex-1 h-[36px] flex items-center",
|
|
2267
2267
|
{
|
|
2268
2268
|
"text-fm-color-typo-disabled": x.value,
|
|
@@ -2301,7 +2301,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2301
2301
|
]), 1032, ["class", "button-label"]),
|
|
2302
2302
|
r.value ? (S(), T("div", na, [
|
|
2303
2303
|
n("div", la, M(s(_)("inventory.ingredient.import.summary")), 1),
|
|
2304
|
-
(S(!0), T(de, null, Se(a.value, (d, b) => (S(),
|
|
2304
|
+
(S(!0), T(de, null, Se(a.value, (d, b) => (S(), W(Zo, {
|
|
2305
2305
|
key: b,
|
|
2306
2306
|
name: `Transfer Note ${b + 1}`,
|
|
2307
2307
|
items: d.poItems,
|
|
@@ -2392,7 +2392,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2392
2392
|
}
|
|
2393
2393
|
return (a, i) => {
|
|
2394
2394
|
const h = I("FmSpacer"), _ = I("FmButton"), C = I("FmDialog");
|
|
2395
|
-
return S(),
|
|
2395
|
+
return S(), W(C, {
|
|
2396
2396
|
modelValue: s(t),
|
|
2397
2397
|
"onUpdate:modelValue": i[2] || (i[2] = (l) => xe(t) ? t.value = l : null),
|
|
2398
2398
|
overlay: !0,
|
|
@@ -2450,7 +2450,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2450
2450
|
});
|
|
2451
2451
|
const p = N(
|
|
2452
2452
|
() => !k._currentLocation || e.loading.value
|
|
2453
|
-
), x = is(), t =
|
|
2453
|
+
), x = is(), t = Je(), f = Ue();
|
|
2454
2454
|
function F() {
|
|
2455
2455
|
const O = {
|
|
2456
2456
|
name: "",
|
|
@@ -2492,7 +2492,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2492
2492
|
"Received quantity": Z,
|
|
2493
2493
|
"Ordered quantity": he,
|
|
2494
2494
|
Unit: ke,
|
|
2495
|
-
"Total cost": b.totalCost ?
|
|
2495
|
+
"Total cost": b.totalCost ? Ye(b.totalCost) : null
|
|
2496
2496
|
};
|
|
2497
2497
|
})
|
|
2498
2498
|
), P = [
|
|
@@ -2570,7 +2570,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2570
2570
|
label: w("inventory.common.export"),
|
|
2571
2571
|
value: "export"
|
|
2572
2572
|
}
|
|
2573
|
-
]),
|
|
2573
|
+
]), Y = N(() => {
|
|
2574
2574
|
const O = [
|
|
2575
2575
|
{
|
|
2576
2576
|
type: "string",
|
|
@@ -2610,13 +2610,13 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2610
2610
|
}
|
|
2611
2611
|
];
|
|
2612
2612
|
return [...O, ...f.isEnabled ? U : []];
|
|
2613
|
-
}),
|
|
2614
|
-
if (!
|
|
2613
|
+
}), Q = q(null), K = N(() => {
|
|
2614
|
+
if (!Q.value)
|
|
2615
2615
|
return e.purchaseOrders.value;
|
|
2616
|
-
const O = Gt.build(
|
|
2616
|
+
const O = Gt.build(Q.value);
|
|
2617
2617
|
return e.purchaseOrders.value.filter((U) => {
|
|
2618
2618
|
var P, d, b, R;
|
|
2619
|
-
return
|
|
2619
|
+
return Jt(
|
|
2620
2620
|
{
|
|
2621
2621
|
netsuiteTransactionNumber: (d = (P = U.netSuite) == null ? void 0 : P.additionalInfo) == null ? void 0 : d.transactionnumber,
|
|
2622
2622
|
netsuiteOrderNo: (b = U.netSuite) == null ? void 0 : b.refNo,
|
|
@@ -2629,7 +2629,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2629
2629
|
});
|
|
2630
2630
|
return (O, U) => {
|
|
2631
2631
|
const P = I("FmTable");
|
|
2632
|
-
return S(),
|
|
2632
|
+
return S(), W(Wt, {
|
|
2633
2633
|
title: s(w)("inventory.transfer.receiveRequest.title2"),
|
|
2634
2634
|
actions: B.value,
|
|
2635
2635
|
"onClick:action": _
|
|
@@ -2638,7 +2638,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2638
2638
|
var d, b;
|
|
2639
2639
|
return [
|
|
2640
2640
|
n("div", {
|
|
2641
|
-
class:
|
|
2641
|
+
class: J([
|
|
2642
2642
|
"flex flex-col gap-8 max-h-full",
|
|
2643
2643
|
{
|
|
2644
2644
|
"p-0": l.value,
|
|
@@ -2655,11 +2655,11 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2655
2655
|
search: h.value,
|
|
2656
2656
|
"onUpdate:search": U[1] || (U[1] = (R) => h.value = R),
|
|
2657
2657
|
filterable: "",
|
|
2658
|
-
"filter-attributes":
|
|
2659
|
-
filter:
|
|
2660
|
-
"onUpdate:filter": U[2] || (U[2] = (R) =>
|
|
2658
|
+
"filter-attributes": Y.value,
|
|
2659
|
+
filter: Q.value,
|
|
2660
|
+
"onUpdate:filter": U[2] || (U[2] = (R) => Q.value = R)
|
|
2661
2661
|
}, null, 8, ["date-range", "search", "filter-attributes", "filter"]),
|
|
2662
|
-
(S(),
|
|
2662
|
+
(S(), W(P, {
|
|
2663
2663
|
style: _t(s(D).tableHeight),
|
|
2664
2664
|
"column-defs": s(u),
|
|
2665
2665
|
"row-data": K.value,
|
|
@@ -2712,7 +2712,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2712
2712
|
_: 1
|
|
2713
2713
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
|
|
2714
2714
|
], 2),
|
|
2715
|
-
(S(),
|
|
2715
|
+
(S(), W(Tt, { to: "body" }, [
|
|
2716
2716
|
y(Eo, Ze(s(e).transferDialogProps.value, {
|
|
2717
2717
|
onSubmitted: s(e).fetchData
|
|
2718
2718
|
}), null, 16, ["onSubmitted"]),
|