@feedmepos/mf-inventory-portal 1.1.2-dev.1 → 1.1.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-BMqeotH6.js → App-BhEtjLqO.js} +1 -1
- package/dist/{ApprovalView-BT7kIV_A.js → ApprovalView-BHIVSsbz.js} +11 -14
- package/dist/{BindingsDialog-D51Q5MF6.js → BindingsDialog-CX3Hu_r6.js} +4 -4
- package/dist/{BindingsPicker-CohecktA.js → BindingsPicker-BbinQ8Hl.js} +1 -1
- package/dist/{BindingsTable-CCMPhjwe.js → BindingsTable-DxlSz6Ev.js} +4 -4
- package/dist/ClosingDraftView-B5gQ2k-T.js +1520 -0
- package/dist/{ClosingTemplateView-Btsnd8gB.js → ClosingTemplateView-CB9_JOl4.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-DePkWJOm.js → DeliveryOrderPrintPreview-BlE3fIAT.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BHe6mzeX.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DxKFFyWs.js} +3 -3
- package/dist/{FmMultiselectDialog-B2IB-7_X.js → FmMultiselectDialog-DcviKwNR.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-aTjBWSes.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CepHeClt.js} +1 -1
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-HQbIbui8.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Dg8VdQzg.js} +1 -1
- package/dist/{IngredientGroupView-DKcrpkvr.js → IngredientGroupView-EE8lN8JL.js} +2 -2
- package/dist/{IngredientsView-BgX3guha.js → IngredientsView-BkDpHVvn.js} +4 -4
- package/dist/{IntegrationView-C5El8VLw.js → IntegrationView-Bj7sb1gO.js} +1141 -1170
- package/dist/{InventoryBindingForm-BdOwwb0P.js → InventoryBindingForm-BkazprFH.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-JjFL1iOr.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BbQqYyzL.js} +3 -3
- package/dist/{InventoryBindingSummary-B0V_pijk.js → InventoryBindingSummary-D0XiOdR4.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CYaubxCg.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Pf8BPDZw.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BrfGdfiV.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D2Tx3xSj.js} +1 -1
- package/dist/{PublishView-CsR3VsEU.js → PublishView-BUIcrw8m.js} +18 -18
- package/dist/{PurchaseOrderPrintPreview-CvKdnDGs.js → PurchaseOrderPrintPreview-lO7Bilm5.js} +1 -1
- package/dist/{ReceiveRequestView-CdTcc_KK.js → ReceiveRequestView-BZV-8Ib3.js} +169 -172
- package/dist/{RecipeView-yZ1lHuhB.js → RecipeView-2Tm12Zuk.js} +3 -3
- package/dist/{StockView-BnSAddLa.js → StockView-DaWS_HQl.js} +6 -6
- package/dist/{SupplierView-DPZQEzlB.js → SupplierView-nfxqynuY.js} +3 -3
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-g74nRiM0.js +2213 -0
- package/dist/{TransferTemplateView-DqncASn2.js → TransferTemplateView-CGjfCELA.js} +6 -6
- package/dist/{UnitView-BjZ9uslx.js → UnitView-Cm5WuuEN.js} +3 -3
- package/dist/{WarehouseView-CRzmlUEo.js → WarehouseView-BSLX0g3B.js} +1 -1
- package/dist/api/netsuite.d.ts +0 -1
- package/dist/{app-D2JWXias.js → app-CnDLBWW7.js} +27510 -27243
- package/dist/app.d.ts +0 -9
- package/dist/app.js +5 -5
- package/dist/components/FmMultiselectDialogTemporary.vue.d.ts +41 -0
- package/dist/{decimal-Bym-hUyX.js → decimal-DmezA5YT.js} +1 -1
- package/dist/{format-unit-display-DjeIMeDv.js → format-unit-display-Bcq6wldv.js} +2 -2
- package/dist/{index-6SJDAQ49.js → index-C476dvi7.js} +2651 -2687
- package/dist/{index-69XpTRSm.js → index-R97nRHsF.js} +1 -1
- package/dist/{stock-CGw_wo2L.js → stock-Dd0YSjSF.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-k-KIWnC0.js → supplier-C4s3SHui.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-DkPWvSTc.js → use-ingredient-select-dialog-DaXBOLhz.js} +1 -1
- package/dist/{use-inventory-binding-dialog-ByWG9YFs.js → use-inventory-binding-dialog-CsFwoUbg.js} +1 -1
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +1 -4
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +0 -8
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +0 -626
- package/dist/{vue-i18n-DutvGlXI.js → vue-i18n-CdkMdZ30.js} +497 -497
- package/package.json +4 -4
- package/dist/ClosingDraftView-CkdD2cd0.js +0 -1676
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DMLHPIeF.js +0 -2275
- package/dist/views/closing-draft/components/closing-draft-action/RefreshBalanceAction.vue.d.ts +0 -19
- package/dist/views/receive-request/composables/fn.d.ts +0 -8
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { reactive as bt, onMounted as Qe, watch as _e, 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
|
|
2
|
-
import { b as
|
|
3
|
-
import { u as tt,
|
|
4
|
-
import { _ as Ct, u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { useBreakpoints as st, components as ge, FmButtonVariant as
|
|
7
|
-
import { P as ne, u as wt } from "./format-unit-display-
|
|
8
|
-
import { _ as
|
|
9
|
-
import { c as $e, u as
|
|
1
|
+
import { reactive as bt, onMounted as Qe, watch as _e, 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 q, unref as s, resolveComponent as I, createVNode as b, withCtx as R, createCommentVNode as j, ref as M, createBlock as G, normalizeClass as Z, normalizeStyle as gt, 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 Me, Q as _t, c as We, m as Oe, j as Ce, a7 as je, T as Pt, av as Rt, A as qe, M as At, n as ht, ae as Ge, G as fe, an as Et, aw as Ot, ax as qt, ay as Mt, K as kt, u as Je, a as et, az as Ut, aA as Nt, a6 as Bt, a0 as zt, aB as Lt, E as xt, a2 as Ht, e as Ee, aC as jt, x as Qt, y as Yt, z as Kt, aD as He, a8 as pt, B as Xt, N as Zt, H as Wt, _ as Gt, C as Jt, W as ft } from "./app-CnDLBWW7.js";
|
|
3
|
+
import { u as tt, a as es, P as Xe, b as ts, _ as ss, g as os } from "./TransferDetails.vue_vue_type_script_setup_true_lang-g74nRiM0.js";
|
|
4
|
+
import { _ as Ct, u as as, i as ns, e as ls } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-D2Tx3xSj.js";
|
|
5
|
+
import { u as rs } from "./useTabStorage-BkIVScW_.js";
|
|
6
|
+
import { useBreakpoints as st, components as ge, FmButtonVariant as is, useSnackbar as Te, useDialog as us, useProxiedModel as St } from "@feedmepos/ui-library";
|
|
7
|
+
import { P as ne, u as wt } from "./format-unit-display-Bcq6wldv.js";
|
|
8
|
+
import { _ as ds, F as cs, a as ms, b as ps } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CepHeClt.js";
|
|
9
|
+
import { c as $e, u as fs, _ as vs } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DxKFFyWs.js";
|
|
10
10
|
import { useI18n as he } from "@feedmepos/mf-common";
|
|
11
|
-
import "./FmMultiselectDialog-
|
|
12
|
-
import { u as ot } from "./supplier-
|
|
13
|
-
import { _ as
|
|
14
|
-
import { u as
|
|
11
|
+
import "./FmMultiselectDialog-DcviKwNR.js";
|
|
12
|
+
import { u as ot } from "./supplier-C4s3SHui.js";
|
|
13
|
+
import { _ as ys } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
14
|
+
import { u as bs } from "./vue-i18n-CdkMdZ30.js";
|
|
15
15
|
import "./array-Ca8T3f_G.js";
|
|
16
16
|
var J = /* @__PURE__ */ ((g) => (g.Code = "Code", g.Name = "Name", g.TemplateName = "TemplateName", g.Amount = "Amount", g.Cost = "Cost", g.TotalCost = "TotalCost", g.Delete = "Delete", g))(J || {});
|
|
17
|
-
const
|
|
17
|
+
const gs = () => (he(), L(
|
|
18
18
|
Ct,
|
|
19
19
|
{
|
|
20
20
|
zIndex: 50,
|
|
@@ -22,8 +22,8 @@ const _s = () => (he(), L(
|
|
|
22
22
|
},
|
|
23
23
|
`Total (${ht()})`
|
|
24
24
|
));
|
|
25
|
-
function
|
|
26
|
-
const { t: w } = he(), r = bt({}), { breakpoints: p } = st(), x = We(), t =
|
|
25
|
+
function _s(g) {
|
|
26
|
+
const { t: w } = he(), r = bt({}), { breakpoints: p } = st(), x = We(), t = Me();
|
|
27
27
|
Qe(() => {
|
|
28
28
|
for (const y of g.items) {
|
|
29
29
|
if (!y.totalCost)
|
|
@@ -174,7 +174,7 @@ function hs(g) {
|
|
|
174
174
|
const e = y.row.original, u = (i = g.forecastAmounts) == null ? void 0 : i.find((m) => m.skuId === e.sku._id), k = u ? u.helperState === "error" ? `Predicted: ${u.amount} (out of range)` : `Predicted: ${u.amount}` : void 0, a = (C = (_ = (h = g.template) == null ? void 0 : h.purchaseOrder) == null ? void 0 : _.items) == null ? void 0 : C.find(
|
|
175
175
|
(m) => m.sku._id === e.sku._id
|
|
176
176
|
);
|
|
177
|
-
return L(
|
|
177
|
+
return L(ds, {
|
|
178
178
|
style: {
|
|
179
179
|
flex: "1 1 0%"
|
|
180
180
|
},
|
|
@@ -213,15 +213,15 @@ function hs(g) {
|
|
|
213
213
|
disableUnit: !!a,
|
|
214
214
|
disabled: g.disabled,
|
|
215
215
|
rules: [
|
|
216
|
-
|
|
216
|
+
cs(
|
|
217
217
|
+Ce(
|
|
218
218
|
((l = e.quantity) == null ? void 0 : l.amount) === 0 ? { amount: 0, precision: 0 } : (a == null ? void 0 : a.minimumQuantity) ?? { amount: 0, precision: 0 }
|
|
219
219
|
)
|
|
220
220
|
),
|
|
221
|
-
|
|
221
|
+
ms(
|
|
222
222
|
a != null && a.maximumQuantity ? +Ce(a == null ? void 0 : a.maximumQuantity) : 1 / 0
|
|
223
223
|
),
|
|
224
|
-
...a != null && a.quantityStep ? [
|
|
224
|
+
...a != null && a.quantityStep ? [ps(a.quantityStep)] : []
|
|
225
225
|
],
|
|
226
226
|
applyDefaultRules: !0
|
|
227
227
|
});
|
|
@@ -230,7 +230,7 @@ function hs(g) {
|
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
id: "Cost",
|
|
233
|
-
header:
|
|
233
|
+
header: gs,
|
|
234
234
|
size: 180,
|
|
235
235
|
cell(y) {
|
|
236
236
|
const e = y.row.original, u = v(e.sku), k = p.value.xs || p.value.sm;
|
|
@@ -255,7 +255,7 @@ function hs(g) {
|
|
|
255
255
|
[
|
|
256
256
|
L(ge.FmButton, {
|
|
257
257
|
prependIcon: "edit",
|
|
258
|
-
variant:
|
|
258
|
+
variant: is.Tertiary,
|
|
259
259
|
disabled: g.disabled,
|
|
260
260
|
onClick() {
|
|
261
261
|
g.updateItem({
|
|
@@ -322,7 +322,7 @@ function hs(g) {
|
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
324
|
},
|
|
325
|
-
rules: [
|
|
325
|
+
rules: [qe(0), At(2)]
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
328
|
prepend() {
|
|
@@ -400,7 +400,7 @@ function hs(g) {
|
|
|
400
400
|
))
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
|
-
const
|
|
403
|
+
const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center" }, ks = { class: "fm-typo-en-body-lg-600 xs:fm-typo-en-body-md-600 mr-auto xs:w-full" }, xs = { class: "w-[450px] xs:w-full flex" }, Cs = { class: "fm-typo-en-body-md-400 whitespace-nowrap" }, Ss = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ft = /* @__PURE__ */ ce({
|
|
404
404
|
__name: "SupplierPriceHistory",
|
|
405
405
|
props: {
|
|
406
406
|
prices: {}
|
|
@@ -410,31 +410,31 @@ const ks = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
410
410
|
function r(p) {
|
|
411
411
|
return w.suppliers.find((x) => x._id === p);
|
|
412
412
|
}
|
|
413
|
-
return (p, x) => (S(), T("div",
|
|
413
|
+
return (p, x) => (S(), T("div", hs, [
|
|
414
414
|
(S(!0), T(de, null, Se(Object.keys(p.prices), (t) => {
|
|
415
415
|
var v;
|
|
416
416
|
return S(), T("div", {
|
|
417
417
|
key: t,
|
|
418
418
|
class: "flex items-center gap-12 xs:gap-4 xs:flex-wrap w-full"
|
|
419
419
|
}, [
|
|
420
|
-
n("div",
|
|
421
|
-
n("div",
|
|
420
|
+
n("div", ks, q((v = r(t)) == null ? void 0 : v.name), 1),
|
|
421
|
+
n("div", xs, [
|
|
422
422
|
(S(!0), T(de, null, Se(p.prices[t].slice(0, 3), (F) => {
|
|
423
423
|
var $;
|
|
424
424
|
return S(), T("div", {
|
|
425
425
|
key: F.date,
|
|
426
426
|
class: "flex flex-col w-[150px] xs:flex-1 text-ellipsis cursor-pointer"
|
|
427
427
|
}, [
|
|
428
|
-
n("div",
|
|
429
|
-
n("span", null,
|
|
428
|
+
n("div", Cs, [
|
|
429
|
+
n("span", null, q(F.totalCost ? s(je)(F.totalCost) : "No data"), 1),
|
|
430
430
|
x[0] || (x[0] = n("span", { class: "text-fm-color-typo-secondary" }, "/", -1)),
|
|
431
|
-
n("span", null,
|
|
432
|
-
n("span", null,
|
|
431
|
+
n("span", null, q(s(Ce)(F.totalUnit, !1)), 1),
|
|
432
|
+
n("span", null, q((($ = F.measurement) == null ? void 0 : $.abbrev) ?? F.unit.abbrev), 1)
|
|
433
433
|
]),
|
|
434
|
-
n("div",
|
|
435
|
-
n("span", null, "(#" +
|
|
436
|
-
x[1] || (x[1] = n("span", null,
|
|
437
|
-
n("span", null,
|
|
434
|
+
n("div", Ss, [
|
|
435
|
+
n("span", null, "(#" + q(F.seqNumber) + ")", 1),
|
|
436
|
+
x[1] || (x[1] = n("span", null, q(" "), -1)),
|
|
437
|
+
n("span", null, q(s(Ge)(new Date(F.date))), 1)
|
|
438
438
|
])
|
|
439
439
|
]);
|
|
440
440
|
}), 128))
|
|
@@ -443,10 +443,10 @@ const ks = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
443
443
|
}), 128))
|
|
444
444
|
]));
|
|
445
445
|
}
|
|
446
|
-
}),
|
|
446
|
+
}), 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" }, Vs = { class: "flex-1 flex flex-col gap-4" }, Ps = { 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 = {
|
|
447
447
|
key: 0,
|
|
448
448
|
class: "flex-1 flex flex-col gap-4"
|
|
449
|
-
},
|
|
449
|
+
}, Os = /* @__PURE__ */ ce({
|
|
450
450
|
__name: "TransferItem",
|
|
451
451
|
props: {
|
|
452
452
|
cellByColId: {},
|
|
@@ -459,11 +459,11 @@ const ks = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
459
459
|
return (r, p) => {
|
|
460
460
|
var v, F, $, y, e, u, k, a, i, h, _, C, l, m, D, B, Q, Y, K, E, U, P, d, c, O, ee, X;
|
|
461
461
|
const x = I("FmLabel"), t = I("FmSpacer");
|
|
462
|
-
return S(), T("div",
|
|
463
|
-
n("div",
|
|
464
|
-
n("div",
|
|
465
|
-
n("span",
|
|
466
|
-
n("span",
|
|
462
|
+
return S(), T("div", ws, [
|
|
463
|
+
n("div", Fs, [
|
|
464
|
+
n("div", $s, [
|
|
465
|
+
n("span", Is, " (" + q(r.row.original.sku.code) + ") ", 1),
|
|
466
|
+
n("span", Ts, q(r.row.original.sku.name), 1)
|
|
467
467
|
]),
|
|
468
468
|
n("div", null, [
|
|
469
469
|
b(s(fe), {
|
|
@@ -472,8 +472,8 @@ const ks = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
472
472
|
}, null, 8, ["render", "props"])
|
|
473
473
|
])
|
|
474
474
|
]),
|
|
475
|
-
n("div",
|
|
476
|
-
n("div",
|
|
475
|
+
n("div", Ds, [
|
|
476
|
+
n("div", Vs, [
|
|
477
477
|
b(x, {
|
|
478
478
|
label: s(w)(`inventory.transfer.form.items.table.${s(J).Code}`)
|
|
479
479
|
}, null, 8, ["label"]),
|
|
@@ -483,7 +483,7 @@ const ks = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
483
483
|
}, null, 8, ["render", "props"]),
|
|
484
484
|
p[0] || (p[0] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
485
485
|
]),
|
|
486
|
-
n("div",
|
|
486
|
+
n("div", Ps, [
|
|
487
487
|
b(x, {
|
|
488
488
|
label: s(w)(`inventory.transfer.form.items.table.${s(J).Name}`)
|
|
489
489
|
}, null, 8, ["label"]),
|
|
@@ -494,8 +494,8 @@ const ks = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
494
494
|
p[1] || (p[1] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
495
495
|
])
|
|
496
496
|
]),
|
|
497
|
-
n("div",
|
|
498
|
-
n("div",
|
|
497
|
+
n("div", Rs, [
|
|
498
|
+
n("div", As, [
|
|
499
499
|
b(x, {
|
|
500
500
|
label: s(w)(`inventory.transfer.form.items.table.${s(J).Amount}`)
|
|
501
501
|
}, null, 8, ["label"]),
|
|
@@ -505,7 +505,7 @@ const ks = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
505
505
|
}, null, 8, ["render", "props"]),
|
|
506
506
|
p[2] || (p[2] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
507
507
|
]),
|
|
508
|
-
r.cellByColId[s(J).Cost] ? (S(), T("div",
|
|
508
|
+
r.cellByColId[s(J).Cost] ? (S(), T("div", Es, [
|
|
509
509
|
b(Ct, { "z-index": 50 }, {
|
|
510
510
|
default: R(() => [
|
|
511
511
|
b(x, {
|
|
@@ -569,13 +569,13 @@ function qs(g) {
|
|
|
569
569
|
backdateTimeModel: x
|
|
570
570
|
};
|
|
571
571
|
}
|
|
572
|
-
const
|
|
572
|
+
const Ms = {
|
|
573
573
|
width: "24",
|
|
574
574
|
height: "24",
|
|
575
575
|
viewBox: "0 0 24 24",
|
|
576
576
|
fill: "none",
|
|
577
577
|
xmlns: "http://www.w3.org/2000/svg"
|
|
578
|
-
},
|
|
578
|
+
}, Us = ["fill"], Ns = ["fill"], Bs = ["stroke"], zs = ["stroke"], Ls = /* @__PURE__ */ ce({
|
|
579
579
|
__name: "SparkIcon",
|
|
580
580
|
props: {
|
|
581
581
|
size: {
|
|
@@ -588,32 +588,32 @@ const Us = {
|
|
|
588
588
|
}
|
|
589
589
|
},
|
|
590
590
|
setup(g) {
|
|
591
|
-
return (w, r) => (S(), T("svg",
|
|
591
|
+
return (w, r) => (S(), T("svg", Ms, [
|
|
592
592
|
n("path", {
|
|
593
593
|
d: "M7.6 7.6C8.17076 6.94229 8.5 5.5 8.5 5.5C8.5 5.5 8.81356 6.87361 9.35714 7.5C9.92948 8.15953 11.5 8.5 11.5 8.5C11.5 8.5 9.92948 8.69761 9.35714 9.35714C8.81356 9.98354 8.5 11.5 8.5 11.5C8.5 11.5 8.32076 10.1888 7.75 9.59091C7.14905 8.96136 5.5 8.5 5.5 8.5C5.5 8.5 6.99905 8.29251 7.6 7.6Z",
|
|
594
594
|
fill: g.color
|
|
595
|
-
}, null, 8,
|
|
595
|
+
}, null, 8, Us),
|
|
596
596
|
n("path", {
|
|
597
597
|
d: "M12.2 12.2C13.3415 10.8846 14 8 14 8C14 8 14.6271 10.7472 15.7143 12C16.859 13.3191 20 14 20 14C20 14 16.859 14.3952 15.7143 15.7143C14.6271 16.9671 14 20 14 20C14 20 13.6415 17.3777 12.5 16.1818C11.2981 14.9227 8 14 8 14C8 14 10.9981 13.585 12.2 12.2Z",
|
|
598
598
|
fill: g.color
|
|
599
|
-
}, null, 8,
|
|
599
|
+
}, null, 8, Ns),
|
|
600
600
|
n("path", {
|
|
601
601
|
d: "M7.6 7.6C8.17076 6.94229 8.5 5.5 8.5 5.5C8.5 5.5 8.81356 6.87361 9.35714 7.5C9.92948 8.15953 11.5 8.5 11.5 8.5C11.5 8.5 9.92948 8.69761 9.35714 9.35714C8.81356 9.98354 8.5 11.5 8.5 11.5C8.5 11.5 8.32076 10.1888 7.75 9.59091C7.14905 8.96136 5.5 8.5 5.5 8.5C5.5 8.5 6.99905 8.29251 7.6 7.6Z",
|
|
602
602
|
stroke: g.color,
|
|
603
603
|
"stroke-width": "1.5",
|
|
604
604
|
"stroke-linecap": "round",
|
|
605
605
|
"stroke-linejoin": "round"
|
|
606
|
-
}, null, 8,
|
|
606
|
+
}, null, 8, Bs),
|
|
607
607
|
n("path", {
|
|
608
608
|
d: "M12.2 12.2C13.3415 10.8846 14 8 14 8C14 8 14.6271 10.7472 15.7143 12C16.859 13.3191 20 14 20 14C20 14 16.859 14.3952 15.7143 15.7143C14.6271 16.9671 14 20 14 20C14 20 13.6415 17.3777 12.5 16.1818C11.2981 14.9227 8 14 8 14C8 14 10.9981 13.585 12.2 12.2Z",
|
|
609
609
|
stroke: g.color,
|
|
610
610
|
"stroke-width": "1.5",
|
|
611
611
|
"stroke-linecap": "round",
|
|
612
612
|
"stroke-linejoin": "round"
|
|
613
|
-
}, null, 8,
|
|
613
|
+
}, null, 8, zs)
|
|
614
614
|
]));
|
|
615
615
|
}
|
|
616
|
-
}),
|
|
616
|
+
}), Hs = { class: "flex gap-8 items-center" }, js = { class: "fm-typo-en-body-lg-600 line-clamp-1" }, Qs = { class: "w-[343px] px-24 py-16 rounded-lg shadow-light-300 flex flex-col gap-[20px]" }, Ys = { class: "flex items-center w-full" }, Ks = { class: "flex-1" }, Xs = { class: "fm-typo-en-title-sm-800" }, Zs = { class: "flex items-start gap-8" }, Ws = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Gs = { class: "flex gap-1" }, Js = /* @__PURE__ */ ce({
|
|
617
617
|
__name: "ForecastStock",
|
|
618
618
|
props: {
|
|
619
619
|
templateId: {},
|
|
@@ -623,7 +623,7 @@ const Us = {
|
|
|
623
623
|
},
|
|
624
624
|
emits: ["update:poItems", "update:forecastAmounts"],
|
|
625
625
|
setup(g, { emit: w }) {
|
|
626
|
-
const r = g, p = w, x =
|
|
626
|
+
const r = g, p = w, x = M(!1), t = M(7), v = as(), F = Te(), { t: $ } = he();
|
|
627
627
|
function y(a, i, h) {
|
|
628
628
|
return i != null && a < i && (a = i), h != null && a > h && (a = h), a;
|
|
629
629
|
}
|
|
@@ -721,24 +721,24 @@ const Us = {
|
|
|
721
721
|
disabled: a.disabled
|
|
722
722
|
}, {
|
|
723
723
|
default: R(() => [
|
|
724
|
-
n("div",
|
|
725
|
-
b(
|
|
724
|
+
n("div", Hs, [
|
|
725
|
+
b(Ls, {
|
|
726
726
|
size: 24,
|
|
727
727
|
color: a.disabled ? "#c7c7cc" : "#ff7823"
|
|
728
728
|
}, null, 8, ["color"]),
|
|
729
|
-
n("div",
|
|
729
|
+
n("div", js, q(s($)("inventory.transfer.form.items.forecastStock.title")), 1)
|
|
730
730
|
])
|
|
731
731
|
]),
|
|
732
732
|
_: 1
|
|
733
733
|
}, 8, ["text-color", "border-color", "disabled"])
|
|
734
734
|
]),
|
|
735
735
|
default: R(() => [
|
|
736
|
-
n("div",
|
|
737
|
-
n("div",
|
|
738
|
-
n("div",
|
|
739
|
-
b(
|
|
736
|
+
n("div", Qs, [
|
|
737
|
+
n("div", Ys, [
|
|
738
|
+
n("div", Ks, [
|
|
739
|
+
b(ys, { "z-index": 99 }, {
|
|
740
740
|
default: R(() => [
|
|
741
|
-
n("p",
|
|
741
|
+
n("p", Xs, q(s($)("inventory.transfer.form.items.forecastStock.title")), 1)
|
|
742
742
|
]),
|
|
743
743
|
_: 1
|
|
744
744
|
})
|
|
@@ -754,21 +754,21 @@ const Us = {
|
|
|
754
754
|
modelValue: t.value,
|
|
755
755
|
"onUpdate:modelValue": i[1] || (i[1] = (m) => t.value = m),
|
|
756
756
|
label: s($)("inventory.transfer.form.items.forecastStock.days"),
|
|
757
|
-
rules: [s(
|
|
757
|
+
rules: [s(qe)(1)]
|
|
758
758
|
}, {
|
|
759
759
|
"helper-text": R(() => [
|
|
760
|
-
n("div",
|
|
760
|
+
n("div", Zs, [
|
|
761
761
|
b(_, {
|
|
762
762
|
name: "warning",
|
|
763
763
|
size: "sm",
|
|
764
764
|
class: "text-fm-color-system-warning-300"
|
|
765
765
|
}),
|
|
766
|
-
n("div",
|
|
766
|
+
n("div", Ws, q(s($)("inventory.transfer.form.items.forecastStock.replace")), 1)
|
|
767
767
|
])
|
|
768
768
|
]),
|
|
769
769
|
_: 1
|
|
770
770
|
}, 8, ["modelValue", "label", "rules"]),
|
|
771
|
-
n("div",
|
|
771
|
+
n("div", Gs, [
|
|
772
772
|
i[4] || (i[4] = n("div", { class: "grow" }, null, -1)),
|
|
773
773
|
b(h, {
|
|
774
774
|
label: s($)("common.cancel"),
|
|
@@ -787,8 +787,8 @@ const Us = {
|
|
|
787
787
|
};
|
|
788
788
|
}
|
|
789
789
|
});
|
|
790
|
-
function
|
|
791
|
-
const g = Te(), w = tt(), r =
|
|
790
|
+
function eo() {
|
|
791
|
+
const g = Te(), w = tt(), r = M(!1);
|
|
792
792
|
_e(r, (v) => {
|
|
793
793
|
v && (x.value = !0, p().finally(() => {
|
|
794
794
|
x.value = !1;
|
|
@@ -799,10 +799,10 @@ function to() {
|
|
|
799
799
|
const { startDate: v, endDate: F } = Ot(6), e = (await w.getPurchaseOrders({ start: v, end: F })).filter(
|
|
800
800
|
(u) => {
|
|
801
801
|
var k, a;
|
|
802
|
-
return u.status ===
|
|
802
|
+
return u.status === qt.enum.COMPLETE && ((k = u.supplier) == null ? void 0 : k.internal) !== "warehouse" && ((a = u.supplier) == null ? void 0 : a.internal) !== "restaurant";
|
|
803
803
|
}
|
|
804
804
|
).reduce((u, k) => {
|
|
805
|
-
const a = new Date(
|
|
805
|
+
const a = new Date(Mt(k._id)), i = k.supplier._id;
|
|
806
806
|
for (const h of k.items) {
|
|
807
807
|
if (!h.totalCost) continue;
|
|
808
808
|
const _ = u[h.sku._id] ?? {}, C = _[i] ?? [];
|
|
@@ -825,14 +825,14 @@ function to() {
|
|
|
825
825
|
}), r.value = !1;
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
|
-
const x =
|
|
828
|
+
const x = M(!1), t = M({});
|
|
829
829
|
return {
|
|
830
830
|
comparePricesToggle: r,
|
|
831
831
|
comparePriceFetching: x,
|
|
832
832
|
comparePriceBySku: t
|
|
833
833
|
};
|
|
834
834
|
}
|
|
835
|
-
const
|
|
835
|
+
const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }, oo = ["colspan"], ao = /* @__PURE__ */ ce({
|
|
836
836
|
__name: "TransferItemTable",
|
|
837
837
|
props: {
|
|
838
838
|
templateItem: {},
|
|
@@ -865,7 +865,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
865
865
|
textAlign: ((e = w(v)) == null ? void 0 : e.textAlign) ?? "left"
|
|
866
866
|
})
|
|
867
867
|
}, [
|
|
868
|
-
n("span",
|
|
868
|
+
n("span", to, [
|
|
869
869
|
b(s(fe), {
|
|
870
870
|
render: v.column.columnDef.cell,
|
|
871
871
|
props: v.getContext()
|
|
@@ -874,25 +874,25 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
874
874
|
], 6);
|
|
875
875
|
}), 128))
|
|
876
876
|
], 2),
|
|
877
|
-
r.showComparePrice && Object.keys(r.comparePriceBySku[(x = r.row.original.sku) == null ? void 0 : x._id] ?? {}).length > 0 ? (S(), T("tr",
|
|
877
|
+
r.showComparePrice && Object.keys(r.comparePriceBySku[(x = r.row.original.sku) == null ? void 0 : x._id] ?? {}).length > 0 ? (S(), T("tr", so, [
|
|
878
878
|
n("td", {
|
|
879
879
|
colspan: r.row.getVisibleCells().length
|
|
880
880
|
}, [
|
|
881
881
|
b(Ft, {
|
|
882
882
|
prices: r.comparePriceBySku[(t = r.row.original.sku) == null ? void 0 : t._id]
|
|
883
883
|
}, null, 8, ["prices"])
|
|
884
|
-
], 8,
|
|
884
|
+
], 8, oo)
|
|
885
885
|
])) : j("", !0)
|
|
886
886
|
], 64);
|
|
887
887
|
};
|
|
888
888
|
}
|
|
889
|
-
}),
|
|
889
|
+
}), no = {
|
|
890
890
|
key: 0,
|
|
891
891
|
class: "flex flex-col gap-8"
|
|
892
|
-
},
|
|
892
|
+
}, lo = { class: "flex flex-col gap-4" }, ro = { class: "flex items-center gap-4" }, io = {
|
|
893
893
|
key: 0,
|
|
894
894
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-error"
|
|
895
|
-
},
|
|
895
|
+
}, uo = /* @__PURE__ */ ce({
|
|
896
896
|
__name: "NetSuiteField",
|
|
897
897
|
props: {
|
|
898
898
|
required: { type: Boolean },
|
|
@@ -904,7 +904,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
904
904
|
},
|
|
905
905
|
emits: ["netsuite:ready"],
|
|
906
906
|
setup(g, { emit: w }) {
|
|
907
|
-
const r =
|
|
907
|
+
const r = Me(), p = g, x = w, { t } = bs(), v = M(!1), F = M();
|
|
908
908
|
Qe(() => {
|
|
909
909
|
var u, k, a, i;
|
|
910
910
|
let e = {
|
|
@@ -962,11 +962,11 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
962
962
|
});
|
|
963
963
|
return (e, u) => {
|
|
964
964
|
const k = I("FmLabel"), a = I("FmIcon"), i = I("FmField"), h = I("FmTooltip");
|
|
965
|
-
return s(r).isEnabled && p.required ? (S(), T("div",
|
|
965
|
+
return s(r).isEnabled && p.required ? (S(), T("div", no, [
|
|
966
966
|
b(k, {
|
|
967
967
|
label: `NetSuite ${s(t)("inventory.transfer.form.netsuite.subsidiary")}`
|
|
968
968
|
}, null, 8, ["label"]),
|
|
969
|
-
n("div",
|
|
969
|
+
n("div", lo, [
|
|
970
970
|
b(h, {
|
|
971
971
|
"z-index": 51,
|
|
972
972
|
placement: "left",
|
|
@@ -980,7 +980,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
980
980
|
default: R(() => {
|
|
981
981
|
var _;
|
|
982
982
|
return [
|
|
983
|
-
n("div",
|
|
983
|
+
n("div", ro, [
|
|
984
984
|
b(a, {
|
|
985
985
|
name: "lock_outline",
|
|
986
986
|
size: "sm",
|
|
@@ -988,7 +988,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
988
988
|
}, null, 8, ["color"]),
|
|
989
989
|
n("div", {
|
|
990
990
|
class: Z([e.disabled ? "text-fm-color-typo-disabled" : ""])
|
|
991
|
-
},
|
|
991
|
+
}, q((_ = $.value) == null ? void 0 : _.fullName), 3)
|
|
992
992
|
])
|
|
993
993
|
];
|
|
994
994
|
}),
|
|
@@ -997,21 +997,21 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
997
997
|
]),
|
|
998
998
|
_: 1
|
|
999
999
|
}, 8, ["disabled"]),
|
|
1000
|
-
v.value ? (S(), T("div",
|
|
1000
|
+
v.value ? (S(), T("div", io, q(y.value), 1)) : j("", !0)
|
|
1001
1001
|
])
|
|
1002
1002
|
])) : j("", !0);
|
|
1003
1003
|
};
|
|
1004
1004
|
}
|
|
1005
|
-
}),
|
|
1005
|
+
}), co = { class: "flex flex-col gap-4" }, mo = { class: "flex items-center gap-8 overflow-x-auto pb-12" }, po = { class: "flex flex-col gap-16" }, fo = { class: "flex flex-col gap-24" }, vo = { class: "flex flex-col gap-8" }, yo = { class: "flex flex-col gap-4" }, bo = { class: "flex items-center gap-4" }, go = { class: "flex flex-col gap-8" }, _o = { class: "flex flex-col gap-4" }, ho = { class: "flex items-center gap-4" }, ko = {
|
|
1006
1006
|
key: 3,
|
|
1007
1007
|
class: "p-16 border border-fm-color-neutral-gray-300 fm-corner-radius-md flex flex-col"
|
|
1008
|
-
},
|
|
1008
|
+
}, xo = {
|
|
1009
1009
|
key: 0,
|
|
1010
1010
|
class: "flex-1 flex gap-8 h-48 xs:flex-col xs:pt-16 sm:flex-col sm:pt-16"
|
|
1011
|
-
},
|
|
1011
|
+
}, Co = { class: "flex-1" }, So = { class: "flex-1" }, wo = {
|
|
1012
1012
|
key: 1,
|
|
1013
1013
|
class: "flex items-center gap-4"
|
|
1014
|
-
},
|
|
1014
|
+
}, 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 }, Vo = /* @__PURE__ */ ce({
|
|
1015
1015
|
__name: "TransferForm2",
|
|
1016
1016
|
props: {
|
|
1017
1017
|
modelValue: {},
|
|
@@ -1023,9 +1023,9 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1023
1023
|
},
|
|
1024
1024
|
emits: ["validation-success", "form:ready"],
|
|
1025
1025
|
setup(g, { expose: w, emit: r }) {
|
|
1026
|
-
const p = g, x = r, t = kt(), { t: v } = he(), F = Je(), $ = et(), y =
|
|
1026
|
+
const p = g, x = r, t = kt(), { t: v } = he(), F = Je(), $ = et(), y = Me(), e = ot(), u = We(), k = wt(), { breakpoints: a } = st(), i = N(() => a.value.xs || a.value.sm), h = bt({
|
|
1027
1027
|
value: !1
|
|
1028
|
-
}), _ =
|
|
1028
|
+
}), _ = M(!1), C = M(0), l = M([]), m = N(
|
|
1029
1029
|
() => {
|
|
1030
1030
|
var o;
|
|
1031
1031
|
return ((o = p.modelValue) == null ? void 0 : o.templateDoc) ?? k.templates.find((f) => f._id === t.template);
|
|
@@ -1085,7 +1085,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1085
1085
|
F.watchLocation(async () => {
|
|
1086
1086
|
location && (t.supplier || (t.supplier = e.suppliers.find((o) => o) ?? t.supplier));
|
|
1087
1087
|
});
|
|
1088
|
-
const Q =
|
|
1088
|
+
const Q = us(), Y = fs(
|
|
1089
1089
|
() => t,
|
|
1090
1090
|
(o) => {
|
|
1091
1091
|
Object.assign(t, o);
|
|
@@ -1146,7 +1146,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1146
1146
|
setEffectiveAt(o) {
|
|
1147
1147
|
t.effectiveAt = o;
|
|
1148
1148
|
}
|
|
1149
|
-
}), { comparePricesToggle: X, comparePriceFetching: ke, comparePriceBySku: ve } =
|
|
1149
|
+
}), { comparePricesToggle: X, comparePriceFetching: ke, comparePriceBySku: ve } = eo(), me = M();
|
|
1150
1150
|
w({
|
|
1151
1151
|
validateInputs: () => {
|
|
1152
1152
|
var o, f;
|
|
@@ -1171,7 +1171,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1171
1171
|
(f) => f.id ? f.id !== o.id : f.sku._id !== o.sku._id
|
|
1172
1172
|
);
|
|
1173
1173
|
}
|
|
1174
|
-
})), Ue =
|
|
1174
|
+
})), Ue = _s({
|
|
1175
1175
|
updateItem: (o) => we.value.updateItem(o),
|
|
1176
1176
|
deleteItem: (o) => we.value.deleteItem(o),
|
|
1177
1177
|
get supplier() {
|
|
@@ -1309,8 +1309,8 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1309
1309
|
return (o, f) => {
|
|
1310
1310
|
var ye, Re;
|
|
1311
1311
|
const A = I("FmChip"), H = I("FmLabel"), le = I("FmIcon"), re = I("FmField"), W = I("FmTooltip"), ie = I("FmSelect"), ze = I("FmTextField"), Le = I("FmTextarea"), Pe = I("FmSwitch"), z = I("FmDatePicker"), te = I("FmTimePicker"), ae = I("FmFormGroup"), se = I("FmButton"), ue = I("FmTable"), pe = I("FmForm");
|
|
1312
|
-
return S(), T("div",
|
|
1313
|
-
n("div",
|
|
1312
|
+
return S(), T("div", co, [
|
|
1313
|
+
n("div", mo, [
|
|
1314
1314
|
(ye = p.modelValue) != null && ye.template ? (S(), G(A, {
|
|
1315
1315
|
key: 0,
|
|
1316
1316
|
variant: o.disabled ? "warning" : void 0,
|
|
@@ -1341,14 +1341,14 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1341
1341
|
default: R(() => {
|
|
1342
1342
|
var be, at, nt, lt, rt, it, ut, dt;
|
|
1343
1343
|
return [
|
|
1344
|
-
n("div",
|
|
1345
|
-
n("div",
|
|
1344
|
+
n("div", po, [
|
|
1345
|
+
n("div", fo, [
|
|
1346
1346
|
(be = p.modelValue) != null && be.template ? (S(), T(de, { key: 0 }, [
|
|
1347
|
-
n("div",
|
|
1347
|
+
n("div", vo, [
|
|
1348
1348
|
b(H, {
|
|
1349
1349
|
label: s(v)("inventory.transfer.form.type.title")
|
|
1350
1350
|
}, null, 8, ["label"]),
|
|
1351
|
-
n("div",
|
|
1351
|
+
n("div", yo, [
|
|
1352
1352
|
b(W, {
|
|
1353
1353
|
"z-index": 51,
|
|
1354
1354
|
placement: "left",
|
|
@@ -1360,7 +1360,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1360
1360
|
default: R(() => [
|
|
1361
1361
|
b(re, null, {
|
|
1362
1362
|
default: R(() => [
|
|
1363
|
-
n("div",
|
|
1363
|
+
n("div", bo, [
|
|
1364
1364
|
b(le, {
|
|
1365
1365
|
name: "lock_outline",
|
|
1366
1366
|
size: "sm",
|
|
@@ -1368,7 +1368,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1368
1368
|
}, null, 8, ["color"]),
|
|
1369
1369
|
n("div", {
|
|
1370
1370
|
class: Z({ "text-fm-color-typo-disabled": o.disabled })
|
|
1371
|
-
},
|
|
1371
|
+
}, q(s(v)(`inventory.transfer.form.type.${K.value.toLocaleLowerCase("en-us")}`)), 3)
|
|
1372
1372
|
])
|
|
1373
1373
|
]),
|
|
1374
1374
|
_: 1
|
|
@@ -1384,11 +1384,11 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1384
1384
|
}, null, 2)
|
|
1385
1385
|
])
|
|
1386
1386
|
]),
|
|
1387
|
-
n("div",
|
|
1387
|
+
n("div", go, [
|
|
1388
1388
|
b(H, {
|
|
1389
1389
|
label: K.value === s(ne).PURCHASE ? s(v)("inventory.transfer.form.purchaseFrom") : s(v)("inventory.transfer.form.transferFrom")
|
|
1390
1390
|
}, null, 8, ["label"]),
|
|
1391
|
-
n("div",
|
|
1391
|
+
n("div", _o, [
|
|
1392
1392
|
b(W, {
|
|
1393
1393
|
"z-index": 51,
|
|
1394
1394
|
placement: "left",
|
|
@@ -1402,7 +1402,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1402
1402
|
default: R(() => {
|
|
1403
1403
|
var V;
|
|
1404
1404
|
return [
|
|
1405
|
-
n("div",
|
|
1405
|
+
n("div", ho, [
|
|
1406
1406
|
b(le, {
|
|
1407
1407
|
name: "lock_outline",
|
|
1408
1408
|
size: "sm",
|
|
@@ -1410,7 +1410,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1410
1410
|
}, null, 8, ["color"]),
|
|
1411
1411
|
n("div", {
|
|
1412
1412
|
class: Z({ "text-fm-color-typo-disabled": o.disabled })
|
|
1413
|
-
},
|
|
1413
|
+
}, q((V = E.value.find((oe) => oe.value === U.value)) == null ? void 0 : V.label), 3)
|
|
1414
1414
|
])
|
|
1415
1415
|
];
|
|
1416
1416
|
}),
|
|
@@ -1428,7 +1428,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1428
1428
|
modelValue: K.value,
|
|
1429
1429
|
"onUpdate:modelValue": f[0] || (f[0] = (V) => K.value = V),
|
|
1430
1430
|
items: De.value,
|
|
1431
|
-
rules: [s(
|
|
1431
|
+
rules: [s(qe)(1)(De.value)]
|
|
1432
1432
|
}, {
|
|
1433
1433
|
default: R(() => [
|
|
1434
1434
|
n("span", {
|
|
@@ -1436,7 +1436,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1436
1436
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
1437
1437
|
o.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
1438
1438
|
])
|
|
1439
|
-
},
|
|
1439
|
+
}, q(s(zt)(K.value)), 3)
|
|
1440
1440
|
]),
|
|
1441
1441
|
_: 1
|
|
1442
1442
|
}, 8, ["label", "modelValue", "items", "rules"]),
|
|
@@ -1446,12 +1446,12 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1446
1446
|
modelValue: U.value,
|
|
1447
1447
|
"onUpdate:modelValue": f[1] || (f[1] = (V) => U.value = V),
|
|
1448
1448
|
items: E.value,
|
|
1449
|
-
rules: [s(
|
|
1449
|
+
rules: [s(qe)(1)(E.value)]
|
|
1450
1450
|
}, {
|
|
1451
1451
|
"menu-wrapper": R((V) => {
|
|
1452
1452
|
var oe, Ae;
|
|
1453
1453
|
return [
|
|
1454
|
-
b(
|
|
1454
|
+
b(vs, Ze(V, {
|
|
1455
1455
|
items: E.value,
|
|
1456
1456
|
"model-value": (Ae = (oe = o.modelValue) == null ? void 0 : oe.supplier) == null ? void 0 : Ae._id
|
|
1457
1457
|
}), null, 16, ["items", "model-value"])
|
|
@@ -1465,7 +1465,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
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
|
-
},
|
|
1468
|
+
}, q((V = E.value.find((oe) => oe.value === U.value)) == null ? void 0 : V.label), 3)
|
|
1469
1469
|
];
|
|
1470
1470
|
}),
|
|
1471
1471
|
_: 1
|
|
@@ -1485,7 +1485,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1485
1485
|
"onUpdate:modelValue": f[3] || (f[3] = (V) => P.value = V),
|
|
1486
1486
|
class: Z([o.disabled ? "text-fm-color-typo-disabled " : ""])
|
|
1487
1487
|
}, null, 8, ["label", "modelValue", "class"]),
|
|
1488
|
-
_.value ? (S(), G(
|
|
1488
|
+
_.value ? (S(), G(uo, {
|
|
1489
1489
|
key: 2,
|
|
1490
1490
|
required: s(t).template != null,
|
|
1491
1491
|
disabled: o.disabled,
|
|
@@ -1499,7 +1499,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1499
1499
|
h.value = !0;
|
|
1500
1500
|
})
|
|
1501
1501
|
}, null, 8, ["required", "disabled", "supplier", "setting", "items", "onChange"])) : j("", !0),
|
|
1502
|
-
s(u).enableBackdatePo ? (S(), T("div",
|
|
1502
|
+
s(u).enableBackdatePo ? (S(), T("div", ko, [
|
|
1503
1503
|
n("div", {
|
|
1504
1504
|
class: Z([
|
|
1505
1505
|
"flex",
|
|
@@ -1519,14 +1519,14 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1519
1519
|
n("div", {
|
|
1520
1520
|
class: Z({ hidden: i.value, "w-16": !i.value })
|
|
1521
1521
|
}, null, 2),
|
|
1522
|
-
s(c) ? (S(), T("div",
|
|
1523
|
-
n("div",
|
|
1522
|
+
s(c) ? (S(), T("div", xo, [
|
|
1523
|
+
n("div", Co, [
|
|
1524
1524
|
b(z, {
|
|
1525
1525
|
modelValue: s(O),
|
|
1526
1526
|
"onUpdate:modelValue": f[6] || (f[6] = (V) => xe(O) ? O.value = V : null)
|
|
1527
1527
|
}, null, 8, ["modelValue"])
|
|
1528
1528
|
]),
|
|
1529
|
-
n("div",
|
|
1529
|
+
n("div", So, [
|
|
1530
1530
|
b(te, {
|
|
1531
1531
|
modelValue: s(ee),
|
|
1532
1532
|
"onUpdate:modelValue": f[7] || (f[7] = (V) => xe(ee) ? ee.value = V : null)
|
|
@@ -1540,21 +1540,21 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1540
1540
|
"onUpdate:modelValue": f[8] || (f[8] = (V) => xe(d) ? d.value = V : null),
|
|
1541
1541
|
rules: [s(Lt)(new Date(o.lastClosingDate), /* @__PURE__ */ new Date())]
|
|
1542
1542
|
}, null, 8, ["modelValue", "rules"])) : j("", !0),
|
|
1543
|
-
B.value && !o.lastClosingDate ? (S(), T("div",
|
|
1543
|
+
B.value && !o.lastClosingDate ? (S(), T("div", wo, [
|
|
1544
1544
|
b(le, {
|
|
1545
1545
|
name: "error",
|
|
1546
1546
|
size: "sm",
|
|
1547
1547
|
class: "text-fm-color-typo-warning"
|
|
1548
1548
|
}),
|
|
1549
|
-
n("span",
|
|
1549
|
+
n("span", Fo, q(s(v)("inventory.transfer.form.backdate.error")), 1)
|
|
1550
1550
|
])) : j("", !0)
|
|
1551
1551
|
])) : j("", !0)
|
|
1552
1552
|
])
|
|
1553
1553
|
]),
|
|
1554
|
-
n("div",
|
|
1554
|
+
n("div", $o, [
|
|
1555
1555
|
b(ae, {
|
|
1556
1556
|
"model-value": s(t).items,
|
|
1557
|
-
rules: [s(
|
|
1557
|
+
rules: [s(qe)(1)]
|
|
1558
1558
|
}, null, 8, ["model-value", "rules"]),
|
|
1559
1559
|
n("div", {
|
|
1560
1560
|
class: Z([
|
|
@@ -1565,8 +1565,8 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1565
1565
|
}
|
|
1566
1566
|
])
|
|
1567
1567
|
}, [
|
|
1568
|
-
n("div",
|
|
1569
|
-
n("div",
|
|
1568
|
+
n("div", Io, q(s(v)("inventory.transfer.form.items.title")), 1),
|
|
1569
|
+
n("div", To, [
|
|
1570
1570
|
b(se, {
|
|
1571
1571
|
disabled: o.disabled,
|
|
1572
1572
|
label: s(v)("inventory.transfer.form.items.addItem"),
|
|
@@ -1578,7 +1578,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1578
1578
|
onClick: f[9] || (f[9] = (V) => Fe()),
|
|
1579
1579
|
size: "md"
|
|
1580
1580
|
}, null, 8, ["disabled", "label"]),
|
|
1581
|
-
b(
|
|
1581
|
+
b(Js, {
|
|
1582
1582
|
"template-id": s(t).template || void 0,
|
|
1583
1583
|
"template-items": Be.value,
|
|
1584
1584
|
"po-items": s(t).items,
|
|
@@ -1591,7 +1591,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1591
1591
|
}, null, 8, ["template-id", "template-items", "po-items"])
|
|
1592
1592
|
])
|
|
1593
1593
|
], 2),
|
|
1594
|
-
K.value === s(ne).PURCHASE && D.value && s(u).enableTotalCost && ((at = o.modelValue) != null && at.items.length) ? (S(), T("div",
|
|
1594
|
+
K.value === s(ne).PURCHASE && D.value && s(u).enableTotalCost && ((at = o.modelValue) != null && at.items.length) ? (S(), T("div", Do, [
|
|
1595
1595
|
b(Pe, {
|
|
1596
1596
|
label: s(ke) ? s(v)("inventory.transfer.form.items.fetchingData") : s(v)("inventory.transfer.form.items.comparePriceHistory"),
|
|
1597
1597
|
"prepend-icon": "compare_arrows",
|
|
@@ -1620,7 +1620,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1620
1620
|
"table-row": R((V) => {
|
|
1621
1621
|
var oe, Ae, ct, mt;
|
|
1622
1622
|
return [
|
|
1623
|
-
b(
|
|
1623
|
+
b(ao, {
|
|
1624
1624
|
"compare-price-by-sku": s(ve),
|
|
1625
1625
|
"show-compare-price": K.value === s(ne).PURCHASE && s(X),
|
|
1626
1626
|
row: V,
|
|
@@ -1638,7 +1638,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1638
1638
|
key: s(t).items.map((oe) => oe.sku._id).join(".")
|
|
1639
1639
|
}, {
|
|
1640
1640
|
default: R((oe) => [
|
|
1641
|
-
b(
|
|
1641
|
+
b(Os, {
|
|
1642
1642
|
"compare-price-by-sku": s(ve),
|
|
1643
1643
|
"show-compare-price": K.value === s(ne).PURCHASE && s(X),
|
|
1644
1644
|
row: V,
|
|
@@ -1658,7 +1658,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1658
1658
|
]);
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
|
-
}),
|
|
1661
|
+
}), Po = { 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: {},
|
|
@@ -1670,7 +1670,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1670
1670
|
emits: ["update:show", "submitted"],
|
|
1671
1671
|
setup(g, { expose: w, emit: r }) {
|
|
1672
1672
|
var P;
|
|
1673
|
-
const p = g, x = r, t = tt(), v = wt(), F = Te(), $ = ot(), y = et(), e = Je(), { t: u } = he(), k =
|
|
1673
|
+
const p = g, x = r, t = tt(), v = wt(), F = Te(), $ = ot(), y = et(), e = Je(), { t: u } = he(), k = M(!1), a = M(!1), i = M(!1);
|
|
1674
1674
|
async function h(d) {
|
|
1675
1675
|
if (d) {
|
|
1676
1676
|
a.value = !1;
|
|
@@ -1720,7 +1720,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1720
1720
|
templateDoc: v.templates.find((c) => c._id === p.templateId)
|
|
1721
1721
|
};
|
|
1722
1722
|
}
|
|
1723
|
-
const C = St(p, "show"), l =
|
|
1723
|
+
const C = St(p, "show"), l = M(p.modelValue ?? _()), m = M(((P = p.modelValue) == null ? void 0 : P._id) ?? `${Math.random()}`);
|
|
1724
1724
|
_e(
|
|
1725
1725
|
() => p.show,
|
|
1726
1726
|
(d) => {
|
|
@@ -1738,7 +1738,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1738
1738
|
return u("inventory.transfer.receiveRequest.update.title");
|
|
1739
1739
|
}
|
|
1740
1740
|
return "";
|
|
1741
|
-
}), Q =
|
|
1741
|
+
}), Q = M();
|
|
1742
1742
|
w({
|
|
1743
1743
|
validateInputs: () => {
|
|
1744
1744
|
var d, c;
|
|
@@ -1842,12 +1842,12 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1842
1842
|
"max-width": 900
|
|
1843
1843
|
}, {
|
|
1844
1844
|
"side-sheet-header": R(() => [
|
|
1845
|
-
n("div",
|
|
1846
|
-
n("div",
|
|
1845
|
+
n("div", Po, [
|
|
1846
|
+
n("div", Ro, q(B.value), 1)
|
|
1847
1847
|
])
|
|
1848
1848
|
]),
|
|
1849
1849
|
default: R(() => [
|
|
1850
|
-
(S(), G(
|
|
1850
|
+
(S(), G(Vo, {
|
|
1851
1851
|
class: "w-full",
|
|
1852
1852
|
ref_key: "formRef",
|
|
1853
1853
|
ref: Q,
|
|
@@ -1863,7 +1863,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1863
1863
|
}, null, 8, ["modelValue", "disabled", "suppliers", "skus", "last-closing-date"]))
|
|
1864
1864
|
]),
|
|
1865
1865
|
"side-sheet-footer": R(() => [
|
|
1866
|
-
n("div",
|
|
1866
|
+
n("div", Ao, [
|
|
1867
1867
|
b(O, {
|
|
1868
1868
|
loading: k.value,
|
|
1869
1869
|
disabled: D.value,
|
|
@@ -1883,7 +1883,7 @@ const so = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, oo = { key: 0 }
|
|
|
1883
1883
|
};
|
|
1884
1884
|
}
|
|
1885
1885
|
});
|
|
1886
|
-
function
|
|
1886
|
+
function Oo(g) {
|
|
1887
1887
|
const [w, r, p, ...x] = Qt(g), t = p.map((y) => y.toLowerCase().trim().replace(/ /g, "_")), F = ["item_name", "transfer_quantity(uom)", "uom", "scanned_code"].filter((y) => !t.includes(y));
|
|
1888
1888
|
if (F.length)
|
|
1889
1889
|
throw new Error(
|
|
@@ -1906,7 +1906,7 @@ function qo(g) {
|
|
|
1906
1906
|
try {
|
|
1907
1907
|
return w.reduce(
|
|
1908
1908
|
(p, x) => {
|
|
1909
|
-
const t = new Array(), v = g.Sheets[x], F = et(), $ =
|
|
1909
|
+
const t = new Array(), v = g.Sheets[x], F = et(), $ = Oo(v), y = [];
|
|
1910
1910
|
for (const { index: u, data: k } of $) {
|
|
1911
1911
|
k.scanned_code === "" && t.push(`Row ${u + 1}: Scanned code is empty`), k.item_name === "" && t.push(`Row ${u + 1}: Item name is empty`), k.uom === "" && t.push(`Row ${u + 1}: UOM is empty`), k["transfer_quantity(uom)"] === "" && t.push(`Row ${u + 1}: Transfer quantity is empty`);
|
|
1912
1912
|
const a = F.skus.find((_) => _.code === k.scanned_code);
|
|
@@ -1953,7 +1953,7 @@ function qo(g) {
|
|
|
1953
1953
|
};
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
|
-
const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, Bo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, zo = {
|
|
1956
|
+
const Mo = exports.FfCalculator, Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, Bo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, zo = {
|
|
1957
1957
|
key: 0,
|
|
1958
1958
|
class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
|
|
1959
1959
|
}, Lo = { key: 0 }, Ho = {
|
|
@@ -1967,7 +1967,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
1967
1967
|
errors: {}
|
|
1968
1968
|
},
|
|
1969
1969
|
setup(g) {
|
|
1970
|
-
const w = g, { t: r } = he(), p =
|
|
1970
|
+
const w = g, { t: r } = he(), p = M(!1), x = () => {
|
|
1971
1971
|
w.errors.length && (p.value = !p.value);
|
|
1972
1972
|
};
|
|
1973
1973
|
return (t, v) => {
|
|
@@ -1987,8 +1987,8 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
1987
1987
|
"text-fm-color-system-error-300": t.errors.length
|
|
1988
1988
|
})
|
|
1989
1989
|
}, [
|
|
1990
|
-
Ie(
|
|
1991
|
-
t.type === "create" ? (S(), T("span", zo, "(" +
|
|
1990
|
+
Ie(q(t.name) + " ", 1),
|
|
1991
|
+
t.type === "create" ? (S(), T("span", zo, "(" + q(s(r)("inventory.closing.template.import.new")) + ")", 1)) : j("", !0)
|
|
1992
1992
|
], 2),
|
|
1993
1993
|
t.errors.length ? (S(), T("div", Lo, [
|
|
1994
1994
|
b(F, {
|
|
@@ -2011,7 +2011,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2011
2011
|
"z-index": 51
|
|
2012
2012
|
}, {
|
|
2013
2013
|
default: R(() => [
|
|
2014
|
-
n("span", Qo,
|
|
2014
|
+
n("span", Qo, q(e.code), 1)
|
|
2015
2015
|
]),
|
|
2016
2016
|
_: 2
|
|
2017
2017
|
}, 1032, ["content"]),
|
|
@@ -2021,16 +2021,16 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2021
2021
|
"z-index": 51
|
|
2022
2022
|
}, {
|
|
2023
2023
|
default: R(() => [
|
|
2024
|
-
n("span", Yo,
|
|
2024
|
+
n("span", Yo, q(e.name), 1)
|
|
2025
2025
|
]),
|
|
2026
2026
|
_: 2
|
|
2027
2027
|
}, 1032, ["content"])
|
|
2028
2028
|
]),
|
|
2029
2029
|
n("div", null, [
|
|
2030
|
-
n("span", Ko,
|
|
2030
|
+
n("span", Ko, q(s(Mo).toFormatString({
|
|
2031
2031
|
value: e.quantity
|
|
2032
2032
|
})), 1),
|
|
2033
|
-
Ie(" " +
|
|
2033
|
+
Ie(" " + q(e.measurement ? e.measurement.abbrev : e.sku.unit.abbrev), 1)
|
|
2034
2034
|
])
|
|
2035
2035
|
]))), 128)) : j("", !0)
|
|
2036
2036
|
])
|
|
@@ -2052,7 +2052,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2052
2052
|
}, [
|
|
2053
2053
|
t.errors.length ? (S(), T("div", Zo, [
|
|
2054
2054
|
n("ol", null, [
|
|
2055
|
-
(S(!0), T(de, null, Se(t.errors, (e, u) => (S(), T("li", { key: u },
|
|
2055
|
+
(S(!0), T(de, null, Se(t.errors, (e, u) => (S(), T("li", { key: u }, q(e), 1))), 128))
|
|
2056
2056
|
])
|
|
2057
2057
|
])) : j("", !0)
|
|
2058
2058
|
], 2)) : j("", !0)
|
|
@@ -2074,8 +2074,8 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2074
2074
|
}, ra = { class: "fm-typo-en-body-lg-600" }, vt = "Transfer note", ia = /* @__PURE__ */ ce({
|
|
2075
2075
|
__name: "XilnexImportForm",
|
|
2076
2076
|
setup(g, { expose: w }) {
|
|
2077
|
-
const r =
|
|
2078
|
-
|
|
2077
|
+
const r = M(null), p = Te(), x = M(!1), t = M(!1), v = kt(), F = M(!1), $ = Me();
|
|
2078
|
+
M([]);
|
|
2079
2079
|
const y = N({
|
|
2080
2080
|
get() {
|
|
2081
2081
|
var l;
|
|
@@ -2122,9 +2122,9 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2122
2122
|
m.setMinutes(parseInt(D)), m.setSeconds(parseInt(B)), v.effectiveAt = m.toISOString();
|
|
2123
2123
|
}
|
|
2124
2124
|
}
|
|
2125
|
-
}), k =
|
|
2125
|
+
}), k = M(new Array()), a = M([]), i = N(
|
|
2126
2126
|
() => !!k.value.length || a.value.some((l) => l.errors.length)
|
|
2127
|
-
), h =
|
|
2127
|
+
), h = M();
|
|
2128
2128
|
w({
|
|
2129
2129
|
validateInputs: () => {
|
|
2130
2130
|
var l, m;
|
|
@@ -2219,7 +2219,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2219
2219
|
color: "neutral-gray-200"
|
|
2220
2220
|
})
|
|
2221
2221
|
]),
|
|
2222
|
-
n("div", ea,
|
|
2222
|
+
n("div", ea, q(s(_)("inventory.formField.loading")), 1)
|
|
2223
2223
|
])) : (S(), T(de, { key: 1 }, [
|
|
2224
2224
|
b(Yt, {
|
|
2225
2225
|
"max-file-size": 5,
|
|
@@ -2237,7 +2237,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2237
2237
|
fn: R(({ openFileDialog: d }) => [
|
|
2238
2238
|
b(K, null, {
|
|
2239
2239
|
default: R(() => [
|
|
2240
|
-
Ie(
|
|
2240
|
+
Ie(q(vt))
|
|
2241
2241
|
]),
|
|
2242
2242
|
_: 1
|
|
2243
2243
|
}),
|
|
@@ -2271,7 +2271,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2271
2271
|
}
|
|
2272
2272
|
])
|
|
2273
2273
|
}, [
|
|
2274
|
-
n("div", sa,
|
|
2274
|
+
n("div", sa, q(r.value.name), 1)
|
|
2275
2275
|
], 2),
|
|
2276
2276
|
x.value ? j("", !0) : (S(), T("div", oa, [
|
|
2277
2277
|
b(U, {
|
|
@@ -2292,7 +2292,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2292
2292
|
size: "sm",
|
|
2293
2293
|
color: "system-error-300"
|
|
2294
2294
|
}),
|
|
2295
|
-
n("div", na,
|
|
2295
|
+
n("div", na, q(c), 1)
|
|
2296
2296
|
]))), 128))
|
|
2297
2297
|
])) : j("", !0)
|
|
2298
2298
|
])
|
|
@@ -2301,7 +2301,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2301
2301
|
} : void 0
|
|
2302
2302
|
]), 1032, ["class", "button-label"]),
|
|
2303
2303
|
r.value ? (S(), T("div", la, [
|
|
2304
|
-
n("div", ra,
|
|
2304
|
+
n("div", ra, q(s(_)("inventory.ingredient.import.summary")), 1),
|
|
2305
2305
|
(S(!0), T(de, null, Se(a.value, (d, c) => (S(), G(Wo, {
|
|
2306
2306
|
key: c,
|
|
2307
2307
|
name: `Transfer Note ${c + 1}`,
|
|
@@ -2324,7 +2324,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2324
2324
|
},
|
|
2325
2325
|
emits: ["update:show", "submitted"],
|
|
2326
2326
|
setup(g, { expose: w, emit: r }) {
|
|
2327
|
-
const p = r, t = St(g, "show"), v = Te(), F = tt(), $ =
|
|
2327
|
+
const p = r, t = St(g, "show"), v = Te(), F = tt(), $ = M(!1), y = M(), e = M();
|
|
2328
2328
|
w({
|
|
2329
2329
|
validateInputs: () => {
|
|
2330
2330
|
var a, i;
|
|
@@ -2451,7 +2451,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2451
2451
|
});
|
|
2452
2452
|
const p = N(
|
|
2453
2453
|
() => !k._currentLocation || e.loading.value
|
|
2454
|
-
), x =
|
|
2454
|
+
), x = rs(), t = We(), v = Me();
|
|
2455
2455
|
function F() {
|
|
2456
2456
|
const E = {
|
|
2457
2457
|
name: "",
|
|
@@ -2468,10 +2468,10 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2468
2468
|
function $() {
|
|
2469
2469
|
x.setItem(yt, JSON.stringify(y.value));
|
|
2470
2470
|
}
|
|
2471
|
-
const y =
|
|
2471
|
+
const y = M(F()), e = es(
|
|
2472
2472
|
Xe.RECEIVE_REQUEST,
|
|
2473
2473
|
y.value
|
|
2474
|
-
), { columnDefs: u } =
|
|
2474
|
+
), { columnDefs: u } = ts(
|
|
2475
2475
|
Xe.RECEIVE_REQUEST,
|
|
2476
2476
|
e
|
|
2477
2477
|
), k = Je();
|
|
@@ -2479,8 +2479,8 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2479
2479
|
const E = `inventory-record_${ft(y.value.startDate).format("DD-MM-YYYY_HH-mm")}-${ft(y.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`, U = e.purchaseOrders.value.flatMap(
|
|
2480
2480
|
(d) => d.items.map((c) => {
|
|
2481
2481
|
var me;
|
|
2482
|
-
const O = new Date(
|
|
2483
|
-
|
|
2482
|
+
const O = new Date(ns(d._id) ?? ""), ee = d.effectiveAt ? new Date(d.effectiveAt) : void 0, X = Ce(
|
|
2483
|
+
os(c.sku, d.deliveryOrder || [])
|
|
2484
2484
|
), ke = Ce(c.quantity), ve = ((me = c == null ? void 0 : c.measurement) == null ? void 0 : me.abbrev) || c.sku.unit.abbrev;
|
|
2485
2485
|
return {
|
|
2486
2486
|
"SKU code": c.code,
|
|
@@ -2507,7 +2507,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2507
2507
|
"Ordered quantity",
|
|
2508
2508
|
"Unit"
|
|
2509
2509
|
];
|
|
2510
|
-
t.enableBackdatePo && P.insert("Effective at", 4), t.enableTotalCost && P.push("Total cost"), await
|
|
2510
|
+
t.enableBackdatePo && P.insert("Effective at", 4), t.enableTotalCost && P.push("Total cost"), await ls(
|
|
2511
2511
|
[
|
|
2512
2512
|
{
|
|
2513
2513
|
name: "purchases",
|
|
@@ -2522,7 +2522,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2522
2522
|
type: "success"
|
|
2523
2523
|
});
|
|
2524
2524
|
}
|
|
2525
|
-
const i =
|
|
2525
|
+
const i = M(pt()), h = M("");
|
|
2526
2526
|
_e([() => i.value], ([E]) => {
|
|
2527
2527
|
!E.startDate || !E.endDate || (y.value.startDate = E.startDate, y.value.endDate = E.endDate, e.updateDateRange(
|
|
2528
2528
|
y.value.startDate,
|
|
@@ -2611,7 +2611,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2611
2611
|
}
|
|
2612
2612
|
];
|
|
2613
2613
|
return [...E, ...v.isEnabled ? U : []];
|
|
2614
|
-
}), Y =
|
|
2614
|
+
}), Y = M(null), K = N(() => {
|
|
2615
2615
|
if (!Y.value)
|
|
2616
2616
|
return e.purchaseOrders.value;
|
|
2617
2617
|
const E = Zt.build(Y.value);
|
|
@@ -2691,7 +2691,7 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2691
2691
|
props: (Ye = (Fe = O.supplier_name) == null ? void 0 : Fe.getContext) == null ? void 0 : Ye.call(Fe)
|
|
2692
2692
|
}, null, 8, ["render", "props"])
|
|
2693
2693
|
]),
|
|
2694
|
-
n("div", fa,
|
|
2694
|
+
n("div", fa, q(c.original.items.map((ie) => `${ie.name}`).join(", ")), 1),
|
|
2695
2695
|
c.original.ref ? (S(), T("div", va, [
|
|
2696
2696
|
b(s(fe), {
|
|
2697
2697
|
render: (Ve = (De = (Be = O.ref) == null ? void 0 : Be.column) == null ? void 0 : De.columnDef) == null ? void 0 : Ve.cell,
|
|
@@ -2714,15 +2714,12 @@ const Uo = { class: "flex flex-col flex-1" }, No = { class: "flex flex-col" }, B
|
|
|
2714
2714
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
|
|
2715
2715
|
], 2),
|
|
2716
2716
|
(S(), G(Tt, { to: "body" }, [
|
|
2717
|
-
b(
|
|
2717
|
+
b(Eo, Ze(s(e).transferDialogProps.value, {
|
|
2718
2718
|
onSubmitted: s(e).fetchData
|
|
2719
2719
|
}), null, 16, ["onSubmitted"]),
|
|
2720
|
-
b(
|
|
2720
|
+
b(ss, Ze({
|
|
2721
2721
|
scope: s(Xe).RECEIVE_REQUEST
|
|
2722
|
-
}, {
|
|
2723
|
-
...s(e).transferDetailsProps.value,
|
|
2724
|
-
receivedMap: s(e).transferDetailsProps.value.receivedMap
|
|
2725
|
-
}, {
|
|
2722
|
+
}, s(e).transferDetailsProps.value, {
|
|
2726
2723
|
onSubmitted: s(e).fetchData
|
|
2727
2724
|
}), null, 16, ["scope", "onSubmitted"]),
|
|
2728
2725
|
b(da, Dt(Vt(s(e).xilnexImportDialogProps.value)), null, 16)
|