@feedmepos/mf-inventory-portal 1.2.10-dev.3 → 1.2.10-dev.4
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-D9otYMgh.js → App-DE0rygXX.js} +1 -1
- package/dist/{ApprovalView-Bue46U6e.js → ApprovalView-9H9G2OWv.js} +17 -17
- package/dist/{BindingsDialog-Xleskmvg.js → BindingsDialog-BjXHdsGH.js} +2 -2
- package/dist/{BindingsPicker-BeNF1NcZ.js → BindingsPicker-BijILjQH.js} +4 -4
- package/dist/{BindingsTable-ecWz3SHk.js → BindingsTable-DlSpPTRi.js} +1 -1
- package/dist/{ClosingDraftView-DkxOW9Ns.js → ClosingDraftView-BaDkJuyF.js} +123 -123
- package/dist/{ClosingTemplateView-BbnpVNYF.js → ClosingTemplateView-CdESDzwA.js} +26 -26
- package/dist/{DeliveryOrderPrintPreview-CH-IzSM9.js → DeliveryOrderPrintPreview-Bwrd33F_.js} +9 -9
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DOR_Iu0w.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-QlB_K9Yi.js} +16 -16
- package/dist/{FmMultiselectDialog-DBgk0_mV.js → FmMultiselectDialog-CLxZbi3l.js} +4 -4
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DdxSlJRz.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B6TbIvQI.js} +43 -43
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C22gncaQ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CtLFZtQZ.js} +7 -7
- package/dist/{IngredientGroupView-CrNLRll8.js → IngredientGroupView-DXQ2TKjI.js} +13 -13
- package/dist/IngredientsView-FLCGHbsn.js +2467 -0
- package/dist/{IntegrationView-DRwnqCf9.js → IntegrationView-BKI0tf68.js} +24 -25
- package/dist/{InventoryBindingForm-DU6B0J0B.js → InventoryBindingForm-BGov_1MJ.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CLCDb25h.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-4IM7dQuV.js} +12 -12
- package/dist/{InventoryBindingSummary-BH2bWICt.js → InventoryBindingSummary-BQA0Sm_K.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BD2hneTA.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bc5diF2E.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-GabOf_-7.js → PremiumBadge.vue_vue_type_script_setup_true_lang-s529wQrr.js} +1 -1
- package/dist/{PublishView-B510iDYx.js → PublishView-DhZ5eMg0.js} +19 -19
- package/dist/{PurchaseOrderPrintPreview-Cbsl8gcZ.js → PurchaseOrderPrintPreview-cMNE8VTL.js} +7 -7
- package/dist/{ReceiveRequestView-rKyNjRbk.js → ReceiveRequestView-Cv-Cgi_o.js} +80 -80
- package/dist/{RecipeView-C9dw-1_E.js → RecipeView-ipT51Tbl.js} +39 -39
- package/dist/{StockView-scnHVHGB.js → StockView-CKok9_oG.js} +833 -830
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BnAwlQE1.js +172 -0
- package/dist/{SupplierView-to6stKYV.js → SupplierView-cGpKVDGP.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-laVp-HrL.js → TransferDetails.vue_vue_type_script_setup_true_lang-0ule7sK7.js} +11 -12
- package/dist/{TransferTemplateView-VOgIhPGW.js → TransferTemplateView-DrlLa0ed.js} +109 -109
- package/dist/{UnitView-sr5QkKex.js → UnitView-YFAtJ0CL.js} +16 -16
- package/dist/{WarehouseView-CB3luO1P.js → WarehouseView-CV5pg-4p.js} +16 -16
- package/dist/{app-BpyxIAaY.js → app-CUMtg_U0.js} +8610 -8548
- package/dist/app.js +1 -1
- package/dist/{closing-template-CEJaVQKn.js → closing-template-Cyva214n.js} +1 -1
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +7 -0
- package/dist/components/netsuite/ItemSubsidiaryTreeDialog.vue.d.ts +16 -0
- package/dist/{decimal-Dqff6QMJ.js → decimal-117ZlAfM.js} +1 -1
- package/dist/{format-unit-display-DcORb0K7.js → format-unit-display-BXHj4DAV.js} +3 -3
- package/dist/{index-CFfIlNHC.js → index-Da1f9OoS.js} +1 -1
- package/dist/{index-rTyWq-0n.js → index-PWnt_za9.js} +1 -1
- package/dist/{purchase-order-template-BFPrzfeR.js → purchase-order-template-AWsxLxPR.js} +1 -1
- package/dist/{stock-CkgmiPOr.js → stock-D7EiEqJe.js} +1 -1
- package/dist/stores/integration/netsuite.d.ts +25 -3
- package/dist/style.css +1 -1
- package/dist/{supplier-Db_-hKgm.js → supplier-DQmyhp0R.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CEEFJa9x.js → use-ingredient-select-dialog-C37DLY6c.js} +4 -4
- package/dist/{use-inventory-binding-dialog-C6Ev4777.js → use-inventory-binding-dialog-CmZereh8.js} +1 -1
- package/package.json +2 -2
- package/dist/FmAdminBadge-D4rqYlKu.js +0 -44
- package/dist/IngredientsView-DLK0Seww.js +0 -2319
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Dt1S8tTH.js +0 -158
|
@@ -1,15 +1,15 @@
|
|
|
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 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
|
|
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 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 Pt } from "vue";
|
|
2
|
+
import { b as Ue, $ as Ge, c as Je, p as Me, l as Ce, af as Qe, a0 as Vt, aE as Rt, A as qe, M as At, q as ht, am as We, T as fe, av as Et, aF as Ot, aG as Mt, aa as qt, aH as Ut, W as kt, u as et, a as tt, aI as Nt, aJ as Bt, ae as zt, a6 as Lt, aK as Ht, Q as xt, v as jt, e as Oe, aL as Qt, G as Yt, H as Kt, J as Xt, aM as je, ag as ft, L as Zt, N as Gt, K as Jt, O as Wt, P as es, a2 as vt } from "./app-CUMtg_U0.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-0ule7sK7.js";
|
|
4
|
+
import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-s529wQrr.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-BXHj4DAV.js";
|
|
8
|
+
import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-B6TbIvQI.js";
|
|
9
|
+
import { c as $e, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-QlB_K9Yi.js";
|
|
10
10
|
import { useI18n as _e } from "@feedmepos/mf-common";
|
|
11
|
-
import "./FmMultiselectDialog-
|
|
12
|
-
import { u as at } from "./supplier-
|
|
11
|
+
import "./FmMultiselectDialog-CLxZbi3l.js";
|
|
12
|
+
import { u as at } from "./supplier-DQmyhp0R.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 || {});
|
|
@@ -316,7 +316,7 @@ function _s(g) {
|
|
|
316
316
|
g.updateItem({
|
|
317
317
|
...e,
|
|
318
318
|
totalCost: {
|
|
319
|
-
...
|
|
319
|
+
...Vt(+a),
|
|
320
320
|
currency: Rt()
|
|
321
321
|
}
|
|
322
322
|
});
|
|
@@ -442,7 +442,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
442
442
|
}), 128))
|
|
443
443
|
]));
|
|
444
444
|
}
|
|
445
|
-
}), ws = { class: "flex flex-col gap-8 py-16" }, Fs = { class: "flex items-center" }, $s = { class: "flex-1 flex gap-1 items-center" }, Is = { 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" },
|
|
445
|
+
}), ws = { class: "flex flex-col gap-8 py-16" }, Fs = { class: "flex items-center" }, $s = { class: "flex-1 flex gap-1 items-center" }, Is = { 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
446
|
key: 0,
|
|
447
447
|
class: "flex-1 flex flex-col gap-4"
|
|
448
448
|
}, Os = /* @__PURE__ */ ce({
|
|
@@ -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, Q, Y, K, O, U,
|
|
459
|
+
var f, F, $, v, e, u, k, a, i, h, _, C, l, c, D, B, Q, Y, K, O, U, V, 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, [
|
|
@@ -472,7 +472,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
472
472
|
])
|
|
473
473
|
]),
|
|
474
474
|
n("div", Ds, [
|
|
475
|
-
n("div",
|
|
475
|
+
n("div", Ps, [
|
|
476
476
|
y(x, {
|
|
477
477
|
label: s(w)(`inventory.transfer.form.items.table.${s(ee).Code}`)
|
|
478
478
|
}, null, 8, ["label"]),
|
|
@@ -482,7 +482,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
482
482
|
}, null, 8, ["render", "props"]),
|
|
483
483
|
p[0] || (p[0] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
484
484
|
]),
|
|
485
|
-
n("div",
|
|
485
|
+
n("div", Vs, [
|
|
486
486
|
y(x, {
|
|
487
487
|
label: s(w)(`inventory.transfer.form.items.table.${s(ee).Name}`)
|
|
488
488
|
}, null, 8, ["label"]),
|
|
@@ -514,7 +514,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
514
514
|
_: 1
|
|
515
515
|
}),
|
|
516
516
|
y(s(fe), {
|
|
517
|
-
render: (d = (
|
|
517
|
+
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
518
|
props: (R = (b = r.cellByColId[s(ee).Cost]) == null ? void 0 : b.getContext) == null ? void 0 : R.call(b)
|
|
519
519
|
}, null, 8, ["render", "props"]),
|
|
520
520
|
p[3] || (p[3] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
@@ -1010,7 +1010,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1010
1010
|
}, Co = { class: "flex-1" }, So = { class: "flex-1" }, wo = {
|
|
1011
1011
|
key: 1,
|
|
1012
1012
|
class: "flex items-center gap-4"
|
|
1013
|
-
}, Fo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary translate-y-[1px]" }, $o = { class: "flex flex-col gap-16" }, Io = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, To = { class: "flex gap-8" }, Do = { key: 0 },
|
|
1013
|
+
}, Fo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary translate-y-[1px]" }, $o = { class: "flex flex-col gap-16" }, Io = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, To = { class: "flex gap-8" }, Do = { key: 0 }, Po = /* @__PURE__ */ ce({
|
|
1014
1014
|
__name: "TransferForm2",
|
|
1015
1015
|
props: {
|
|
1016
1016
|
modelValue: {},
|
|
@@ -1132,7 +1132,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1132
1132
|
set(o) {
|
|
1133
1133
|
Y.transferLocationModel.value = o;
|
|
1134
1134
|
}
|
|
1135
|
-
}),
|
|
1135
|
+
}), V = N({
|
|
1136
1136
|
get() {
|
|
1137
1137
|
return t.remark ?? void 0;
|
|
1138
1138
|
},
|
|
@@ -1293,7 +1293,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1293
1293
|
},
|
|
1294
1294
|
measurement: m.trackingMeasurement ? m.unit.measurements.find((E) => E.id === m.trackingMeasurement) : null
|
|
1295
1295
|
}));
|
|
1296
|
-
}),
|
|
1296
|
+
}), Pe = N(() => {
|
|
1297
1297
|
const o = [];
|
|
1298
1298
|
return (!u.mustUsePoTemplate || u.mustUsePoTemplate && t.template) && o.push({
|
|
1299
1299
|
label: f("inventory.transfer.form.type.purchase"),
|
|
@@ -1302,7 +1302,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1302
1302
|
label: f("inventory.transfer.form.type.transfer"),
|
|
1303
1303
|
value: ne.TRANSFER
|
|
1304
1304
|
}), o;
|
|
1305
|
-
}),
|
|
1305
|
+
}), Ve = N(() => {
|
|
1306
1306
|
var o;
|
|
1307
1307
|
return (o = p.modelValue) == null ? void 0 : o.items.every((m) => m.quantity.amount <= 0);
|
|
1308
1308
|
});
|
|
@@ -1400,7 +1400,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1400
1400
|
default: A(() => [
|
|
1401
1401
|
y(me, null, {
|
|
1402
1402
|
default: A(() => {
|
|
1403
|
-
var
|
|
1403
|
+
var P;
|
|
1404
1404
|
return [
|
|
1405
1405
|
n("div", ho, [
|
|
1406
1406
|
y(le, {
|
|
@@ -1410,7 +1410,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1410
1410
|
}, null, 8, ["color"]),
|
|
1411
1411
|
n("div", {
|
|
1412
1412
|
class: J({ "text-fm-color-typo-disabled": o.disabled })
|
|
1413
|
-
}, M((
|
|
1413
|
+
}, M((P = O.value.find((oe) => oe.value === U.value)) == null ? void 0 : P.label), 3)
|
|
1414
1414
|
])
|
|
1415
1415
|
];
|
|
1416
1416
|
}),
|
|
@@ -1426,9 +1426,9 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1426
1426
|
label: s(f)("inventory.transfer.form.type.title"),
|
|
1427
1427
|
"label-mark": "required",
|
|
1428
1428
|
modelValue: K.value,
|
|
1429
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
1430
|
-
items:
|
|
1431
|
-
rules: [s(qe)(1)(
|
|
1429
|
+
"onUpdate:modelValue": m[0] || (m[0] = (P) => K.value = P),
|
|
1430
|
+
items: Pe.value,
|
|
1431
|
+
rules: [s(qe)(1)(Pe.value)]
|
|
1432
1432
|
}, {
|
|
1433
1433
|
default: A(() => [
|
|
1434
1434
|
n("span", {
|
|
@@ -1444,28 +1444,28 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1444
1444
|
label: K.value === s(ne).PURCHASE ? s(f)("inventory.transfer.form.purchaseFrom") : s(f)("inventory.transfer.form.transferFrom"),
|
|
1445
1445
|
"label-mark": "required",
|
|
1446
1446
|
modelValue: U.value,
|
|
1447
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
1447
|
+
"onUpdate:modelValue": m[1] || (m[1] = (P) => U.value = P),
|
|
1448
1448
|
items: O.value,
|
|
1449
1449
|
rules: [s(qe)(1)(O.value)]
|
|
1450
1450
|
}, {
|
|
1451
|
-
"menu-wrapper": A((
|
|
1451
|
+
"menu-wrapper": A((P) => {
|
|
1452
1452
|
var oe, Ee;
|
|
1453
1453
|
return [
|
|
1454
|
-
y(ys, Ze(
|
|
1454
|
+
y(ys, Ze(P, {
|
|
1455
1455
|
items: O.value,
|
|
1456
1456
|
"model-value": (Ee = (oe = o.modelValue) == null ? void 0 : oe.supplier) == null ? void 0 : Ee._id
|
|
1457
1457
|
}), null, 16, ["items", "model-value"])
|
|
1458
1458
|
];
|
|
1459
1459
|
}),
|
|
1460
1460
|
default: A(() => {
|
|
1461
|
-
var
|
|
1461
|
+
var P;
|
|
1462
1462
|
return [
|
|
1463
1463
|
n("span", {
|
|
1464
1464
|
class: J([
|
|
1465
1465
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
1466
1466
|
o.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
1467
1467
|
])
|
|
1468
|
-
}, M((
|
|
1468
|
+
}, M((P = O.value.find((oe) => oe.value === U.value)) == null ? void 0 : P.label), 3)
|
|
1469
1469
|
];
|
|
1470
1470
|
}),
|
|
1471
1471
|
_: 1
|
|
@@ -1475,14 +1475,14 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1475
1475
|
label: s(f)("inventory.transfer.form.reference"),
|
|
1476
1476
|
"label-mark": "optional",
|
|
1477
1477
|
modelValue: s(t).ref,
|
|
1478
|
-
"onUpdate:modelValue": m[2] || (m[2] = (
|
|
1478
|
+
"onUpdate:modelValue": m[2] || (m[2] = (P) => s(t).ref = P)
|
|
1479
1479
|
}, null, 8, ["label", "modelValue"]),
|
|
1480
1480
|
y(He, {
|
|
1481
1481
|
label: s(f)("inventory.transfer.form.remark"),
|
|
1482
1482
|
"label-mark": "optional",
|
|
1483
1483
|
"max-length": 240,
|
|
1484
|
-
modelValue:
|
|
1485
|
-
"onUpdate:modelValue": m[3] || (m[3] = (
|
|
1484
|
+
modelValue: V.value,
|
|
1485
|
+
"onUpdate:modelValue": m[3] || (m[3] = (P) => V.value = P),
|
|
1486
1486
|
class: J([o.disabled ? "text-fm-color-typo-disabled " : ""])
|
|
1487
1487
|
}, null, 8, ["label", "modelValue", "class"]),
|
|
1488
1488
|
_.value ? (S(), W(uo, {
|
|
@@ -1492,10 +1492,10 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1492
1492
|
supplier: s(t).supplier,
|
|
1493
1493
|
setting: s(t).netSuite,
|
|
1494
1494
|
items: s(t).items,
|
|
1495
|
-
onChange: (
|
|
1496
|
-
s(t).items =
|
|
1495
|
+
onChange: (P, oe) => {
|
|
1496
|
+
s(t).items = P, s(t).netSuite = oe;
|
|
1497
1497
|
},
|
|
1498
|
-
"onNetsuite:ready": m[4] || (m[4] = (
|
|
1498
|
+
"onNetsuite:ready": m[4] || (m[4] = (P) => {
|
|
1499
1499
|
h.value = !0;
|
|
1500
1500
|
})
|
|
1501
1501
|
}, null, 8, ["required", "disabled", "supplier", "setting", "items", "onChange"])) : j("", !0),
|
|
@@ -1510,7 +1510,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1510
1510
|
}, [
|
|
1511
1511
|
y(Re, {
|
|
1512
1512
|
modelValue: s(b),
|
|
1513
|
-
"onUpdate:modelValue": m[5] || (m[5] = (
|
|
1513
|
+
"onUpdate:modelValue": m[5] || (m[5] = (P) => xe(b) ? b.value = P : null),
|
|
1514
1514
|
label: s(f)("inventory.transfer.form.backdate.title"),
|
|
1515
1515
|
sublabel: s(f)("inventory.transfer.form.backdate.subtitle"),
|
|
1516
1516
|
"label-placement": "right",
|
|
@@ -1523,13 +1523,13 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1523
1523
|
n("div", Co, [
|
|
1524
1524
|
y(z, {
|
|
1525
1525
|
modelValue: s(R),
|
|
1526
|
-
"onUpdate:modelValue": m[6] || (m[6] = (
|
|
1526
|
+
"onUpdate:modelValue": m[6] || (m[6] = (P) => xe(R) ? R.value = P : null)
|
|
1527
1527
|
}, null, 8, ["modelValue"])
|
|
1528
1528
|
]),
|
|
1529
1529
|
n("div", So, [
|
|
1530
1530
|
y(te, {
|
|
1531
1531
|
modelValue: s(X),
|
|
1532
|
-
"onUpdate:modelValue": m[7] || (m[7] = (
|
|
1532
|
+
"onUpdate:modelValue": m[7] || (m[7] = (P) => xe(X) ? X.value = P : null)
|
|
1533
1533
|
}, null, 8, ["modelValue"])
|
|
1534
1534
|
])
|
|
1535
1535
|
])) : j("", !0)
|
|
@@ -1537,7 +1537,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1537
1537
|
s(d) ? (S(), W(ae, {
|
|
1538
1538
|
key: 0,
|
|
1539
1539
|
modelValue: s(d),
|
|
1540
|
-
"onUpdate:modelValue": m[8] || (m[8] = (
|
|
1540
|
+
"onUpdate:modelValue": m[8] || (m[8] = (P) => xe(d) ? d.value = P : null),
|
|
1541
1541
|
rules: [s(Ht)(new Date(o.lastClosingDate), /* @__PURE__ */ new Date())]
|
|
1542
1542
|
}, null, 8, ["modelValue", "rules"])) : j("", !0),
|
|
1543
1543
|
B.value && !o.lastClosingDate ? (S(), T("div", wo, [
|
|
@@ -1575,18 +1575,18 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1575
1575
|
"text-color": "primary",
|
|
1576
1576
|
"bg-color": "transparent",
|
|
1577
1577
|
"border-color": "primary",
|
|
1578
|
-
onClick: m[9] || (m[9] = (
|
|
1578
|
+
onClick: m[9] || (m[9] = (P) => ze()),
|
|
1579
1579
|
size: "md"
|
|
1580
1580
|
}, null, 8, ["disabled", "label"]),
|
|
1581
1581
|
y(Ws, {
|
|
1582
1582
|
"template-id": s(t).template || void 0,
|
|
1583
1583
|
"template-items": Le.value,
|
|
1584
1584
|
"po-items": s(t).items,
|
|
1585
|
-
"onUpdate:forecastAmounts": m[10] || (m[10] = (
|
|
1586
|
-
l.value =
|
|
1585
|
+
"onUpdate:forecastAmounts": m[10] || (m[10] = (P) => {
|
|
1586
|
+
l.value = P;
|
|
1587
1587
|
}),
|
|
1588
|
-
"onUpdate:poItems": m[11] || (m[11] = (
|
|
1589
|
-
s(t).items =
|
|
1588
|
+
"onUpdate:poItems": m[11] || (m[11] = (P) => {
|
|
1589
|
+
s(t).items = P, C.value++;
|
|
1590
1590
|
})
|
|
1591
1591
|
}, null, 8, ["template-id", "template-items", "po-items"])
|
|
1592
1592
|
])
|
|
@@ -1597,13 +1597,13 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1597
1597
|
"prepend-icon": "compare_arrows",
|
|
1598
1598
|
"label-placement": "right",
|
|
1599
1599
|
"model-value": s(Z),
|
|
1600
|
-
"onUpdate:modelValue": m[12] || (m[12] = (
|
|
1600
|
+
"onUpdate:modelValue": m[12] || (m[12] = (P) => xe(Z) ? Z.value = P : null),
|
|
1601
1601
|
disabled: s(he) || o.disabled
|
|
1602
1602
|
}, null, 8, ["label", "model-value", "disabled"])
|
|
1603
1603
|
])) : j("", !0),
|
|
1604
1604
|
y(ae, {
|
|
1605
|
-
"model-value":
|
|
1606
|
-
rules: [() =>
|
|
1605
|
+
"model-value": Ve.value,
|
|
1606
|
+
rules: [() => Ve.value ? "Must have at least one non-zero item" : !0]
|
|
1607
1607
|
}, null, 8, ["model-value", "rules"]),
|
|
1608
1608
|
(S(), W(ue, {
|
|
1609
1609
|
"column-defs": Be.value,
|
|
@@ -1617,31 +1617,31 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1617
1617
|
"hide-footer": "",
|
|
1618
1618
|
"page-size": s(t).items.length
|
|
1619
1619
|
}, {
|
|
1620
|
-
"table-row": A((
|
|
1620
|
+
"table-row": A((P) => {
|
|
1621
1621
|
var oe, Ee, mt, pt;
|
|
1622
1622
|
return [
|
|
1623
1623
|
y(ao, {
|
|
1624
1624
|
"compare-price-by-sku": s(ke),
|
|
1625
1625
|
"show-compare-price": K.value === s(ne).PURCHASE && s(Z),
|
|
1626
|
-
row:
|
|
1626
|
+
row: P,
|
|
1627
1627
|
"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 ===
|
|
1628
|
+
(Ke) => Ke.sku._id === P.original.sku._id
|
|
1629
1629
|
),
|
|
1630
1630
|
"onUpdate:item": m[13] || (m[13] = (Ke) => we.value.updateItem(Ke)),
|
|
1631
1631
|
disabled: o.disabled
|
|
1632
1632
|
}, null, 8, ["compare-price-by-sku", "show-compare-price", "row", "template-item", "disabled"])
|
|
1633
1633
|
];
|
|
1634
1634
|
}),
|
|
1635
|
-
"list-row": A((
|
|
1635
|
+
"list-row": A((P) => [
|
|
1636
1636
|
(S(), W(xt, {
|
|
1637
|
-
row:
|
|
1637
|
+
row: P,
|
|
1638
1638
|
key: s(t).items.map((oe) => oe.sku._id).join(".")
|
|
1639
1639
|
}, {
|
|
1640
1640
|
default: A((oe) => [
|
|
1641
1641
|
y(Os, {
|
|
1642
1642
|
"compare-price-by-sku": s(ke),
|
|
1643
1643
|
"show-compare-price": K.value === s(ne).PURCHASE && s(Z),
|
|
1644
|
-
row:
|
|
1644
|
+
row: P,
|
|
1645
1645
|
"cell-by-col-id": oe
|
|
1646
1646
|
}, null, 8, ["compare-price-by-sku", "show-compare-price", "row", "cell-by-col-id"])
|
|
1647
1647
|
]),
|
|
@@ -1658,7 +1658,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1658
1658
|
]);
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
|
-
}),
|
|
1661
|
+
}), Vo = { class: "flex items-center" }, Ro = { class: "fm-typo-en-title-md-800" }, Ao = { class: "flex gap-4" }, Eo = /* @__PURE__ */ ce({
|
|
1662
1662
|
__name: "TransferDialog",
|
|
1663
1663
|
props: {
|
|
1664
1664
|
mode: {},
|
|
@@ -1669,7 +1669,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1669
1669
|
},
|
|
1670
1670
|
emits: ["update:show", "submitted"],
|
|
1671
1671
|
setup(g, { expose: w, emit: r }) {
|
|
1672
|
-
var
|
|
1672
|
+
var V;
|
|
1673
1673
|
const p = g, x = r, t = st(), f = wt(), F = Te(), $ = at(), v = tt(), e = et(), { t: u } = _e(), k = q(!1), a = q(!1), i = q(!1);
|
|
1674
1674
|
async function h(d) {
|
|
1675
1675
|
if (d) {
|
|
@@ -1720,7 +1720,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1720
1720
|
templateDoc: f.templates.find((b) => b._id === p.templateId)
|
|
1721
1721
|
};
|
|
1722
1722
|
}
|
|
1723
|
-
const C = St(p, "show"), l = q(p.modelValue ?? _()), c = q(((
|
|
1723
|
+
const C = St(p, "show"), l = q(p.modelValue ?? _()), c = q(((V = p.modelValue) == null ? void 0 : V._id) ?? `${Math.random()}`);
|
|
1724
1724
|
ge(
|
|
1725
1725
|
() => p.show,
|
|
1726
1726
|
(d) => {
|
|
@@ -1842,12 +1842,12 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1842
1842
|
"max-width": 900
|
|
1843
1843
|
}, {
|
|
1844
1844
|
"side-sheet-header": A(() => [
|
|
1845
|
-
n("div",
|
|
1845
|
+
n("div", Vo, [
|
|
1846
1846
|
n("div", Ro, M(B.value), 1)
|
|
1847
1847
|
])
|
|
1848
1848
|
]),
|
|
1849
1849
|
default: A(() => [
|
|
1850
|
-
(S(), W(
|
|
1850
|
+
(S(), W(Po, {
|
|
1851
1851
|
class: "w-full",
|
|
1852
1852
|
ref_key: "formRef",
|
|
1853
1853
|
ref: Q,
|
|
@@ -2176,8 +2176,8 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2176
2176
|
return ge(r, (l) => {
|
|
2177
2177
|
l && C(l);
|
|
2178
2178
|
}), (l, c) => {
|
|
2179
|
-
const D = I("FmSelect"), B = I("FmDatePicker"), Q = I("FmTimePicker"), Y = I("FmCircularProgress"), K = I("FmLabel"), O = I("FmIcon"), U = I("FmButton"),
|
|
2180
|
-
return S(), W(
|
|
2179
|
+
const D = I("FmSelect"), B = I("FmDatePicker"), Q = I("FmTimePicker"), Y = I("FmCircularProgress"), K = I("FmLabel"), O = I("FmIcon"), U = I("FmButton"), V = I("FmForm");
|
|
2180
|
+
return S(), W(V, {
|
|
2181
2181
|
ref_key: "formRef",
|
|
2182
2182
|
ref: h
|
|
2183
2183
|
}, {
|
|
@@ -2497,7 +2497,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2497
2497
|
"Total cost": b.totalCost ? Qe(b.totalCost) : null
|
|
2498
2498
|
};
|
|
2499
2499
|
})
|
|
2500
|
-
),
|
|
2500
|
+
), V = [
|
|
2501
2501
|
"SKU code",
|
|
2502
2502
|
"SKU name",
|
|
2503
2503
|
"PO #",
|
|
@@ -2508,12 +2508,12 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2508
2508
|
"Ordered quantity",
|
|
2509
2509
|
"Unit"
|
|
2510
2510
|
];
|
|
2511
|
-
t.enableBackdatePo &&
|
|
2511
|
+
t.enableBackdatePo && V.insert("Effective at", 4), t.enableTotalCost && V.push("Total cost"), await rs(
|
|
2512
2512
|
[
|
|
2513
2513
|
{
|
|
2514
2514
|
name: "purchases",
|
|
2515
2515
|
data: U,
|
|
2516
|
-
columns:
|
|
2516
|
+
columns: V
|
|
2517
2517
|
}
|
|
2518
2518
|
],
|
|
2519
2519
|
O
|
|
@@ -2579,7 +2579,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2579
2579
|
key: "status",
|
|
2580
2580
|
entity: "purchaseOrder",
|
|
2581
2581
|
values: Array.from(
|
|
2582
|
-
new Set(e.purchaseOrders.value.map((
|
|
2582
|
+
new Set(e.purchaseOrders.value.map((V) => V.status))
|
|
2583
2583
|
)
|
|
2584
2584
|
}
|
|
2585
2585
|
], U = [
|
|
@@ -2587,28 +2587,28 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2587
2587
|
type: "string",
|
|
2588
2588
|
key: "netsuiteTransactionNumber",
|
|
2589
2589
|
entity: "purchaseOrder",
|
|
2590
|
-
values: e.purchaseOrders.value.map((
|
|
2590
|
+
values: e.purchaseOrders.value.map((V) => {
|
|
2591
2591
|
var d, b;
|
|
2592
|
-
return (b = (d =
|
|
2593
|
-
}).filter((
|
|
2592
|
+
return (b = (d = V.netSuite) == null ? void 0 : d.additionalInfo) == null ? void 0 : b.transactionnumber;
|
|
2593
|
+
}).filter((V) => V != null)
|
|
2594
2594
|
},
|
|
2595
2595
|
{
|
|
2596
2596
|
type: "string",
|
|
2597
2597
|
key: "netsuiteOrderNo",
|
|
2598
2598
|
entity: "purchaseOrder",
|
|
2599
|
-
values: e.purchaseOrders.value.map((
|
|
2599
|
+
values: e.purchaseOrders.value.map((V) => {
|
|
2600
2600
|
var d;
|
|
2601
|
-
return (d =
|
|
2602
|
-
}).filter((
|
|
2601
|
+
return (d = V.netSuite) == null ? void 0 : d.refNo;
|
|
2602
|
+
}).filter((V) => V != null)
|
|
2603
2603
|
},
|
|
2604
2604
|
{
|
|
2605
2605
|
type: "string",
|
|
2606
2606
|
key: "netsuiteOrderId",
|
|
2607
2607
|
entity: "purchaseOrder",
|
|
2608
|
-
values: e.purchaseOrders.value.map((
|
|
2608
|
+
values: e.purchaseOrders.value.map((V) => {
|
|
2609
2609
|
var d;
|
|
2610
|
-
return (d =
|
|
2611
|
-
}).filter((
|
|
2610
|
+
return (d = V.netSuite) == null ? void 0 : d.id;
|
|
2611
|
+
}).filter((V) => V != null)
|
|
2612
2612
|
}
|
|
2613
2613
|
];
|
|
2614
2614
|
return [...O, ...f.isEnabled ? U : []];
|
|
@@ -2617,10 +2617,10 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2617
2617
|
return e.purchaseOrders.value;
|
|
2618
2618
|
const O = Gt.build(Y.value);
|
|
2619
2619
|
return e.purchaseOrders.value.filter((U) => {
|
|
2620
|
-
var
|
|
2620
|
+
var V, d, b, R;
|
|
2621
2621
|
return Jt(
|
|
2622
2622
|
{
|
|
2623
|
-
netsuiteTransactionNumber: (d = (
|
|
2623
|
+
netsuiteTransactionNumber: (d = (V = U.netSuite) == null ? void 0 : V.additionalInfo) == null ? void 0 : d.transactionnumber,
|
|
2624
2624
|
netsuiteOrderNo: (b = U.netSuite) == null ? void 0 : b.refNo,
|
|
2625
2625
|
netsuiteOrderId: (R = U.netSuite) == null ? void 0 : R.id,
|
|
2626
2626
|
status: U.status
|
|
@@ -2630,7 +2630,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2630
2630
|
});
|
|
2631
2631
|
});
|
|
2632
2632
|
return (O, U) => {
|
|
2633
|
-
const
|
|
2633
|
+
const V = I("FmTable");
|
|
2634
2634
|
return S(), W(Wt, {
|
|
2635
2635
|
title: s(w)("inventory.transfer.receiveRequest.title2"),
|
|
2636
2636
|
actions: B.value,
|
|
@@ -2661,7 +2661,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2661
2661
|
filter: Y.value,
|
|
2662
2662
|
"onUpdate:filter": U[2] || (U[2] = (R) => Y.value = R)
|
|
2663
2663
|
}, null, 8, ["date-range", "search", "filter-attributes", "filter"]),
|
|
2664
|
-
(S(), W(
|
|
2664
|
+
(S(), W(V, {
|
|
2665
2665
|
style: _t(s(D).tableHeight),
|
|
2666
2666
|
"column-defs": s(u),
|
|
2667
2667
|
"row-data": K.value,
|
|
@@ -2677,7 +2677,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2677
2677
|
onRowClick: s(e).promptShowTransferDetails
|
|
2678
2678
|
}, {
|
|
2679
2679
|
default: A((X) => {
|
|
2680
|
-
var Z, he, ke, ie, we, Ne, Be, ze, De, Le,
|
|
2680
|
+
var Z, he, ke, ie, we, Ne, Be, ze, De, Le, Pe, Ve, o, m, E, H, le, me, G, re;
|
|
2681
2681
|
return [
|
|
2682
2682
|
n("div", da, [
|
|
2683
2683
|
n("div", ca, [
|
|
@@ -2695,7 +2695,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2695
2695
|
n("div", pa, M(R.original.items.map((Fe) => `${Fe.name}`).join(", ")), 1),
|
|
2696
2696
|
R.original.ref ? (S(), T("div", fa, [
|
|
2697
2697
|
y(s(fe), {
|
|
2698
|
-
render: (o = (
|
|
2698
|
+
render: (o = (Ve = (Pe = X.ref) == null ? void 0 : Pe.column) == null ? void 0 : Ve.columnDef) == null ? void 0 : o.cell,
|
|
2699
2699
|
props: (E = (m = X.ref) == null ? void 0 : m.getContext) == null ? void 0 : E.call(m)
|
|
2700
2700
|
}, null, 8, ["render", "props"])
|
|
2701
2701
|
])) : j("", !0),
|
|
@@ -2727,7 +2727,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2727
2727
|
}, {
|
|
2728
2728
|
onSubmitted: s(e).fetchData
|
|
2729
2729
|
}), null, 16, ["scope", "onSubmitted"]),
|
|
2730
|
-
y(ua, Dt(
|
|
2730
|
+
y(ua, Dt(Pt(s(e).xilnexImportDialogProps.value)), null, 16)
|
|
2731
2731
|
]))
|
|
2732
2732
|
];
|
|
2733
2733
|
}),
|