@feedmepos/mf-inventory-portal 0.0.25-dev.3 → 0.0.25-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-Du7DrI4b.js → App-DavuRdR4.js} +1 -1
- package/dist/{ApprovalView-CTZVmCbC.js → ApprovalView-DjDzZmVI.js} +2 -2
- package/dist/{BindingsDialog-DPvBW5cM.js → BindingsDialog-Ckbhr9x3.js} +2 -2
- package/dist/{BindingsPicker-DHjUZp_W.js → BindingsPicker-B63gIPVJ.js} +1 -1
- package/dist/{BindingsTable-D29VX7KG.js → BindingsTable-5w7_8JzF.js} +1 -1
- package/dist/{ClosingDraftView-D6_mQmyF.js → ClosingDraftView-BwV3uiYC.js} +2 -2
- package/dist/{ClosingTemplateView-DMConQNm.js → ClosingTemplateView-vaAj0Y-0.js} +1 -1
- package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-DuB-gluw.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-Dy1BXu1R.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ttr6ec9b.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DZ_Q-3lU.js} +3 -3
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DLVeADwI.js → FmUnitInput.vue_vue_type_script_setup_true_lang-M5pWGm8D.js} +1 -1
- package/dist/{IngredientGroupView-BZGkNkrt.js → IngredientGroupView-D_1gJl4X.js} +1 -1
- package/dist/{IngredientsView-V_vDYAho.js → IngredientsView-Xzt0_AP8.js} +3 -3
- package/dist/{IntegrationView-CK_4s6nJ.js → IntegrationView-BcF7Qhvw.js} +1 -1
- package/dist/{InventoryBindingForm-CAWQBqr1.js → InventoryBindingForm-Cm49VDtA.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BDWmhU7C.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-EJ0U2gdF.js} +3 -3
- package/dist/{InventoryBindingSummary-BBppQstd.js → InventoryBindingSummary-D821YZ-3.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-e54jzd1P.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D6jGlkOx.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DKUl-kuR.js → PremiumBadge.vue_vue_type_script_setup_true_lang-TMYgOcbh.js} +1 -1
- package/dist/{PublishView-BzUykEd5.js → PublishView-CYdu5jl4.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-DiDSTpNu.js → PurchaseOrderPrintPreview-DiCTMEY4.js} +1 -1
- package/dist/{ReceiveRequestView-BWgm4e46.js → ReceiveRequestView-DGqs1rpr.js} +197 -197
- package/dist/{RecipeView-DmYWjO2j.js → RecipeView-k5yiAPop.js} +3 -3
- package/dist/{StockView--YVDLsgO.js → StockView-DX0RjayP.js} +7 -7
- package/dist/{SupplierView-DKISIdqs.js → SupplierView-De4_YCtR.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CTy65dTx.js → TransferDetails.vue_vue_type_script_setup_true_lang-DhdMwHAA.js} +46 -46
- package/dist/{TransferTemplateView-KOeBENZz.js → TransferTemplateView-DEwJaqYB.js} +5 -5
- package/dist/{UnitView-CvUayQQ1.js → UnitView-DouWNXFf.js} +3 -3
- package/dist/{WarehouseView-IoiXm1I8.js → WarehouseView-RQN-XBeO.js} +1 -1
- package/dist/{app-CX6n1ion.js → app-Bmmin1VX.js} +663 -645
- package/dist/app.js +1 -1
- package/dist/{decimal-CWOfT2lu.js → decimal-CZhBTty7.js} +1 -1
- package/dist/{format-unit-display-9aWRoLgP.js → format-unit-display-CijRcRSo.js} +2 -2
- package/dist/{index-CCWsIAQX.js → index-DbE8p73U.js} +3 -3
- package/dist/{index-CBXvWfSg.js → index-DhAsCP14.js} +1 -1
- package/dist/{stock-C2QEA4Bf.js → stock-D5lxPBQG.js} +1 -1
- package/dist/stores/integration/netsuite.d.ts +5 -0
- package/dist/{supplier-DNuzB_6-.js → supplier-BU1WhNTR.js} +1 -1
- package/dist/{use-inventory-binding-dialog-D4We0HnY.js → use-inventory-binding-dialog-ZneYylve.js} +1 -1
- package/dist/{vue-i18n-D1f9MmwY.js → vue-i18n-BQNx5sCM.js} +321 -321
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as q, ref as C, onMounted as re, resolveComponent as S, openBlock as x, createElementBlock as $, Fragment as ie, createElementVNode as R, toDisplayString as ce, createVNode as v, createCommentVNode as K, computed as F, watch as ue, createBlock as T, withCtx as P, unref as b, isRef as Z, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
|
|
2
|
-
import { a as A, e as V, f as O, S as ye, h as ge, D as ee, i as Y, j, F as te, m as be, U as _e, A as we, p as ne, q as Re, s as he, r as Ve, u as xe, z as Ee, _ as Ce, B as Se, E as Fe, G as oe } from "./app-
|
|
2
|
+
import { a as A, e as V, f as O, S as ye, h as ge, D as ee, i as Y, j, F as te, m as be, U as _e, A as we, p as ne, q as Re, s as he, r as Ve, u as xe, z as Ee, _ as Ce, B as Se, E as Fe, G as oe } from "./app-Bmmin1VX.js";
|
|
3
3
|
import { useDialog as ke, useSnackbar as se, useProxiedModel as ae, useBreakpoints as De } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Ae, _ as Ie } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
|
-
import { _ as le, a as $e } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as le, a as $e } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-Dy1BXu1R.js";
|
|
6
6
|
import { defineStore as Pe, storeToRefs as Be } from "pinia";
|
|
7
7
|
import { useI18n as H } from "@feedmepos/mf-common";
|
|
8
|
-
import { _ as Te } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as Te } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-EJ0U2gdF.js";
|
|
9
9
|
const Me = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "flex flex-col items-center w-full h-full gap-24"
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as re, ref as H, computed as I, resolveComponent as B, openBlock as $, createBlock as z, withCtx as D, createElementVNode as n, normalizeClass as he, toDisplayString as k, createVNode as g, createElementBlock as O, Fragment as ne, renderList as ae, unref as u, h as ye, watch as ke, isRef as je, createCommentVNode as te, reactive as at, onMounted as qe, normalizeStyle as Je, createTextVNode as pe, Teleport as rt, normalizeProps as Se, mergeProps as we } from "vue";
|
|
2
|
-
import { u as ce, O as lt, f as Ue, h as it, a as Ie, F as Le, P as Ce, j as ie, K as ut, t as ge, N as Me, A as ct, M as dt, L as ve, Q as mt, T as ee, V as pt, W as ze, m as vt, J as ft, X as yt, Y as _t, Z as Qe, $ as q, a0 as ht, r as Xe, a1 as De, a2 as kt, a3 as gt, o as Ne, c as bt, a4 as xt, a5 as St, C as Fe, a6 as wt, a7 as Ft, a8 as $t, z as At, _ as Vt, B as Ct, E as Mt, G as Ye } from "./app-
|
|
3
|
-
import { u as Pe, a as Te } from "./stock-
|
|
4
|
-
import { g as be } 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 ce, O as lt, f as Ue, h as it, a as Ie, F as Le, P as Ce, j as ie, K as ut, t as ge, N as Me, A as ct, M as dt, L as ve, Q as mt, T as ee, V as pt, W as ze, m as vt, J as ft, X as yt, Y as _t, Z as Qe, $ as q, a0 as ht, r as Xe, a1 as De, a2 as kt, a3 as gt, o as Ne, c as bt, a4 as xt, a5 as St, C as Fe, a6 as wt, a7 as Ft, a8 as $t, z as At, _ as Vt, B as Ct, E as Mt, G as Ye } from "./app-Bmmin1VX.js";
|
|
3
|
+
import { u as Pe, a as Te } from "./stock-D5lxPBQG.js";
|
|
4
|
+
import { g as be } from "./decimal-CZhBTty7.js";
|
|
5
|
+
import { e as Dt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-TMYgOcbh.js";
|
|
6
6
|
import { _ as Be, S as $e, g as tt } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
|
|
7
7
|
import { _ as Bt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
8
8
|
import { useI18n as le, useCoreStore as jt } from "@feedmepos/mf-common";
|
|
9
9
|
import { useSnackbar as fe, useDialog as nt, useProxiedModel as Re, useBreakpoints as Ut } from "@feedmepos/ui-library";
|
|
10
10
|
import { defineStore as It } from "pinia";
|
|
11
|
-
import { u as Pt } from "./use-inventory-binding-dialog-
|
|
12
|
-
import { _ as Tt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { u as Pt } from "./use-inventory-binding-dialog-ZneYylve.js";
|
|
12
|
+
import { _ as Tt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D6jGlkOx.js";
|
|
13
13
|
import { E as Rt } from "./empty-placeholder-wf6-BWE8.js";
|
|
14
|
-
import "./index-
|
|
14
|
+
import "./index-DhAsCP14.js";
|
|
15
15
|
import "./array-hChJVZLE.js";
|
|
16
16
|
var _e = /* @__PURE__ */ ((p) => (p.History = "History", p.Convert = "Convert", p.Adjust = "Adjust", p))(_e || {});
|
|
17
17
|
const Ht = [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as Q, mergeModels as Bd, computed as F, useModel as Gd, resolveComponent as T, openBlock as E, createElementBlock as O, createElementVNode as g, createVNode as N, withCtx as k, toDisplayString as A, unref as f, Fragment as q, renderList as ee, ref as L, createBlock as j, createCommentVNode as K, isRef as Qe, 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 Fe, h as Yd, D as ed, i as ie, f as Pe, a as Fd, o as dd, k as Xd, J as Zd, C as he, v as Od, u as pe, m as G, c as wd, e as U, q as Ad, r as zd, s as Rd, w as qd, x as Jd, y as Qd, z as et, _ as dt, B as tt, E as rt, G as le } from "./app-
|
|
2
|
+
import { u as re } from "./supplier-BU1WhNTR.js";
|
|
3
|
+
import { b as Fe, h as Yd, D as ed, i as ie, f as Pe, a as Fd, o as dd, k as Xd, J as Zd, C as he, v as Od, u as pe, m as G, c as wd, e as U, q as Ad, r as zd, s as Rd, w as qd, x as Jd, y as Qd, z as et, _ as dt, B as tt, E as rt, G as le } from "./app-Bmmin1VX.js";
|
|
4
4
|
import { useI18n as X, useCoreStore as Oe } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as we, 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-
|
|
7
|
+
import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-M5pWGm8D.js";
|
|
8
8
|
import { defineStore as it } from "pinia";
|
|
9
9
|
function lt(e, d) {
|
|
10
10
|
const { t } = X(), r = Fe();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as K, computed as Y, h as oe, defineComponent as _e, unref as i, openBlock as g, createElementBlock as D, createElementVNode as e, toDisplayString as S, createCommentVNode as x, resolveComponent as Z, createVNode as U, createBlock as W, isRef as Ge, withCtx as de, Fragment as ne, normalizeClass as ye, createTextVNode as xe, renderList as pe } from "vue";
|
|
2
|
-
import { X as He, u as be, aG as k, a2 as ze, a4 as Ye, a5 as Qe, ai as We, e as Te, f as Ie, ar as B, V as Fe, c as Be, aH as Ze, Z as Se, L as he, j as fe, aI as Me, a9 as ge, h as Pe, D as V, i as F, b as Ue, a3 as Je, ao as Ce, a1 as $e, ae as Ee } from "./app-
|
|
2
|
+
import { X as He, u as be, aG as k, a2 as ze, a4 as Ye, a5 as Qe, ai as We, e as Te, f as Ie, ar as B, V as Fe, c as Be, aH as Ze, Z as Se, L as he, j as fe, aI as Me, a9 as ge, h as Pe, D as V, i as F, b as Ue, a3 as Je, ao as Ce, a1 as $e, ae as Ee } from "./app-Bmmin1VX.js";
|
|
3
3
|
import { useDialog as we, useSnackbar as Re, useProxiedModel as Xe } from "@feedmepos/ui-library";
|
|
4
|
-
import { b as et, u as tt, f as Le, P as ie } from "./format-unit-display-
|
|
5
|
-
import { F as rt } from "./decimal-
|
|
4
|
+
import { b as et, u as tt, f as Le, P as ie } from "./format-unit-display-CijRcRSo.js";
|
|
5
|
+
import { F as rt } from "./decimal-CZhBTty7.js";
|
|
6
6
|
import { useI18n as je } from "@feedmepos/mf-common";
|
|
7
7
|
import { E as st } from "./empty-placeholder-wf6-BWE8.js";
|
|
8
8
|
const Ve = He((v, y) => {
|
|
@@ -265,7 +265,7 @@ function Cr(v, y) {
|
|
|
265
265
|
l.value = !1, J();
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
async function
|
|
268
|
+
async function q(p, d, A) {
|
|
269
269
|
const n = Ke[d];
|
|
270
270
|
if (!n) {
|
|
271
271
|
h.open({
|
|
@@ -295,7 +295,7 @@ function Cr(v, y) {
|
|
|
295
295
|
promptUpdateTransferDialog: ce,
|
|
296
296
|
transferDetailsProps: X,
|
|
297
297
|
promptShowTransferDetails: a,
|
|
298
|
-
submitAction:
|
|
298
|
+
submitAction: q
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
301
|
function at(v, y) {
|
|
@@ -641,7 +641,7 @@ const ot = {
|
|
|
641
641
|
const y = v, b = Ue(), r = Y(
|
|
642
642
|
() => {
|
|
643
643
|
var c, R, l, h, o, s;
|
|
644
|
-
return b.
|
|
644
|
+
return b.getSubsidiaryFullName(
|
|
645
645
|
((l = (R = (c = y.purchaseOrder) == null ? void 0 : c.netSuite) == null ? void 0 : R.subsidiary) == null ? void 0 : l.id) || ((s = (o = (h = y.poRequest) == null ? void 0 : h.netSuite) == null ? void 0 : o.subsidiary) == null ? void 0 : s.id)
|
|
646
646
|
).fullName;
|
|
647
647
|
}
|
|
@@ -757,7 +757,7 @@ const ot = {
|
|
|
757
757
|
}), gt = { class: "flex flex-col gap-16 w-full h-full" }, St = { class: "flex justify-between" }, _t = { class: "fm-typo-en-body-lg-600" }, wt = { class: "flex flex-col gap-8" }, Rt = { class: "flex flex-col gap-4" }, Ot = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Dt = { class: "flex gap-1" }, kt = { class: "fm-typo-en-body-lg-600" }, At = {
|
|
758
758
|
key: 0,
|
|
759
759
|
class: "flex flex-col gap-4"
|
|
760
|
-
},
|
|
760
|
+
}, Nt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qt = { class: "fm-typo-en-body-lg-600" }, xt = { class: "flex flex-col gap-4" }, Tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pt = { class: "fm-typo-en-body-lg-600" }, Ct = {
|
|
761
761
|
key: 1,
|
|
762
762
|
class: "flex flex-col gap-4"
|
|
763
763
|
}, $t = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Et = { class: "fm-typo-en-body-lg-600" }, It = {
|
|
@@ -808,8 +808,8 @@ const ot = {
|
|
|
808
808
|
setup(v, { emit: y }) {
|
|
809
809
|
const b = v, r = y, O = we(), c = Re(), R = Be(), { t: l } = je(), h = Y(
|
|
810
810
|
() => {
|
|
811
|
-
var t, a, P,
|
|
812
|
-
return ((a = (t = b.purchaseOrder) == null ? void 0 : t.supplier) == null ? void 0 : a.internal) === "restaurant" || ((
|
|
811
|
+
var t, a, P, q;
|
|
812
|
+
return ((a = (t = b.purchaseOrder) == null ? void 0 : t.supplier) == null ? void 0 : a.internal) === "restaurant" || ((q = (P = b.purchaseOrder) == null ? void 0 : P.supplier) == null ? void 0 : q.internal) === "warehouse" ? ie.TRANSFER : ie.PURCHASE;
|
|
813
813
|
}
|
|
814
814
|
), o = Y(() => {
|
|
815
815
|
var t, a, P;
|
|
@@ -840,17 +840,17 @@ const ot = {
|
|
|
840
840
|
)
|
|
841
841
|
},
|
|
842
842
|
b.transferToDbName
|
|
843
|
-
), await new Promise((
|
|
843
|
+
), await new Promise((q) => setTimeout(q, 1e3)), c.open({
|
|
844
844
|
title: "Success",
|
|
845
845
|
message: P,
|
|
846
846
|
type: "success"
|
|
847
847
|
}), r("update:show", !1), r("submitted");
|
|
848
|
-
} catch (
|
|
848
|
+
} catch (q) {
|
|
849
849
|
c.open({
|
|
850
850
|
title: "Something went wrong",
|
|
851
851
|
message: "Please try again.",
|
|
852
852
|
type: "error"
|
|
853
|
-
}), console.error("Error when submitting PO operation", a, t,
|
|
853
|
+
}), console.error("Error when submitting PO operation", a, t, q);
|
|
854
854
|
} finally {
|
|
855
855
|
f.value = "", m.value = !1, C.value = !0;
|
|
856
856
|
}
|
|
@@ -865,11 +865,11 @@ const ot = {
|
|
|
865
865
|
});
|
|
866
866
|
return;
|
|
867
867
|
}
|
|
868
|
-
const { successMessage: P, ...
|
|
868
|
+
const { successMessage: P, ...q } = a;
|
|
869
869
|
O.open({
|
|
870
|
-
title:
|
|
871
|
-
message:
|
|
872
|
-
primaryActions:
|
|
870
|
+
title: q.title,
|
|
871
|
+
message: q.message,
|
|
872
|
+
primaryActions: q.primaryActions
|
|
873
873
|
}).onPrimary(() => {
|
|
874
874
|
b.purchaseOrder && ce(b.purchaseOrder, t, P);
|
|
875
875
|
});
|
|
@@ -885,7 +885,7 @@ const ot = {
|
|
|
885
885
|
return _[w.sku._id] = [...$, w], _;
|
|
886
886
|
},
|
|
887
887
|
{}
|
|
888
|
-
),
|
|
888
|
+
), q = Object.entries(P).reduce(
|
|
889
889
|
(_, [w, $]) => {
|
|
890
890
|
const T = $.reduce((L, j) => {
|
|
891
891
|
const Q = Je(
|
|
@@ -899,8 +899,8 @@ const ot = {
|
|
|
899
899
|
{}
|
|
900
900
|
), p = ((A = b.purchaseOrder) == null ? void 0 : A.items) ?? [];
|
|
901
901
|
for (const _ of p)
|
|
902
|
-
|
|
903
|
-
return
|
|
902
|
+
q[n = _.sku._id] ?? (q[n] = he(0));
|
|
903
|
+
return q;
|
|
904
904
|
}), re = Y(() => {
|
|
905
905
|
var d, A;
|
|
906
906
|
const t = ((d = b.purchaseOrder) == null ? void 0 : d.deliveryOrder) ?? [], a = ((A = b.purchaseOrder) == null ? void 0 : A.deliveryFullfillment) ?? [], P = [
|
|
@@ -916,7 +916,7 @@ const ot = {
|
|
|
916
916
|
}))
|
|
917
917
|
];
|
|
918
918
|
P.reverse().sort((n, _) => n.createdAt.localeCompare(_.createdAt));
|
|
919
|
-
function
|
|
919
|
+
function q(n) {
|
|
920
920
|
var w, $, T, L, j, Q, se;
|
|
921
921
|
const _ = a.findIndex((M) => M.id === n.fullfillmentId);
|
|
922
922
|
return {
|
|
@@ -985,7 +985,7 @@ const ot = {
|
|
|
985
985
|
return P.map((n) => {
|
|
986
986
|
switch (n.type) {
|
|
987
987
|
case "grn":
|
|
988
|
-
return
|
|
988
|
+
return q(n.doc);
|
|
989
989
|
case "fulfillment":
|
|
990
990
|
return p(n.doc);
|
|
991
991
|
}
|
|
@@ -996,14 +996,14 @@ const ot = {
|
|
|
996
996
|
...he(0),
|
|
997
997
|
currency: Ce()
|
|
998
998
|
};
|
|
999
|
-
return ((a = b.purchaseOrder) == null ? void 0 : a.items.reduce((P,
|
|
1000
|
-
...Se(P,
|
|
999
|
+
return ((a = b.purchaseOrder) == null ? void 0 : a.items.reduce((P, q) => ({
|
|
1000
|
+
...Se(P, q.totalCost ?? t),
|
|
1001
1001
|
currency: Ce()
|
|
1002
1002
|
}), t)) ?? t;
|
|
1003
1003
|
});
|
|
1004
1004
|
return (t, a) => {
|
|
1005
1005
|
var T, L;
|
|
1006
|
-
const P = Z("FmButtonGroup"),
|
|
1006
|
+
const P = Z("FmButtonGroup"), q = Z("FmChip"), p = Z("FmMenuDivider"), d = Z("FmCard"), A = Z("FmIcon"), n = Z("FmTooltip"), _ = Z("FmSpacer"), w = Z("FmButton"), $ = Z("FmSideSheet");
|
|
1007
1007
|
return g(), W($, {
|
|
1008
1008
|
header: i(l)("inventory.transfer.receiveRequest.details.title") + ((T = t.purchaseOrder) != null && T.seqNumber ? ` #${(L = t.purchaseOrder) == null ? void 0 : L.seqNumber}` : ""),
|
|
1009
1009
|
modelValue: i(te),
|
|
@@ -1025,7 +1025,7 @@ const ot = {
|
|
|
1025
1025
|
U(P, {
|
|
1026
1026
|
items: s,
|
|
1027
1027
|
modelValue: u.value,
|
|
1028
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
1028
|
+
"onUpdate:modelValue": a[0] || (a[0] = (N) => u.value = N)
|
|
1029
1029
|
}, null, 8, ["modelValue"])
|
|
1030
1030
|
]),
|
|
1031
1031
|
u.value.value === "overview" ? (g(), D(ne, { key: 0 }, [
|
|
@@ -1035,13 +1035,13 @@ const ot = {
|
|
|
1035
1035
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
1036
1036
|
}, {
|
|
1037
1037
|
default: de(() => {
|
|
1038
|
-
var
|
|
1038
|
+
var N, E, I, ee, le, H, Oe, De, ke, Ae, Ne, qe;
|
|
1039
1039
|
return [
|
|
1040
1040
|
e("div", St, [
|
|
1041
1041
|
e("div", _t, S(i(l)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
|
|
1042
1042
|
e("div", null, [
|
|
1043
|
-
U(
|
|
1044
|
-
label: i(l)(`inventory.transfer.status.${(
|
|
1043
|
+
U(q, {
|
|
1044
|
+
label: i(l)(`inventory.transfer.status.${(N = t.purchaseOrder) == null ? void 0 : N.status}`),
|
|
1045
1045
|
class: ye(`fm-status-badge fm-status-badge-${(I = (E = t.purchaseOrder) == null ? void 0 : E.status) == null ? void 0 : I.toLocaleLowerCase("en-us")}`),
|
|
1046
1046
|
compact: ""
|
|
1047
1047
|
}, null, 8, ["label", "class"])
|
|
@@ -1056,8 +1056,8 @@ const ot = {
|
|
|
1056
1056
|
e("div", kt, S(i(ge)(((ee = t.purchaseOrder) == null ? void 0 : ee._id) ?? "")), 1)
|
|
1057
1057
|
]),
|
|
1058
1058
|
(le = t.purchaseOrder) != null && le.effectiveAt ? (g(), D("div", At, [
|
|
1059
|
-
e("div",
|
|
1060
|
-
e("div",
|
|
1059
|
+
e("div", Nt, S(i(l)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
|
|
1060
|
+
e("div", qt, S(i(Me)(new Date((H = t.purchaseOrder) == null ? void 0 : H.effectiveAt))), 1)
|
|
1061
1061
|
])) : x("", !0),
|
|
1062
1062
|
e("div", xt, [
|
|
1063
1063
|
e("div", Tt, S(i(l)("inventory.transfer.receiveRequest.details.type.title")), 1),
|
|
@@ -1080,11 +1080,11 @@ const ot = {
|
|
|
1080
1080
|
"transfer-to-db-name": t.transferToDbName,
|
|
1081
1081
|
"is-transfer-between-outlets": o.value
|
|
1082
1082
|
}, null, 8, ["po-request", "purchase-order", "transfer-type", "transfer-to-db-name", "is-transfer-between-outlets"]),
|
|
1083
|
-
(
|
|
1083
|
+
(Ne = t.purchaseOrder) != null && Ne.ref ? (g(), D("div", Mt, [
|
|
1084
1084
|
e("div", Ut, S(i(l)("inventory.transfer.receiveRequest.details.reference")), 1),
|
|
1085
1085
|
e("div", Lt, S(t.purchaseOrder.ref), 1)
|
|
1086
1086
|
])) : x("", !0),
|
|
1087
|
-
(
|
|
1087
|
+
(qe = t.purchaseOrder) != null && qe.remark ? (g(), D("div", jt, [
|
|
1088
1088
|
e("div", Vt, S(i(l)("inventory.transfer.receiveRequest.details.remark")), 1),
|
|
1089
1089
|
e("div", Kt, S(t.purchaseOrder.remark), 1)
|
|
1090
1090
|
])) : x("", !0)
|
|
@@ -1106,10 +1106,10 @@ const ot = {
|
|
|
1106
1106
|
"z-index": 51
|
|
1107
1107
|
}, {
|
|
1108
1108
|
content: de(() => {
|
|
1109
|
-
var
|
|
1109
|
+
var N, E;
|
|
1110
1110
|
return [
|
|
1111
1111
|
e("div", Qt, [
|
|
1112
|
-
(g(!0), D(ne, null, pe((E = (
|
|
1112
|
+
(g(!0), D(ne, null, pe((E = (N = t.purchaseOrder) == null ? void 0 : N.netSuite) == null ? void 0 : E.missingItems, (I, ee) => (g(), D("div", {
|
|
1113
1113
|
class: "flex justify-center align-middle",
|
|
1114
1114
|
key: ee
|
|
1115
1115
|
}, [
|
|
@@ -1133,17 +1133,17 @@ const ot = {
|
|
|
1133
1133
|
})) : x("", !0)
|
|
1134
1134
|
])
|
|
1135
1135
|
]),
|
|
1136
|
-
(g(!0), D(ne, null, pe(((ae = t.purchaseOrder) == null ? void 0 : ae.items) ?? [], (
|
|
1137
|
-
key:
|
|
1136
|
+
(g(!0), D(ne, null, pe(((ae = t.purchaseOrder) == null ? void 0 : ae.items) ?? [], (N) => (g(), D("div", {
|
|
1137
|
+
key: N.code,
|
|
1138
1138
|
class: "flex flex-col"
|
|
1139
1139
|
}, [
|
|
1140
1140
|
e("div", Wt, [
|
|
1141
|
-
e("div", Zt, S(
|
|
1142
|
-
e("div", Jt, S(i(fe)(J.value[
|
|
1141
|
+
e("div", Zt, S(N.name), 1),
|
|
1142
|
+
e("div", Jt, S(i(fe)(J.value[N.sku._id], !1)) + "/" + S(i(Le)(N.quantity, N.sku.unit, N.measurement)), 1)
|
|
1143
1143
|
]),
|
|
1144
1144
|
e("div", Xt, [
|
|
1145
|
-
e("div", er, S(
|
|
1146
|
-
|
|
1145
|
+
e("div", er, S(N.code), 1),
|
|
1146
|
+
N.totalCost && i(R).enableTotalCost ? (g(), D("div", tr, " (" + S(i($e)(N.totalCost)) + ") ", 1)) : x("", !0)
|
|
1147
1147
|
])
|
|
1148
1148
|
]))), 128)),
|
|
1149
1149
|
+i(fe)(X.value) ? (g(), D(ne, { key: 0 }, [
|
|
@@ -1160,7 +1160,7 @@ const ot = {
|
|
|
1160
1160
|
], 64)) : x("", !0),
|
|
1161
1161
|
u.value.value === "deliveryHistory" ? (g(), D("div", nr, [
|
|
1162
1162
|
re.value.length ? (g(), D("div", ur, [
|
|
1163
|
-
(g(!0), D(ne, null, pe(re.value, (
|
|
1163
|
+
(g(!0), D(ne, null, pe(re.value, (N, E) => (g(), D(ne, { key: E }, [
|
|
1164
1164
|
e("div", dr, [
|
|
1165
1165
|
e("div", mr, [
|
|
1166
1166
|
e("div", fr, [
|
|
@@ -1188,8 +1188,8 @@ const ot = {
|
|
|
1188
1188
|
])
|
|
1189
1189
|
]),
|
|
1190
1190
|
e("div", vr, [
|
|
1191
|
-
e("div", yr, S(
|
|
1192
|
-
e("div", hr, S(
|
|
1191
|
+
e("div", yr, S(N.header), 1),
|
|
1192
|
+
e("div", hr, S(N.date), 1)
|
|
1193
1193
|
])
|
|
1194
1194
|
]),
|
|
1195
1195
|
e("div", br, [
|
|
@@ -1213,7 +1213,7 @@ const ot = {
|
|
|
1213
1213
|
}, {
|
|
1214
1214
|
default: de(() => [
|
|
1215
1215
|
e("div", wr, [
|
|
1216
|
-
(g(!0), D(ne, null, pe(
|
|
1216
|
+
(g(!0), D(ne, null, pe(N.info, (I, ee) => (g(), D("div", {
|
|
1217
1217
|
key: ee,
|
|
1218
1218
|
class: "flex flex-col gap-4"
|
|
1219
1219
|
}, [
|
|
@@ -1250,7 +1250,7 @@ const ot = {
|
|
|
1250
1250
|
];
|
|
1251
1251
|
}),
|
|
1252
1252
|
"side-sheet-footer": de(() => {
|
|
1253
|
-
var j, Q, se, M, ae,
|
|
1253
|
+
var j, Q, se, M, ae, N, E, I, ee, le;
|
|
1254
1254
|
return [
|
|
1255
1255
|
e("div", Dr, [
|
|
1256
1256
|
((j = t.purchaseOrder) == null ? void 0 : j.status) === i(B).enum.DRAFT && h.value === i(ie).PURCHASE ? (g(), W(w, {
|
|
@@ -1289,7 +1289,7 @@ const ot = {
|
|
|
1289
1289
|
loading: f.value === "submitRequest",
|
|
1290
1290
|
disabled: f.value !== "submitRequest" && m.value
|
|
1291
1291
|
}, null, 8, ["label", "loading", "disabled"])) : x("", !0),
|
|
1292
|
-
(((ae = t.purchaseOrder) == null ? void 0 : ae.status) === i(B).enum.REQUESTING || ((
|
|
1292
|
+
(((ae = t.purchaseOrder) == null ? void 0 : ae.status) === i(B).enum.REQUESTING || ((N = t.purchaseOrder) == null ? void 0 : N.status) === i(B).enum.PROCESSING) && t.canApprove ? (g(), W(w, {
|
|
1293
1293
|
key: 5,
|
|
1294
1294
|
label: i(l)("inventory.transfer.approval.actions.approveRequest"),
|
|
1295
1295
|
onClick: a[6] || (a[6] = (H) => G("approveRequest")),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as X, onMounted as ce, computed as R, ref as U, watch as pe, inject as Je, resolveComponent as V, openBlock as D, createElementBlock as K, createElementVNode as t, createVNode as c, withCtx as B, renderSlot as Oe, withDirectives as Ve, normalizeClass as Z, vModelText as Ae, reactive as Ze, h as J, toDisplayString as I, unref as e, createBlock as W, mergeProps as Ee, isRef as Ue, createCommentVNode as ee, Fragment as qe, renderList as Xe, normalizeStyle as Ye, Teleport as et, normalizeProps as tt, guardReactiveProps as ot } from "vue";
|
|
2
|
-
import { H as Ne, ay as ue, t as De, I as st, az as lt, aA as nt, j as G, aB as at, b as ze, $ as Re, m as me, a as He, P as ie, L as rt, A as de, M as it, c as je, G as Q, u as Qe, ac as ut, V as mt, E as Ke, J as dt, K as ct, e as te, aC as ae, a9 as pt, a1 as ft, z as yt, i as Pe, _ as vt, B as bt } from "./app-
|
|
2
|
+
import { H as Ne, ay as ue, t as De, I as st, az as lt, aA as nt, j as G, aB as at, b as ze, $ as Re, m as me, a as He, P as ie, L as rt, A as de, M as it, c as je, G as Q, u as Qe, ac as ut, V as mt, E as Ke, J as dt, K as ct, e as te, aC as ae, a9 as pt, a1 as ft, z as yt, i as Pe, _ as vt, B as bt } from "./app-Bmmin1VX.js";
|
|
3
3
|
import { useI18n as Y } from "@feedmepos/mf-common";
|
|
4
|
-
import { P as H, a as xt, f as _t, t as ht, b as Le, u as gt } from "./format-unit-display-
|
|
4
|
+
import { P as H, a as xt, f as _t, t as ht, b as Le, u as gt } from "./format-unit-display-CijRcRSo.js";
|
|
5
5
|
import { components as re, useDialog as Tt, useSnackbar as Ft, useProxiedModel as Ge, useBreakpoints as wt } from "@feedmepos/ui-library";
|
|
6
6
|
import { storeToRefs as Be } from "pinia";
|
|
7
|
-
import { _ as kt, b as Ct, F as St, a as Mt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { c as $t, u as It, _ as Ot } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as Vt } from "./supplier-
|
|
7
|
+
import { _ as kt, b as Ct, F as St, a as Mt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-M5pWGm8D.js";
|
|
8
|
+
import { c as $t, u as It, _ as Ot } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DZ_Q-3lU.js";
|
|
9
|
+
import { u as Vt } from "./supplier-BU1WhNTR.js";
|
|
10
10
|
const At = { class: "flex flex-col" }, Dt = { class: "flex flex-col" }, Rt = { class: "flex-1" }, Pt = { class: "flex items-center" }, Lt = { class: "flex-1" }, Bt = { class: "flex-1" }, Et = /* @__PURE__ */ X({
|
|
11
11
|
__name: "FmMinMaxInput",
|
|
12
12
|
props: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as H, computed as g, openBlock as v, createElementBlock as C, createElementVNode as l, Fragment as j, renderList as q, toDisplayString as V, createCommentVNode as Y, ref as M, resolveComponent as $, createBlock as T, withCtx as A, createVNode as y, unref as o, isRef as ee, normalizeClass as re, normalizeStyle as ie, Teleport as ue, normalizeProps as de, guardReactiveProps as me } from "vue";
|
|
2
|
-
import { a as G, e as w, S as ce, h as pe, D as te, i as L, f as le, m as N, A as fe, j as J, L as ve, N as ye, p as ne, u as be, b as ge, z as xe, _ as _e, B as he, E as Ve, G as Ue } from "./app-
|
|
2
|
+
import { a as G, e as w, S as ce, h as pe, D as te, i as L, f as le, m as N, A as fe, j as J, L as ve, N as ye, p as ne, u as be, b as ge, z as xe, _ as _e, B as he, E as Ve, G as Ue } from "./app-Bmmin1VX.js";
|
|
3
3
|
import { useDialog as we, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Ce } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Se, _ as ke } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { defineStore as Ee, storeToRefs as Fe } from "pinia";
|
|
6
6
|
import { useI18n as K } from "@feedmepos/mf-common";
|
|
7
|
-
import { F as $e } from "./decimal-
|
|
8
|
-
import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { F as $e } from "./decimal-CZhBTty7.js";
|
|
8
|
+
import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D6jGlkOx.js";
|
|
9
9
|
const De = { class: "flex flex-col gap-8" }, Ae = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "flex flex-col"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as W, defineComponent as I, watch as ee, onMounted as ae, onUnmounted as xe, openBlock as S, createElementBlock as q, toRaw as be, reactive as Fe, createElementVNode as g, toDisplayString as U, unref as c, createVNode as V, resolveComponent as L, createSlots as $e, withCtx as N, createTextVNode as We, renderSlot as De, createBlock as z, createCommentVNode as Ae, computed as x, isRef as we, normalizeClass as Se, normalizeStyle as Pe } from "vue";
|
|
2
|
-
import { X as Re, al as Te, am as Ue, h as Ee, D as Ve, i as Z, f as G, an as Le, ad as Ne, m as E, e as T, u as Be, z as qe, _ as ze, B as Ie, E as je, G as J } from "./app-
|
|
2
|
+
import { X as Re, al as Te, am as Ue, h as Ee, D as Ve, i as Z, f as G, an as Le, ad as Ne, m as E, e as T, u as Be, z as qe, _ as ze, B as Ie, E as je, G as J } from "./app-Bmmin1VX.js";
|
|
3
3
|
import { useCoreStore as Ge, useI18n as j } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as Oe, useDialog as Me, useSnackbar as te, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
|
|
5
5
|
import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
|