@feedmepos/mf-inventory-portal 1.0.9-dev.2 → 1.0.9-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-DfxhucPn.js → App-BOKGVcoO.js} +2 -2
- package/dist/{ApprovalView-BUYgTb8S.js → ApprovalView-Bo-4fnEU.js} +2 -2
- package/dist/{BindingsDialog-Cbs9aVch.js → BindingsDialog-DM2b4GN4.js} +2 -2
- package/dist/{BindingsPicker-BH9bil6g.js → BindingsPicker-CJKBXA0c.js} +3 -3
- package/dist/{BindingsTable-DBsS_9yb.js → BindingsTable-BxCEEJfb.js} +1 -1
- package/dist/{ClosingDraftView-CcQssDLY.js → ClosingDraftView-bQxPF18V.js} +2 -2
- package/dist/{ClosingTemplateView-BHPqi-bL.js → ClosingTemplateView-DLkp9Qt8.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-DlTLtZ1f.js → DeliveryOrderPrintPreview-CK3HdYVb.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CtJSPDCo.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DvCBsPdI.js} +3 -3
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-B-erI7fq.js → FmUnitInput.vue_vue_type_script_setup_true_lang-R8f-Q9Nk.js} +20 -20
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DT4nyE8i.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BOyqgaik.js} +1 -1
- package/dist/{IngredientsView-BCEznLxB.js → IngredientsView-DmKCy_JQ.js} +4 -4
- package/dist/{IntegrationView-COSJuqnB.js → IntegrationView-B1dzt8WK.js} +4 -4
- package/dist/{InventoryBindingForm-B3C8gktf.js → InventoryBindingForm-CeTlH0U1.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bn2X1jxB.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DsM2bCNe.js} +92 -87
- package/dist/{InventoryBindingSummary-BF1OtGum.js → InventoryBindingSummary-QVSD87YL.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BMTXHa4I.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C-lgLo2e.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CZR7wF6-.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CEMRfo1C.js} +1 -1
- package/dist/{PublishView-Cp5tpVb0.js → PublishView-BYGKLC9D.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-DWOcxCH8.js → PurchaseOrderPrintPreview-CEVjGeom.js} +1 -1
- package/dist/{ReceiveRequestView-CRuhm8r1.js → ReceiveRequestView-D5PcGCLv.js} +42 -42
- package/dist/RecipeView-DmTDCsvk.js +8493 -0
- package/dist/{StockView-CuK8s5rt.js → StockView-EmTqUcP1.js} +7 -7
- package/dist/{SupplierView-Bwpe9RoM.js → SupplierView-BaLnW761.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DDAZMTzq.js → TransferDetails.vue_vue_type_script_setup_true_lang-B3ew6mc5.js} +36 -36
- package/dist/{TransferTemplateView-BlluEiV-.js → TransferTemplateView-DoeLAFmJ.js} +114 -114
- package/dist/{UnitView-BWGQHOWP.js → UnitView-6Kobe5di.js} +18 -18
- package/dist/{WarehouseView-dOCu22dg.js → WarehouseView-BBMS14jU.js} +1 -1
- package/dist/api/inventory.d.ts +66 -207
- package/dist/{app-BkIAyhP-.js → app-CUTIQqG_.js} +7318 -7360
- package/dist/app.js +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +22 -0
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +22 -0
- package/dist/{decimal-BiC7uGww.js → decimal-Bb7Chjpr.js} +1 -1
- package/dist/{feature-CCDDWpq8.js → feature-D5GLIW5h.js} +84 -89
- package/dist/{format-unit-display-CLa0op_h.js → format-unit-display-CqqBiewI.js} +29 -29
- package/dist/{index-UgbyiGok.js → index-B7QMXzGe.js} +2739 -2823
- package/dist/{index-BbFvsU1Z.js → index-DiEdX1Bs.js} +2 -2
- package/dist/main.d.ts +1 -0
- package/dist/{stock-SxO4bxTm.js → stock-CO0XWh8j.js} +1 -1
- package/dist/stores/feature.d.ts +0 -2
- package/dist/stores/inventory.d.ts +89 -211
- package/dist/{supplier-BVdCk7nI.js → supplier-C877x7mU.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CDeGXhur.js → use-ingredient-select-dialog-ClufUFeU.js} +1 -1
- package/dist/{use-inventory-binding-dialog-CeRKqMy7.js → use-inventory-binding-dialog-BuRe6QNp.js} +1 -1
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +44 -0
- package/dist/views/recipe/components/recipe-override-form-field/RecipeOverrideFormField.vue.d.ts +61 -0
- package/dist/views/recipe/composables/use-recipe-overrides-form-field.d.ts +10 -0
- package/dist/{vue-i18n-3Mh8tKq8.js → vue-i18n-CxuQa0ds.js} +337 -337
- package/package.json +4 -3
- package/dist/IngredientGroupView-DE15kdqH.js +0 -604
- package/dist/RecipeView-BTS1LBKZ.js +0 -616
- package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +0 -3
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +0 -31
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +0 -12
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +0 -20
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +0 -12
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +0 -24
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +0 -218
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineComponent as ie, ref as O, computed as U, resolveComponent as M, openBlock as A, createBlock as Y, withCtx as D, createElementVNode as t, normalizeClass as ge, toDisplayString as h, createVNode as g, createElementBlock as R, Fragment as X, renderList as le, unref as r, h as _e, watch as be, isRef as Ie, createCommentVNode as ne, reactive as at, onMounted as Ge, normalizeStyle as Je, createTextVNode as ce, Teleport as rt, normalizeProps as we, mergeProps as $e } from "vue";
|
|
2
|
-
import { u as pe,
|
|
3
|
-
import { u as Pe, a as He } from "./stock-
|
|
4
|
-
import { g as Se } from "./decimal-
|
|
5
|
-
import { e as Dt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as pe, L as lt, e as Te, f as it, a as Ue, F as Le, N as ut, O as Be, i as de, H as ct, t as xe, K as De, A as dt, M as mt, J as fe, P as pt, Q as te, T as vt, V as Ne, l as ft, W as yt, X as _t, Y as kt, Z as Qe, $ as q, a0 as ht, r as Xe, a1 as ke, a2 as gt, a3 as bt, n as Ae, k as ze, o as xt, a4 as St, a5 as Ft, a6 as wt, a7 as $t, a8 as At, z as Ct, _ as Vt, B as Mt, C as Bt, E as Ye } from "./app-CUTIQqG_.js";
|
|
3
|
+
import { u as Pe, a as He } from "./stock-CO0XWh8j.js";
|
|
4
|
+
import { g as Se } from "./decimal-Bb7Chjpr.js";
|
|
5
|
+
import { e as Dt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-CEMRfo1C.js";
|
|
6
6
|
import { _ as je, S as Ce, g as tt } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
|
|
7
7
|
import { _ as jt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
8
8
|
import { useI18n as ue, useCoreStore as It } from "@feedmepos/mf-common";
|
|
9
9
|
import { useSnackbar as ye, useDialog as nt, useProxiedModel as Ee, useBreakpoints as Tt } from "@feedmepos/ui-library";
|
|
10
10
|
import { defineStore as Ut } from "pinia";
|
|
11
|
-
import { u as Pt } from "./use-inventory-binding-dialog-
|
|
12
|
-
import { _ as Ht } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { u as Pt } from "./use-inventory-binding-dialog-BuRe6QNp.js";
|
|
12
|
+
import { _ as Ht } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C-lgLo2e.js";
|
|
13
13
|
import { E as Et } from "./empty-placeholder-wf6-BWE8.js";
|
|
14
14
|
import "./array-hChJVZLE.js";
|
|
15
|
-
import { u as Rt } from "./feature-
|
|
15
|
+
import { u as Rt } from "./feature-D5GLIW5h.js";
|
|
16
16
|
var he = /* @__PURE__ */ ((f) => (f.History = "History", f.Convert = "Convert", f.Adjust = "Adjust", f))(he || {});
|
|
17
17
|
const Ot = [
|
|
18
18
|
{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as Q, mergeModels as Bd, computed as I, useModel as Gd, resolveComponent as T, openBlock as S, createElementBlock as F, createElementVNode as g, createVNode as N, withCtx as k, toDisplayString as w, unref as u, Fragment as q, renderList as ee, ref as D, createBlock as j, createCommentVNode as K, isRef as Je, normalizeClass as J, createTextVNode as Hd, watch as Id, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
|
|
2
|
-
import { u as re } from "./supplier-
|
|
3
|
-
import { b as Ie, f as Yd, D as Qe, h as ie, e as _e, a as Fd, n as ed, o as dd, j as Xd,
|
|
2
|
+
import { u as re } from "./supplier-C877x7mU.js";
|
|
3
|
+
import { b as Ie, f as Yd, D as Qe, h as ie, e as _e, a as Fd, n as ed, o as dd, j as Xd, W as Zd, v as Od, u as pe, l as G, d as V, q as wd, r as zd, s as Ad, w as qd, x as Jd, y as Qd, z as et, _ as dt, B as tt, C as rt, E as le } from "./app-CUTIQqG_.js";
|
|
4
4
|
import { useI18n as X, useCoreStore as Fe } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as Oe, useSnackbar as me, useProxiedModel as td, useDialogChild as nt, useBreakpoints as ot } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as at } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
7
|
-
import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as Td } from "./feature-
|
|
7
|
+
import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-R8f-Q9Nk.js";
|
|
8
|
+
import { u as Td } from "./feature-D5GLIW5h.js";
|
|
9
9
|
import { defineStore as it } from "pinia";
|
|
10
10
|
function lt(e, d) {
|
|
11
11
|
const { t } = X(), r = Ie();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { X as it, u as ue, aH as N, b as Ue, a2 as ut, a4 as dt, a5 as mt, aI as ft, d as We, e as tt,
|
|
1
|
+
import { X as it, u as ue, aH as N, b as Ue, a2 as ut, a4 as dt, a5 as mt, aI as ft, d as We, e as tt, T as rt, aJ as pt, Z as Fe, J as Oe, i as oe, aK as st, a9 as ke, f as Je, h as K, D as Z, aq as se, a3 as yt, an as Xe, a1 as xe, aL as vt, ae as Pe, ar as ht } from "./app-CUTIQqG_.js";
|
|
2
2
|
import { ref as V, computed as z, h as q, defineComponent as De, onMounted as at, unref as p, openBlock as w, createElementBlock as D, createElementVNode as s, toDisplayString as R, createCommentVNode as L, resolveComponent as H, createVNode as E, reactive as bt, createBlock as le, withCtx as ie, watch as gt, isRef as _t, Fragment as te, normalizeClass as Re, createTextVNode as $e, renderList as pe, resolveDynamicComponent as wt } from "vue";
|
|
3
|
-
import { F as St } from "./decimal-
|
|
4
|
-
import { b as xt, u as Rt, f as nt, P as ve } from "./format-unit-display-
|
|
3
|
+
import { F as St } from "./decimal-Bb7Chjpr.js";
|
|
4
|
+
import { b as xt, u as Rt, f as nt, P as ve } from "./format-unit-display-CqqBiewI.js";
|
|
5
5
|
import { useCoreStore as Le, useI18n as ot } from "@feedmepos/mf-common";
|
|
6
6
|
import { E as Ot } from "./empty-placeholder-wf6-BWE8.js";
|
|
7
7
|
import { useDialog as Ve, useSnackbar as Me, components as Ze, FmButtonVariant as re, useProxiedModel as kt } from "@feedmepos/ui-library";
|
|
8
|
-
import { u as je, F as Ce } from "./feature-
|
|
9
|
-
import { u as Dt } from "./index-
|
|
10
|
-
import { _ as Nt, F as qt, a as At } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { u as je, F as Ce } from "./feature-D5GLIW5h.js";
|
|
9
|
+
import { u as Dt } from "./index-DiEdX1Bs.js";
|
|
10
|
+
import { _ as Nt, F as qt, a as At } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-R8f-Q9Nk.js";
|
|
11
11
|
const Ne = it((t, l) => {
|
|
12
12
|
const n = ue(), h = Le();
|
|
13
13
|
return {
|
|
@@ -226,7 +226,7 @@ function Rs(t, l) {
|
|
|
226
226
|
o.value = !1;
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function J() {
|
|
230
230
|
switch (t) {
|
|
231
231
|
case "receive/request":
|
|
232
232
|
return W();
|
|
@@ -238,14 +238,14 @@ function Rs(t, l) {
|
|
|
238
238
|
r.value = {
|
|
239
239
|
startDate: g,
|
|
240
240
|
endDate: k
|
|
241
|
-
},
|
|
241
|
+
}, J();
|
|
242
242
|
}
|
|
243
243
|
h.watchLocation(async (g) => {
|
|
244
244
|
if (!g) {
|
|
245
245
|
f.value = [];
|
|
246
246
|
return;
|
|
247
247
|
}
|
|
248
|
-
await
|
|
248
|
+
await J();
|
|
249
249
|
});
|
|
250
250
|
const ee = V(), ce = V(Math.random().toString());
|
|
251
251
|
async function qe(g, k) {
|
|
@@ -308,7 +308,7 @@ function Rs(t, l) {
|
|
|
308
308
|
type: "error"
|
|
309
309
|
}), console.error("Error when submitting PO operation", k, g, S);
|
|
310
310
|
} finally {
|
|
311
|
-
o.value = !1,
|
|
311
|
+
o.value = !1, J();
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
async function Ae(g, k, e) {
|
|
@@ -355,7 +355,7 @@ function Rs(t, l) {
|
|
|
355
355
|
purchaseOrders: f,
|
|
356
356
|
purchaseRequests: x,
|
|
357
357
|
updateDateRange: ae,
|
|
358
|
-
fetchData:
|
|
358
|
+
fetchData: J,
|
|
359
359
|
loading: o,
|
|
360
360
|
transferDialogProps: we,
|
|
361
361
|
promptCreateTransferDialog: I,
|
|
@@ -620,7 +620,7 @@ function Os(t, l) {
|
|
|
620
620
|
id: "action",
|
|
621
621
|
cell(m) {
|
|
622
622
|
const f = m.row.original, r = i(f);
|
|
623
|
-
return
|
|
623
|
+
return Je(r, (b) => d(b, f));
|
|
624
624
|
},
|
|
625
625
|
enableSorting: !1,
|
|
626
626
|
size: 40,
|
|
@@ -693,7 +693,7 @@ function Os(t, l) {
|
|
|
693
693
|
...x,
|
|
694
694
|
translationKey: "inventory.transfer.receiveRequest.details.printDeliveryOrder"
|
|
695
695
|
} : x);
|
|
696
|
-
return
|
|
696
|
+
return Je(
|
|
697
697
|
b,
|
|
698
698
|
(x) => f.purchaseOrder ? d(x, f.purchaseOrder, f) : void 0
|
|
699
699
|
);
|
|
@@ -766,7 +766,7 @@ const $t = {
|
|
|
766
766
|
}).join(", ") : "N/A";
|
|
767
767
|
});
|
|
768
768
|
return (o, v) => {
|
|
769
|
-
var m, f, r, b, x, O, A, I, Y, W, de,
|
|
769
|
+
var m, f, r, b, x, O, A, I, Y, W, de, J, ae, ee;
|
|
770
770
|
return p(n).isEnabled ? (w(), D("div", $t, [
|
|
771
771
|
s("div", Ct, [
|
|
772
772
|
v[0] || (v[0] = s("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, "NetSuite subsidiary", -1)),
|
|
@@ -781,7 +781,7 @@ const $t = {
|
|
|
781
781
|
!o.isTransferBetweenOutlets && i.value && ((I = o.purchaseOrder) == null ? void 0 : I.status) === p(se).Enum.REQUESTING || o.scope === p(Ee).APPROVAL ? (w(), D("div", Vt, [
|
|
782
782
|
s("div", Mt, " (Request) NetSuite " + R(o.transferType === p(ve).PURCHASE ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
|
|
783
783
|
s("div", jt, [
|
|
784
|
-
(W = (Y = i.value) == null ? void 0 : Y.netSuite) != null && W.id ? (w(), D("span", Kt, R((
|
|
784
|
+
(W = (Y = i.value) == null ? void 0 : Y.netSuite) != null && W.id ? (w(), D("span", Kt, R((J = (de = i.value) == null ? void 0 : de.netSuite) == null ? void 0 : J.refNo) + " (" + R((ee = (ae = i.value) == null ? void 0 : ae.netSuite) == null ? void 0 : ee.id) + ") ", 1)) : (w(), D("span", zt, "N/A"))
|
|
785
785
|
])
|
|
786
786
|
])) : L("", !0),
|
|
787
787
|
d.value ? (w(), D("div", Gt, [
|
|
@@ -795,7 +795,7 @@ const $t = {
|
|
|
795
795
|
])) : L("", !0);
|
|
796
796
|
};
|
|
797
797
|
}
|
|
798
|
-
}),
|
|
798
|
+
}), Jt = { class: "flex flex-row-reverse" }, Xt = /* @__PURE__ */ De({
|
|
799
799
|
__name: "NetSuiteSync",
|
|
800
800
|
props: {
|
|
801
801
|
poRequest: {},
|
|
@@ -853,7 +853,7 @@ const $t = {
|
|
|
853
853
|
}
|
|
854
854
|
return (y, o) => {
|
|
855
855
|
const v = H("FmButton");
|
|
856
|
-
return w(), D("div",
|
|
856
|
+
return w(), D("div", Jt, [
|
|
857
857
|
E(v, {
|
|
858
858
|
"prepend-icon": "sync",
|
|
859
859
|
variant: "secondary",
|
|
@@ -1123,7 +1123,7 @@ const nr = { class: "flex flex-col gap-16 w-full h-full" }, or = { class: "flex
|
|
|
1123
1123
|
}, Qr = {
|
|
1124
1124
|
key: 0,
|
|
1125
1125
|
class: "flex flex-col items-center gap-8 h-full"
|
|
1126
|
-
}, Yr = ["src"], Wr = { class: "fm-typo-en-body-lg-600" },
|
|
1126
|
+
}, Yr = ["src"], Wr = { class: "fm-typo-en-body-lg-600" }, Jr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary px-16" }, Xr = {
|
|
1127
1127
|
key: 1,
|
|
1128
1128
|
class: "px-4 flex flex-col"
|
|
1129
1129
|
}, Zr = { class: "flex gap-12 content-stretch" }, es = {
|
|
@@ -1168,7 +1168,7 @@ const nr = { class: "flex flex-col gap-16 w-full h-full" }, or = { class: "flex
|
|
|
1168
1168
|
), x = z(() => {
|
|
1169
1169
|
var e, c, _;
|
|
1170
1170
|
return b.value === ve.TRANSFER && ((e = n.transferToDbName) == null ? void 0 : e.startsWith("restaurant")) && ((_ = (c = n.purchaseOrder) == null ? void 0 : c.supplier) == null ? void 0 : _.internal) === "restaurant";
|
|
1171
|
-
}), O = V(!1), A = V(""), I = V(!0), Y = Ne(), W = sr(Y.getWorkflowConfig), de = lt(),
|
|
1171
|
+
}), O = V(!1), A = V(""), I = V(!0), Y = Ne(), W = sr(Y.getWorkflowConfig), de = lt(), J = z(() => {
|
|
1172
1172
|
if (!n.purchaseOrder)
|
|
1173
1173
|
return [];
|
|
1174
1174
|
const e = W.result.value;
|
|
@@ -1325,10 +1325,10 @@ const nr = { class: "flex flex-col gap-16 w-full h-full" }, or = { class: "flex
|
|
|
1325
1325
|
{}
|
|
1326
1326
|
), S = Object.entries(_).reduce(
|
|
1327
1327
|
(T, [U, G]) => {
|
|
1328
|
-
const C = G.reduce((
|
|
1328
|
+
const C = G.reduce((X, F) => {
|
|
1329
1329
|
const ne = yt(
|
|
1330
|
-
|
|
1331
|
-
Math.max(
|
|
1330
|
+
X,
|
|
1331
|
+
Math.max(X.precision, F.amount.precision)
|
|
1332
1332
|
);
|
|
1333
1333
|
return Fe(ne, F.amount);
|
|
1334
1334
|
}, Oe(0));
|
|
@@ -1355,11 +1355,11 @@ const nr = { class: "flex flex-col gap-16 w-full h-full" }, or = { class: "flex
|
|
|
1355
1355
|
];
|
|
1356
1356
|
_.reverse().sort((u, T) => u.createdAt.localeCompare(T.createdAt));
|
|
1357
1357
|
function S(u) {
|
|
1358
|
-
var G, C,
|
|
1358
|
+
var G, C, X, F, ne, be, ge, _e, $;
|
|
1359
1359
|
const T = c.findIndex((P) => P.id === u.fullfillmentId), U = [
|
|
1360
1360
|
(C = (G = c[T]) == null ? void 0 : G.netSuite) != null && C.refNo ? {
|
|
1361
1361
|
label: "Fulfillment's ref no. (Netsuite)",
|
|
1362
|
-
values: [(F = (
|
|
1362
|
+
values: [(F = (X = c[T]) == null ? void 0 : X.netSuite) == null ? void 0 : F.refNo]
|
|
1363
1363
|
} : null,
|
|
1364
1364
|
(ne = u == null ? void 0 : u.netSuite) != null && ne.refNo ? {
|
|
1365
1365
|
label: "Netsuite ref no.",
|
|
@@ -1489,7 +1489,7 @@ const nr = { class: "flex flex-col gap-16 w-full h-full" }, or = { class: "flex
|
|
|
1489
1489
|
{
|
|
1490
1490
|
label: "Receiveable items",
|
|
1491
1491
|
values: u.items.map((C) => {
|
|
1492
|
-
var
|
|
1492
|
+
var X;
|
|
1493
1493
|
return q("div", [
|
|
1494
1494
|
q(
|
|
1495
1495
|
"div",
|
|
@@ -1543,7 +1543,7 @@ const nr = { class: "flex flex-col gap-16 w-full h-full" }, or = { class: "flex
|
|
|
1543
1543
|
{
|
|
1544
1544
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
1545
1545
|
},
|
|
1546
|
-
((
|
|
1546
|
+
((X = C.measurement) == null ? void 0 : X.abbrev) ?? C.sku.unit.abbrev
|
|
1547
1547
|
)
|
|
1548
1548
|
]
|
|
1549
1549
|
),
|
|
@@ -1580,18 +1580,18 @@ const nr = { class: "flex flex-col gap-16 w-full h-full" }, or = { class: "flex
|
|
|
1580
1580
|
var c;
|
|
1581
1581
|
const e = {
|
|
1582
1582
|
...Oe(0),
|
|
1583
|
-
currency:
|
|
1583
|
+
currency: Xe()
|
|
1584
1584
|
};
|
|
1585
1585
|
return ((c = n.purchaseOrder) == null ? void 0 : c.items.reduce((_, S) => ({
|
|
1586
1586
|
...Fe(_, S.totalCost ?? e),
|
|
1587
|
-
currency:
|
|
1587
|
+
currency: Xe()
|
|
1588
1588
|
}), e)) ?? e;
|
|
1589
1589
|
});
|
|
1590
1590
|
return (e, c) => {
|
|
1591
|
-
var C,
|
|
1591
|
+
var C, X;
|
|
1592
1592
|
const _ = H("FmButtonGroup"), S = H("FmChip"), j = H("FmMenuDivider"), B = H("FmCard"), Q = H("FmIcon"), u = H("FmTooltip"), T = H("FmSpacer"), U = H("FmButton"), G = H("FmSideSheet");
|
|
1593
1593
|
return w(), le(G, {
|
|
1594
|
-
header: p(r)("inventory.transfer.receiveRequest.details.title") + ((C = e.purchaseOrder) != null && C.seqNumber ? ` #${(
|
|
1594
|
+
header: p(r)("inventory.transfer.receiveRequest.details.title") + ((C = e.purchaseOrder) != null && C.seqNumber ? ` #${(X = e.purchaseOrder) == null ? void 0 : X.seqNumber}` : ""),
|
|
1595
1595
|
modelValue: p(ae),
|
|
1596
1596
|
"onUpdate:modelValue": c[4] || (c[4] = (F) => _t(ae) ? ae.value = F : null),
|
|
1597
1597
|
"dismiss-away": I.value,
|
|
@@ -1672,7 +1672,7 @@ const nr = { class: "flex flex-col gap-16 w-full h-full" }, or = { class: "flex
|
|
|
1672
1672
|
s("div", Pr, [
|
|
1673
1673
|
c[5] || (c[5] = s("span", { class: "flex-1 fm-typo-en-body-lg-600" }, "NetSuite Info", -1)),
|
|
1674
1674
|
s("div", null, [
|
|
1675
|
-
E(
|
|
1675
|
+
E(Xt, {
|
|
1676
1676
|
"po-request": e.poRequest,
|
|
1677
1677
|
"purchase-order": e.purchaseOrder,
|
|
1678
1678
|
"is-transfer-between-outlets": x.value
|
|
@@ -1757,7 +1757,7 @@ const nr = { class: "flex flex-col gap-16 w-full h-full" }, or = { class: "flex
|
|
|
1757
1757
|
])
|
|
1758
1758
|
])
|
|
1759
1759
|
], 64)) : ce.value.value === "deliveryHistory" ? (w(), D("div", Hr, [
|
|
1760
|
-
g.value.length ? (w(), D("div",
|
|
1760
|
+
g.value.length ? (w(), D("div", Xr, [
|
|
1761
1761
|
(w(!0), D(te, null, pe(g.value, ($, P) => (w(), D(te, { key: P }, [
|
|
1762
1762
|
s("div", Zr, [
|
|
1763
1763
|
s("div", es, [
|
|
@@ -1843,7 +1843,7 @@ const nr = { class: "flex flex-col gap-16 w-full h-full" }, or = { class: "flex
|
|
|
1843
1843
|
}, null, 8, Yr)
|
|
1844
1844
|
]),
|
|
1845
1845
|
s("div", Wr, R(p(r)("inventory.transfer.receiveRequest.details.noRecordsFound")), 1),
|
|
1846
|
-
s("div",
|
|
1846
|
+
s("div", Jr, R(p(r)("inventory.transfer.receiveRequest.details.trackDeliveryMessage")), 1),
|
|
1847
1847
|
E(T),
|
|
1848
1848
|
E(T)
|
|
1849
1849
|
]))
|
|
@@ -1853,7 +1853,7 @@ const nr = { class: "flex flex-col gap-16 w-full h-full" }, or = { class: "flex
|
|
|
1853
1853
|
}),
|
|
1854
1854
|
"side-sheet-footer": ie(() => [
|
|
1855
1855
|
s("div", fs, [
|
|
1856
|
-
(w(!0), D(te, null, pe(
|
|
1856
|
+
(w(!0), D(te, null, pe(J.value, (F) => (w(), le(U, {
|
|
1857
1857
|
key: F,
|
|
1858
1858
|
label: p(r)(p(et)[F].translationKey),
|
|
1859
1859
|
onClick: (ne) => he(F),
|
|
@@ -1861,14 +1861,14 @@ const nr = { class: "flex flex-col gap-16 w-full h-full" }, or = { class: "flex
|
|
|
1861
1861
|
disabled: A.value !== F && O.value,
|
|
1862
1862
|
variant: p(et)[F].buttonVariant
|
|
1863
1863
|
}, null, 8, ["label", "onClick", "loading", "disabled", "variant"]))), 128)),
|
|
1864
|
-
p(f).ableToMarkReceived(e.purchaseOrder) && !
|
|
1864
|
+
p(f).ableToMarkReceived(e.purchaseOrder) && !J.value.includes("completeReceive") ? (w(), le(U, {
|
|
1865
1865
|
key: 0,
|
|
1866
1866
|
label: p(r)("inventory.transfer.receiveRequest.actions.completeReceive"),
|
|
1867
1867
|
onClick: c[1] || (c[1] = (F) => he("completeReceive")),
|
|
1868
1868
|
loading: A.value === "completeReceive",
|
|
1869
1869
|
disabled: A.value !== "completeReceive" && O.value
|
|
1870
1870
|
}, null, 8, ["label", "loading", "disabled"])) : L("", !0),
|
|
1871
|
-
p(f).ableToMarkApproved(e.purchaseOrder) && e.canApprove && !
|
|
1871
|
+
p(f).ableToMarkApproved(e.purchaseOrder) && e.canApprove && !J.value.includes("approveRequest") ? (w(), le(U, {
|
|
1872
1872
|
key: 1,
|
|
1873
1873
|
label: p(r)("inventory.transfer.approval.actions.approveRequest"),
|
|
1874
1874
|
onClick: c[2] || (c[2] = (F) => he("approveRequest")),
|