@feedmepos/mf-inventory-portal 1.2.13 → 1.2.14-dev.2
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-BsAX8Df8.js +286 -0
- package/dist/{ApprovalView-BWX6xBQs.js → ApprovalView-BT-A6f4_.js} +26 -26
- package/dist/{BindingsDialog-CuwkcDKX.js → BindingsDialog-CNpvAGHr.js} +2 -2
- package/dist/{BindingsPicker-BibFsY0g.js → BindingsPicker-D-vmVplT.js} +10 -10
- package/dist/{BindingsTable-AdjKwSPH.js → BindingsTable-Z7PTxSy6.js} +1 -1
- package/dist/{ClosingDraftView-DWFHP9nE.js → ClosingDraftView-C_3P7kh0.js} +44 -44
- package/dist/{ClosingTemplateView-DOCF5f_u.js → ClosingTemplateView-CimxBGT-.js} +26 -26
- package/dist/{DeliveryOrderPrintPreview-DNDtL_Vo.js → DeliveryOrderPrintPreview-CMTO9y6R.js} +10 -10
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BWhINOE8.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DMK3P4pu.js} +15 -15
- package/dist/{FmMultiselectDialog-Dfo04ak5.js → FmMultiselectDialog-D6f0A92U.js} +4 -4
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DGVs4zLl.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CJvnR-aO.js} +54 -54
- package/dist/ImportView-CTYLH5Mz.js +1303 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BESx2u4Y.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BbmtJ6Ge.js} +1 -1
- package/dist/{IngredientGroupView-M9sXlnE0.js → IngredientGroupView-wygIXAKy.js} +19 -20
- package/dist/IngredientsView-Ct3eNIqS.js +2240 -0
- package/dist/{IntegrationView-BlUNz1yc.js → IntegrationView-CKA76Mi6.js} +3 -3
- package/dist/{InventoryBindingForm-CvQ5zh6v.js → InventoryBindingForm-CdK2Ujur.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BEAEmPsU.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-B-O0bjxU.js} +12 -12
- package/dist/{InventoryBindingSummary-CsJ-6G2P.js → InventoryBindingSummary-DN6sSW2u.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DjN_ktl1.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BK65pQy4.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BN_e7k7U.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DrFtLYGt.js} +1 -1
- package/dist/{PublishView-DZgCyLK2.js → PublishView-LJA3-Xmq.js} +25 -25
- package/dist/{PurchaseOrderPrintPreview-CB2xvQ33.js → PurchaseOrderPrintPreview-CpnoNRcV.js} +12 -12
- package/dist/{ReceiveRequestView-DgDHOS-Y.js → ReceiveRequestView-d7KmB_XN.js} +131 -132
- package/dist/RecipeView-B7PtWfJ-.js +636 -0
- package/dist/{StockView-eJOngk08.js → StockView-DoataAnD.js} +165 -166
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BMFfegsk.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BZNMBDJ7.js} +1 -1
- package/dist/{SupplierView-BS8rBAKC.js → SupplierView-D9Kb7rAO.js} +4 -4
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CfnN-1oC.js +3385 -0
- package/dist/{TransferTemplateView-By5Ci4Yg.js → TransferTemplateView-D9mrfBH5.js} +166 -166
- package/dist/UnitView-BP5IzLw2.js +674 -0
- package/dist/{WarehouseView-4ZLSJXYc.js → WarehouseView-B-qnAHv5.js} +32 -32
- package/dist/api/inventory.d.ts +306 -0
- package/dist/api/purchase-order.d.ts +1 -0
- package/dist/{app-D2lun71R.js → app-DDKw9H3a.js} +11730 -11115
- package/dist/app.d.ts +421 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-Cm1TtVzm.js → closing-template-BYCZ8etT.js} +1 -1
- package/dist/{decimal-eeicE4jp.js → decimal-DMb7zEqx.js} +1 -1
- package/dist/{format-unit-display-vHKazw0l.js → format-unit-display-BCTXGGeT.js} +24 -24
- package/dist/helper/number.d.ts +1 -0
- package/dist/import-export.helper-B4JVPOJK.js +243 -0
- package/dist/{index-DvX9cMJV.js → index-BZIogw8R.js} +1 -1
- package/dist/{index-C5s-1g7c.js → index-B__hxI_k.js} +1 -1
- package/dist/{purchase-order-template-uTs7bR89.js → purchase-order-template-Duc9oBWo.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{stock-CL2LNdXp.js → stock-cFTv_nsm.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/inventory.d.ts +26 -199
- package/dist/{supplier-CuzoW2k4.js → supplier-CESqvbEF.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Cpg4lHHC.js → use-ingredient-select-dialog-DRJNoQTb.js} +4 -4
- package/dist/{use-inventory-binding-dialog-h4M4ICQK.js → use-inventory-binding-dialog-DTK5yRv9.js} +1 -1
- package/dist/views/import/ImportView.vue.d.ts +3 -0
- package/dist/views/import/components/ImportDialog.vue.d.ts +2 -0
- package/dist/views/import/helper/import-export.helper.d.ts +4 -0
- package/dist/views/ingredients/helper/import-export.helper.d.ts +3 -1
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +17 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteTransactionChangeLog.vue.d.ts +15 -0
- package/dist/views/recipe/RecipeView.vue.d.ts +1 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +16 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +2 -0
- package/dist/views/recipe/helper/import-recipe.d.ts +48 -0
- package/dist/views/unit/UnitView.vue.d.ts +1 -0
- package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +12 -0
- package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +6 -0
- package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +9 -0
- package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +5 -0
- package/dist/views/unit/helper/import-export.helper.d.ts +40 -0
- package/package.json +3 -3
- package/dist/App-ZoXow3DD.js +0 -276
- package/dist/IngredientsView-DUwhH3j1.js +0 -2475
- package/dist/RecipeView-DQDfwCJd.js +0 -621
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-w98ibfql.js +0 -3060
- package/dist/UnitView-DmuWMFlA.js +0 -667
- package/dist/array-Ca8T3f_G.js +0 -44
|
@@ -1,17 +1,16 @@
|
|
|
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 $, 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 Pt } from "vue";
|
|
2
|
+
import { b as Ue, Z as Ge, c as Je, q as Me, l as Ce, ae as Ye, $ as Vt, aF as Rt, A as qe, M as At, r as ht, al as We, K as fe, aw as Et, aG as Ot, aH as Mt, a9 as qt, aI as Ut, P as kt, u as et, a as tt, aJ as Nt, aK as Bt, ad as zt, a5 as Lt, aL as Ht, J as xt, w as jt, e as Oe, aM as Yt, ar as Qt, B as Kt, C as Xt, m as je, af as ft, E as Zt, N as Gt, H as Jt, G as Wt, I as es, a1 as vt } from "./app-DDKw9H3a.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-CfnN-1oC.js";
|
|
4
|
+
import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-DrFtLYGt.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-BCTXGGeT.js";
|
|
8
|
+
import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CJvnR-aO.js";
|
|
9
|
+
import { c as Ie, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DMK3P4pu.js";
|
|
10
10
|
import { useI18n as _e } from "@feedmepos/mf-common";
|
|
11
|
-
import "./FmMultiselectDialog-
|
|
12
|
-
import { u as at } from "./supplier-
|
|
11
|
+
import "./FmMultiselectDialog-D6f0A92U.js";
|
|
12
|
+
import { u as at } from "./supplier-CESqvbEF.js";
|
|
13
13
|
import { _ as bs } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
14
|
-
import "./array-Ca8T3f_G.js";
|
|
15
14
|
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 || {});
|
|
16
15
|
const gs = () => (_e(), L(
|
|
17
16
|
Ct,
|
|
@@ -23,7 +22,7 @@ const gs = () => (_e(), L(
|
|
|
23
22
|
));
|
|
24
23
|
function _s(g) {
|
|
25
24
|
const { t: w } = _e(), r = gt({}), { breakpoints: p } = ot(), x = Je(), t = Ue();
|
|
26
|
-
|
|
25
|
+
Qe(() => {
|
|
27
26
|
for (const v of g.items) {
|
|
28
27
|
if (!v.totalCost)
|
|
29
28
|
continue;
|
|
@@ -271,7 +270,7 @@ function _s(g) {
|
|
|
271
270
|
[
|
|
272
271
|
L(
|
|
273
272
|
"span",
|
|
274
|
-
k ?
|
|
273
|
+
k ? Ye(a) : Ce(a)
|
|
275
274
|
),
|
|
276
275
|
L(
|
|
277
276
|
"span",
|
|
@@ -292,7 +291,7 @@ function _s(g) {
|
|
|
292
291
|
]
|
|
293
292
|
},
|
|
294
293
|
[
|
|
295
|
-
|
|
294
|
+
Ye(i.costPerUnit),
|
|
296
295
|
"/",
|
|
297
296
|
i.measurement ? L(
|
|
298
297
|
"span",
|
|
@@ -316,7 +315,7 @@ function _s(g) {
|
|
|
316
315
|
g.updateItem({
|
|
317
316
|
...e,
|
|
318
317
|
totalCost: {
|
|
319
|
-
...
|
|
318
|
+
...Vt(+a),
|
|
320
319
|
currency: Rt()
|
|
321
320
|
}
|
|
322
321
|
});
|
|
@@ -425,7 +424,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
425
424
|
class: "flex flex-col w-[150px] xs:flex-1 text-ellipsis cursor-pointer"
|
|
426
425
|
}, [
|
|
427
426
|
n("div", Cs, [
|
|
428
|
-
n("span", null, M(F.totalCost ? s(
|
|
427
|
+
n("span", null, M(F.totalCost ? s(Ye)(F.totalCost) : "No data"), 1),
|
|
429
428
|
x[0] || (x[0] = n("span", { class: "text-fm-color-typo-secondary" }, "/", -1)),
|
|
430
429
|
n("span", null, M(s(Ce)(F.totalUnit, !1)), 1),
|
|
431
430
|
n("span", null, M(((I = F.measurement) == null ? void 0 : I.abbrev) ?? F.unit.abbrev), 1)
|
|
@@ -442,7 +441,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
442
441
|
}), 128))
|
|
443
442
|
]));
|
|
444
443
|
}
|
|
445
|
-
}), ws = { class: "flex flex-col gap-8 py-16" }, Fs = { class: "flex items-center" }, Is = { class: "flex-1 flex gap-1 items-center" }, $s = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ts = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ds = { class: "flex gap-8 w-full" },
|
|
444
|
+
}), ws = { class: "flex flex-col gap-8 py-16" }, Fs = { class: "flex items-center" }, Is = { class: "flex-1 flex gap-1 items-center" }, $s = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ts = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ds = { class: "flex gap-8 w-full" }, Ps = { class: "flex-1 flex flex-col gap-4" }, Vs = { class: "flex-1 flex flex-col gap-4" }, Rs = { class: "flex gap-8 w-full" }, As = { class: "flex-1 flex flex-col gap-4" }, Es = {
|
|
446
445
|
key: 0,
|
|
447
446
|
class: "flex-1 flex flex-col gap-4"
|
|
448
447
|
}, Os = /* @__PURE__ */ ce({
|
|
@@ -456,7 +455,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
456
455
|
setup(g) {
|
|
457
456
|
const { t: w } = _e();
|
|
458
457
|
return (r, p) => {
|
|
459
|
-
var f, F, I, v, e, u, k, a, i, h, _, C, l, c, D, B,
|
|
458
|
+
var f, F, I, v, e, u, k, a, i, h, _, C, l, c, D, B, Y, Q, K, O, U, V, d, b, R, X, Z;
|
|
460
459
|
const x = $("FmLabel"), t = $("FmSpacer");
|
|
461
460
|
return S(), T("div", ws, [
|
|
462
461
|
n("div", Fs, [
|
|
@@ -472,7 +471,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
472
471
|
])
|
|
473
472
|
]),
|
|
474
473
|
n("div", Ds, [
|
|
475
|
-
n("div",
|
|
474
|
+
n("div", Ps, [
|
|
476
475
|
y(x, {
|
|
477
476
|
label: s(w)(`inventory.transfer.form.items.table.${s(ee).Code}`)
|
|
478
477
|
}, null, 8, ["label"]),
|
|
@@ -482,7 +481,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
482
481
|
}, null, 8, ["render", "props"]),
|
|
483
482
|
p[0] || (p[0] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
484
483
|
]),
|
|
485
|
-
n("div",
|
|
484
|
+
n("div", Vs, [
|
|
486
485
|
y(x, {
|
|
487
486
|
label: s(w)(`inventory.transfer.form.items.table.${s(ee).Name}`)
|
|
488
487
|
}, null, 8, ["label"]),
|
|
@@ -499,7 +498,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
499
498
|
label: s(w)(`inventory.transfer.form.items.table.${s(ee).Amount}`)
|
|
500
499
|
}, null, 8, ["label"]),
|
|
501
500
|
y(s(fe), {
|
|
502
|
-
render: (
|
|
501
|
+
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
502
|
props: (O = (K = r.cellByColId[s(ee).Amount]) == null ? void 0 : K.getContext) == null ? void 0 : O.call(K)
|
|
504
503
|
}, null, 8, ["render", "props"]),
|
|
505
504
|
p[2] || (p[2] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
@@ -514,7 +513,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
514
513
|
_: 1
|
|
515
514
|
}),
|
|
516
515
|
y(s(fe), {
|
|
517
|
-
render: (d = (
|
|
516
|
+
render: (d = (V = (U = r.cellByColId[s(ee).Cost]) == null ? void 0 : U.column) == null ? void 0 : V.columnDef) == null ? void 0 : d.cell,
|
|
518
517
|
props: (R = (b = r.cellByColId[s(ee).Cost]) == null ? void 0 : b.getContext) == null ? void 0 : R.call(b)
|
|
519
518
|
}, null, 8, ["render", "props"]),
|
|
520
519
|
p[3] || (p[3] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
@@ -612,7 +611,7 @@ const qs = {
|
|
|
612
611
|
}, null, 8, zs)
|
|
613
612
|
]));
|
|
614
613
|
}
|
|
615
|
-
}), Hs = { class: "flex gap-8 items-center" }, js = { class: "fm-typo-en-body-lg-600 line-clamp-1" },
|
|
614
|
+
}), 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
615
|
__name: "ForecastStock",
|
|
617
616
|
props: {
|
|
618
617
|
templateId: {},
|
|
@@ -673,7 +672,7 @@ const qs = {
|
|
|
673
672
|
}
|
|
674
673
|
const i = r.templateItems.reduce((_, C) => {
|
|
675
674
|
var B;
|
|
676
|
-
const l = (B = r.poItems) == null ? void 0 : B.find((
|
|
675
|
+
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
676
|
if (!c)
|
|
678
677
|
return l && _.push(l), _;
|
|
679
678
|
if (!r.templateId && c.amount <= 0) return _;
|
|
@@ -690,15 +689,15 @@ const qs = {
|
|
|
690
689
|
})
|
|
691
690
|
), _;
|
|
692
691
|
}, []), h = a.map((_) => {
|
|
693
|
-
const C = r.templateItems.find((
|
|
692
|
+
const C = r.templateItems.find((Q) => Q.sku._id === _.id);
|
|
694
693
|
let l = _.amount, c = 0;
|
|
695
694
|
if (C != null && C.measurement) {
|
|
696
|
-
const
|
|
697
|
-
l = Math.ceil(_.amount /
|
|
695
|
+
const Q = e(C.measurement.conversion) ?? 1;
|
|
696
|
+
l = Math.ceil(_.amount / Q);
|
|
698
697
|
} else
|
|
699
698
|
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:
|
|
699
|
+
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";
|
|
700
|
+
return { skuId: _.id, amount: l, precision: c, helperState: Y };
|
|
702
701
|
});
|
|
703
702
|
p("update:poItems", i), p("update:forecastAmounts", h);
|
|
704
703
|
}
|
|
@@ -732,8 +731,8 @@ const qs = {
|
|
|
732
731
|
}, 8, ["text-color", "border-color", "disabled"])
|
|
733
732
|
]),
|
|
734
733
|
default: A(() => [
|
|
735
|
-
n("div",
|
|
736
|
-
n("div",
|
|
734
|
+
n("div", Ys, [
|
|
735
|
+
n("div", Qs, [
|
|
737
736
|
n("div", Ks, [
|
|
738
737
|
y(bs, { "z-index": 99 }, {
|
|
739
738
|
default: A(() => [
|
|
@@ -904,7 +903,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
904
903
|
emits: ["netsuite:ready"],
|
|
905
904
|
setup(g, { emit: w }) {
|
|
906
905
|
const r = Ue(), p = g, x = w, { t } = Ut(), f = q(!1), F = q();
|
|
907
|
-
|
|
906
|
+
Qe(() => {
|
|
908
907
|
var u, k, a, i;
|
|
909
908
|
let e = {
|
|
910
909
|
id: "",
|
|
@@ -1010,7 +1009,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1010
1009
|
}, Co = { class: "flex-1" }, So = { class: "flex-1" }, wo = {
|
|
1011
1010
|
key: 1,
|
|
1012
1011
|
class: "flex items-center gap-4"
|
|
1013
|
-
}, Fo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary translate-y-[1px]" }, Io = { class: "flex flex-col gap-16" }, $o = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, To = { class: "flex gap-8" }, Do = { key: 0 },
|
|
1012
|
+
}, Fo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary translate-y-[1px]" }, Io = { class: "flex flex-col gap-16" }, $o = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, To = { class: "flex gap-8" }, Do = { key: 0 }, Po = /* @__PURE__ */ ce({
|
|
1014
1013
|
__name: "TransferForm2",
|
|
1015
1014
|
props: {
|
|
1016
1015
|
modelValue: {},
|
|
@@ -1067,7 +1066,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1067
1066
|
throw new Error("Unable to resolve supplier from template");
|
|
1068
1067
|
}
|
|
1069
1068
|
}
|
|
1070
|
-
}),
|
|
1069
|
+
}), Qe(() => {
|
|
1071
1070
|
var o;
|
|
1072
1071
|
try {
|
|
1073
1072
|
const m = I.skuById;
|
|
@@ -1085,7 +1084,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1085
1084
|
F.watchLocation(async () => {
|
|
1086
1085
|
location && (t.supplier || (t.supplier = e.suppliers.find((o) => o) ?? t.supplier));
|
|
1087
1086
|
});
|
|
1088
|
-
const
|
|
1087
|
+
const Y = ds(), Q = vs(
|
|
1089
1088
|
() => t,
|
|
1090
1089
|
(o) => {
|
|
1091
1090
|
Object.assign(t, o);
|
|
@@ -1100,7 +1099,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1100
1099
|
set(o) {
|
|
1101
1100
|
var E;
|
|
1102
1101
|
const m = typeof ((E = t == null ? void 0 : t.supplier) == null ? void 0 : E.internal) == "string" ? ne.TRANSFER : ne.PURCHASE;
|
|
1103
|
-
o !== m && (t.supplier = o === ne.PURCHASE ?
|
|
1102
|
+
o !== m && (t.supplier = o === ne.PURCHASE ? Q.locationOptionsTypePurchase.value[0] : Q.locationOptionsTypeTransfer.value[0]);
|
|
1104
1103
|
}
|
|
1105
1104
|
});
|
|
1106
1105
|
ge(
|
|
@@ -1111,7 +1110,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1111
1110
|
(o) => {
|
|
1112
1111
|
u.mustUsePoTemplate && !o && It(() => {
|
|
1113
1112
|
var m, E;
|
|
1114
|
-
t.supplier = ((E = (m =
|
|
1113
|
+
t.supplier = ((E = (m = Q.locationOptionsTypeTransfer.value) == null ? void 0 : m.filter(
|
|
1115
1114
|
(H) => H.internal === "restaurant"
|
|
1116
1115
|
)) == null ? void 0 : E[0]) ?? t.supplier;
|
|
1117
1116
|
});
|
|
@@ -1119,7 +1118,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1119
1118
|
{ immediate: !0 }
|
|
1120
1119
|
);
|
|
1121
1120
|
const O = N(() => {
|
|
1122
|
-
let o =
|
|
1121
|
+
let o = Q.transferLocationOptions.value;
|
|
1123
1122
|
return u.mustUsePoTemplate && !t.template && (o = o.filter((m) => {
|
|
1124
1123
|
var E;
|
|
1125
1124
|
return (E = m.sublabel) == null ? void 0 : E.startsWith("restaurant");
|
|
@@ -1130,9 +1129,9 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1130
1129
|
return (o = t.supplier) == null ? void 0 : o._id;
|
|
1131
1130
|
},
|
|
1132
1131
|
set(o) {
|
|
1133
|
-
|
|
1132
|
+
Q.transferLocationModel.value = o;
|
|
1134
1133
|
}
|
|
1135
|
-
}),
|
|
1134
|
+
}), V = N({
|
|
1136
1135
|
get() {
|
|
1137
1136
|
return t.remark ?? void 0;
|
|
1138
1137
|
},
|
|
@@ -1223,7 +1222,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1223
1222
|
var te;
|
|
1224
1223
|
return (te = t.items) == null ? void 0 : te.find((ae) => ae.sku._id === z.value._id);
|
|
1225
1224
|
}).map((z) => z.value);
|
|
1226
|
-
|
|
1225
|
+
Y.open({
|
|
1227
1226
|
title: f("inventory.transfer.form.items.selectItem"),
|
|
1228
1227
|
closeButton: !0,
|
|
1229
1228
|
contentComponent: jt,
|
|
@@ -1293,7 +1292,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1293
1292
|
},
|
|
1294
1293
|
measurement: m.trackingMeasurement ? m.unit.measurements.find((E) => E.id === m.trackingMeasurement) : null
|
|
1295
1294
|
}));
|
|
1296
|
-
}),
|
|
1295
|
+
}), Pe = N(() => {
|
|
1297
1296
|
const o = [];
|
|
1298
1297
|
return (!u.mustUsePoTemplate || u.mustUsePoTemplate && t.template) && o.push({
|
|
1299
1298
|
label: f("inventory.transfer.form.type.purchase"),
|
|
@@ -1302,7 +1301,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1302
1301
|
label: f("inventory.transfer.form.type.transfer"),
|
|
1303
1302
|
value: ne.TRANSFER
|
|
1304
1303
|
}), o;
|
|
1305
|
-
}),
|
|
1304
|
+
}), Ve = N(() => {
|
|
1306
1305
|
var o;
|
|
1307
1306
|
return (o = p.modelValue) == null ? void 0 : o.items.every((m) => m.quantity.amount <= 0);
|
|
1308
1307
|
});
|
|
@@ -1400,7 +1399,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1400
1399
|
default: A(() => [
|
|
1401
1400
|
y(me, null, {
|
|
1402
1401
|
default: A(() => {
|
|
1403
|
-
var
|
|
1402
|
+
var P;
|
|
1404
1403
|
return [
|
|
1405
1404
|
n("div", ho, [
|
|
1406
1405
|
y(le, {
|
|
@@ -1410,7 +1409,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1410
1409
|
}, null, 8, ["color"]),
|
|
1411
1410
|
n("div", {
|
|
1412
1411
|
class: J({ "text-fm-color-typo-disabled": o.disabled })
|
|
1413
|
-
}, M((
|
|
1412
|
+
}, M((P = O.value.find((oe) => oe.value === U.value)) == null ? void 0 : P.label), 3)
|
|
1414
1413
|
])
|
|
1415
1414
|
];
|
|
1416
1415
|
}),
|
|
@@ -1426,9 +1425,9 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1426
1425
|
label: s(f)("inventory.transfer.form.type.title"),
|
|
1427
1426
|
"label-mark": "required",
|
|
1428
1427
|
modelValue: K.value,
|
|
1429
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
1430
|
-
items:
|
|
1431
|
-
rules: [s(qe)(1)(
|
|
1428
|
+
"onUpdate:modelValue": m[0] || (m[0] = (P) => K.value = P),
|
|
1429
|
+
items: Pe.value,
|
|
1430
|
+
rules: [s(qe)(1)(Pe.value)]
|
|
1432
1431
|
}, {
|
|
1433
1432
|
default: A(() => [
|
|
1434
1433
|
n("span", {
|
|
@@ -1444,28 +1443,28 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1444
1443
|
label: K.value === s(ne).PURCHASE ? s(f)("inventory.transfer.form.purchaseFrom") : s(f)("inventory.transfer.form.transferFrom"),
|
|
1445
1444
|
"label-mark": "required",
|
|
1446
1445
|
modelValue: U.value,
|
|
1447
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
1446
|
+
"onUpdate:modelValue": m[1] || (m[1] = (P) => U.value = P),
|
|
1448
1447
|
items: O.value,
|
|
1449
1448
|
rules: [s(qe)(1)(O.value)]
|
|
1450
1449
|
}, {
|
|
1451
|
-
"menu-wrapper": A((
|
|
1450
|
+
"menu-wrapper": A((P) => {
|
|
1452
1451
|
var oe, Ee;
|
|
1453
1452
|
return [
|
|
1454
|
-
y(ys, Ze(
|
|
1453
|
+
y(ys, Ze(P, {
|
|
1455
1454
|
items: O.value,
|
|
1456
1455
|
"model-value": (Ee = (oe = o.modelValue) == null ? void 0 : oe.supplier) == null ? void 0 : Ee._id
|
|
1457
1456
|
}), null, 16, ["items", "model-value"])
|
|
1458
1457
|
];
|
|
1459
1458
|
}),
|
|
1460
1459
|
default: A(() => {
|
|
1461
|
-
var
|
|
1460
|
+
var P;
|
|
1462
1461
|
return [
|
|
1463
1462
|
n("span", {
|
|
1464
1463
|
class: J([
|
|
1465
1464
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
1466
1465
|
o.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
1467
1466
|
])
|
|
1468
|
-
}, M((
|
|
1467
|
+
}, M((P = O.value.find((oe) => oe.value === U.value)) == null ? void 0 : P.label), 3)
|
|
1469
1468
|
];
|
|
1470
1469
|
}),
|
|
1471
1470
|
_: 1
|
|
@@ -1475,14 +1474,14 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1475
1474
|
label: s(f)("inventory.transfer.form.reference"),
|
|
1476
1475
|
"label-mark": "optional",
|
|
1477
1476
|
modelValue: s(t).ref,
|
|
1478
|
-
"onUpdate:modelValue": m[2] || (m[2] = (
|
|
1477
|
+
"onUpdate:modelValue": m[2] || (m[2] = (P) => s(t).ref = P)
|
|
1479
1478
|
}, null, 8, ["label", "modelValue"]),
|
|
1480
1479
|
y(He, {
|
|
1481
1480
|
label: s(f)("inventory.transfer.form.remark"),
|
|
1482
1481
|
"label-mark": "optional",
|
|
1483
1482
|
"max-length": 240,
|
|
1484
|
-
modelValue:
|
|
1485
|
-
"onUpdate:modelValue": m[3] || (m[3] = (
|
|
1483
|
+
modelValue: V.value,
|
|
1484
|
+
"onUpdate:modelValue": m[3] || (m[3] = (P) => V.value = P),
|
|
1486
1485
|
class: J([o.disabled ? "text-fm-color-typo-disabled " : ""])
|
|
1487
1486
|
}, null, 8, ["label", "modelValue", "class"]),
|
|
1488
1487
|
_.value ? (S(), W(uo, {
|
|
@@ -1492,10 +1491,10 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1492
1491
|
supplier: s(t).supplier,
|
|
1493
1492
|
setting: s(t).netSuite,
|
|
1494
1493
|
items: s(t).items,
|
|
1495
|
-
onChange: (
|
|
1496
|
-
s(t).items =
|
|
1494
|
+
onChange: (P, oe) => {
|
|
1495
|
+
s(t).items = P, s(t).netSuite = oe;
|
|
1497
1496
|
},
|
|
1498
|
-
"onNetsuite:ready": m[4] || (m[4] = (
|
|
1497
|
+
"onNetsuite:ready": m[4] || (m[4] = (P) => {
|
|
1499
1498
|
h.value = !0;
|
|
1500
1499
|
})
|
|
1501
1500
|
}, null, 8, ["required", "disabled", "supplier", "setting", "items", "onChange"])) : j("", !0),
|
|
@@ -1510,7 +1509,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1510
1509
|
}, [
|
|
1511
1510
|
y(Re, {
|
|
1512
1511
|
modelValue: s(b),
|
|
1513
|
-
"onUpdate:modelValue": m[5] || (m[5] = (
|
|
1512
|
+
"onUpdate:modelValue": m[5] || (m[5] = (P) => xe(b) ? b.value = P : null),
|
|
1514
1513
|
label: s(f)("inventory.transfer.form.backdate.title"),
|
|
1515
1514
|
sublabel: s(f)("inventory.transfer.form.backdate.subtitle"),
|
|
1516
1515
|
"label-placement": "right",
|
|
@@ -1523,13 +1522,13 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1523
1522
|
n("div", Co, [
|
|
1524
1523
|
y(z, {
|
|
1525
1524
|
modelValue: s(R),
|
|
1526
|
-
"onUpdate:modelValue": m[6] || (m[6] = (
|
|
1525
|
+
"onUpdate:modelValue": m[6] || (m[6] = (P) => xe(R) ? R.value = P : null)
|
|
1527
1526
|
}, null, 8, ["modelValue"])
|
|
1528
1527
|
]),
|
|
1529
1528
|
n("div", So, [
|
|
1530
1529
|
y(te, {
|
|
1531
1530
|
modelValue: s(X),
|
|
1532
|
-
"onUpdate:modelValue": m[7] || (m[7] = (
|
|
1531
|
+
"onUpdate:modelValue": m[7] || (m[7] = (P) => xe(X) ? X.value = P : null)
|
|
1533
1532
|
}, null, 8, ["modelValue"])
|
|
1534
1533
|
])
|
|
1535
1534
|
])) : j("", !0)
|
|
@@ -1537,7 +1536,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1537
1536
|
s(d) ? (S(), W(ae, {
|
|
1538
1537
|
key: 0,
|
|
1539
1538
|
modelValue: s(d),
|
|
1540
|
-
"onUpdate:modelValue": m[8] || (m[8] = (
|
|
1539
|
+
"onUpdate:modelValue": m[8] || (m[8] = (P) => xe(d) ? d.value = P : null),
|
|
1541
1540
|
rules: [s(Ht)(new Date(o.lastClosingDate), /* @__PURE__ */ new Date())]
|
|
1542
1541
|
}, null, 8, ["modelValue", "rules"])) : j("", !0),
|
|
1543
1542
|
B.value && !o.lastClosingDate ? (S(), T("div", wo, [
|
|
@@ -1575,18 +1574,18 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1575
1574
|
"text-color": "primary",
|
|
1576
1575
|
"bg-color": "transparent",
|
|
1577
1576
|
"border-color": "primary",
|
|
1578
|
-
onClick: m[9] || (m[9] = (
|
|
1577
|
+
onClick: m[9] || (m[9] = (P) => ze()),
|
|
1579
1578
|
size: "md"
|
|
1580
1579
|
}, null, 8, ["disabled", "label"]),
|
|
1581
1580
|
y(Ws, {
|
|
1582
1581
|
"template-id": s(t).template || void 0,
|
|
1583
1582
|
"template-items": Le.value,
|
|
1584
1583
|
"po-items": s(t).items,
|
|
1585
|
-
"onUpdate:forecastAmounts": m[10] || (m[10] = (
|
|
1586
|
-
l.value =
|
|
1584
|
+
"onUpdate:forecastAmounts": m[10] || (m[10] = (P) => {
|
|
1585
|
+
l.value = P;
|
|
1587
1586
|
}),
|
|
1588
|
-
"onUpdate:poItems": m[11] || (m[11] = (
|
|
1589
|
-
s(t).items =
|
|
1587
|
+
"onUpdate:poItems": m[11] || (m[11] = (P) => {
|
|
1588
|
+
s(t).items = P, C.value++;
|
|
1590
1589
|
})
|
|
1591
1590
|
}, null, 8, ["template-id", "template-items", "po-items"])
|
|
1592
1591
|
])
|
|
@@ -1597,13 +1596,13 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1597
1596
|
"prepend-icon": "compare_arrows",
|
|
1598
1597
|
"label-placement": "right",
|
|
1599
1598
|
"model-value": s(Z),
|
|
1600
|
-
"onUpdate:modelValue": m[12] || (m[12] = (
|
|
1599
|
+
"onUpdate:modelValue": m[12] || (m[12] = (P) => xe(Z) ? Z.value = P : null),
|
|
1601
1600
|
disabled: s(he) || o.disabled
|
|
1602
1601
|
}, null, 8, ["label", "model-value", "disabled"])
|
|
1603
1602
|
])) : j("", !0),
|
|
1604
1603
|
y(ae, {
|
|
1605
|
-
"model-value":
|
|
1606
|
-
rules: [() =>
|
|
1604
|
+
"model-value": Ve.value,
|
|
1605
|
+
rules: [() => Ve.value ? "Must have at least one non-zero item" : !0]
|
|
1607
1606
|
}, null, 8, ["model-value", "rules"]),
|
|
1608
1607
|
(S(), W(ue, {
|
|
1609
1608
|
"column-defs": Be.value,
|
|
@@ -1617,31 +1616,31 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1617
1616
|
"hide-footer": "",
|
|
1618
1617
|
"page-size": s(t).items.length
|
|
1619
1618
|
}, {
|
|
1620
|
-
"table-row": A((
|
|
1619
|
+
"table-row": A((P) => {
|
|
1621
1620
|
var oe, Ee, mt, pt;
|
|
1622
1621
|
return [
|
|
1623
1622
|
y(ao, {
|
|
1624
1623
|
"compare-price-by-sku": s(ke),
|
|
1625
1624
|
"show-compare-price": K.value === s(ne).PURCHASE && s(Z),
|
|
1626
|
-
row:
|
|
1625
|
+
row: P,
|
|
1627
1626
|
"template-item": (pt = (mt = (Ee = (oe = o.modelValue) == null ? void 0 : oe.templateDoc) == null ? void 0 : Ee.purchaseOrder) == null ? void 0 : mt.items) == null ? void 0 : pt.find(
|
|
1628
|
-
(Ke) => Ke.sku._id ===
|
|
1627
|
+
(Ke) => Ke.sku._id === P.original.sku._id
|
|
1629
1628
|
),
|
|
1630
1629
|
"onUpdate:item": m[13] || (m[13] = (Ke) => we.value.updateItem(Ke)),
|
|
1631
1630
|
disabled: o.disabled
|
|
1632
1631
|
}, null, 8, ["compare-price-by-sku", "show-compare-price", "row", "template-item", "disabled"])
|
|
1633
1632
|
];
|
|
1634
1633
|
}),
|
|
1635
|
-
"list-row": A((
|
|
1634
|
+
"list-row": A((P) => [
|
|
1636
1635
|
(S(), W(xt, {
|
|
1637
|
-
row:
|
|
1636
|
+
row: P,
|
|
1638
1637
|
key: s(t).items.map((oe) => oe.sku._id).join(".")
|
|
1639
1638
|
}, {
|
|
1640
1639
|
default: A((oe) => [
|
|
1641
1640
|
y(Os, {
|
|
1642
1641
|
"compare-price-by-sku": s(ke),
|
|
1643
1642
|
"show-compare-price": K.value === s(ne).PURCHASE && s(Z),
|
|
1644
|
-
row:
|
|
1643
|
+
row: P,
|
|
1645
1644
|
"cell-by-col-id": oe
|
|
1646
1645
|
}, null, 8, ["compare-price-by-sku", "show-compare-price", "row", "cell-by-col-id"])
|
|
1647
1646
|
]),
|
|
@@ -1658,7 +1657,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1658
1657
|
]);
|
|
1659
1658
|
};
|
|
1660
1659
|
}
|
|
1661
|
-
}),
|
|
1660
|
+
}), Vo = { class: "flex items-center" }, Ro = { class: "fm-typo-en-title-md-800" }, Ao = { class: "flex gap-4" }, Eo = /* @__PURE__ */ ce({
|
|
1662
1661
|
__name: "TransferDialog",
|
|
1663
1662
|
props: {
|
|
1664
1663
|
mode: {},
|
|
@@ -1669,7 +1668,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1669
1668
|
},
|
|
1670
1669
|
emits: ["update:show", "submitted"],
|
|
1671
1670
|
setup(g, { expose: w, emit: r }) {
|
|
1672
|
-
var
|
|
1671
|
+
var V;
|
|
1673
1672
|
const p = g, x = r, t = st(), f = wt(), F = Te(), I = at(), v = tt(), e = et(), { t: u } = _e(), k = q(!1), a = q(!1), i = q(!1);
|
|
1674
1673
|
async function h(d) {
|
|
1675
1674
|
if (d) {
|
|
@@ -1720,7 +1719,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1720
1719
|
templateDoc: f.templates.find((b) => b._id === p.templateId)
|
|
1721
1720
|
};
|
|
1722
1721
|
}
|
|
1723
|
-
const C = St(p, "show"), l = q(p.modelValue ?? _()), c = q(((
|
|
1722
|
+
const C = St(p, "show"), l = q(p.modelValue ?? _()), c = q(((V = p.modelValue) == null ? void 0 : V._id) ?? `${Math.random()}`);
|
|
1724
1723
|
ge(
|
|
1725
1724
|
() => p.show,
|
|
1726
1725
|
(d) => {
|
|
@@ -1738,22 +1737,22 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1738
1737
|
return u("inventory.transfer.receiveRequest.update.title");
|
|
1739
1738
|
}
|
|
1740
1739
|
return "";
|
|
1741
|
-
}),
|
|
1740
|
+
}), Y = q();
|
|
1742
1741
|
w({
|
|
1743
1742
|
validateInputs: () => {
|
|
1744
1743
|
var d, b;
|
|
1745
|
-
(b = (d =
|
|
1744
|
+
(b = (d = Y.value) == null ? void 0 : d.validateInputs) == null || b.call(d);
|
|
1746
1745
|
},
|
|
1747
1746
|
resetInputsValidation: () => {
|
|
1748
1747
|
var d, b;
|
|
1749
|
-
(b = (d =
|
|
1748
|
+
(b = (d = Y.value) == null ? void 0 : d.resetInputsValidation) == null || b.call(d);
|
|
1750
1749
|
},
|
|
1751
1750
|
resetInputs: () => {
|
|
1752
1751
|
var d, b;
|
|
1753
|
-
(b = (d =
|
|
1752
|
+
(b = (d = Y.value) == null ? void 0 : d.resetInputs) == null || b.call(d);
|
|
1754
1753
|
}
|
|
1755
1754
|
});
|
|
1756
|
-
async function
|
|
1755
|
+
async function Q() {
|
|
1757
1756
|
const d = l.value;
|
|
1758
1757
|
if (k.value = !0, d.items = d.items.filter((b) => b.quantity.amount > 0), !d.items.length) {
|
|
1759
1758
|
F.open({
|
|
@@ -1810,14 +1809,14 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1810
1809
|
function O() {
|
|
1811
1810
|
switch (p.mode) {
|
|
1812
1811
|
case Oe.CREATE:
|
|
1813
|
-
return
|
|
1812
|
+
return Q();
|
|
1814
1813
|
case Oe.UPDATE:
|
|
1815
1814
|
return K();
|
|
1816
1815
|
}
|
|
1817
1816
|
}
|
|
1818
1817
|
function U() {
|
|
1819
1818
|
var R, X;
|
|
1820
|
-
const d =
|
|
1819
|
+
const d = Yt.validatePurchaseOrderItems({
|
|
1821
1820
|
skusById: v.skuById ?? {},
|
|
1822
1821
|
items: l.value.items ?? []
|
|
1823
1822
|
}), b = Object.values(d).flat();
|
|
@@ -1830,7 +1829,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1830
1829
|
});
|
|
1831
1830
|
return;
|
|
1832
1831
|
}
|
|
1833
|
-
(X = (R =
|
|
1832
|
+
(X = (R = Y.value) == null ? void 0 : R.validateInputs) == null || X.call(R);
|
|
1834
1833
|
}
|
|
1835
1834
|
return (d, b) => {
|
|
1836
1835
|
const R = $("FmButton"), X = $("FmSideSheet");
|
|
@@ -1842,15 +1841,15 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1842
1841
|
"max-width": 900
|
|
1843
1842
|
}, {
|
|
1844
1843
|
"side-sheet-header": A(() => [
|
|
1845
|
-
n("div",
|
|
1844
|
+
n("div", Vo, [
|
|
1846
1845
|
n("div", Ro, M(B.value), 1)
|
|
1847
1846
|
])
|
|
1848
1847
|
]),
|
|
1849
1848
|
default: A(() => [
|
|
1850
|
-
(S(), W(
|
|
1849
|
+
(S(), W(Po, {
|
|
1851
1850
|
class: "w-full",
|
|
1852
1851
|
ref_key: "formRef",
|
|
1853
|
-
ref:
|
|
1852
|
+
ref: Y,
|
|
1854
1853
|
"onForm:ready": b[0] || (b[0] = () => i.value = !0),
|
|
1855
1854
|
onValidationSuccess: O,
|
|
1856
1855
|
modelValue: l.value,
|
|
@@ -1884,7 +1883,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1884
1883
|
}
|
|
1885
1884
|
});
|
|
1886
1885
|
function Oo(g) {
|
|
1887
|
-
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));
|
|
1888
1887
|
if (F.length)
|
|
1889
1888
|
throw new Error(
|
|
1890
1889
|
`Missing headers (${F.join()}). Excel file does not come from the template.`
|
|
@@ -1958,7 +1957,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
1958
1957
|
class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
|
|
1959
1958
|
}, zo = { key: 0 }, Lo = {
|
|
1960
1959
|
class: /* @__PURE__ */ J(["fm-typo-en-body-lg-600"])
|
|
1961
|
-
}, Ho = { class: "flex-1" }, jo = { class: "flex-auto line-clamp-2 text-ellipsis break-all fm-typo-en-body-sm-400" },
|
|
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({
|
|
1962
1961
|
__name: "XilnexResult",
|
|
1963
1962
|
props: {
|
|
1964
1963
|
type: {},
|
|
@@ -2021,13 +2020,13 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2021
2020
|
"z-index": 51
|
|
2022
2021
|
}, {
|
|
2023
2022
|
default: A(() => [
|
|
2024
|
-
n("span",
|
|
2023
|
+
n("span", Yo, M(e.name), 1)
|
|
2025
2024
|
]),
|
|
2026
2025
|
_: 2
|
|
2027
2026
|
}, 1032, ["content"])
|
|
2028
2027
|
]),
|
|
2029
2028
|
n("div", null, [
|
|
2030
|
-
n("span",
|
|
2029
|
+
n("span", Qo, M(s(Ge).toFormatString({
|
|
2031
2030
|
value: e.quantity
|
|
2032
2031
|
})), 1),
|
|
2033
2032
|
$e(" " + M(e.measurement ? e.measurement.abbrev : e.sku.unit.abbrev), 1)
|
|
@@ -2098,7 +2097,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2098
2097
|
});
|
|
2099
2098
|
}
|
|
2100
2099
|
});
|
|
2101
|
-
|
|
2100
|
+
Qe(async () => {
|
|
2102
2101
|
const l = await I.getNetSuiteLocations();
|
|
2103
2102
|
console.log(l), F.value = !0;
|
|
2104
2103
|
});
|
|
@@ -2108,8 +2107,8 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2108
2107
|
},
|
|
2109
2108
|
set(l) {
|
|
2110
2109
|
if (l) {
|
|
2111
|
-
const c = f.effectiveAt ? new Date(f.effectiveAt) : /* @__PURE__ */ new Date(), [D, B,
|
|
2112
|
-
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();
|
|
2113
2112
|
}
|
|
2114
2113
|
}
|
|
2115
2114
|
}), u = N({
|
|
@@ -2176,8 +2175,8 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2176
2175
|
return ge(r, (l) => {
|
|
2177
2176
|
l && C(l);
|
|
2178
2177
|
}), (l, c) => {
|
|
2179
|
-
const D = $("FmSelect"), B = $("FmDatePicker"),
|
|
2180
|
-
return S(), W(
|
|
2178
|
+
const D = $("FmSelect"), B = $("FmDatePicker"), Y = $("FmTimePicker"), Q = $("FmCircularProgress"), K = $("FmLabel"), O = $("FmIcon"), U = $("FmButton"), V = $("FmForm");
|
|
2179
|
+
return S(), W(V, {
|
|
2181
2180
|
ref_key: "formRef",
|
|
2182
2181
|
ref: h
|
|
2183
2182
|
}, {
|
|
@@ -2206,7 +2205,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2206
2205
|
label: "Transfer date",
|
|
2207
2206
|
rules: [s(Me)()]
|
|
2208
2207
|
}, null, 8, ["modelValue", "rules"]),
|
|
2209
|
-
y(
|
|
2208
|
+
y(Y, {
|
|
2210
2209
|
modelValue: u.value,
|
|
2211
2210
|
"onUpdate:modelValue": c[2] || (c[2] = (d) => u.value = d),
|
|
2212
2211
|
label: "Transfer time",
|
|
@@ -2214,7 +2213,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2214
2213
|
}, null, 8, ["modelValue", "rules"]),
|
|
2215
2214
|
t.value ? (S(), T("div", Jo, [
|
|
2216
2215
|
n("div", null, [
|
|
2217
|
-
y(
|
|
2216
|
+
y(Q, {
|
|
2218
2217
|
size: "md",
|
|
2219
2218
|
color: "neutral-gray-200"
|
|
2220
2219
|
})
|
|
@@ -2252,7 +2251,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2252
2251
|
}
|
|
2253
2252
|
])
|
|
2254
2253
|
}, [
|
|
2255
|
-
x.value ? (S(), W(
|
|
2254
|
+
x.value ? (S(), W(Q, {
|
|
2256
2255
|
key: 0,
|
|
2257
2256
|
size: "md",
|
|
2258
2257
|
color: "neutral-gray-200"
|
|
@@ -2440,7 +2439,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2440
2439
|
}), 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 = {
|
|
2441
2440
|
key: 0,
|
|
2442
2441
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
2443
|
-
}, va = { class: "pt-8" }, bt = "ReceiveRequestViewSearchCriteria",
|
|
2442
|
+
}, va = { class: "pt-8" }, bt = "ReceiveRequestViewSearchCriteria", Ta = /* @__PURE__ */ ce({
|
|
2444
2443
|
__name: "ReceiveRequestView",
|
|
2445
2444
|
setup(g) {
|
|
2446
2445
|
const { t: w } = _e(), r = Te();
|
|
@@ -2494,10 +2493,10 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2494
2493
|
"Received quantity": Z,
|
|
2495
2494
|
"Ordered quantity": he,
|
|
2496
2495
|
Unit: ke,
|
|
2497
|
-
"Total cost": b.totalCost ?
|
|
2496
|
+
"Total cost": b.totalCost ? Ye(b.totalCost) : null
|
|
2498
2497
|
};
|
|
2499
2498
|
})
|
|
2500
|
-
),
|
|
2499
|
+
), V = [
|
|
2501
2500
|
"SKU code",
|
|
2502
2501
|
"SKU name",
|
|
2503
2502
|
"PO #",
|
|
@@ -2508,12 +2507,12 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2508
2507
|
"Ordered quantity",
|
|
2509
2508
|
"Unit"
|
|
2510
2509
|
];
|
|
2511
|
-
t.enableBackdatePo &&
|
|
2510
|
+
t.enableBackdatePo && V.insert("Effective at", 4), t.enableTotalCost && V.push("Total cost"), await rs(
|
|
2512
2511
|
[
|
|
2513
2512
|
{
|
|
2514
2513
|
name: "purchases",
|
|
2515
2514
|
data: U,
|
|
2516
|
-
columns:
|
|
2515
|
+
columns: V
|
|
2517
2516
|
}
|
|
2518
2517
|
],
|
|
2519
2518
|
O
|
|
@@ -2572,14 +2571,14 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2572
2571
|
label: w("inventory.common.export"),
|
|
2573
2572
|
value: "export"
|
|
2574
2573
|
}
|
|
2575
|
-
]),
|
|
2574
|
+
]), Y = N(() => {
|
|
2576
2575
|
const O = [
|
|
2577
2576
|
{
|
|
2578
2577
|
type: "string",
|
|
2579
2578
|
key: "status",
|
|
2580
2579
|
entity: "purchaseOrder",
|
|
2581
2580
|
values: Array.from(
|
|
2582
|
-
new Set(e.purchaseOrders.value.map((
|
|
2581
|
+
new Set(e.purchaseOrders.value.map((V) => V.status))
|
|
2583
2582
|
)
|
|
2584
2583
|
}
|
|
2585
2584
|
], U = [
|
|
@@ -2587,40 +2586,40 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2587
2586
|
type: "string",
|
|
2588
2587
|
key: "netsuiteTransactionNumber",
|
|
2589
2588
|
entity: "purchaseOrder",
|
|
2590
|
-
values: e.purchaseOrders.value.map((
|
|
2589
|
+
values: e.purchaseOrders.value.map((V) => {
|
|
2591
2590
|
var d, b;
|
|
2592
|
-
return (b = (d =
|
|
2593
|
-
}).filter((
|
|
2591
|
+
return (b = (d = V.netSuite) == null ? void 0 : d.additionalInfo) == null ? void 0 : b.transactionnumber;
|
|
2592
|
+
}).filter((V) => V != null)
|
|
2594
2593
|
},
|
|
2595
2594
|
{
|
|
2596
2595
|
type: "string",
|
|
2597
2596
|
key: "netsuiteOrderNo",
|
|
2598
2597
|
entity: "purchaseOrder",
|
|
2599
|
-
values: e.purchaseOrders.value.map((
|
|
2598
|
+
values: e.purchaseOrders.value.map((V) => {
|
|
2600
2599
|
var d;
|
|
2601
|
-
return (d =
|
|
2602
|
-
}).filter((
|
|
2600
|
+
return (d = V.netSuite) == null ? void 0 : d.refNo;
|
|
2601
|
+
}).filter((V) => V != null)
|
|
2603
2602
|
},
|
|
2604
2603
|
{
|
|
2605
2604
|
type: "string",
|
|
2606
2605
|
key: "netsuiteOrderId",
|
|
2607
2606
|
entity: "purchaseOrder",
|
|
2608
|
-
values: e.purchaseOrders.value.map((
|
|
2607
|
+
values: e.purchaseOrders.value.map((V) => {
|
|
2609
2608
|
var d;
|
|
2610
|
-
return (d =
|
|
2611
|
-
}).filter((
|
|
2609
|
+
return (d = V.netSuite) == null ? void 0 : d.id;
|
|
2610
|
+
}).filter((V) => V != null)
|
|
2612
2611
|
}
|
|
2613
2612
|
];
|
|
2614
2613
|
return [...O, ...f.isEnabled ? U : []];
|
|
2615
|
-
}),
|
|
2616
|
-
if (!
|
|
2614
|
+
}), Q = q(null), K = N(() => {
|
|
2615
|
+
if (!Q.value)
|
|
2617
2616
|
return e.purchaseOrders.value;
|
|
2618
|
-
const O = Gt.build(
|
|
2617
|
+
const O = Gt.build(Q.value);
|
|
2619
2618
|
return e.purchaseOrders.value.filter((U) => {
|
|
2620
|
-
var
|
|
2619
|
+
var V, d, b, R;
|
|
2621
2620
|
return Jt(
|
|
2622
2621
|
{
|
|
2623
|
-
netsuiteTransactionNumber: (d = (
|
|
2622
|
+
netsuiteTransactionNumber: (d = (V = U.netSuite) == null ? void 0 : V.additionalInfo) == null ? void 0 : d.transactionnumber,
|
|
2624
2623
|
netsuiteOrderNo: (b = U.netSuite) == null ? void 0 : b.refNo,
|
|
2625
2624
|
netsuiteOrderId: (R = U.netSuite) == null ? void 0 : R.id,
|
|
2626
2625
|
status: U.status
|
|
@@ -2630,7 +2629,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2630
2629
|
});
|
|
2631
2630
|
});
|
|
2632
2631
|
return (O, U) => {
|
|
2633
|
-
const
|
|
2632
|
+
const V = $("FmTable");
|
|
2634
2633
|
return S(), W(Wt, {
|
|
2635
2634
|
title: s(w)("inventory.transfer.receiveRequest.title2"),
|
|
2636
2635
|
actions: B.value,
|
|
@@ -2657,11 +2656,11 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2657
2656
|
search: h.value,
|
|
2658
2657
|
"onUpdate:search": U[1] || (U[1] = (R) => h.value = R),
|
|
2659
2658
|
filterable: "",
|
|
2660
|
-
"filter-attributes":
|
|
2661
|
-
filter:
|
|
2662
|
-
"onUpdate:filter": U[2] || (U[2] = (R) =>
|
|
2659
|
+
"filter-attributes": Y.value,
|
|
2660
|
+
filter: Q.value,
|
|
2661
|
+
"onUpdate:filter": U[2] || (U[2] = (R) => Q.value = R)
|
|
2663
2662
|
}, null, 8, ["date-range", "search", "filter-attributes", "filter"]),
|
|
2664
|
-
(S(), W(
|
|
2663
|
+
(S(), W(V, {
|
|
2665
2664
|
style: _t(s(D).tableHeight),
|
|
2666
2665
|
"column-defs": s(u),
|
|
2667
2666
|
"row-data": K.value,
|
|
@@ -2677,7 +2676,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2677
2676
|
onRowClick: s(e).promptShowTransferDetails
|
|
2678
2677
|
}, {
|
|
2679
2678
|
default: A((X) => {
|
|
2680
|
-
var Z, he, ke, ie, we, Ne, Be, ze, De, Le,
|
|
2679
|
+
var Z, he, ke, ie, we, Ne, Be, ze, De, Le, Pe, Ve, o, m, E, H, le, me, G, re;
|
|
2681
2680
|
return [
|
|
2682
2681
|
n("div", da, [
|
|
2683
2682
|
n("div", ca, [
|
|
@@ -2695,7 +2694,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2695
2694
|
n("div", pa, M(R.original.items.map((Fe) => `${Fe.name}`).join(", ")), 1),
|
|
2696
2695
|
R.original.ref ? (S(), T("div", fa, [
|
|
2697
2696
|
y(s(fe), {
|
|
2698
|
-
render: (o = (
|
|
2697
|
+
render: (o = (Ve = (Pe = X.ref) == null ? void 0 : Pe.column) == null ? void 0 : Ve.columnDef) == null ? void 0 : o.cell,
|
|
2699
2698
|
props: (E = (m = X.ref) == null ? void 0 : m.getContext) == null ? void 0 : E.call(m)
|
|
2700
2699
|
}, null, 8, ["render", "props"])
|
|
2701
2700
|
])) : j("", !0),
|
|
@@ -2727,7 +2726,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2727
2726
|
}, {
|
|
2728
2727
|
onSubmitted: s(e).fetchData
|
|
2729
2728
|
}), null, 16, ["scope", "onSubmitted"]),
|
|
2730
|
-
y(ua, Dt(
|
|
2729
|
+
y(ua, Dt(Pt(s(e).xilnexImportDialogProps.value)), null, 16)
|
|
2731
2730
|
]))
|
|
2732
2731
|
];
|
|
2733
2732
|
}),
|
|
@@ -2737,5 +2736,5 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2737
2736
|
}
|
|
2738
2737
|
});
|
|
2739
2738
|
export {
|
|
2740
|
-
|
|
2739
|
+
Ta as default
|
|
2741
2740
|
};
|