@feedmepos/mf-inventory-portal 1.2.7-dev.7 → 1.2.7
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-Bp3RZliL.js → App-BtLCesbn.js} +1 -1
- package/dist/{ApprovalView-GJRR3rcl.js → ApprovalView-Ba4XBhGf.js} +68 -69
- package/dist/{BindingsDialog-CAEU5bJn.js → BindingsDialog-BbBUniCu.js} +2 -2
- package/dist/{BindingsPicker-bORI4mV1.js → BindingsPicker-C3q3ROku.js} +1 -1
- package/dist/{BindingsTable-CuH5tXgK.js → BindingsTable-BTxWMif_.js} +1 -1
- package/dist/{ClosingDraftView-CadMahym.js → ClosingDraftView-DGITBnaY.js} +203 -203
- package/dist/{ClosingTemplateView-D3o4odDY.js → ClosingTemplateView-eRvwxXBq.js} +53 -53
- package/dist/{DeliveryOrderPrintPreview-CsHfTBcq.js → DeliveryOrderPrintPreview-CUaHpblV.js} +8 -8
- package/dist/{FmAdminBadge-CzMn-J60.js → FmAdminBadge-BdwGZY-f.js} +6 -6
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lDkElrkF.js +227 -0
- package/dist/{FmMultiselectDialog-B8ArrIt7.js → FmMultiselectDialog-BETfHs3j.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-HndkjqBa.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BNdbeRQp.js} +23 -23
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-8ubEC227.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-VYMMcwLl.js} +1 -1
- package/dist/{IngredientGroupView-CwKJnrhc.js → IngredientGroupView-C4d9b3Td.js} +12 -12
- package/dist/IngredientsView-BvqWuIVT.js +1876 -0
- package/dist/{IntegrationView-BIRbf4l3.js → IntegrationView-CWFzRDWO.js} +1552 -1430
- package/dist/{InventoryBindingForm-DWyymzbI.js → InventoryBindingForm-Cx0Prlq8.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DyQrNaoP.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-cpR3Sf2Y.js} +41 -41
- package/dist/{InventoryBindingSummary-CXbQXbqS.js → InventoryBindingSummary-l8XvpxVU.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bj_HAWfH.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjRvIX-v.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DU2Qpd8s.js → PremiumBadge.vue_vue_type_script_setup_true_lang-gjuZveKy.js} +11 -11
- package/dist/{PublishView-CehXv5wb.js → PublishView-D2iUnDan.js} +14 -14
- package/dist/{PurchaseOrderPrintPreview-Uf0DxlXw.js → PurchaseOrderPrintPreview-DdLvM-wt.js} +11 -11
- package/dist/{ReceiveRequestView-ByIAx9ej.js → ReceiveRequestView-DpF5ZzvH.js} +145 -148
- package/dist/{RecipeView-YwG4k-4A.js → RecipeView-Dvtm8o1Y.js} +49 -49
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +59 -0
- package/dist/StockView-CRDu_GQ_.js +2086 -0
- package/dist/{SupplierView-CC3KnRbQ.js → SupplierView-7GtIJ3Fz.js} +1015 -1133
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DbmLtbZt.js +2494 -0
- package/dist/{TransferTemplateView-SCtPnAd9.js → TransferTemplateView-Cmvg-yvW.js} +130 -131
- package/dist/{UnitView-DJkTEgLx.js → UnitView-DjVm1iVX.js} +59 -59
- package/dist/WarehouseView-CBso3SXT.js +1034 -0
- package/dist/api/inventory.d.ts +0 -8
- package/dist/api/netsuite.d.ts +0 -3
- package/dist/api/purchase-order-template.d.ts +0 -1
- package/dist/api/purchase-order.d.ts +0 -2
- package/dist/api/warehouse.d.ts +1 -3
- package/dist/{app-DSCOQo53.js → app-Z-ylwRmy.js} +17114 -17862
- package/dist/app.d.ts +9 -81
- package/dist/app.js +3 -3
- package/dist/components/FmEnhancedSelect.vue.d.ts +30 -0
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +2 -9
- package/dist/{decimal-BZnhdSsA.js → decimal-D1pJ2776.js} +1 -1
- package/dist/{format-unit-display-d7QLVQil.js → format-unit-display-9BMm-8A4.js} +404 -372
- package/dist/{index-Bhroqat1.js → index-BOl10vcm.js} +282 -267
- package/dist/{index-Dyt2acoh.js → index-rEIM0AVC.js} +1 -1
- package/dist/{stock-CQFxEDCX.js → stock-B8ewk80v.js} +1 -1
- package/dist/stores/feature.d.ts +0 -10
- package/dist/stores/integration/netsuite.d.ts +0 -19
- package/dist/stores/inventory.d.ts +0 -1
- package/dist/stores/location.d.ts +1 -57
- package/dist/stores/supplier.d.ts +0 -96
- package/dist/stores/warehouse.d.ts +0 -4
- package/dist/{supplier-dlDvID4f.js → supplier-DLSXYY1o.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B2IP0HFs.js → use-ingredient-select-dialog-CTjwdY3T.js} +5 -5
- package/dist/{use-inventory-binding-dialog-5KDq4yCL.js → use-inventory-binding-dialog-zXJB7MQY.js} +8 -8
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +0 -16
- package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +0 -4
- package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +0 -2
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +0 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -60
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +0 -10
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +0 -94
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1 -72
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +0 -8
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +0 -3
- package/dist/views/supplier/composables/use-supplier-table.d.ts +0 -4
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +0 -8
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +0 -16
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +0 -48
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +0 -48
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +0 -8
- package/package.json +4 -4
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Vp1K2ZCX.js +0 -230
- package/dist/IngredientsView-K4NOgofz.js +0 -2197
- package/dist/StockView-C6cH0sRY.js +0 -2104
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DbiWKY49.js +0 -158
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Ctx-rXrn.js +0 -3058
- package/dist/WarehouseView-B7lrZDx5.js +0 -1066
- package/dist/api/shipment.d.ts +0 -11
- package/dist/components/netsuite/SubsidiaryTreeDialog.vue.d.ts +0 -2
- package/dist/purchase-order-template-DiLZPW9w.js +0 -41
- package/dist/views/receive-request/components/delivery-order-form/CreateForm.vue.d.ts +0 -16
- package/dist/views/receive-request/components/delivery-order-form/CreateFormProps.d.ts +0 -4
- package/dist/views/receive-request/components/delivery-order-form/EditForm.vue.d.ts +0 -16
- package/dist/views/receive-request/components/delivery-order-form/EditFormProps.d.ts +0 -4
|
@@ -1,15 +1,15 @@
|
|
|
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
|
|
2
|
-
import { b as Ue,
|
|
3
|
-
import { u as st, a as ts, P as Xe, b as ss, _ as os, g as as } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { reactive as gt, onMounted as Qe, watch as ge, computed as N, h as L, defineComponent as ce, openBlock as S, createElementBlock as T, Fragment as de, renderList as Se, createElementVNode as n, toDisplayString as M, unref as s, resolveComponent as I, createVNode as y, withCtx as A, createCommentVNode as j, ref as q, createBlock as W, normalizeClass as J, normalizeStyle as _t, createTextVNode as Ie, nextTick as $t, mergeProps as Ze, isRef as xe, createSlots as It, Teleport as Tt, normalizeProps as Dt, guardReactiveProps as Vt } from "vue";
|
|
2
|
+
import { b as Ue, T as Ge, c as Je, n as Me, j as Ce, ab as Ye, V as Pt, az as Rt, A as qe, M as At, o as ht, ai as We, J as fe, ar as Et, aA as Ot, aB as Mt, a6 as qt, aC as Ut, L as kt, u as et, a as tt, aD as Nt, aE as Bt, aa as zt, a1 as Lt, aF as Ht, G as xt, a3 as jt, e as Oe, aG as Yt, y as Qt, z as Kt, B as Xt, aH as je, ac as ft, C as Zt, N as Gt, H as Jt, _ as Wt, E as es, X as vt } from "./app-Z-ylwRmy.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-DbmLtbZt.js";
|
|
4
|
+
import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-gjuZveKy.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
|
|
7
|
+
import { P as ne, u as wt } from "./format-unit-display-9BMm-8A4.js";
|
|
8
|
+
import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BNdbeRQp.js";
|
|
9
|
+
import { c as $e, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lDkElrkF.js";
|
|
10
10
|
import { useI18n as _e } from "@feedmepos/mf-common";
|
|
11
|
-
import "./FmMultiselectDialog-
|
|
12
|
-
import { u as at } from "./supplier-
|
|
11
|
+
import "./FmMultiselectDialog-BETfHs3j.js";
|
|
12
|
+
import { u as at } from "./supplier-DLSXYY1o.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 || {});
|
|
@@ -27,7 +27,7 @@ function _s(g) {
|
|
|
27
27
|
for (const v of g.items) {
|
|
28
28
|
if (!v.totalCost)
|
|
29
29
|
continue;
|
|
30
|
-
const { cost: e } =
|
|
30
|
+
const { cost: e } = $e(
|
|
31
31
|
v.sku,
|
|
32
32
|
v.quantity,
|
|
33
33
|
v.measurement,
|
|
@@ -41,7 +41,7 @@ function _s(g) {
|
|
|
41
41
|
for (const e of g.items) {
|
|
42
42
|
if (!e.totalCost || r[e.sku._id] || !f(e.sku))
|
|
43
43
|
continue;
|
|
44
|
-
const { cost: u } =
|
|
44
|
+
const { cost: u } = $e(
|
|
45
45
|
e.sku,
|
|
46
46
|
e.quantity,
|
|
47
47
|
e.measurement,
|
|
@@ -193,7 +193,7 @@ function _s(g) {
|
|
|
193
193
|
measurement: c.measurement
|
|
194
194
|
};
|
|
195
195
|
if (x.enableTotalCost) {
|
|
196
|
-
const { cost: B } =
|
|
196
|
+
const { cost: B } = $e(
|
|
197
197
|
D.sku,
|
|
198
198
|
D.quantity,
|
|
199
199
|
D.measurement,
|
|
@@ -234,7 +234,7 @@ function _s(g) {
|
|
|
234
234
|
cell(v) {
|
|
235
235
|
const e = v.row.original, u = f(e.sku), k = p.value.xs || p.value.sm;
|
|
236
236
|
if (!r[e.sku._id] && u) {
|
|
237
|
-
const { cost: a, supplierOverrideCost: i } =
|
|
237
|
+
const { cost: a, supplierOverrideCost: i } = $e(
|
|
238
238
|
e.sku,
|
|
239
239
|
e.quantity,
|
|
240
240
|
e.measurement,
|
|
@@ -316,7 +316,7 @@ function _s(g) {
|
|
|
316
316
|
g.updateItem({
|
|
317
317
|
...e,
|
|
318
318
|
totalCost: {
|
|
319
|
-
...
|
|
319
|
+
...Pt(+a),
|
|
320
320
|
currency: Rt()
|
|
321
321
|
}
|
|
322
322
|
});
|
|
@@ -342,7 +342,7 @@ function _s(g) {
|
|
|
342
342
|
variant: "tertiary",
|
|
343
343
|
disabled: g.disabled,
|
|
344
344
|
onClick() {
|
|
345
|
-
const { cost: a } =
|
|
345
|
+
const { cost: a } = $e(
|
|
346
346
|
e.sku,
|
|
347
347
|
e.quantity,
|
|
348
348
|
e.measurement,
|
|
@@ -419,7 +419,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
419
419
|
n("div", ks, M((f = r(t)) == null ? void 0 : f.name), 1),
|
|
420
420
|
n("div", xs, [
|
|
421
421
|
(S(!0), T(de, null, Se(p.prices[t].slice(0, 3), (F) => {
|
|
422
|
-
var
|
|
422
|
+
var $;
|
|
423
423
|
return S(), T("div", {
|
|
424
424
|
key: F.date,
|
|
425
425
|
class: "flex flex-col w-[150px] xs:flex-1 text-ellipsis cursor-pointer"
|
|
@@ -428,7 +428,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
428
428
|
n("span", null, M(F.totalCost ? s(Ye)(F.totalCost) : "No data"), 1),
|
|
429
429
|
x[0] || (x[0] = n("span", { class: "text-fm-color-typo-secondary" }, "/", -1)),
|
|
430
430
|
n("span", null, M(s(Ce)(F.totalUnit, !1)), 1),
|
|
431
|
-
n("span", null, M(((
|
|
431
|
+
n("span", null, M((($ = F.measurement) == null ? void 0 : $.abbrev) ?? F.unit.abbrev), 1)
|
|
432
432
|
]),
|
|
433
433
|
n("div", Ss, [
|
|
434
434
|
n("span", null, "(#" + M(F.seqNumber) + ")", 1),
|
|
@@ -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" },
|
|
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" }, 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 = {
|
|
446
446
|
key: 0,
|
|
447
447
|
class: "flex-1 flex flex-col gap-4"
|
|
448
448
|
}, Os = /* @__PURE__ */ ce({
|
|
@@ -456,23 +456,23 @@ 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,
|
|
460
|
-
const x =
|
|
459
|
+
var f, F, $, v, e, u, k, a, i, h, _, C, l, c, D, B, Y, Q, K, O, U, P, d, b, R, X, Z;
|
|
460
|
+
const x = I("FmLabel"), t = I("FmSpacer");
|
|
461
461
|
return S(), T("div", ws, [
|
|
462
462
|
n("div", Fs, [
|
|
463
|
-
n("div",
|
|
464
|
-
n("span",
|
|
463
|
+
n("div", $s, [
|
|
464
|
+
n("span", Is, " (" + M(r.row.original.sku.code) + ") ", 1),
|
|
465
465
|
n("span", Ts, M(r.row.original.sku.name), 1)
|
|
466
466
|
]),
|
|
467
467
|
n("div", null, [
|
|
468
468
|
y(s(fe), {
|
|
469
|
-
render: (
|
|
469
|
+
render: ($ = (F = (f = r.cellByColId.Delete) == null ? void 0 : f.column) == null ? void 0 : F.columnDef) == null ? void 0 : $.cell,
|
|
470
470
|
props: (e = (v = r.cellByColId.Delete) == null ? void 0 : v.getContext) == null ? void 0 : e.call(v)
|
|
471
471
|
}, null, 8, ["render", "props"])
|
|
472
472
|
])
|
|
473
473
|
]),
|
|
474
474
|
n("div", Ds, [
|
|
475
|
-
n("div",
|
|
475
|
+
n("div", Vs, [
|
|
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", Ps, [
|
|
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 = (P = (U = r.cellByColId[s(ee).Cost]) == null ? void 0 : U.column) == null ? void 0 : P.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))
|
|
@@ -622,7 +622,7 @@ const qs = {
|
|
|
622
622
|
},
|
|
623
623
|
emits: ["update:poItems", "update:forecastAmounts"],
|
|
624
624
|
setup(g, { emit: w }) {
|
|
625
|
-
const r = g, p = w, x = q(!1), t = q(7), f = ns(), F = Te(), { t:
|
|
625
|
+
const r = g, p = w, x = q(!1), t = q(7), f = ns(), F = Te(), { t: $ } = _e();
|
|
626
626
|
function v(a, i, h) {
|
|
627
627
|
return i != null && a < i && (a = i), h != null && a > h && (a = h), a;
|
|
628
628
|
}
|
|
@@ -666,7 +666,7 @@ const qs = {
|
|
|
666
666
|
const a = f.purchaseOrderForecast.skus;
|
|
667
667
|
if (a.length === 0) {
|
|
668
668
|
F.open({
|
|
669
|
-
message:
|
|
669
|
+
message: $("inventory.transfer.form.items.forecastStock.notAvailable"),
|
|
670
670
|
type: "info"
|
|
671
671
|
});
|
|
672
672
|
return;
|
|
@@ -703,7 +703,7 @@ const qs = {
|
|
|
703
703
|
p("update:poItems", i), p("update:forecastAmounts", h);
|
|
704
704
|
}
|
|
705
705
|
return (a, i) => {
|
|
706
|
-
const h =
|
|
706
|
+
const h = I("FmButton"), _ = I("FmIcon"), C = I("FmStepperField"), l = I("FmPopover");
|
|
707
707
|
return S(), W(l, {
|
|
708
708
|
disabled: a.disabled,
|
|
709
709
|
class: "flex",
|
|
@@ -725,7 +725,7 @@ const qs = {
|
|
|
725
725
|
size: 24,
|
|
726
726
|
color: a.disabled ? "#c7c7cc" : "#ff7823"
|
|
727
727
|
}, null, 8, ["color"]),
|
|
728
|
-
n("div", js, M(s(
|
|
728
|
+
n("div", js, M(s($)("inventory.transfer.form.items.forecastStock.title")), 1)
|
|
729
729
|
])
|
|
730
730
|
]),
|
|
731
731
|
_: 1
|
|
@@ -737,7 +737,7 @@ const qs = {
|
|
|
737
737
|
n("div", Ks, [
|
|
738
738
|
y(bs, { "z-index": 99 }, {
|
|
739
739
|
default: A(() => [
|
|
740
|
-
n("p", Xs, M(s(
|
|
740
|
+
n("p", Xs, M(s($)("inventory.transfer.form.items.forecastStock.title")), 1)
|
|
741
741
|
]),
|
|
742
742
|
_: 1
|
|
743
743
|
})
|
|
@@ -752,7 +752,7 @@ const qs = {
|
|
|
752
752
|
y(C, {
|
|
753
753
|
modelValue: t.value,
|
|
754
754
|
"onUpdate:modelValue": i[1] || (i[1] = (c) => t.value = c),
|
|
755
|
-
label: s(
|
|
755
|
+
label: s($)("inventory.transfer.form.items.forecastStock.days"),
|
|
756
756
|
rules: [s(qe)(1)]
|
|
757
757
|
}, {
|
|
758
758
|
"helper-text": A(() => [
|
|
@@ -762,7 +762,7 @@ const qs = {
|
|
|
762
762
|
size: "sm",
|
|
763
763
|
class: "text-fm-color-system-warning-300"
|
|
764
764
|
}),
|
|
765
|
-
n("div", Gs, M(s(
|
|
765
|
+
n("div", Gs, M(s($)("inventory.transfer.form.items.forecastStock.replace")), 1)
|
|
766
766
|
])
|
|
767
767
|
]),
|
|
768
768
|
_: 1
|
|
@@ -770,12 +770,12 @@ const qs = {
|
|
|
770
770
|
n("div", Js, [
|
|
771
771
|
i[4] || (i[4] = n("div", { class: "grow" }, null, -1)),
|
|
772
772
|
y(h, {
|
|
773
|
-
label: s(
|
|
773
|
+
label: s($)("common.cancel"),
|
|
774
774
|
variant: "tertiary",
|
|
775
775
|
onClick: i[2] || (i[2] = (c) => x.value = !1)
|
|
776
776
|
}, null, 8, ["label"]),
|
|
777
777
|
y(h, {
|
|
778
|
-
label: s(
|
|
778
|
+
label: s($)("inventory.transfer.form.items.forecastStock.generate"),
|
|
779
779
|
onClick: k
|
|
780
780
|
}, null, 8, ["label"])
|
|
781
781
|
])
|
|
@@ -854,12 +854,12 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
854
854
|
}])
|
|
855
855
|
}, [
|
|
856
856
|
(S(!0), T(de, null, Se(r.row.getVisibleCells(), (f) => {
|
|
857
|
-
var F,
|
|
857
|
+
var F, $, v, e;
|
|
858
858
|
return S(), T("td", {
|
|
859
859
|
key: f.id,
|
|
860
860
|
class: J(["h-[56px] text-fm-color-typo-primary", ((F = w(f)) == null ? void 0 : F.cellClass) ?? "px-16"]),
|
|
861
861
|
style: _t({
|
|
862
|
-
width: (
|
|
862
|
+
width: ($ = w(f)) == null ? void 0 : $.width,
|
|
863
863
|
maxWidth: (v = w(f)) == null ? void 0 : v.maxWidth,
|
|
864
864
|
textAlign: ((e = w(f)) == null ? void 0 : e.textAlign) ?? "left"
|
|
865
865
|
})
|
|
@@ -952,7 +952,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
952
952
|
!r.isEnabled || h && r.isEnabled && h == _ ? x("netsuite:ready", e) : f.value = !0;
|
|
953
953
|
}
|
|
954
954
|
});
|
|
955
|
-
const
|
|
955
|
+
const $ = N(
|
|
956
956
|
() => p.supplier.internal ? r.currentLocationSubsidiary() : r.currentVendorSubsidiary(p.supplier._id)
|
|
957
957
|
), v = N(() => {
|
|
958
958
|
var e, u;
|
|
@@ -960,7 +960,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
960
960
|
location is ${(u = r.getLocationSubsidiary((e = F.value) == null ? void 0 : e.netSuiteId)) == null ? void 0 : u.fullName}`;
|
|
961
961
|
});
|
|
962
962
|
return (e, u) => {
|
|
963
|
-
const k =
|
|
963
|
+
const k = I("FmLabel"), a = I("FmIcon"), i = I("FmField"), h = I("FmTooltip");
|
|
964
964
|
return s(r).isEnabled && p.required ? (S(), T("div", no, [
|
|
965
965
|
y(k, {
|
|
966
966
|
label: `NetSuite ${s(t)("inventory.transfer.form.netsuite.subsidiary")}`
|
|
@@ -972,7 +972,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
972
972
|
disabled: e.disabled
|
|
973
973
|
}, {
|
|
974
974
|
content: A(() => u[0] || (u[0] = [
|
|
975
|
-
|
|
975
|
+
Ie("This field is locked and based on the location of the request.")
|
|
976
976
|
])),
|
|
977
977
|
default: A(() => [
|
|
978
978
|
y(i, null, {
|
|
@@ -987,7 +987,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
987
987
|
}, null, 8, ["color"]),
|
|
988
988
|
n("div", {
|
|
989
989
|
class: J([e.disabled ? "text-fm-color-typo-disabled" : ""])
|
|
990
|
-
}, M((_ =
|
|
990
|
+
}, M((_ = $.value) == null ? void 0 : _.fullName), 3)
|
|
991
991
|
])
|
|
992
992
|
];
|
|
993
993
|
}),
|
|
@@ -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]" },
|
|
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 }, Vo = /* @__PURE__ */ ce({
|
|
1014
1014
|
__name: "TransferForm2",
|
|
1015
1015
|
props: {
|
|
1016
1016
|
modelValue: {},
|
|
@@ -1022,7 +1022,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1022
1022
|
},
|
|
1023
1023
|
emits: ["validation-success", "form:ready"],
|
|
1024
1024
|
setup(g, { expose: w, emit: r }) {
|
|
1025
|
-
const p = g, x = r, t = kt(), { t: f } = _e(), F = et(),
|
|
1025
|
+
const p = g, x = r, t = kt(), { t: f } = _e(), F = et(), $ = tt(), v = Ue(), e = at(), u = Je(), k = wt(), { breakpoints: a } = ot(), i = N(() => a.value.xs || a.value.sm), h = gt({
|
|
1026
1026
|
value: !1
|
|
1027
1027
|
}), _ = q(!1), C = q(0), l = q([]), c = N(
|
|
1028
1028
|
() => {
|
|
@@ -1049,8 +1049,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1049
1049
|
email: G.doc.profile.email,
|
|
1050
1050
|
phoneNumber: G.doc.profile.phoneNo,
|
|
1051
1051
|
registrationNumber: G.doc.profile.regNo,
|
|
1052
|
-
address: G.doc.profile.address
|
|
1053
|
-
preparationTime: G.preparationTime
|
|
1052
|
+
address: G.doc.profile.address
|
|
1054
1053
|
};
|
|
1055
1054
|
t.supplier = re;
|
|
1056
1055
|
}
|
|
@@ -1070,7 +1069,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1070
1069
|
}), Qe(() => {
|
|
1071
1070
|
var o;
|
|
1072
1071
|
try {
|
|
1073
|
-
const m =
|
|
1072
|
+
const m = $.skuById;
|
|
1074
1073
|
let E = t.items.map((H) => ({ ...H, id: H.id ?? H.sku._id }));
|
|
1075
1074
|
t.template && (t.items.length || (E = ((o = c.value) == null ? void 0 : o.purchaseOrder.items) ?? [])), t.items = E.filter((H) => !m[H.sku._id].isInactive);
|
|
1076
1075
|
} finally {
|
|
@@ -1109,7 +1108,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1109
1108
|
return (o = p.modelValue) == null ? void 0 : o.template;
|
|
1110
1109
|
},
|
|
1111
1110
|
(o) => {
|
|
1112
|
-
u.mustUsePoTemplate && !o &&
|
|
1111
|
+
u.mustUsePoTemplate && !o && $t(() => {
|
|
1113
1112
|
var m, E;
|
|
1114
1113
|
t.supplier = ((E = (m = Q.locationOptionsTypeTransfer.value) == null ? void 0 : m.filter(
|
|
1115
1114
|
(H) => H.internal === "restaurant"
|
|
@@ -1132,7 +1131,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1132
1131
|
set(o) {
|
|
1133
1132
|
Q.transferLocationModel.value = o;
|
|
1134
1133
|
}
|
|
1135
|
-
}),
|
|
1134
|
+
}), P = N({
|
|
1136
1135
|
get() {
|
|
1137
1136
|
return t.remark ?? void 0;
|
|
1138
1137
|
},
|
|
@@ -1195,7 +1194,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1195
1194
|
}), Be = N(() => Ne.columnDefs.value);
|
|
1196
1195
|
function ze() {
|
|
1197
1196
|
var G, re, Fe, He, Re;
|
|
1198
|
-
const o = (Fe = (re = (G = c.value) == null ? void 0 : G.purchaseOrder) == null ? void 0 : re.items) == null ? void 0 : Fe.groupBy((z) => z.sku._id), m = v.isEnabled ? v.getAvailableItems((Re = (He = t.netSuite) == null ? void 0 : He.subsidiary) == null ? void 0 : Re.id) : [], E = o != null && o.size ?
|
|
1197
|
+
const o = (Fe = (re = (G = c.value) == null ? void 0 : G.purchaseOrder) == null ? void 0 : re.items) == null ? void 0 : Fe.groupBy((z) => z.sku._id), m = v.isEnabled ? v.getAvailableItems((Re = (He = t.netSuite) == null ? void 0 : He.subsidiary) == null ? void 0 : Re.id) : [], E = o != null && o.size ? $.skus.filter((z) => o.has(z._id)) : $.skus, H = v.isEnabled ? E.filter((z) => {
|
|
1199
1198
|
var ae, se, ue, pe;
|
|
1200
1199
|
const te = (se = (ae = c.value) == null ? void 0 : ae.purchaseOrder) == null ? void 0 : se.items.find(
|
|
1201
1200
|
(ve) => ve.sku._id === z._id
|
|
@@ -1259,7 +1258,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1259
1258
|
}
|
|
1260
1259
|
};
|
|
1261
1260
|
if (K.value == ne.PURCHASE) {
|
|
1262
|
-
const { cost: ye } =
|
|
1261
|
+
const { cost: ye } = $e(
|
|
1263
1262
|
pe.sku,
|
|
1264
1263
|
pe.quantity,
|
|
1265
1264
|
pe.measurement,
|
|
@@ -1279,7 +1278,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1279
1278
|
}
|
|
1280
1279
|
const Le = N(() => {
|
|
1281
1280
|
var o;
|
|
1282
|
-
return c.value ? ((o = c.value) == null ? void 0 : o.purchaseOrder.items) || [] :
|
|
1281
|
+
return c.value ? ((o = c.value) == null ? void 0 : o.purchaseOrder.items) || [] : $.skus.map((m) => ({
|
|
1283
1282
|
quantity: {
|
|
1284
1283
|
amount: 0,
|
|
1285
1284
|
precision: 0
|
|
@@ -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
|
+
}), Ve = 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,13 +1301,13 @@ 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
|
+
}), Pe = N(() => {
|
|
1306
1305
|
var o;
|
|
1307
1306
|
return (o = p.modelValue) == null ? void 0 : o.items.every((m) => m.quantity.amount <= 0);
|
|
1308
1307
|
});
|
|
1309
1308
|
return (o, m) => {
|
|
1310
1309
|
var ve, Ae;
|
|
1311
|
-
const E =
|
|
1310
|
+
const E = I("FmChip"), H = I("FmLabel"), le = I("FmIcon"), me = I("FmField"), G = I("FmTooltip"), re = I("FmSelect"), Fe = I("FmTextField"), He = I("FmTextarea"), Re = I("FmSwitch"), z = I("FmDatePicker"), te = I("FmTimePicker"), ae = I("FmFormGroup"), se = I("FmButton"), ue = I("FmTable"), pe = I("FmForm");
|
|
1312
1311
|
return S(), T("div", co, [
|
|
1313
1312
|
n("div", mo, [
|
|
1314
1313
|
(ve = p.modelValue) != null && ve.template ? (S(), W(E, {
|
|
@@ -1355,7 +1354,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1355
1354
|
disabled: o.disabled
|
|
1356
1355
|
}, {
|
|
1357
1356
|
content: A(() => m[15] || (m[15] = [
|
|
1358
|
-
|
|
1357
|
+
Ie("This field is locked from template.")
|
|
1359
1358
|
])),
|
|
1360
1359
|
default: A(() => [
|
|
1361
1360
|
y(me, null, {
|
|
@@ -1395,12 +1394,12 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1395
1394
|
disabled: o.disabled
|
|
1396
1395
|
}, {
|
|
1397
1396
|
content: A(() => m[16] || (m[16] = [
|
|
1398
|
-
|
|
1397
|
+
Ie("This field is locked from template.")
|
|
1399
1398
|
])),
|
|
1400
1399
|
default: A(() => [
|
|
1401
1400
|
y(me, null, {
|
|
1402
1401
|
default: A(() => {
|
|
1403
|
-
var
|
|
1402
|
+
var V;
|
|
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((V = O.value.find((oe) => oe.value === U.value)) == null ? void 0 : V.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] = (V) => K.value = V),
|
|
1429
|
+
items: Ve.value,
|
|
1430
|
+
rules: [s(qe)(1)(Ve.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] = (V) => U.value = V),
|
|
1448
1447
|
items: O.value,
|
|
1449
1448
|
rules: [s(qe)(1)(O.value)]
|
|
1450
1449
|
}, {
|
|
1451
|
-
"menu-wrapper": A((
|
|
1450
|
+
"menu-wrapper": A((V) => {
|
|
1452
1451
|
var oe, Ee;
|
|
1453
1452
|
return [
|
|
1454
|
-
y(ys, Ze(
|
|
1453
|
+
y(ys, Ze(V, {
|
|
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 V;
|
|
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((V = O.value.find((oe) => oe.value === U.value)) == null ? void 0 : V.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] = (V) => s(t).ref = V)
|
|
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: P.value,
|
|
1484
|
+
"onUpdate:modelValue": m[3] || (m[3] = (V) => P.value = V),
|
|
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: (V, oe) => {
|
|
1495
|
+
s(t).items = V, s(t).netSuite = oe;
|
|
1497
1496
|
},
|
|
1498
|
-
"onNetsuite:ready": m[4] || (m[4] = (
|
|
1497
|
+
"onNetsuite:ready": m[4] || (m[4] = (V) => {
|
|
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] = (V) => xe(b) ? b.value = V : 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] = (V) => xe(R) ? R.value = V : 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] = (V) => xe(X) ? X.value = V : 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] = (V) => xe(d) ? d.value = V : 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, [
|
|
@@ -1551,7 +1550,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1551
1550
|
])) : j("", !0)
|
|
1552
1551
|
])
|
|
1553
1552
|
]),
|
|
1554
|
-
n("div",
|
|
1553
|
+
n("div", $o, [
|
|
1555
1554
|
y(ae, {
|
|
1556
1555
|
"model-value": s(t).items,
|
|
1557
1556
|
rules: [s(qe)(1)]
|
|
@@ -1565,7 +1564,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1565
1564
|
}
|
|
1566
1565
|
])
|
|
1567
1566
|
}, [
|
|
1568
|
-
n("div",
|
|
1567
|
+
n("div", Io, M(s(f)("inventory.transfer.form.items.title")), 1),
|
|
1569
1568
|
n("div", To, [
|
|
1570
1569
|
y(se, {
|
|
1571
1570
|
disabled: o.disabled,
|
|
@@ -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] = (V) => 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] = (V) => {
|
|
1585
|
+
l.value = V;
|
|
1587
1586
|
}),
|
|
1588
|
-
"onUpdate:poItems": m[11] || (m[11] = (
|
|
1589
|
-
s(t).items =
|
|
1587
|
+
"onUpdate:poItems": m[11] || (m[11] = (V) => {
|
|
1588
|
+
s(t).items = V, 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] = (V) => xe(Z) ? Z.value = V : 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": Pe.value,
|
|
1605
|
+
rules: [() => Pe.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((V) => {
|
|
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: V,
|
|
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 === V.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((V) => [
|
|
1636
1635
|
(S(), W(xt, {
|
|
1637
|
-
row:
|
|
1636
|
+
row: V,
|
|
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: V,
|
|
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
|
+
}), Po = { 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,13 +1668,13 @@ 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
|
|
1673
|
-
const p = g, x = r, t = st(), f = wt(), F = Te(),
|
|
1671
|
+
var P;
|
|
1672
|
+
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
1673
|
async function h(d) {
|
|
1675
1674
|
if (d) {
|
|
1676
1675
|
a.value = !1;
|
|
1677
1676
|
try {
|
|
1678
|
-
await
|
|
1677
|
+
await $.readSuppliers(), a.value = !0;
|
|
1679
1678
|
} catch {
|
|
1680
1679
|
F.open({
|
|
1681
1680
|
title: u("inventory.transfer.form.unableToFetchListOfSuppliers.title"),
|
|
@@ -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(((P = p.modelValue) == null ? void 0 : P._id) ?? `${Math.random()}`);
|
|
1724
1723
|
ge(
|
|
1725
1724
|
() => p.show,
|
|
1726
1725
|
(d) => {
|
|
@@ -1833,7 +1832,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1833
1832
|
(X = (R = Y.value) == null ? void 0 : R.validateInputs) == null || X.call(R);
|
|
1834
1833
|
}
|
|
1835
1834
|
return (d, b) => {
|
|
1836
|
-
const R =
|
|
1835
|
+
const R = I("FmButton"), X = I("FmSideSheet");
|
|
1837
1836
|
return S(), W(X, {
|
|
1838
1837
|
modelValue: s(C),
|
|
1839
1838
|
"onUpdate:modelValue": b[3] || (b[3] = (Z) => xe(C) ? C.value = Z : null),
|
|
@@ -1842,12 +1841,12 @@ 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", Po, [
|
|
1846
1845
|
n("div", Ro, M(B.value), 1)
|
|
1847
1846
|
])
|
|
1848
1847
|
]),
|
|
1849
1848
|
default: A(() => [
|
|
1850
|
-
(S(), W(
|
|
1849
|
+
(S(), W(Vo, {
|
|
1851
1850
|
class: "w-full",
|
|
1852
1851
|
ref_key: "formRef",
|
|
1853
1852
|
ref: Y,
|
|
@@ -1856,7 +1855,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1856
1855
|
modelValue: l.value,
|
|
1857
1856
|
"onUpdate:modelValue": b[1] || (b[1] = (Z) => l.value = Z),
|
|
1858
1857
|
disabled: k.value || D.value,
|
|
1859
|
-
suppliers: s(
|
|
1858
|
+
suppliers: s($).suppliers,
|
|
1860
1859
|
skus: s(v).skus,
|
|
1861
1860
|
key: c.value,
|
|
1862
1861
|
"last-closing-date": d.lastClosingDate
|
|
@@ -1906,8 +1905,8 @@ function Mo(g) {
|
|
|
1906
1905
|
try {
|
|
1907
1906
|
return w.reduce(
|
|
1908
1907
|
(p, x) => {
|
|
1909
|
-
const t = new Array(), f = g.Sheets[x], F = tt(),
|
|
1910
|
-
for (const { index: u, data: k } of
|
|
1908
|
+
const t = new Array(), f = g.Sheets[x], F = tt(), $ = Oo(f), v = [];
|
|
1909
|
+
for (const { index: u, data: k } of $) {
|
|
1911
1910
|
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
1911
|
const a = F.skus.find((_) => _.code === k.scanned_code);
|
|
1913
1912
|
if (!a) {
|
|
@@ -1972,7 +1971,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
1972
1971
|
};
|
|
1973
1972
|
return (t, f) => {
|
|
1974
1973
|
var v;
|
|
1975
|
-
const F =
|
|
1974
|
+
const F = I("FmIcon"), $ = I("FmTooltip");
|
|
1976
1975
|
return S(), T("div", qo, [
|
|
1977
1976
|
n("div", {
|
|
1978
1977
|
onClick: x,
|
|
@@ -1987,7 +1986,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
1987
1986
|
"text-fm-color-system-error-300": t.errors.length
|
|
1988
1987
|
})
|
|
1989
1988
|
}, [
|
|
1990
|
-
|
|
1989
|
+
Ie(M(t.name) + " ", 1),
|
|
1991
1990
|
t.type === "create" ? (S(), T("span", Bo, "(" + M(s(r)("inventory.closing.template.import.new")) + ")", 1)) : j("", !0)
|
|
1992
1991
|
], 2),
|
|
1993
1992
|
t.errors.length ? (S(), T("div", zo, [
|
|
@@ -2005,7 +2004,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2005
2004
|
class: "flex gap-4 mt-2 items-center"
|
|
2006
2005
|
}, [
|
|
2007
2006
|
n("div", Ho, [
|
|
2008
|
-
y(
|
|
2007
|
+
y($, {
|
|
2009
2008
|
content: e.code,
|
|
2010
2009
|
placement: "top",
|
|
2011
2010
|
"z-index": 51
|
|
@@ -2015,7 +2014,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2015
2014
|
]),
|
|
2016
2015
|
_: 2
|
|
2017
2016
|
}, 1032, ["content"]),
|
|
2018
|
-
y(
|
|
2017
|
+
y($, {
|
|
2019
2018
|
content: e.name,
|
|
2020
2019
|
placement: "top",
|
|
2021
2020
|
"z-index": 51
|
|
@@ -2030,7 +2029,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2030
2029
|
n("span", Qo, M(s(Ge).toFormatString({
|
|
2031
2030
|
value: e.quantity
|
|
2032
2031
|
})), 1),
|
|
2033
|
-
|
|
2032
|
+
Ie(" " + M(e.measurement ? e.measurement.abbrev : e.sku.unit.abbrev), 1)
|
|
2034
2033
|
])
|
|
2035
2034
|
]))), 128)) : j("", !0)
|
|
2036
2035
|
])
|
|
@@ -2074,7 +2073,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2074
2073
|
}, la = { class: "fm-typo-en-body-lg-600" }, yt = "Transfer note", ra = /* @__PURE__ */ ce({
|
|
2075
2074
|
__name: "XilnexImportForm",
|
|
2076
2075
|
setup(g, { expose: w }) {
|
|
2077
|
-
const r = q(null), p = Te(), x = q(!1), t = q(!1), f = kt(), F = q(!1),
|
|
2076
|
+
const r = q(null), p = Te(), x = q(!1), t = q(!1), f = kt(), F = q(!1), $ = Ue();
|
|
2078
2077
|
q([]);
|
|
2079
2078
|
const v = N({
|
|
2080
2079
|
get() {
|
|
@@ -2099,7 +2098,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2099
2098
|
}
|
|
2100
2099
|
});
|
|
2101
2100
|
Qe(async () => {
|
|
2102
|
-
const l = await
|
|
2101
|
+
const l = await $.getNetSuiteLocations();
|
|
2103
2102
|
console.log(l), F.value = !0;
|
|
2104
2103
|
});
|
|
2105
2104
|
const e = 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 =
|
|
2180
|
-
return S(), W(
|
|
2178
|
+
const D = I("FmSelect"), B = I("FmDatePicker"), Y = I("FmTimePicker"), Q = I("FmCircularProgress"), K = I("FmLabel"), O = I("FmIcon"), U = I("FmButton"), P = I("FmForm");
|
|
2179
|
+
return S(), W(P, {
|
|
2181
2180
|
ref_key: "formRef",
|
|
2182
2181
|
ref: h
|
|
2183
2182
|
}, {
|
|
@@ -2231,13 +2230,13 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2231
2230
|
label: yt,
|
|
2232
2231
|
onFileUpload: c[3] || (c[3] = (d) => r.value = d),
|
|
2233
2232
|
"button-label": s(_)("inventory.ingredient.import.selectFile")
|
|
2234
|
-
},
|
|
2233
|
+
}, It({ _: 2 }, [
|
|
2235
2234
|
r.value ? {
|
|
2236
2235
|
name: "default",
|
|
2237
2236
|
fn: A(({ openFileDialog: d }) => [
|
|
2238
2237
|
y(K, null, {
|
|
2239
2238
|
default: A(() => [
|
|
2240
|
-
|
|
2239
|
+
Ie(M(yt))
|
|
2241
2240
|
]),
|
|
2242
2241
|
_: 1
|
|
2243
2242
|
}),
|
|
@@ -2324,7 +2323,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2324
2323
|
},
|
|
2325
2324
|
emits: ["update:show", "submitted"],
|
|
2326
2325
|
setup(g, { expose: w, emit: r }) {
|
|
2327
|
-
const p = r, t = St(g, "show"), f = Te(), F = st(),
|
|
2326
|
+
const p = r, t = St(g, "show"), f = Te(), F = st(), $ = q(!1), v = q(), e = q();
|
|
2328
2327
|
w({
|
|
2329
2328
|
validateInputs: () => {
|
|
2330
2329
|
var a, i;
|
|
@@ -2378,7 +2377,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2378
2377
|
});
|
|
2379
2378
|
return;
|
|
2380
2379
|
}
|
|
2381
|
-
|
|
2380
|
+
$.value = !0;
|
|
2382
2381
|
try {
|
|
2383
2382
|
await F.importFromXilnex(e.value), p("update:show", !1);
|
|
2384
2383
|
} catch (c) {
|
|
@@ -2388,11 +2387,11 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2388
2387
|
type: "error"
|
|
2389
2388
|
});
|
|
2390
2389
|
} finally {
|
|
2391
|
-
|
|
2390
|
+
$.value = !1;
|
|
2392
2391
|
}
|
|
2393
2392
|
}
|
|
2394
2393
|
return (a, i) => {
|
|
2395
|
-
const h =
|
|
2394
|
+
const h = I("FmSpacer"), _ = I("FmButton"), C = I("FmDialog");
|
|
2396
2395
|
return S(), W(C, {
|
|
2397
2396
|
modelValue: s(t),
|
|
2398
2397
|
"onUpdate:modelValue": i[2] || (i[2] = (l) => xe(t) ? t.value = l : null),
|
|
@@ -2405,7 +2404,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2405
2404
|
"dialog-footer": A(() => [
|
|
2406
2405
|
y(h, { class: "sm:hidden xs:hidden" }),
|
|
2407
2406
|
y(_, {
|
|
2408
|
-
disabled:
|
|
2407
|
+
disabled: $.value,
|
|
2409
2408
|
class: "sm:w-full xs:w-full",
|
|
2410
2409
|
label: "Cancel",
|
|
2411
2410
|
size: "md",
|
|
@@ -2413,8 +2412,8 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2413
2412
|
onClick: i[1] || (i[1] = (l) => p("update:show", !1))
|
|
2414
2413
|
}, null, 8, ["disabled"]),
|
|
2415
2414
|
y(_, {
|
|
2416
|
-
disabled:
|
|
2417
|
-
loading:
|
|
2415
|
+
disabled: $.value,
|
|
2416
|
+
loading: $.value,
|
|
2418
2417
|
class: "sm:w-full xs:w-full",
|
|
2419
2418
|
label: "Upload",
|
|
2420
2419
|
size: "md",
|
|
@@ -2465,7 +2464,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2465
2464
|
return O;
|
|
2466
2465
|
}
|
|
2467
2466
|
}
|
|
2468
|
-
function
|
|
2467
|
+
function $() {
|
|
2469
2468
|
x.setItem(bt, JSON.stringify(v.value));
|
|
2470
2469
|
}
|
|
2471
2470
|
const v = q(F()), e = ts(
|
|
@@ -2473,8 +2472,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2473
2472
|
v.value
|
|
2474
2473
|
), { columnDefs: u } = ss(
|
|
2475
2474
|
Xe.RECEIVE_REQUEST,
|
|
2476
|
-
e
|
|
2477
|
-
e.shipments
|
|
2475
|
+
e
|
|
2478
2476
|
), k = et();
|
|
2479
2477
|
async function a() {
|
|
2480
2478
|
const O = `inventory-record_${vt(v.value.startDate).format("DD-MM-YYYY_HH-mm")}-${vt(v.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`, U = e.purchaseOrders.value.flatMap(
|
|
@@ -2497,7 +2495,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2497
2495
|
"Total cost": b.totalCost ? Ye(b.totalCost) : null
|
|
2498
2496
|
};
|
|
2499
2497
|
})
|
|
2500
|
-
),
|
|
2498
|
+
), P = [
|
|
2501
2499
|
"SKU code",
|
|
2502
2500
|
"SKU name",
|
|
2503
2501
|
"PO #",
|
|
@@ -2508,12 +2506,12 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2508
2506
|
"Ordered quantity",
|
|
2509
2507
|
"Unit"
|
|
2510
2508
|
];
|
|
2511
|
-
t.enableBackdatePo &&
|
|
2509
|
+
t.enableBackdatePo && P.insert("Effective at", 4), t.enableTotalCost && P.push("Total cost"), await rs(
|
|
2512
2510
|
[
|
|
2513
2511
|
{
|
|
2514
2512
|
name: "purchases",
|
|
2515
2513
|
data: U,
|
|
2516
|
-
columns:
|
|
2514
|
+
columns: P
|
|
2517
2515
|
}
|
|
2518
2516
|
],
|
|
2519
2517
|
O
|
|
@@ -2528,9 +2526,9 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2528
2526
|
!O.startDate || !O.endDate || (v.value.startDate = O.startDate, v.value.endDate = O.endDate, e.updateDateRange(
|
|
2529
2527
|
v.value.startDate,
|
|
2530
2528
|
v.value.endDate
|
|
2531
|
-
),
|
|
2529
|
+
), $());
|
|
2532
2530
|
}), ge([() => h.value], () => {
|
|
2533
|
-
|
|
2531
|
+
$();
|
|
2534
2532
|
});
|
|
2535
2533
|
function _(O) {
|
|
2536
2534
|
if (O === "create") {
|
|
@@ -2579,7 +2577,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2579
2577
|
key: "status",
|
|
2580
2578
|
entity: "purchaseOrder",
|
|
2581
2579
|
values: Array.from(
|
|
2582
|
-
new Set(e.purchaseOrders.value.map((
|
|
2580
|
+
new Set(e.purchaseOrders.value.map((P) => P.status))
|
|
2583
2581
|
)
|
|
2584
2582
|
}
|
|
2585
2583
|
], U = [
|
|
@@ -2587,28 +2585,28 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2587
2585
|
type: "string",
|
|
2588
2586
|
key: "netsuiteTransactionNumber",
|
|
2589
2587
|
entity: "purchaseOrder",
|
|
2590
|
-
values: e.purchaseOrders.value.map((
|
|
2588
|
+
values: e.purchaseOrders.value.map((P) => {
|
|
2591
2589
|
var d, b;
|
|
2592
|
-
return (b = (d =
|
|
2593
|
-
}).filter((
|
|
2590
|
+
return (b = (d = P.netSuite) == null ? void 0 : d.additionalInfo) == null ? void 0 : b.transactionnumber;
|
|
2591
|
+
}).filter((P) => P != null)
|
|
2594
2592
|
},
|
|
2595
2593
|
{
|
|
2596
2594
|
type: "string",
|
|
2597
2595
|
key: "netsuiteOrderNo",
|
|
2598
2596
|
entity: "purchaseOrder",
|
|
2599
|
-
values: e.purchaseOrders.value.map((
|
|
2597
|
+
values: e.purchaseOrders.value.map((P) => {
|
|
2600
2598
|
var d;
|
|
2601
|
-
return (d =
|
|
2602
|
-
}).filter((
|
|
2599
|
+
return (d = P.netSuite) == null ? void 0 : d.refNo;
|
|
2600
|
+
}).filter((P) => P != null)
|
|
2603
2601
|
},
|
|
2604
2602
|
{
|
|
2605
2603
|
type: "string",
|
|
2606
2604
|
key: "netsuiteOrderId",
|
|
2607
2605
|
entity: "purchaseOrder",
|
|
2608
|
-
values: e.purchaseOrders.value.map((
|
|
2606
|
+
values: e.purchaseOrders.value.map((P) => {
|
|
2609
2607
|
var d;
|
|
2610
|
-
return (d =
|
|
2611
|
-
}).filter((
|
|
2608
|
+
return (d = P.netSuite) == null ? void 0 : d.id;
|
|
2609
|
+
}).filter((P) => P != null)
|
|
2612
2610
|
}
|
|
2613
2611
|
];
|
|
2614
2612
|
return [...O, ...f.isEnabled ? U : []];
|
|
@@ -2617,10 +2615,10 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2617
2615
|
return e.purchaseOrders.value;
|
|
2618
2616
|
const O = Gt.build(Q.value);
|
|
2619
2617
|
return e.purchaseOrders.value.filter((U) => {
|
|
2620
|
-
var
|
|
2618
|
+
var P, d, b, R;
|
|
2621
2619
|
return Jt(
|
|
2622
2620
|
{
|
|
2623
|
-
netsuiteTransactionNumber: (d = (
|
|
2621
|
+
netsuiteTransactionNumber: (d = (P = U.netSuite) == null ? void 0 : P.additionalInfo) == null ? void 0 : d.transactionnumber,
|
|
2624
2622
|
netsuiteOrderNo: (b = U.netSuite) == null ? void 0 : b.refNo,
|
|
2625
2623
|
netsuiteOrderId: (R = U.netSuite) == null ? void 0 : R.id,
|
|
2626
2624
|
status: U.status
|
|
@@ -2630,7 +2628,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2630
2628
|
});
|
|
2631
2629
|
});
|
|
2632
2630
|
return (O, U) => {
|
|
2633
|
-
const
|
|
2631
|
+
const P = I("FmTable");
|
|
2634
2632
|
return S(), W(Wt, {
|
|
2635
2633
|
title: s(w)("inventory.transfer.receiveRequest.title2"),
|
|
2636
2634
|
actions: B.value,
|
|
@@ -2661,7 +2659,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2661
2659
|
filter: Q.value,
|
|
2662
2660
|
"onUpdate:filter": U[2] || (U[2] = (R) => Q.value = R)
|
|
2663
2661
|
}, null, 8, ["date-range", "search", "filter-attributes", "filter"]),
|
|
2664
|
-
(S(), W(
|
|
2662
|
+
(S(), W(P, {
|
|
2665
2663
|
style: _t(s(D).tableHeight),
|
|
2666
2664
|
"column-defs": s(u),
|
|
2667
2665
|
"row-data": K.value,
|
|
@@ -2677,7 +2675,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2677
2675
|
onRowClick: s(e).promptShowTransferDetails
|
|
2678
2676
|
}, {
|
|
2679
2677
|
default: A((X) => {
|
|
2680
|
-
var Z, he, ke, ie, we, Ne, Be, ze, De, Le,
|
|
2678
|
+
var Z, he, ke, ie, we, Ne, Be, ze, De, Le, Ve, Pe, o, m, E, H, le, me, G, re;
|
|
2681
2679
|
return [
|
|
2682
2680
|
n("div", da, [
|
|
2683
2681
|
n("div", ca, [
|
|
@@ -2695,7 +2693,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2695
2693
|
n("div", pa, M(R.original.items.map((Fe) => `${Fe.name}`).join(", ")), 1),
|
|
2696
2694
|
R.original.ref ? (S(), T("div", fa, [
|
|
2697
2695
|
y(s(fe), {
|
|
2698
|
-
render: (o = (
|
|
2696
|
+
render: (o = (Pe = (Ve = X.ref) == null ? void 0 : Ve.column) == null ? void 0 : Pe.columnDef) == null ? void 0 : o.cell,
|
|
2699
2697
|
props: (E = (m = X.ref) == null ? void 0 : m.getContext) == null ? void 0 : E.call(m)
|
|
2700
2698
|
}, null, 8, ["render", "props"])
|
|
2701
2699
|
])) : j("", !0),
|
|
@@ -2722,12 +2720,11 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2722
2720
|
scope: s(Xe).RECEIVE_REQUEST
|
|
2723
2721
|
}, {
|
|
2724
2722
|
...s(e).transferDetailsProps.value,
|
|
2725
|
-
receivedMap: ((b = s(e).transferDetailsProps.value) == null ? void 0 : b.receivedMap) ?? {}
|
|
2726
|
-
shipments: s(e).shipments.value ?? []
|
|
2723
|
+
receivedMap: ((b = s(e).transferDetailsProps.value) == null ? void 0 : b.receivedMap) ?? {}
|
|
2727
2724
|
}, {
|
|
2728
2725
|
onSubmitted: s(e).fetchData
|
|
2729
2726
|
}), null, 16, ["scope", "onSubmitted"]),
|
|
2730
|
-
y(ua, Dt(
|
|
2727
|
+
y(ua, Dt(Vt(s(e).xilnexImportDialogProps.value)), null, 16)
|
|
2731
2728
|
]))
|
|
2732
2729
|
];
|
|
2733
2730
|
}),
|