@feedmepos/mf-inventory-portal 0.0.23-dev.23 → 0.0.23-dev.25
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-BvEB-iR6.js → App-CNgj7enS.js} +49 -45
- package/dist/{ApprovalView-BmPYoGNQ.js → ApprovalView-CaVxfwVZ.js} +15 -15
- package/dist/{BindingsDialog-BqKMRdvl.js → BindingsDialog-jRZXoJFn.js} +9 -9
- package/dist/{BindingsPicker-BaEdafvS.js → BindingsPicker-B1HSa3PR.js} +5 -5
- package/dist/{BindingsTable--d-nM2Gv.js → BindingsTable-OF56C-md.js} +8 -8
- package/dist/ClosingDraftView-B6okKype.js +1134 -0
- package/dist/{ClosingTemplateView-BdUGSMOi.js → ClosingTemplateView-iX4shLcv.js} +251 -255
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CIk6CwoD.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bj2M9OAD.js} +13 -13
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Bt1hyXul.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CnPZaNTp.js} +46 -46
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-wYnVSXtH.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CGpmbbpm.js} +7 -7
- package/dist/{IngredientGroupView-0-nzZJcl.js → IngredientGroupView-BeW-0hWb.js} +40 -40
- package/dist/{IngredientsView-ClRyZ-cb.js → IngredientsView-CuVBlnOu.js} +207 -210
- package/dist/{IntegrationView-CgmsV7oX.js → IntegrationView-lDfeScNo.js} +89 -90
- package/dist/{InventoryBindingForm-DnnGejy0.js → InventoryBindingForm-D6EuWIkE.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CapSS-KQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CUpKKG4l.js} +27 -27
- package/dist/{InventoryBindingSummary-Dz-F2ofe.js → InventoryBindingSummary-CD60iCr_.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-glXw963h.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-7jkFhj27.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DpIyyZL-.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DDXsfGVf.js} +17 -18
- package/dist/{PurchaseOrderPrintPreview--hGI0aFU.js → PurchaseOrderPrintPreview-eJxn76Ir.js} +1 -1
- package/dist/{ReceiveRequestView-cPIOC0rj.js → ReceiveRequestView-D6Cdkd36.js} +26 -27
- package/dist/{RecipeView-BK74973y.js → RecipeView-BWy56DhW.js} +47 -48
- package/dist/{StockView-D6TYfv5x.js → StockView-BEXAvBjP.js} +7 -7
- package/dist/{SupplierView-BFwzHw7l.js → SupplierView-C4vwkzdX.js} +203 -206
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-ChwtBdsS.js → TransferDetails.vue_vue_type_script_setup_true_lang-CIcj9NWg.js} +61 -62
- package/dist/{TransferTemplateView-De5sG12Q.js → TransferTemplateView-27Ng_EgG.js} +144 -145
- package/dist/{UnitView-CQoB6Uq_.js → UnitView-CXvkO_fh.js} +3 -3
- package/dist/{WarehouseView-Di4mLjoS.js → WarehouseView-Cl6HN1EW.js} +52 -52
- package/dist/app-Dt6Yd1pM.js +84133 -0
- package/dist/app.js +1 -1
- package/dist/{decimal-D2WMzK1d.js → decimal-D1M8NkLV.js} +1 -1
- package/dist/{feature-SYqA_m5m.js → feature-CqDcAtUy.js} +1 -1
- package/dist/{format-unit-display-D0G-LaQY.js → format-unit-display-BI9EVHb3.js} +50 -53
- package/dist/{index-Bj8PDCww.js → index-7V6E004u.js} +1 -1
- package/dist/{stock-CEexJdO3.js → stock-wjdjOqbM.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-BdB47EjI.js → supplier-D3-7dgm5.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-n3khDS2D.js → use-inventory-binding-dialog-BLHffZgi.js} +1 -1
- package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
- package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
- package/dist/views/adjustment-template/import/export.d.ts +60 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +178 -8
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1498 -478
- package/package.json +3 -3
- package/dist/ClosingDraftView-Clh7bujC.js +0 -1116
- package/dist/FmDroppableField-DHhcKcJf.js +0 -154
- package/dist/app-DpJictvi.js +0 -58871
- package/dist/netsuite-TWj-9PDj.js +0 -251
- package/dist/xlsx-Cbd5szA2.js +0 -24004
- package/dist/xlsx.util-hCH_XTAD.js +0 -78
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { ref as B, computed as V, h as ee, defineComponent as We, resolveComponent as te, openBlock as y, createBlock as J, unref as n, isRef as Je, withCtx as pe, createElementVNode as r, createElementBlock as D, createVNode as Q, createCommentVNode as
|
|
2
|
-
import {
|
|
3
|
-
import { useDialog as Ke, useSnackbar as Ve, useProxiedModel as
|
|
4
|
-
import { u as Ge } from "./feature-
|
|
5
|
-
import { b as
|
|
6
|
-
import { F as
|
|
1
|
+
import { ref as B, computed as V, h as ee, defineComponent as We, resolveComponent as te, openBlock as y, createBlock as J, unref as n, isRef as Je, withCtx as pe, createElementVNode as r, createElementBlock as D, createVNode as Q, createCommentVNode as q, Fragment as re, toDisplayString as v, normalizeClass as ve, renderList as ye } from "vue";
|
|
2
|
+
import { W as Ze, u as be, aJ as R, a5 as Xe, a7 as et, a8 as tt, ak as rt, d as $e, e as Le, au as F, T as je, aK as st, Y as Oe, K as he, i as le, aL as Be, ac as ge, f as Ie, D as j, h as I, b as at, a6 as nt, aq as Fe, a0 as Me, ag as Ue } from "./app-Dt6Yd1pM.js";
|
|
3
|
+
import { useDialog as Ke, useSnackbar as Ve, useProxiedModel as ot } from "@feedmepos/ui-library";
|
|
4
|
+
import { u as Ge } from "./feature-CqDcAtUy.js";
|
|
5
|
+
import { b as lt, u as it, f as He, P as se } from "./format-unit-display-BI9EVHb3.js";
|
|
6
|
+
import { F as ct } from "./decimal-D1M8NkLV.js";
|
|
7
7
|
import { useI18n as ze } from "@feedmepos/mf-common";
|
|
8
|
-
import { E as
|
|
9
|
-
import { u as ut } from "./netsuite-TWj-9PDj.js";
|
|
8
|
+
import { E as ut } from "./empty-placeholder-wf6-BWE8.js";
|
|
10
9
|
const Ye = Ze((m, _) => {
|
|
11
10
|
const u = be();
|
|
12
11
|
return {
|
|
@@ -18,15 +17,15 @@ const Ye = Ze((m, _) => {
|
|
|
18
17
|
start: s,
|
|
19
18
|
end: w
|
|
20
19
|
}) {
|
|
21
|
-
const S = u.currentLocationDBName,
|
|
22
|
-
return await _.get(`${
|
|
20
|
+
const S = u.currentLocationDBName, N = `${m.inventoryBackendUrl}/${S}/purchase-order`;
|
|
21
|
+
return await _.get(`${N}?start=${s}&end=${w}`);
|
|
23
22
|
},
|
|
24
23
|
async getPurchaseOrderById(s) {
|
|
25
24
|
const w = u.currentLocationDBName, S = `${m.inventoryBackendUrl}/${w}/purchase-order`;
|
|
26
25
|
return await _.get(`${S}/${s}`);
|
|
27
26
|
},
|
|
28
27
|
async processPurchaseOrder(s, w) {
|
|
29
|
-
const S = u.currentLocationDBName,
|
|
28
|
+
const S = u.currentLocationDBName, N = w || S, $ = `${m.inventoryBackendUrl}/${N}/purchase-order/run-operation`;
|
|
30
29
|
return await _.put($, s);
|
|
31
30
|
},
|
|
32
31
|
async createPurchaseOrder(s) {
|
|
@@ -96,8 +95,8 @@ const Ye = Ze((m, _) => {
|
|
|
96
95
|
successMessage: "Purchase order has been rejected"
|
|
97
96
|
}
|
|
98
97
|
}, me = B();
|
|
99
|
-
function
|
|
100
|
-
const u = Ke(), s = be(), w = Ge(), S =
|
|
98
|
+
function Er(m, _) {
|
|
99
|
+
const u = Ke(), s = be(), w = Ge(), S = lt(), N = it(), $ = B(!1), d = Ve(), M = Ye(), i = B(new Array()), p = B(
|
|
101
100
|
_ != null && _.startDate && (_ != null && _.endDate) ? _ : Xe()
|
|
102
101
|
), h = V(() => {
|
|
103
102
|
const f = new Date(p.value.startDate), c = new Date(p.value.endDate);
|
|
@@ -139,7 +138,7 @@ function $r(m, _) {
|
|
|
139
138
|
try {
|
|
140
139
|
i.value = await M.getPurchaseOrders(h.value).then((t) => t.sort((e, a) => a._id.localeCompare(e._id)));
|
|
141
140
|
const f = await O.readLastClosing(!0), c = f == null ? void 0 : f._id;
|
|
142
|
-
c && (G.value = st(c)), w.mustUsePoTemplate && await
|
|
141
|
+
c && (G.value = st(c)), w.mustUsePoTemplate && await N.fetchTemplates();
|
|
143
142
|
} catch {
|
|
144
143
|
d.open({
|
|
145
144
|
title: "Something went wrong",
|
|
@@ -286,10 +285,10 @@ function $r(m, _) {
|
|
|
286
285
|
function dt(m, _) {
|
|
287
286
|
return _.reduce(
|
|
288
287
|
(s, w) => {
|
|
289
|
-
const S = w.received.find((
|
|
288
|
+
const S = w.received.find((N) => N.sku._id === m._id);
|
|
290
289
|
return S && (s = Oe(s, S.amount)), s;
|
|
291
290
|
},
|
|
292
|
-
|
|
291
|
+
ct.toPrecision(he(0), m.unit.precision)
|
|
293
292
|
);
|
|
294
293
|
}
|
|
295
294
|
function mt(m, _) {
|
|
@@ -302,7 +301,7 @@ function mt(m, _) {
|
|
|
302
301
|
city: s == null ? void 0 : s.city,
|
|
303
302
|
state: s == null ? void 0 : s.state,
|
|
304
303
|
country: s == null ? void 0 : s.country
|
|
305
|
-
},
|
|
304
|
+
}, N = {
|
|
306
305
|
name: m.supplier.name,
|
|
307
306
|
registrationNumber: m.supplier.registrationNumber,
|
|
308
307
|
line1: m.supplier.address.line1,
|
|
@@ -342,7 +341,7 @@ function mt(m, _) {
|
|
|
342
341
|
ref: m.ref || "",
|
|
343
342
|
remark: m.remark || "",
|
|
344
343
|
buyer: S,
|
|
345
|
-
supplier:
|
|
344
|
+
supplier: N,
|
|
346
345
|
items: $,
|
|
347
346
|
status: m.status,
|
|
348
347
|
deliveryOrders: d
|
|
@@ -391,7 +390,7 @@ const oe = {
|
|
|
391
390
|
value: R.enum.completeReceive
|
|
392
391
|
}
|
|
393
392
|
};
|
|
394
|
-
function
|
|
393
|
+
function $r(m, _) {
|
|
395
394
|
const u = be(), { t: s } = ze();
|
|
396
395
|
function w(i) {
|
|
397
396
|
switch (i.status) {
|
|
@@ -427,7 +426,7 @@ function Ir(m, _) {
|
|
|
427
426
|
function S(i) {
|
|
428
427
|
return Object.values(R.enum).includes(i);
|
|
429
428
|
}
|
|
430
|
-
async function
|
|
429
|
+
async function N(i, p, h) {
|
|
431
430
|
var O, G;
|
|
432
431
|
const g = Le(p);
|
|
433
432
|
if (i === I.Print) {
|
|
@@ -510,7 +509,7 @@ function Ir(m, _) {
|
|
|
510
509
|
id: "action",
|
|
511
510
|
cell(i) {
|
|
512
511
|
const p = i.row.original, h = w(p);
|
|
513
|
-
return Ie(h, (g) =>
|
|
512
|
+
return Ie(h, (g) => N(g, p));
|
|
514
513
|
},
|
|
515
514
|
enableSorting: !1,
|
|
516
515
|
size: 40,
|
|
@@ -582,7 +581,7 @@ function Ir(m, _) {
|
|
|
582
581
|
const p = i.row.original, h = p.purchaseOrder ? w(p.purchaseOrder) : [];
|
|
583
582
|
return Ie(
|
|
584
583
|
h,
|
|
585
|
-
(g) => p.purchaseOrder ?
|
|
584
|
+
(g) => p.purchaseOrder ? N(g, p.purchaseOrder, p) : void 0
|
|
586
585
|
);
|
|
587
586
|
},
|
|
588
587
|
enableSorting: !1,
|
|
@@ -610,7 +609,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
610
609
|
}, wt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ot = { class: "fm-typo-en-body-lg-600" }, Dt = { class: "flex flex-col gap-4" }, At = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, kt = { class: "fm-typo-en-body-lg-600" }, xt = {
|
|
611
610
|
key: 1,
|
|
612
611
|
class: "flex flex-col gap-4"
|
|
613
|
-
},
|
|
612
|
+
}, qt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Nt = { class: "fm-typo-en-body-lg-600" }, Pt = {
|
|
614
613
|
key: 2,
|
|
615
614
|
class: "flex flex-col gap-4"
|
|
616
615
|
}, Tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ct = { class: "fm-typo-en-body-lg-600" }, Et = {
|
|
@@ -652,7 +651,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
652
651
|
}, Sr = { class: "flex-1 flex flex-col items-center" }, _r = {
|
|
653
652
|
class: "py-12 flex flex-col gap-4 flex-1",
|
|
654
653
|
name: "delivery details"
|
|
655
|
-
}, Rr = { class: "flex flex-col gap-8" }, wr = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Or = { class: "flex flex-col gap-4" }, Dr = { class: "flex gap-8 xs:flex-col" },
|
|
654
|
+
}, Rr = { class: "flex flex-col gap-8" }, wr = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Or = { class: "flex flex-col gap-4" }, Dr = { class: "flex gap-8 xs:flex-col" }, Ir = /* @__PURE__ */ We({
|
|
656
655
|
__name: "TransferDetails",
|
|
657
656
|
props: {
|
|
658
657
|
poRequest: {},
|
|
@@ -665,7 +664,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
665
664
|
},
|
|
666
665
|
emits: ["update:show", "submitted"],
|
|
667
666
|
setup(m, { emit: _ }) {
|
|
668
|
-
const u = m, s = _, w = Ke(), S = Ve(),
|
|
667
|
+
const u = m, s = _, w = Ke(), S = Ve(), N = at(), $ = Ge(), { t: d } = ze(), M = V(
|
|
669
668
|
() => {
|
|
670
669
|
var t, e, a, o;
|
|
671
670
|
return ((e = (t = u.purchaseOrder) == null ? void 0 : t.supplier) == null ? void 0 : e.internal) === "restaurant" || ((o = (a = u.purchaseOrder) == null ? void 0 : a.supplier) == null ? void 0 : o.internal) === "warehouse" ? se.TRANSFER : se.PURCHASE;
|
|
@@ -682,7 +681,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
682
681
|
label: d("inventory.transfer.receiveRequest.details.deliveryHistory"),
|
|
683
682
|
value: "deliveryHistory"
|
|
684
683
|
}
|
|
685
|
-
], h = B(p[0]), g = B(!1), O = B(""), G = B(!0), Se = Ye(), ie =
|
|
684
|
+
], h = B(p[0]), g = B(!1), O = B(""), G = B(!0), Se = Ye(), ie = ot(u, "show");
|
|
686
685
|
async function _e(t, e, a) {
|
|
687
686
|
O.value = e, g.value = !0, G.value = !1;
|
|
688
687
|
try {
|
|
@@ -739,7 +738,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
739
738
|
}), Re = V(
|
|
740
739
|
() => {
|
|
741
740
|
var t, e, a, o, P, k;
|
|
742
|
-
return
|
|
741
|
+
return N.getLocationSubsidiary(
|
|
743
742
|
((a = (e = (t = u.purchaseOrder) == null ? void 0 : t.netSuite) == null ? void 0 : e.subsidiary) == null ? void 0 : a.id) || ((k = (P = (o = u.poRequest) == null ? void 0 : o.netSuite) == null ? void 0 : P.subsidiary) == null ? void 0 : k.id)
|
|
744
743
|
).fullName;
|
|
745
744
|
}
|
|
@@ -760,7 +759,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
760
759
|
), o = Object.entries(a).reduce(
|
|
761
760
|
(x, [L, K]) => {
|
|
762
761
|
const A = K.reduce((b, T) => {
|
|
763
|
-
const C =
|
|
762
|
+
const C = nt(
|
|
764
763
|
b,
|
|
765
764
|
Math.max(b.precision, T.amount.precision)
|
|
766
765
|
);
|
|
@@ -865,7 +864,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
865
864
|
}), ne = B(!1), we = V(() => {
|
|
866
865
|
var o, P, k, U;
|
|
867
866
|
let t = !0;
|
|
868
|
-
|
|
867
|
+
N.isEnabled || (t = !1);
|
|
869
868
|
const e = u.purchaseOrder, a = u.poRequest;
|
|
870
869
|
return e && ((o = e == null ? void 0 : e.supplier) != null && o.internal ? (!a && e.status == F.enum.DRAFT && (t = !1), a && !((P = a == null ? void 0 : a.netSuite) != null && P.id) && (t = !1), i.value && (t = !1)) : ((e == null ? void 0 : e.status) !== F.enum.REQUESTING && e.supplier.internal && (t = !1), !a && !((k = e == null ? void 0 : e.netSuite) != null && k.id) && (t = !1), !a && ((U = e == null ? void 0 : e.netSuite) != null && U.id) && (e == null ? void 0 : e.status) == F.enum.REQUESTING && (t = !1))), t;
|
|
871
870
|
});
|
|
@@ -901,7 +900,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
901
900
|
});
|
|
902
901
|
return;
|
|
903
902
|
}
|
|
904
|
-
await
|
|
903
|
+
await N.syncTransferOrder(o, e == null ? void 0 : e._id, a == null ? void 0 : a._id), S.open({
|
|
905
904
|
title: "Sync with NetSuite",
|
|
906
905
|
message: "Requested to sync with NetSuite. Please wait a moment.",
|
|
907
906
|
type: "success"
|
|
@@ -952,7 +951,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
952
951
|
loading: ne.value,
|
|
953
952
|
onClick: f
|
|
954
953
|
}, null, 8, ["loading"])
|
|
955
|
-
])) :
|
|
954
|
+
])) : q("", !0),
|
|
956
955
|
r("div", null, [
|
|
957
956
|
Q(o, {
|
|
958
957
|
items: p,
|
|
@@ -967,7 +966,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
967
966
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
968
967
|
}, {
|
|
969
968
|
default: pe(() => {
|
|
970
|
-
var b, T, C, H, E, z, ce, ue, de, Y, De, Ae, ke, xe,
|
|
969
|
+
var b, T, C, H, E, z, ce, ue, de, Y, De, Ae, ke, xe, qe, Ne, Pe, Te, Ce, Ee;
|
|
971
970
|
return [
|
|
972
971
|
r("div", vt, [
|
|
973
972
|
r("div", yt, v(n(d)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
|
|
@@ -990,7 +989,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
990
989
|
(E = t.purchaseOrder) != null && E.effectiveAt ? (y(), D("div", Rt, [
|
|
991
990
|
r("div", wt, v(n(d)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
|
|
992
991
|
r("div", Ot, v(n(Be)(new Date((z = t.purchaseOrder) == null ? void 0 : z.effectiveAt))), 1)
|
|
993
|
-
])) :
|
|
992
|
+
])) : q("", !0),
|
|
994
993
|
r("div", Dt, [
|
|
995
994
|
r("div", At, v(n(d)("inventory.transfer.receiveRequest.details.type.title")), 1),
|
|
996
995
|
r("div", kt, v(n(d)(
|
|
@@ -998,33 +997,33 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
998
997
|
)), 1)
|
|
999
998
|
]),
|
|
1000
999
|
(ue = (ce = t.purchaseOrder) == null ? void 0 : ce.supplier) != null && ue.name ? (y(), D("div", xt, [
|
|
1001
|
-
r("div",
|
|
1002
|
-
r("div",
|
|
1003
|
-
])) :
|
|
1000
|
+
r("div", qt, v(n(d)("inventory.transfer.receiveRequest.details.from")), 1),
|
|
1001
|
+
r("div", Nt, v((Y = (de = t.purchaseOrder) == null ? void 0 : de.supplier) == null ? void 0 : Y.name), 1)
|
|
1002
|
+
])) : q("", !0),
|
|
1004
1003
|
t.transferTo ? (y(), D("div", Pt, [
|
|
1005
1004
|
r("div", Tt, v(n(d)("inventory.transfer.receiveRequest.details.to")), 1),
|
|
1006
1005
|
r("div", Ct, v(t.transferTo), 1)
|
|
1007
|
-
])) :
|
|
1008
|
-
n(
|
|
1006
|
+
])) : q("", !0),
|
|
1007
|
+
n(N).isEnabled ? (y(), D("div", Et, [
|
|
1009
1008
|
e[10] || (e[10] = r("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite subsidiary ", -1)),
|
|
1010
1009
|
r("div", $t, v(Re.value || "-"), 1)
|
|
1011
|
-
])) :
|
|
1012
|
-
n(
|
|
1010
|
+
])) : q("", !0),
|
|
1011
|
+
n(N).isEnabled && !i.value ? (y(), D("div", It, [
|
|
1013
1012
|
r("div", Ft, " NetSuite " + v(M.value === n(se).PURCHASE ? "Purchase order" : "Transfer order") + " (ID) ", 1),
|
|
1014
|
-
r("div", Mt, v(t.poRequest ? (Ae = (De = t.poRequest) == null ? void 0 : De.netSuite) == null ? void 0 : Ae.refNo : (xe = (ke = t.purchaseOrder) == null ? void 0 : ke.netSuite) == null ? void 0 : xe.refNo) + " (" + v(t.poRequest ? (
|
|
1015
|
-
])) :
|
|
1016
|
-
n(
|
|
1013
|
+
r("div", Mt, v(t.poRequest ? (Ae = (De = t.poRequest) == null ? void 0 : De.netSuite) == null ? void 0 : Ae.refNo : (xe = (ke = t.purchaseOrder) == null ? void 0 : ke.netSuite) == null ? void 0 : xe.refNo) + " (" + v(t.poRequest ? (Ne = (qe = t.poRequest) == null ? void 0 : qe.netSuite) == null ? void 0 : Ne.id : (Te = (Pe = t.purchaseOrder) == null ? void 0 : Pe.netSuite) == null ? void 0 : Te.id) + ") ", 1)
|
|
1014
|
+
])) : q("", !0),
|
|
1015
|
+
n(N).isEnabled && M.value === n(se).TRANSFER && !i.value ? (y(), D("div", Ut, [
|
|
1017
1016
|
e[11] || (e[11] = r("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite fulfillment IDs ", -1)),
|
|
1018
1017
|
r("div", Lt, v(Z.value), 1)
|
|
1019
|
-
])) :
|
|
1018
|
+
])) : q("", !0),
|
|
1020
1019
|
(Ce = t.purchaseOrder) != null && Ce.ref ? (y(), D("div", jt, [
|
|
1021
1020
|
r("div", Bt, v(n(d)("inventory.transfer.receiveRequest.details.reference")), 1),
|
|
1022
1021
|
r("div", Kt, v(t.purchaseOrder.ref), 1)
|
|
1023
|
-
])) :
|
|
1022
|
+
])) : q("", !0),
|
|
1024
1023
|
(Ee = t.purchaseOrder) != null && Ee.remark ? (y(), D("div", Vt, [
|
|
1025
1024
|
r("div", Gt, v(n(d)("inventory.transfer.receiveRequest.details.remark")), 1),
|
|
1026
1025
|
r("div", Ht, v(t.purchaseOrder.remark), 1)
|
|
1027
|
-
])) :
|
|
1026
|
+
])) : q("", !0)
|
|
1028
1027
|
])
|
|
1029
1028
|
];
|
|
1030
1029
|
}),
|
|
@@ -1044,7 +1043,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
1044
1043
|
]),
|
|
1045
1044
|
r("div", Xt, [
|
|
1046
1045
|
r("div", er, v(b.code), 1),
|
|
1047
|
-
b.totalCost && n($).enableTotalCost ? (y(), D("div", tr, " (" + v(n(Me)(b.totalCost)) + ") ", 1)) :
|
|
1046
|
+
b.totalCost && n($).enableTotalCost ? (y(), D("div", tr, " (" + v(n(Me)(b.totalCost)) + ") ", 1)) : q("", !0)
|
|
1048
1047
|
])
|
|
1049
1048
|
]))), 128)),
|
|
1050
1049
|
+n(le)(c.value) ? (y(), D(re, { key: 0 }, [
|
|
@@ -1055,10 +1054,10 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
1055
1054
|
e[12] || (e[12] = r("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Total:", -1)),
|
|
1056
1055
|
r("div", ar, v(n(Me)(c.value)), 1)
|
|
1057
1056
|
])
|
|
1058
|
-
], 64)) :
|
|
1057
|
+
], 64)) : q("", !0)
|
|
1059
1058
|
])
|
|
1060
1059
|
])
|
|
1061
|
-
], 64)) :
|
|
1060
|
+
], 64)) : q("", !0),
|
|
1062
1061
|
h.value.value === "deliveryHistory" ? (y(), D("div", nr, [
|
|
1063
1062
|
X.value.length ? (y(), D("div", ur, [
|
|
1064
1063
|
(y(!0), D(re, null, ye(X.value, (b, T) => (y(), D(re, { key: T }, [
|
|
@@ -1137,7 +1136,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
1137
1136
|
Q(l),
|
|
1138
1137
|
r("div", null, [
|
|
1139
1138
|
r("img", {
|
|
1140
|
-
src: n(
|
|
1139
|
+
src: n(ut),
|
|
1141
1140
|
alt: "List is empty"
|
|
1142
1141
|
}, null, 8, lr)
|
|
1143
1142
|
]),
|
|
@@ -1146,7 +1145,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
1146
1145
|
Q(l),
|
|
1147
1146
|
Q(l)
|
|
1148
1147
|
]))
|
|
1149
|
-
])) :
|
|
1148
|
+
])) : q("", !0)
|
|
1150
1149
|
])
|
|
1151
1150
|
];
|
|
1152
1151
|
}),
|
|
@@ -1160,14 +1159,14 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
1160
1159
|
onClick: e[1] || (e[1] = (Y) => W("confirmDraft")),
|
|
1161
1160
|
loading: O.value === "confirmDraft",
|
|
1162
1161
|
disabled: O.value !== "confirmDraft" && g.value
|
|
1163
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
1162
|
+
}, null, 8, ["label", "loading", "disabled"])) : q("", !0),
|
|
1164
1163
|
((b = t.purchaseOrder) == null ? void 0 : b.status) === n(F).enum.DRAFT && M.value === n(se).TRANSFER ? (y(), J(a, {
|
|
1165
1164
|
key: 1,
|
|
1166
1165
|
label: n(d)("inventory.transfer.receiveRequest.actions.submitRequest"),
|
|
1167
1166
|
onClick: e[2] || (e[2] = (Y) => W("submitRequest")),
|
|
1168
1167
|
loading: O.value === "submitRequest",
|
|
1169
1168
|
disabled: O.value !== "submitRequest" && g.value
|
|
1170
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
1169
|
+
}, null, 8, ["label", "loading", "disabled"])) : q("", !0),
|
|
1171
1170
|
((T = t.purchaseOrder) == null ? void 0 : T.status) === n(F).enum.DRAFT ? (y(), J(a, {
|
|
1172
1171
|
key: 2,
|
|
1173
1172
|
label: n(d)("inventory.transfer.receiveRequest.actions.cancelDraft"),
|
|
@@ -1175,28 +1174,28 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
1175
1174
|
loading: O.value === "cancelDraft",
|
|
1176
1175
|
disabled: O.value !== "cancelDraft" && g.value,
|
|
1177
1176
|
variant: "destructive"
|
|
1178
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
1177
|
+
}, null, 8, ["label", "loading", "disabled"])) : q("", !0),
|
|
1179
1178
|
((C = t.purchaseOrder) == null ? void 0 : C.status) === n(F).enum.RECEIVING ? (y(), J(a, {
|
|
1180
1179
|
key: 3,
|
|
1181
1180
|
label: n(d)("inventory.transfer.receiveRequest.actions.completeReceive"),
|
|
1182
1181
|
onClick: e[4] || (e[4] = (Y) => W("completeReceive")),
|
|
1183
1182
|
loading: O.value === "completeReceive",
|
|
1184
1183
|
disabled: O.value !== "completeReceive" && g.value
|
|
1185
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
1184
|
+
}, null, 8, ["label", "loading", "disabled"])) : q("", !0),
|
|
1186
1185
|
t.canResubmit ? (y(), J(a, {
|
|
1187
1186
|
key: 4,
|
|
1188
1187
|
label: n(d)("inventory.transfer.receiveRequest.actions.resubmitRequest"),
|
|
1189
1188
|
onClick: e[5] || (e[5] = (Y) => W("submitRequest")),
|
|
1190
1189
|
loading: O.value === "submitRequest",
|
|
1191
1190
|
disabled: O.value !== "submitRequest" && g.value
|
|
1192
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
1191
|
+
}, null, 8, ["label", "loading", "disabled"])) : q("", !0),
|
|
1193
1192
|
(((H = t.purchaseOrder) == null ? void 0 : H.status) === n(F).enum.REQUESTING || ((E = t.purchaseOrder) == null ? void 0 : E.status) === n(F).enum.PROCESSING) && t.canApprove ? (y(), J(a, {
|
|
1194
1193
|
key: 5,
|
|
1195
1194
|
label: n(d)("inventory.transfer.approval.actions.approveRequest"),
|
|
1196
1195
|
onClick: e[6] || (e[6] = (Y) => W("approveRequest")),
|
|
1197
1196
|
loading: O.value === "approveRequest",
|
|
1198
1197
|
disabled: O.value !== "approveRequest" && g.value
|
|
1199
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
1198
|
+
}, null, 8, ["label", "loading", "disabled"])) : q("", !0),
|
|
1200
1199
|
((z = t.purchaseOrder) == null ? void 0 : z.status) === n(F).enum.REQUESTING && t.canApprove ? (y(), J(a, {
|
|
1201
1200
|
key: 6,
|
|
1202
1201
|
label: n(d)("inventory.transfer.approval.actions.rejectRequest"),
|
|
@@ -1204,13 +1203,13 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
1204
1203
|
loading: O.value === "rejectRequest",
|
|
1205
1204
|
disabled: O.value !== "rejectRequest" && g.value,
|
|
1206
1205
|
variant: "destructive"
|
|
1207
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
1206
|
+
}, null, 8, ["label", "loading", "disabled"])) : q("", !0),
|
|
1208
1207
|
((ce = t.purchaseOrder) == null ? void 0 : ce.status) !== n(F).enum.COMPLETE && ((ue = t.purchaseOrder) == null ? void 0 : ue.status) !== n(F).enum.CANCEL && (((de = t.purchaseOrder) == null ? void 0 : de.status) !== n(F).enum.REQUESTING || t.canApprove) ? (y(), J(a, {
|
|
1209
1208
|
key: 7,
|
|
1210
1209
|
label: n(d)("common.close"),
|
|
1211
1210
|
variant: "tertiary",
|
|
1212
1211
|
onClick: e[8] || (e[8] = (Y) => s("update:show", !1))
|
|
1213
|
-
}, null, 8, ["label"])) :
|
|
1212
|
+
}, null, 8, ["label"])) : q("", !0)
|
|
1214
1213
|
])
|
|
1215
1214
|
];
|
|
1216
1215
|
}),
|
|
@@ -1220,9 +1219,9 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
1220
1219
|
}
|
|
1221
1220
|
});
|
|
1222
1221
|
export {
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1222
|
+
Ir as _,
|
|
1223
|
+
Er as a,
|
|
1224
|
+
$r as b,
|
|
1226
1225
|
dt as g,
|
|
1227
1226
|
Ye as u
|
|
1228
1227
|
};
|