@feedmepos/mf-inventory-portal 1.2.7 → 1.2.8
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-BtLCesbn.js → App-D1IJlQS8.js} +1 -1
- package/dist/{ApprovalView-Ba4XBhGf.js → ApprovalView-GnDYWZHY.js} +69 -68
- package/dist/{BindingsDialog-BbBUniCu.js → BindingsDialog-Bs00N9mp.js} +2 -2
- package/dist/{BindingsPicker-C3q3ROku.js → BindingsPicker-LO15pMdZ.js} +1 -1
- package/dist/{BindingsTable-BTxWMif_.js → BindingsTable-g27KG9q4.js} +1 -1
- package/dist/{ClosingDraftView-DGITBnaY.js → ClosingDraftView-Ddsgcrmg.js} +203 -203
- package/dist/ClosingTemplateView-G8Ya81UZ.js +1862 -0
- package/dist/{DeliveryOrderPrintPreview-CUaHpblV.js → DeliveryOrderPrintPreview-qq1rhFKV.js} +8 -8
- package/dist/{FmAdminBadge-BdwGZY-f.js → FmAdminBadge-B2NpMmJi.js} +6 -6
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C1i9CHE1.js +230 -0
- package/dist/{FmMultiselectDialog-BETfHs3j.js → FmMultiselectDialog-u2dbuZUp.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BNdbeRQp.js → FmUnitInput.vue_vue_type_script_setup_true_lang-vpiiv6C1.js} +23 -23
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-VYMMcwLl.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-3T-d1pIb.js} +1 -1
- package/dist/{IngredientGroupView-C4d9b3Td.js → IngredientGroupView-CqB73-e4.js} +12 -12
- package/dist/IngredientsView-Cq42ytcN.js +2291 -0
- package/dist/{IntegrationView-CWFzRDWO.js → IntegrationView-OHnUGZst.js} +4 -4
- package/dist/{InventoryBindingForm-Cx0Prlq8.js → InventoryBindingForm-DorgxR-Y.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-cpR3Sf2Y.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CZy77tY7.js} +41 -41
- package/dist/{InventoryBindingSummary-l8XvpxVU.js → InventoryBindingSummary-B_YavyPb.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjRvIX-v.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-XuEDo134.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-gjuZveKy.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Blq1oE5l.js} +11 -11
- package/dist/{PublishView-D2iUnDan.js → PublishView-Ds_ztGcV.js} +14 -14
- package/dist/{PurchaseOrderPrintPreview-DdLvM-wt.js → PurchaseOrderPrintPreview-DnyqN_xE.js} +11 -11
- package/dist/{ReceiveRequestView-DpF5ZzvH.js → ReceiveRequestView-ChpKsDaF.js} +148 -145
- package/dist/{RecipeView-Dvtm8o1Y.js → RecipeView-Dyp9Xcme.js} +49 -49
- package/dist/StockView-D-iP52Zw.js +2089 -0
- package/dist/{SupplierView-7GtIJ3Fz.js → SupplierView-BaEK3C8q.js} +1133 -1015
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-B_ravTwn.js +3058 -0
- package/dist/{TransferTemplateView-Cmvg-yvW.js → TransferTemplateView-3zS7hNZz.js} +131 -130
- package/dist/{UnitView-DjVm1iVX.js → UnitView-BP5eztAG.js} +59 -59
- package/dist/WarehouseView-DMY7Lgwq.js +1066 -0
- package/dist/api/inventory.d.ts +8 -0
- package/dist/api/netsuite.d.ts +3 -0
- package/dist/api/purchase-order-template.d.ts +1 -0
- package/dist/api/purchase-order.d.ts +2 -0
- package/dist/api/shipment.d.ts +11 -0
- package/dist/api/warehouse.d.ts +3 -1
- package/dist/{app-Z-ylwRmy.js → app-P6XaUzjP.js} +17877 -17113
- package/dist/app.d.ts +96 -9
- package/dist/app.js +3 -3
- package/dist/closing-template-BGYZPBty.js +53 -0
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +9 -2
- package/dist/components/netsuite/SubsidiaryTreeDialog.vue.d.ts +2 -0
- package/dist/{decimal-D1pJ2776.js → decimal-wz5HXhQ8.js} +1 -1
- package/dist/{format-unit-display-9BMm-8A4.js → format-unit-display-DOOJqLop.js} +372 -404
- package/dist/{index-BOl10vcm.js → index-CHTB43Wl.js} +1 -1
- package/dist/{index-rEIM0AVC.js → index-oR0svfBM.js} +1 -1
- package/dist/purchase-order-template-BGunGekw.js +41 -0
- package/dist/{stock-B8ewk80v.js → stock-TJayQnag.js} +1 -1
- package/dist/stores/feature.d.ts +10 -0
- package/dist/stores/integration/netsuite.d.ts +19 -0
- package/dist/stores/inventory.d.ts +1 -0
- package/dist/stores/location.d.ts +57 -1
- package/dist/stores/supplier.d.ts +96 -0
- package/dist/stores/warehouse.d.ts +4 -0
- package/dist/{supplier-DLSXYY1o.js → supplier-C_vqpE92.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CTjwdY3T.js → use-ingredient-select-dialog-CIahwuTX.js} +5 -5
- package/dist/{use-inventory-binding-dialog-zXJB7MQY.js → use-inventory-binding-dialog-BiKRXVhY.js} +8 -8
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +24 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +6 -0
- package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
- package/dist/views/receive-request/components/delivery-order-form/CreateForm.vue.d.ts +16 -0
- package/dist/views/receive-request/components/delivery-order-form/CreateFormProps.d.ts +4 -0
- package/dist/views/receive-request/components/delivery-order-form/EditForm.vue.d.ts +16 -0
- package/dist/views/receive-request/components/delivery-order-form/EditFormProps.d.ts +4 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +60 -0
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +10 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +94 -0
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +72 -1
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +8 -0
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
- package/dist/views/supplier/composables/use-supplier-table.d.ts +4 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +16 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -0
- package/package.json +3 -3
- package/dist/ClosingTemplateView-eRvwxXBq.js +0 -1908
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lDkElrkF.js +0 -227
- package/dist/IngredientsView-BvqWuIVT.js +0 -1876
- package/dist/StockView-CRDu_GQ_.js +0 -2086
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DbmLtbZt.js +0 -2494
- package/dist/WarehouseView-CBso3SXT.js +0 -1034
|
@@ -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 $, createVNode as y, withCtx as A, createCommentVNode as j, ref as q, createBlock as W, normalizeClass as J, normalizeStyle as _t, createTextVNode as $e, nextTick as It, mergeProps as Ze, isRef as xe, createSlots as $t, Teleport as Tt, normalizeProps as Dt, guardReactiveProps as Pt } from "vue";
|
|
2
|
+
import { b as Ue, Y as Ge, c as Je, o as Me, k as Ce, ad as Ye, Z as Vt, aC as Rt, A as qe, M as At, p as ht, ak as We, P as fe, at as Et, aD as Ot, aE as Mt, a8 as qt, aF as Ut, T as kt, u as et, a as tt, aG as Nt, aH as Bt, ac as zt, a4 as Lt, aI as Ht, O as xt, s as jt, e as Oe, aJ as Yt, E as Qt, G as Kt, H as Xt, aK as je, ae as ft, K as Zt, N as Gt, J as Jt, _ as Wt, L as es, a0 as vt } from "./app-P6XaUzjP.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-B_ravTwn.js";
|
|
4
|
+
import { _ as Ct, u as ns, i as ls, e as rs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-Blq1oE5l.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-DOOJqLop.js";
|
|
8
|
+
import { _ as cs, F as ms, a as ps, b as fs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-vpiiv6C1.js";
|
|
9
|
+
import { c as Ie, u as vs, _ as ys } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C1i9CHE1.js";
|
|
10
10
|
import { useI18n as _e } from "@feedmepos/mf-common";
|
|
11
|
-
import "./FmMultiselectDialog-
|
|
12
|
-
import { u as at } from "./supplier-
|
|
11
|
+
import "./FmMultiselectDialog-u2dbuZUp.js";
|
|
12
|
+
import { u as at } from "./supplier-C_vqpE92.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 } = Ie(
|
|
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 } = Ie(
|
|
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 } = Ie(
|
|
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 } = Ie(
|
|
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
|
+
...Vt(+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 } = Ie(
|
|
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 I;
|
|
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(((I = F.measurement) == null ? void 0 : I.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" }, Is = { class: "flex-1 flex gap-1 items-center" }, $s = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ts = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ds = { class: "flex gap-8 w-full" }, Ps = { class: "flex-1 flex flex-col gap-4" }, Vs = { class: "flex-1 flex flex-col gap-4" }, Rs = { class: "flex gap-8 w-full" }, As = { class: "flex-1 flex flex-col gap-4" }, Es = {
|
|
446
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, I, v, e, u, k, a, i, h, _, C, l, c, D, B, Y, Q, K, O, U, V, d, b, R, X, Z;
|
|
460
|
+
const x = $("FmLabel"), t = $("FmSpacer");
|
|
461
461
|
return S(), T("div", ws, [
|
|
462
462
|
n("div", Fs, [
|
|
463
|
-
n("div",
|
|
464
|
-
n("span",
|
|
463
|
+
n("div", Is, [
|
|
464
|
+
n("span", $s, " (" + 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: (I = (F = (f = r.cellByColId.Delete) == null ? void 0 : f.column) == null ? void 0 : F.columnDef) == null ? void 0 : I.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", Ps, [
|
|
476
476
|
y(x, {
|
|
477
477
|
label: s(w)(`inventory.transfer.form.items.table.${s(ee).Code}`)
|
|
478
478
|
}, null, 8, ["label"]),
|
|
@@ -482,7 +482,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
482
482
|
}, null, 8, ["render", "props"]),
|
|
483
483
|
p[0] || (p[0] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
484
484
|
]),
|
|
485
|
-
n("div",
|
|
485
|
+
n("div", Vs, [
|
|
486
486
|
y(x, {
|
|
487
487
|
label: s(w)(`inventory.transfer.form.items.table.${s(ee).Name}`)
|
|
488
488
|
}, null, 8, ["label"]),
|
|
@@ -514,7 +514,7 @@ const hs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
514
514
|
_: 1
|
|
515
515
|
}),
|
|
516
516
|
y(s(fe), {
|
|
517
|
-
render: (d = (
|
|
517
|
+
render: (d = (V = (U = r.cellByColId[s(ee).Cost]) == null ? void 0 : U.column) == null ? void 0 : V.columnDef) == null ? void 0 : d.cell,
|
|
518
518
|
props: (R = (b = r.cellByColId[s(ee).Cost]) == null ? void 0 : b.getContext) == null ? void 0 : R.call(b)
|
|
519
519
|
}, null, 8, ["render", "props"]),
|
|
520
520
|
p[3] || (p[3] = n("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
@@ -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: I } = _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: I("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 = $("FmButton"), _ = $("FmIcon"), C = $("FmStepperField"), l = $("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(I)("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(I)("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(I)("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(I)("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(I)("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(I)("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, I, 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: (I = w(f)) == null ? void 0 : I.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 I = 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 = $("FmLabel"), a = $("FmIcon"), i = $("FmField"), h = $("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
|
+
$e("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((_ = I.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]" }, Io = { class: "flex flex-col gap-16" }, $o = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, To = { class: "flex gap-8" }, Do = { key: 0 }, Po = /* @__PURE__ */ ce({
|
|
1014
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(), I = 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,7 +1049,8 @@ 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
|
|
1052
|
+
address: G.doc.profile.address,
|
|
1053
|
+
preparationTime: G.preparationTime
|
|
1053
1054
|
};
|
|
1054
1055
|
t.supplier = re;
|
|
1055
1056
|
}
|
|
@@ -1069,7 +1070,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1069
1070
|
}), Qe(() => {
|
|
1070
1071
|
var o;
|
|
1071
1072
|
try {
|
|
1072
|
-
const m =
|
|
1073
|
+
const m = I.skuById;
|
|
1073
1074
|
let E = t.items.map((H) => ({ ...H, id: H.id ?? H.sku._id }));
|
|
1074
1075
|
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);
|
|
1075
1076
|
} finally {
|
|
@@ -1108,7 +1109,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1108
1109
|
return (o = p.modelValue) == null ? void 0 : o.template;
|
|
1109
1110
|
},
|
|
1110
1111
|
(o) => {
|
|
1111
|
-
u.mustUsePoTemplate && !o &&
|
|
1112
|
+
u.mustUsePoTemplate && !o && It(() => {
|
|
1112
1113
|
var m, E;
|
|
1113
1114
|
t.supplier = ((E = (m = Q.locationOptionsTypeTransfer.value) == null ? void 0 : m.filter(
|
|
1114
1115
|
(H) => H.internal === "restaurant"
|
|
@@ -1131,7 +1132,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1131
1132
|
set(o) {
|
|
1132
1133
|
Q.transferLocationModel.value = o;
|
|
1133
1134
|
}
|
|
1134
|
-
}),
|
|
1135
|
+
}), V = N({
|
|
1135
1136
|
get() {
|
|
1136
1137
|
return t.remark ?? void 0;
|
|
1137
1138
|
},
|
|
@@ -1194,7 +1195,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1194
1195
|
}), Be = N(() => Ne.columnDefs.value);
|
|
1195
1196
|
function ze() {
|
|
1196
1197
|
var G, re, Fe, He, Re;
|
|
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 ?
|
|
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 ? I.skus.filter((z) => o.has(z._id)) : I.skus, H = v.isEnabled ? E.filter((z) => {
|
|
1198
1199
|
var ae, se, ue, pe;
|
|
1199
1200
|
const te = (se = (ae = c.value) == null ? void 0 : ae.purchaseOrder) == null ? void 0 : se.items.find(
|
|
1200
1201
|
(ve) => ve.sku._id === z._id
|
|
@@ -1258,7 +1259,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1258
1259
|
}
|
|
1259
1260
|
};
|
|
1260
1261
|
if (K.value == ne.PURCHASE) {
|
|
1261
|
-
const { cost: ye } =
|
|
1262
|
+
const { cost: ye } = Ie(
|
|
1262
1263
|
pe.sku,
|
|
1263
1264
|
pe.quantity,
|
|
1264
1265
|
pe.measurement,
|
|
@@ -1278,7 +1279,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1278
1279
|
}
|
|
1279
1280
|
const Le = N(() => {
|
|
1280
1281
|
var o;
|
|
1281
|
-
return c.value ? ((o = c.value) == null ? void 0 : o.purchaseOrder.items) || [] :
|
|
1282
|
+
return c.value ? ((o = c.value) == null ? void 0 : o.purchaseOrder.items) || [] : I.skus.map((m) => ({
|
|
1282
1283
|
quantity: {
|
|
1283
1284
|
amount: 0,
|
|
1284
1285
|
precision: 0
|
|
@@ -1292,7 +1293,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1292
1293
|
},
|
|
1293
1294
|
measurement: m.trackingMeasurement ? m.unit.measurements.find((E) => E.id === m.trackingMeasurement) : null
|
|
1294
1295
|
}));
|
|
1295
|
-
}),
|
|
1296
|
+
}), Pe = N(() => {
|
|
1296
1297
|
const o = [];
|
|
1297
1298
|
return (!u.mustUsePoTemplate || u.mustUsePoTemplate && t.template) && o.push({
|
|
1298
1299
|
label: f("inventory.transfer.form.type.purchase"),
|
|
@@ -1301,13 +1302,13 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1301
1302
|
label: f("inventory.transfer.form.type.transfer"),
|
|
1302
1303
|
value: ne.TRANSFER
|
|
1303
1304
|
}), o;
|
|
1304
|
-
}),
|
|
1305
|
+
}), Ve = N(() => {
|
|
1305
1306
|
var o;
|
|
1306
1307
|
return (o = p.modelValue) == null ? void 0 : o.items.every((m) => m.quantity.amount <= 0);
|
|
1307
1308
|
});
|
|
1308
1309
|
return (o, m) => {
|
|
1309
1310
|
var ve, Ae;
|
|
1310
|
-
const E =
|
|
1311
|
+
const E = $("FmChip"), H = $("FmLabel"), le = $("FmIcon"), me = $("FmField"), G = $("FmTooltip"), re = $("FmSelect"), Fe = $("FmTextField"), He = $("FmTextarea"), Re = $("FmSwitch"), z = $("FmDatePicker"), te = $("FmTimePicker"), ae = $("FmFormGroup"), se = $("FmButton"), ue = $("FmTable"), pe = $("FmForm");
|
|
1311
1312
|
return S(), T("div", co, [
|
|
1312
1313
|
n("div", mo, [
|
|
1313
1314
|
(ve = p.modelValue) != null && ve.template ? (S(), W(E, {
|
|
@@ -1354,7 +1355,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1354
1355
|
disabled: o.disabled
|
|
1355
1356
|
}, {
|
|
1356
1357
|
content: A(() => m[15] || (m[15] = [
|
|
1357
|
-
|
|
1358
|
+
$e("This field is locked from template.")
|
|
1358
1359
|
])),
|
|
1359
1360
|
default: A(() => [
|
|
1360
1361
|
y(me, null, {
|
|
@@ -1394,12 +1395,12 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1394
1395
|
disabled: o.disabled
|
|
1395
1396
|
}, {
|
|
1396
1397
|
content: A(() => m[16] || (m[16] = [
|
|
1397
|
-
|
|
1398
|
+
$e("This field is locked from template.")
|
|
1398
1399
|
])),
|
|
1399
1400
|
default: A(() => [
|
|
1400
1401
|
y(me, null, {
|
|
1401
1402
|
default: A(() => {
|
|
1402
|
-
var
|
|
1403
|
+
var P;
|
|
1403
1404
|
return [
|
|
1404
1405
|
n("div", ho, [
|
|
1405
1406
|
y(le, {
|
|
@@ -1409,7 +1410,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1409
1410
|
}, null, 8, ["color"]),
|
|
1410
1411
|
n("div", {
|
|
1411
1412
|
class: J({ "text-fm-color-typo-disabled": o.disabled })
|
|
1412
|
-
}, M((
|
|
1413
|
+
}, M((P = O.value.find((oe) => oe.value === U.value)) == null ? void 0 : P.label), 3)
|
|
1413
1414
|
])
|
|
1414
1415
|
];
|
|
1415
1416
|
}),
|
|
@@ -1425,9 +1426,9 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1425
1426
|
label: s(f)("inventory.transfer.form.type.title"),
|
|
1426
1427
|
"label-mark": "required",
|
|
1427
1428
|
modelValue: K.value,
|
|
1428
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
1429
|
-
items:
|
|
1430
|
-
rules: [s(qe)(1)(
|
|
1429
|
+
"onUpdate:modelValue": m[0] || (m[0] = (P) => K.value = P),
|
|
1430
|
+
items: Pe.value,
|
|
1431
|
+
rules: [s(qe)(1)(Pe.value)]
|
|
1431
1432
|
}, {
|
|
1432
1433
|
default: A(() => [
|
|
1433
1434
|
n("span", {
|
|
@@ -1443,28 +1444,28 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1443
1444
|
label: K.value === s(ne).PURCHASE ? s(f)("inventory.transfer.form.purchaseFrom") : s(f)("inventory.transfer.form.transferFrom"),
|
|
1444
1445
|
"label-mark": "required",
|
|
1445
1446
|
modelValue: U.value,
|
|
1446
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
1447
|
+
"onUpdate:modelValue": m[1] || (m[1] = (P) => U.value = P),
|
|
1447
1448
|
items: O.value,
|
|
1448
1449
|
rules: [s(qe)(1)(O.value)]
|
|
1449
1450
|
}, {
|
|
1450
|
-
"menu-wrapper": A((
|
|
1451
|
+
"menu-wrapper": A((P) => {
|
|
1451
1452
|
var oe, Ee;
|
|
1452
1453
|
return [
|
|
1453
|
-
y(ys, Ze(
|
|
1454
|
+
y(ys, Ze(P, {
|
|
1454
1455
|
items: O.value,
|
|
1455
1456
|
"model-value": (Ee = (oe = o.modelValue) == null ? void 0 : oe.supplier) == null ? void 0 : Ee._id
|
|
1456
1457
|
}), null, 16, ["items", "model-value"])
|
|
1457
1458
|
];
|
|
1458
1459
|
}),
|
|
1459
1460
|
default: A(() => {
|
|
1460
|
-
var
|
|
1461
|
+
var P;
|
|
1461
1462
|
return [
|
|
1462
1463
|
n("span", {
|
|
1463
1464
|
class: J([
|
|
1464
1465
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
1465
1466
|
o.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
1466
1467
|
])
|
|
1467
|
-
}, M((
|
|
1468
|
+
}, M((P = O.value.find((oe) => oe.value === U.value)) == null ? void 0 : P.label), 3)
|
|
1468
1469
|
];
|
|
1469
1470
|
}),
|
|
1470
1471
|
_: 1
|
|
@@ -1474,14 +1475,14 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1474
1475
|
label: s(f)("inventory.transfer.form.reference"),
|
|
1475
1476
|
"label-mark": "optional",
|
|
1476
1477
|
modelValue: s(t).ref,
|
|
1477
|
-
"onUpdate:modelValue": m[2] || (m[2] = (
|
|
1478
|
+
"onUpdate:modelValue": m[2] || (m[2] = (P) => s(t).ref = P)
|
|
1478
1479
|
}, null, 8, ["label", "modelValue"]),
|
|
1479
1480
|
y(He, {
|
|
1480
1481
|
label: s(f)("inventory.transfer.form.remark"),
|
|
1481
1482
|
"label-mark": "optional",
|
|
1482
1483
|
"max-length": 240,
|
|
1483
|
-
modelValue:
|
|
1484
|
-
"onUpdate:modelValue": m[3] || (m[3] = (
|
|
1484
|
+
modelValue: V.value,
|
|
1485
|
+
"onUpdate:modelValue": m[3] || (m[3] = (P) => V.value = P),
|
|
1485
1486
|
class: J([o.disabled ? "text-fm-color-typo-disabled " : ""])
|
|
1486
1487
|
}, null, 8, ["label", "modelValue", "class"]),
|
|
1487
1488
|
_.value ? (S(), W(uo, {
|
|
@@ -1491,10 +1492,10 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1491
1492
|
supplier: s(t).supplier,
|
|
1492
1493
|
setting: s(t).netSuite,
|
|
1493
1494
|
items: s(t).items,
|
|
1494
|
-
onChange: (
|
|
1495
|
-
s(t).items =
|
|
1495
|
+
onChange: (P, oe) => {
|
|
1496
|
+
s(t).items = P, s(t).netSuite = oe;
|
|
1496
1497
|
},
|
|
1497
|
-
"onNetsuite:ready": m[4] || (m[4] = (
|
|
1498
|
+
"onNetsuite:ready": m[4] || (m[4] = (P) => {
|
|
1498
1499
|
h.value = !0;
|
|
1499
1500
|
})
|
|
1500
1501
|
}, null, 8, ["required", "disabled", "supplier", "setting", "items", "onChange"])) : j("", !0),
|
|
@@ -1509,7 +1510,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1509
1510
|
}, [
|
|
1510
1511
|
y(Re, {
|
|
1511
1512
|
modelValue: s(b),
|
|
1512
|
-
"onUpdate:modelValue": m[5] || (m[5] = (
|
|
1513
|
+
"onUpdate:modelValue": m[5] || (m[5] = (P) => xe(b) ? b.value = P : null),
|
|
1513
1514
|
label: s(f)("inventory.transfer.form.backdate.title"),
|
|
1514
1515
|
sublabel: s(f)("inventory.transfer.form.backdate.subtitle"),
|
|
1515
1516
|
"label-placement": "right",
|
|
@@ -1522,13 +1523,13 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1522
1523
|
n("div", Co, [
|
|
1523
1524
|
y(z, {
|
|
1524
1525
|
modelValue: s(R),
|
|
1525
|
-
"onUpdate:modelValue": m[6] || (m[6] = (
|
|
1526
|
+
"onUpdate:modelValue": m[6] || (m[6] = (P) => xe(R) ? R.value = P : null)
|
|
1526
1527
|
}, null, 8, ["modelValue"])
|
|
1527
1528
|
]),
|
|
1528
1529
|
n("div", So, [
|
|
1529
1530
|
y(te, {
|
|
1530
1531
|
modelValue: s(X),
|
|
1531
|
-
"onUpdate:modelValue": m[7] || (m[7] = (
|
|
1532
|
+
"onUpdate:modelValue": m[7] || (m[7] = (P) => xe(X) ? X.value = P : null)
|
|
1532
1533
|
}, null, 8, ["modelValue"])
|
|
1533
1534
|
])
|
|
1534
1535
|
])) : j("", !0)
|
|
@@ -1536,7 +1537,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1536
1537
|
s(d) ? (S(), W(ae, {
|
|
1537
1538
|
key: 0,
|
|
1538
1539
|
modelValue: s(d),
|
|
1539
|
-
"onUpdate:modelValue": m[8] || (m[8] = (
|
|
1540
|
+
"onUpdate:modelValue": m[8] || (m[8] = (P) => xe(d) ? d.value = P : null),
|
|
1540
1541
|
rules: [s(Ht)(new Date(o.lastClosingDate), /* @__PURE__ */ new Date())]
|
|
1541
1542
|
}, null, 8, ["modelValue", "rules"])) : j("", !0),
|
|
1542
1543
|
B.value && !o.lastClosingDate ? (S(), T("div", wo, [
|
|
@@ -1550,7 +1551,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1550
1551
|
])) : j("", !0)
|
|
1551
1552
|
])
|
|
1552
1553
|
]),
|
|
1553
|
-
n("div",
|
|
1554
|
+
n("div", Io, [
|
|
1554
1555
|
y(ae, {
|
|
1555
1556
|
"model-value": s(t).items,
|
|
1556
1557
|
rules: [s(qe)(1)]
|
|
@@ -1564,7 +1565,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1564
1565
|
}
|
|
1565
1566
|
])
|
|
1566
1567
|
}, [
|
|
1567
|
-
n("div",
|
|
1568
|
+
n("div", $o, M(s(f)("inventory.transfer.form.items.title")), 1),
|
|
1568
1569
|
n("div", To, [
|
|
1569
1570
|
y(se, {
|
|
1570
1571
|
disabled: o.disabled,
|
|
@@ -1574,18 +1575,18 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1574
1575
|
"text-color": "primary",
|
|
1575
1576
|
"bg-color": "transparent",
|
|
1576
1577
|
"border-color": "primary",
|
|
1577
|
-
onClick: m[9] || (m[9] = (
|
|
1578
|
+
onClick: m[9] || (m[9] = (P) => ze()),
|
|
1578
1579
|
size: "md"
|
|
1579
1580
|
}, null, 8, ["disabled", "label"]),
|
|
1580
1581
|
y(Ws, {
|
|
1581
1582
|
"template-id": s(t).template || void 0,
|
|
1582
1583
|
"template-items": Le.value,
|
|
1583
1584
|
"po-items": s(t).items,
|
|
1584
|
-
"onUpdate:forecastAmounts": m[10] || (m[10] = (
|
|
1585
|
-
l.value =
|
|
1585
|
+
"onUpdate:forecastAmounts": m[10] || (m[10] = (P) => {
|
|
1586
|
+
l.value = P;
|
|
1586
1587
|
}),
|
|
1587
|
-
"onUpdate:poItems": m[11] || (m[11] = (
|
|
1588
|
-
s(t).items =
|
|
1588
|
+
"onUpdate:poItems": m[11] || (m[11] = (P) => {
|
|
1589
|
+
s(t).items = P, C.value++;
|
|
1589
1590
|
})
|
|
1590
1591
|
}, null, 8, ["template-id", "template-items", "po-items"])
|
|
1591
1592
|
])
|
|
@@ -1596,13 +1597,13 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1596
1597
|
"prepend-icon": "compare_arrows",
|
|
1597
1598
|
"label-placement": "right",
|
|
1598
1599
|
"model-value": s(Z),
|
|
1599
|
-
"onUpdate:modelValue": m[12] || (m[12] = (
|
|
1600
|
+
"onUpdate:modelValue": m[12] || (m[12] = (P) => xe(Z) ? Z.value = P : null),
|
|
1600
1601
|
disabled: s(he) || o.disabled
|
|
1601
1602
|
}, null, 8, ["label", "model-value", "disabled"])
|
|
1602
1603
|
])) : j("", !0),
|
|
1603
1604
|
y(ae, {
|
|
1604
|
-
"model-value":
|
|
1605
|
-
rules: [() =>
|
|
1605
|
+
"model-value": Ve.value,
|
|
1606
|
+
rules: [() => Ve.value ? "Must have at least one non-zero item" : !0]
|
|
1606
1607
|
}, null, 8, ["model-value", "rules"]),
|
|
1607
1608
|
(S(), W(ue, {
|
|
1608
1609
|
"column-defs": Be.value,
|
|
@@ -1616,31 +1617,31 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1616
1617
|
"hide-footer": "",
|
|
1617
1618
|
"page-size": s(t).items.length
|
|
1618
1619
|
}, {
|
|
1619
|
-
"table-row": A((
|
|
1620
|
+
"table-row": A((P) => {
|
|
1620
1621
|
var oe, Ee, mt, pt;
|
|
1621
1622
|
return [
|
|
1622
1623
|
y(ao, {
|
|
1623
1624
|
"compare-price-by-sku": s(ke),
|
|
1624
1625
|
"show-compare-price": K.value === s(ne).PURCHASE && s(Z),
|
|
1625
|
-
row:
|
|
1626
|
+
row: P,
|
|
1626
1627
|
"template-item": (pt = (mt = (Ee = (oe = o.modelValue) == null ? void 0 : oe.templateDoc) == null ? void 0 : Ee.purchaseOrder) == null ? void 0 : mt.items) == null ? void 0 : pt.find(
|
|
1627
|
-
(Ke) => Ke.sku._id ===
|
|
1628
|
+
(Ke) => Ke.sku._id === P.original.sku._id
|
|
1628
1629
|
),
|
|
1629
1630
|
"onUpdate:item": m[13] || (m[13] = (Ke) => we.value.updateItem(Ke)),
|
|
1630
1631
|
disabled: o.disabled
|
|
1631
1632
|
}, null, 8, ["compare-price-by-sku", "show-compare-price", "row", "template-item", "disabled"])
|
|
1632
1633
|
];
|
|
1633
1634
|
}),
|
|
1634
|
-
"list-row": A((
|
|
1635
|
+
"list-row": A((P) => [
|
|
1635
1636
|
(S(), W(xt, {
|
|
1636
|
-
row:
|
|
1637
|
+
row: P,
|
|
1637
1638
|
key: s(t).items.map((oe) => oe.sku._id).join(".")
|
|
1638
1639
|
}, {
|
|
1639
1640
|
default: A((oe) => [
|
|
1640
1641
|
y(Os, {
|
|
1641
1642
|
"compare-price-by-sku": s(ke),
|
|
1642
1643
|
"show-compare-price": K.value === s(ne).PURCHASE && s(Z),
|
|
1643
|
-
row:
|
|
1644
|
+
row: P,
|
|
1644
1645
|
"cell-by-col-id": oe
|
|
1645
1646
|
}, null, 8, ["compare-price-by-sku", "show-compare-price", "row", "cell-by-col-id"])
|
|
1646
1647
|
]),
|
|
@@ -1657,7 +1658,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1657
1658
|
]);
|
|
1658
1659
|
};
|
|
1659
1660
|
}
|
|
1660
|
-
}),
|
|
1661
|
+
}), Vo = { class: "flex items-center" }, Ro = { class: "fm-typo-en-title-md-800" }, Ao = { class: "flex gap-4" }, Eo = /* @__PURE__ */ ce({
|
|
1661
1662
|
__name: "TransferDialog",
|
|
1662
1663
|
props: {
|
|
1663
1664
|
mode: {},
|
|
@@ -1668,13 +1669,13 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1668
1669
|
},
|
|
1669
1670
|
emits: ["update:show", "submitted"],
|
|
1670
1671
|
setup(g, { expose: w, emit: r }) {
|
|
1671
|
-
var
|
|
1672
|
-
const p = g, x = r, t = st(), f = wt(), F = Te(),
|
|
1672
|
+
var V;
|
|
1673
|
+
const p = g, x = r, t = st(), f = wt(), F = Te(), I = at(), v = tt(), e = et(), { t: u } = _e(), k = q(!1), a = q(!1), i = q(!1);
|
|
1673
1674
|
async function h(d) {
|
|
1674
1675
|
if (d) {
|
|
1675
1676
|
a.value = !1;
|
|
1676
1677
|
try {
|
|
1677
|
-
await
|
|
1678
|
+
await I.readSuppliers(), a.value = !0;
|
|
1678
1679
|
} catch {
|
|
1679
1680
|
F.open({
|
|
1680
1681
|
title: u("inventory.transfer.form.unableToFetchListOfSuppliers.title"),
|
|
@@ -1719,7 +1720,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1719
1720
|
templateDoc: f.templates.find((b) => b._id === p.templateId)
|
|
1720
1721
|
};
|
|
1721
1722
|
}
|
|
1722
|
-
const C = St(p, "show"), l = q(p.modelValue ?? _()), c = q(((
|
|
1723
|
+
const C = St(p, "show"), l = q(p.modelValue ?? _()), c = q(((V = p.modelValue) == null ? void 0 : V._id) ?? `${Math.random()}`);
|
|
1723
1724
|
ge(
|
|
1724
1725
|
() => p.show,
|
|
1725
1726
|
(d) => {
|
|
@@ -1832,7 +1833,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1832
1833
|
(X = (R = Y.value) == null ? void 0 : R.validateInputs) == null || X.call(R);
|
|
1833
1834
|
}
|
|
1834
1835
|
return (d, b) => {
|
|
1835
|
-
const R =
|
|
1836
|
+
const R = $("FmButton"), X = $("FmSideSheet");
|
|
1836
1837
|
return S(), W(X, {
|
|
1837
1838
|
modelValue: s(C),
|
|
1838
1839
|
"onUpdate:modelValue": b[3] || (b[3] = (Z) => xe(C) ? C.value = Z : null),
|
|
@@ -1841,12 +1842,12 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1841
1842
|
"max-width": 900
|
|
1842
1843
|
}, {
|
|
1843
1844
|
"side-sheet-header": A(() => [
|
|
1844
|
-
n("div",
|
|
1845
|
+
n("div", Vo, [
|
|
1845
1846
|
n("div", Ro, M(B.value), 1)
|
|
1846
1847
|
])
|
|
1847
1848
|
]),
|
|
1848
1849
|
default: A(() => [
|
|
1849
|
-
(S(), W(
|
|
1850
|
+
(S(), W(Po, {
|
|
1850
1851
|
class: "w-full",
|
|
1851
1852
|
ref_key: "formRef",
|
|
1852
1853
|
ref: Y,
|
|
@@ -1855,7 +1856,7 @@ const to = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, so = { key: 0 }
|
|
|
1855
1856
|
modelValue: l.value,
|
|
1856
1857
|
"onUpdate:modelValue": b[1] || (b[1] = (Z) => l.value = Z),
|
|
1857
1858
|
disabled: k.value || D.value,
|
|
1858
|
-
suppliers: s(
|
|
1859
|
+
suppliers: s(I).suppliers,
|
|
1859
1860
|
skus: s(v).skus,
|
|
1860
1861
|
key: c.value,
|
|
1861
1862
|
"last-closing-date": d.lastClosingDate
|
|
@@ -1905,8 +1906,8 @@ function Mo(g) {
|
|
|
1905
1906
|
try {
|
|
1906
1907
|
return w.reduce(
|
|
1907
1908
|
(p, x) => {
|
|
1908
|
-
const t = new Array(), f = g.Sheets[x], F = tt(),
|
|
1909
|
-
for (const { index: u, data: k } of
|
|
1909
|
+
const t = new Array(), f = g.Sheets[x], F = tt(), I = Oo(f), v = [];
|
|
1910
|
+
for (const { index: u, data: k } of I) {
|
|
1910
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`);
|
|
1911
1912
|
const a = F.skus.find((_) => _.code === k.scanned_code);
|
|
1912
1913
|
if (!a) {
|
|
@@ -1971,7 +1972,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
1971
1972
|
};
|
|
1972
1973
|
return (t, f) => {
|
|
1973
1974
|
var v;
|
|
1974
|
-
const F =
|
|
1975
|
+
const F = $("FmIcon"), I = $("FmTooltip");
|
|
1975
1976
|
return S(), T("div", qo, [
|
|
1976
1977
|
n("div", {
|
|
1977
1978
|
onClick: x,
|
|
@@ -1986,7 +1987,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
1986
1987
|
"text-fm-color-system-error-300": t.errors.length
|
|
1987
1988
|
})
|
|
1988
1989
|
}, [
|
|
1989
|
-
|
|
1990
|
+
$e(M(t.name) + " ", 1),
|
|
1990
1991
|
t.type === "create" ? (S(), T("span", Bo, "(" + M(s(r)("inventory.closing.template.import.new")) + ")", 1)) : j("", !0)
|
|
1991
1992
|
], 2),
|
|
1992
1993
|
t.errors.length ? (S(), T("div", zo, [
|
|
@@ -2004,7 +2005,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2004
2005
|
class: "flex gap-4 mt-2 items-center"
|
|
2005
2006
|
}, [
|
|
2006
2007
|
n("div", Ho, [
|
|
2007
|
-
y(
|
|
2008
|
+
y(I, {
|
|
2008
2009
|
content: e.code,
|
|
2009
2010
|
placement: "top",
|
|
2010
2011
|
"z-index": 51
|
|
@@ -2014,7 +2015,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2014
2015
|
]),
|
|
2015
2016
|
_: 2
|
|
2016
2017
|
}, 1032, ["content"]),
|
|
2017
|
-
y(
|
|
2018
|
+
y(I, {
|
|
2018
2019
|
content: e.name,
|
|
2019
2020
|
placement: "top",
|
|
2020
2021
|
"z-index": 51
|
|
@@ -2029,7 +2030,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2029
2030
|
n("span", Qo, M(s(Ge).toFormatString({
|
|
2030
2031
|
value: e.quantity
|
|
2031
2032
|
})), 1),
|
|
2032
|
-
|
|
2033
|
+
$e(" " + M(e.measurement ? e.measurement.abbrev : e.sku.unit.abbrev), 1)
|
|
2033
2034
|
])
|
|
2034
2035
|
]))), 128)) : j("", !0)
|
|
2035
2036
|
])
|
|
@@ -2073,7 +2074,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2073
2074
|
}, la = { class: "fm-typo-en-body-lg-600" }, yt = "Transfer note", ra = /* @__PURE__ */ ce({
|
|
2074
2075
|
__name: "XilnexImportForm",
|
|
2075
2076
|
setup(g, { expose: w }) {
|
|
2076
|
-
const r = q(null), p = Te(), x = q(!1), t = q(!1), f = kt(), F = q(!1),
|
|
2077
|
+
const r = q(null), p = Te(), x = q(!1), t = q(!1), f = kt(), F = q(!1), I = Ue();
|
|
2077
2078
|
q([]);
|
|
2078
2079
|
const v = N({
|
|
2079
2080
|
get() {
|
|
@@ -2098,7 +2099,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2098
2099
|
}
|
|
2099
2100
|
});
|
|
2100
2101
|
Qe(async () => {
|
|
2101
|
-
const l = await
|
|
2102
|
+
const l = await I.getNetSuiteLocations();
|
|
2102
2103
|
console.log(l), F.value = !0;
|
|
2103
2104
|
});
|
|
2104
2105
|
const e = N({
|
|
@@ -2175,8 +2176,8 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2175
2176
|
return ge(r, (l) => {
|
|
2176
2177
|
l && C(l);
|
|
2177
2178
|
}), (l, c) => {
|
|
2178
|
-
const D =
|
|
2179
|
-
return S(), W(
|
|
2179
|
+
const D = $("FmSelect"), B = $("FmDatePicker"), Y = $("FmTimePicker"), Q = $("FmCircularProgress"), K = $("FmLabel"), O = $("FmIcon"), U = $("FmButton"), V = $("FmForm");
|
|
2180
|
+
return S(), W(V, {
|
|
2180
2181
|
ref_key: "formRef",
|
|
2181
2182
|
ref: h
|
|
2182
2183
|
}, {
|
|
@@ -2230,13 +2231,13 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2230
2231
|
label: yt,
|
|
2231
2232
|
onFileUpload: c[3] || (c[3] = (d) => r.value = d),
|
|
2232
2233
|
"button-label": s(_)("inventory.ingredient.import.selectFile")
|
|
2233
|
-
},
|
|
2234
|
+
}, $t({ _: 2 }, [
|
|
2234
2235
|
r.value ? {
|
|
2235
2236
|
name: "default",
|
|
2236
2237
|
fn: A(({ openFileDialog: d }) => [
|
|
2237
2238
|
y(K, null, {
|
|
2238
2239
|
default: A(() => [
|
|
2239
|
-
|
|
2240
|
+
$e(M(yt))
|
|
2240
2241
|
]),
|
|
2241
2242
|
_: 1
|
|
2242
2243
|
}),
|
|
@@ -2323,7 +2324,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2323
2324
|
},
|
|
2324
2325
|
emits: ["update:show", "submitted"],
|
|
2325
2326
|
setup(g, { expose: w, emit: r }) {
|
|
2326
|
-
const p = r, t = St(g, "show"), f = Te(), F = st(),
|
|
2327
|
+
const p = r, t = St(g, "show"), f = Te(), F = st(), I = q(!1), v = q(), e = q();
|
|
2327
2328
|
w({
|
|
2328
2329
|
validateInputs: () => {
|
|
2329
2330
|
var a, i;
|
|
@@ -2377,7 +2378,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2377
2378
|
});
|
|
2378
2379
|
return;
|
|
2379
2380
|
}
|
|
2380
|
-
|
|
2381
|
+
I.value = !0;
|
|
2381
2382
|
try {
|
|
2382
2383
|
await F.importFromXilnex(e.value), p("update:show", !1);
|
|
2383
2384
|
} catch (c) {
|
|
@@ -2387,11 +2388,11 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2387
2388
|
type: "error"
|
|
2388
2389
|
});
|
|
2389
2390
|
} finally {
|
|
2390
|
-
|
|
2391
|
+
I.value = !1;
|
|
2391
2392
|
}
|
|
2392
2393
|
}
|
|
2393
2394
|
return (a, i) => {
|
|
2394
|
-
const h =
|
|
2395
|
+
const h = $("FmSpacer"), _ = $("FmButton"), C = $("FmDialog");
|
|
2395
2396
|
return S(), W(C, {
|
|
2396
2397
|
modelValue: s(t),
|
|
2397
2398
|
"onUpdate:modelValue": i[2] || (i[2] = (l) => xe(t) ? t.value = l : null),
|
|
@@ -2404,7 +2405,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2404
2405
|
"dialog-footer": A(() => [
|
|
2405
2406
|
y(h, { class: "sm:hidden xs:hidden" }),
|
|
2406
2407
|
y(_, {
|
|
2407
|
-
disabled:
|
|
2408
|
+
disabled: I.value,
|
|
2408
2409
|
class: "sm:w-full xs:w-full",
|
|
2409
2410
|
label: "Cancel",
|
|
2410
2411
|
size: "md",
|
|
@@ -2412,8 +2413,8 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2412
2413
|
onClick: i[1] || (i[1] = (l) => p("update:show", !1))
|
|
2413
2414
|
}, null, 8, ["disabled"]),
|
|
2414
2415
|
y(_, {
|
|
2415
|
-
disabled:
|
|
2416
|
-
loading:
|
|
2416
|
+
disabled: I.value,
|
|
2417
|
+
loading: I.value,
|
|
2417
2418
|
class: "sm:w-full xs:w-full",
|
|
2418
2419
|
label: "Upload",
|
|
2419
2420
|
size: "md",
|
|
@@ -2464,7 +2465,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2464
2465
|
return O;
|
|
2465
2466
|
}
|
|
2466
2467
|
}
|
|
2467
|
-
function
|
|
2468
|
+
function I() {
|
|
2468
2469
|
x.setItem(bt, JSON.stringify(v.value));
|
|
2469
2470
|
}
|
|
2470
2471
|
const v = q(F()), e = ts(
|
|
@@ -2472,7 +2473,8 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2472
2473
|
v.value
|
|
2473
2474
|
), { columnDefs: u } = ss(
|
|
2474
2475
|
Xe.RECEIVE_REQUEST,
|
|
2475
|
-
e
|
|
2476
|
+
e,
|
|
2477
|
+
e.shipments
|
|
2476
2478
|
), k = et();
|
|
2477
2479
|
async function a() {
|
|
2478
2480
|
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(
|
|
@@ -2495,7 +2497,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2495
2497
|
"Total cost": b.totalCost ? Ye(b.totalCost) : null
|
|
2496
2498
|
};
|
|
2497
2499
|
})
|
|
2498
|
-
),
|
|
2500
|
+
), V = [
|
|
2499
2501
|
"SKU code",
|
|
2500
2502
|
"SKU name",
|
|
2501
2503
|
"PO #",
|
|
@@ -2506,12 +2508,12 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2506
2508
|
"Ordered quantity",
|
|
2507
2509
|
"Unit"
|
|
2508
2510
|
];
|
|
2509
|
-
t.enableBackdatePo &&
|
|
2511
|
+
t.enableBackdatePo && V.insert("Effective at", 4), t.enableTotalCost && V.push("Total cost"), await rs(
|
|
2510
2512
|
[
|
|
2511
2513
|
{
|
|
2512
2514
|
name: "purchases",
|
|
2513
2515
|
data: U,
|
|
2514
|
-
columns:
|
|
2516
|
+
columns: V
|
|
2515
2517
|
}
|
|
2516
2518
|
],
|
|
2517
2519
|
O
|
|
@@ -2526,9 +2528,9 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2526
2528
|
!O.startDate || !O.endDate || (v.value.startDate = O.startDate, v.value.endDate = O.endDate, e.updateDateRange(
|
|
2527
2529
|
v.value.startDate,
|
|
2528
2530
|
v.value.endDate
|
|
2529
|
-
),
|
|
2531
|
+
), I());
|
|
2530
2532
|
}), ge([() => h.value], () => {
|
|
2531
|
-
|
|
2533
|
+
I();
|
|
2532
2534
|
});
|
|
2533
2535
|
function _(O) {
|
|
2534
2536
|
if (O === "create") {
|
|
@@ -2577,7 +2579,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2577
2579
|
key: "status",
|
|
2578
2580
|
entity: "purchaseOrder",
|
|
2579
2581
|
values: Array.from(
|
|
2580
|
-
new Set(e.purchaseOrders.value.map((
|
|
2582
|
+
new Set(e.purchaseOrders.value.map((V) => V.status))
|
|
2581
2583
|
)
|
|
2582
2584
|
}
|
|
2583
2585
|
], U = [
|
|
@@ -2585,28 +2587,28 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2585
2587
|
type: "string",
|
|
2586
2588
|
key: "netsuiteTransactionNumber",
|
|
2587
2589
|
entity: "purchaseOrder",
|
|
2588
|
-
values: e.purchaseOrders.value.map((
|
|
2590
|
+
values: e.purchaseOrders.value.map((V) => {
|
|
2589
2591
|
var d, b;
|
|
2590
|
-
return (b = (d =
|
|
2591
|
-
}).filter((
|
|
2592
|
+
return (b = (d = V.netSuite) == null ? void 0 : d.additionalInfo) == null ? void 0 : b.transactionnumber;
|
|
2593
|
+
}).filter((V) => V != null)
|
|
2592
2594
|
},
|
|
2593
2595
|
{
|
|
2594
2596
|
type: "string",
|
|
2595
2597
|
key: "netsuiteOrderNo",
|
|
2596
2598
|
entity: "purchaseOrder",
|
|
2597
|
-
values: e.purchaseOrders.value.map((
|
|
2599
|
+
values: e.purchaseOrders.value.map((V) => {
|
|
2598
2600
|
var d;
|
|
2599
|
-
return (d =
|
|
2600
|
-
}).filter((
|
|
2601
|
+
return (d = V.netSuite) == null ? void 0 : d.refNo;
|
|
2602
|
+
}).filter((V) => V != null)
|
|
2601
2603
|
},
|
|
2602
2604
|
{
|
|
2603
2605
|
type: "string",
|
|
2604
2606
|
key: "netsuiteOrderId",
|
|
2605
2607
|
entity: "purchaseOrder",
|
|
2606
|
-
values: e.purchaseOrders.value.map((
|
|
2608
|
+
values: e.purchaseOrders.value.map((V) => {
|
|
2607
2609
|
var d;
|
|
2608
|
-
return (d =
|
|
2609
|
-
}).filter((
|
|
2610
|
+
return (d = V.netSuite) == null ? void 0 : d.id;
|
|
2611
|
+
}).filter((V) => V != null)
|
|
2610
2612
|
}
|
|
2611
2613
|
];
|
|
2612
2614
|
return [...O, ...f.isEnabled ? U : []];
|
|
@@ -2615,10 +2617,10 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2615
2617
|
return e.purchaseOrders.value;
|
|
2616
2618
|
const O = Gt.build(Q.value);
|
|
2617
2619
|
return e.purchaseOrders.value.filter((U) => {
|
|
2618
|
-
var
|
|
2620
|
+
var V, d, b, R;
|
|
2619
2621
|
return Jt(
|
|
2620
2622
|
{
|
|
2621
|
-
netsuiteTransactionNumber: (d = (
|
|
2623
|
+
netsuiteTransactionNumber: (d = (V = U.netSuite) == null ? void 0 : V.additionalInfo) == null ? void 0 : d.transactionnumber,
|
|
2622
2624
|
netsuiteOrderNo: (b = U.netSuite) == null ? void 0 : b.refNo,
|
|
2623
2625
|
netsuiteOrderId: (R = U.netSuite) == null ? void 0 : R.id,
|
|
2624
2626
|
status: U.status
|
|
@@ -2628,7 +2630,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2628
2630
|
});
|
|
2629
2631
|
});
|
|
2630
2632
|
return (O, U) => {
|
|
2631
|
-
const
|
|
2633
|
+
const V = $("FmTable");
|
|
2632
2634
|
return S(), W(Wt, {
|
|
2633
2635
|
title: s(w)("inventory.transfer.receiveRequest.title2"),
|
|
2634
2636
|
actions: B.value,
|
|
@@ -2659,7 +2661,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2659
2661
|
filter: Q.value,
|
|
2660
2662
|
"onUpdate:filter": U[2] || (U[2] = (R) => Q.value = R)
|
|
2661
2663
|
}, null, 8, ["date-range", "search", "filter-attributes", "filter"]),
|
|
2662
|
-
(S(), W(
|
|
2664
|
+
(S(), W(V, {
|
|
2663
2665
|
style: _t(s(D).tableHeight),
|
|
2664
2666
|
"column-defs": s(u),
|
|
2665
2667
|
"row-data": K.value,
|
|
@@ -2675,7 +2677,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2675
2677
|
onRowClick: s(e).promptShowTransferDetails
|
|
2676
2678
|
}, {
|
|
2677
2679
|
default: A((X) => {
|
|
2678
|
-
var Z, he, ke, ie, we, Ne, Be, ze, De, Le,
|
|
2680
|
+
var Z, he, ke, ie, we, Ne, Be, ze, De, Le, Pe, Ve, o, m, E, H, le, me, G, re;
|
|
2679
2681
|
return [
|
|
2680
2682
|
n("div", da, [
|
|
2681
2683
|
n("div", ca, [
|
|
@@ -2693,7 +2695,7 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2693
2695
|
n("div", pa, M(R.original.items.map((Fe) => `${Fe.name}`).join(", ")), 1),
|
|
2694
2696
|
R.original.ref ? (S(), T("div", fa, [
|
|
2695
2697
|
y(s(fe), {
|
|
2696
|
-
render: (o = (
|
|
2698
|
+
render: (o = (Ve = (Pe = X.ref) == null ? void 0 : Pe.column) == null ? void 0 : Ve.columnDef) == null ? void 0 : o.cell,
|
|
2697
2699
|
props: (E = (m = X.ref) == null ? void 0 : m.getContext) == null ? void 0 : E.call(m)
|
|
2698
2700
|
}, null, 8, ["render", "props"])
|
|
2699
2701
|
])) : j("", !0),
|
|
@@ -2720,11 +2722,12 @@ const qo = { class: "flex flex-col flex-1" }, Uo = { class: "flex flex-col" }, N
|
|
|
2720
2722
|
scope: s(Xe).RECEIVE_REQUEST
|
|
2721
2723
|
}, {
|
|
2722
2724
|
...s(e).transferDetailsProps.value,
|
|
2723
|
-
receivedMap: ((b = s(e).transferDetailsProps.value) == null ? void 0 : b.receivedMap) ?? {}
|
|
2725
|
+
receivedMap: ((b = s(e).transferDetailsProps.value) == null ? void 0 : b.receivedMap) ?? {},
|
|
2726
|
+
shipments: s(e).shipments.value ?? []
|
|
2724
2727
|
}, {
|
|
2725
2728
|
onSubmitted: s(e).fetchData
|
|
2726
2729
|
}), null, 16, ["scope", "onSubmitted"]),
|
|
2727
|
-
y(ua, Dt(
|
|
2730
|
+
y(ua, Dt(Pt(s(e).xilnexImportDialogProps.value)), null, 16)
|
|
2728
2731
|
]))
|
|
2729
2732
|
];
|
|
2730
2733
|
}),
|