@feedmepos/mf-inventory-portal 0.0.23-dev.15 → 0.0.23-dev.16
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-CkynItyw.js → App-CqcF-fwV.js} +3 -3
- package/dist/{ApprovalView-BLLTVSSb.js → ApprovalView-vWXFA_eo.js} +4 -4
- package/dist/{BindingsDialog--P_bnxou.js → BindingsDialog-kvHNCEqw.js} +2 -2
- package/dist/{BindingsPicker-BbkA_h-o.js → BindingsPicker-CCIp6NEE.js} +2 -2
- package/dist/{BindingsTable-CXP5EOxL.js → BindingsTable-DXGbeSVU.js} +4 -4
- package/dist/ClosingDraftView-DdWSQS2H.js +1122 -0
- package/dist/{ClosingTemplateView-BejXOMLa.js → ClosingTemplateView-DsCeYCJg.js} +10 -10
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BQ1w3Z1O.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DtofkHh5.js} +4 -4
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-XoGRRl2X.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-dOwGhgfF.js} +2 -2
- package/dist/{FmMultiselectDialog-yHlvzk0I.js → FmMultiselectDialog-e6cut2s7.js} +3 -3
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CXS2akOg.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B1Hy3B0-.js} +2 -2
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CfFjjfIc.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CPXMwwjj.js} +1 -1
- package/dist/{IngredientGroupView-DqiVjxMm.js → IngredientGroupView-Ctu1rZDA.js} +5 -5
- package/dist/{IngredientsView-CK7MltN7.js → IngredientsView-DeNnObTW.js} +9 -9
- package/dist/{IntegrationView-FdBWhVI5.js → IntegrationView-t7CRZcew.js} +4 -4
- package/dist/{InventoryBindingForm-DlxTa_MO.js → InventoryBindingForm-Cjeh1vj_.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-WNYUK4fi.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-D5Db_2I_.js} +5 -5
- package/dist/{InventoryBindingSummary-BLGzzvB_.js → InventoryBindingSummary-DPo79YXT.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Dkr5i5Sp.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DozwlCld.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CGvWaRx-.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BKfkxoTE.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-htRYsVHK.js → PurchaseOrderPrintPreview-C-iEvLP1.js} +1 -1
- package/dist/{ReceiveRequestView-B5GoN-OH.js → ReceiveRequestView-D4Cg8TF5.js} +18 -18
- package/dist/{RecipeView-M1bC1FZ1.js → RecipeView-ZgONnIvE.js} +7 -7
- package/dist/{StockView-BBoVKedw.js → StockView-OG1jLUa8.js} +13 -13
- package/dist/{SupplierView-D7GDKNvo.js → SupplierView-DSW2dLQP.js} +10 -10
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Cdeb6nPX.js → TransferDetails.vue_vue_type_script_setup_true_lang-DfSqyy-R.js} +54 -54
- package/dist/{TransferTemplateView-CcUHTTkw.js → TransferTemplateView-TixIybWf.js} +14 -14
- package/dist/{UnitView-CQ2_2PwI.js → UnitView-6RkEFIJD.js} +5 -5
- package/dist/{WarehouseView-DEsUeVui.js → WarehouseView-Bbci5eAP.js} +4 -4
- package/dist/{app-iPB0Kour.js → app-Iv30TXsA.js} +10 -10
- package/dist/app.js +1 -1
- package/dist/{date2-DbXZUZ9a.js → date2-VM6HUtqx.js} +1 -1
- package/dist/{dayjs.min-Dl6geKWL.js → dayjs.min-CEM65hHn.js} +1 -1
- package/dist/{decimal-DQkdkHZR.js → decimal-gAHZETIz.js} +1 -1
- package/dist/{defineDeepModel-RkNOKgaB.js → defineDeepModel-DzTm7URG.js} +1 -1
- package/dist/{feature-C5H2Ecl4.js → feature-DN8a_F-i.js} +1 -1
- package/dist/{format-time-from-id-DVB4ONoe.js → format-time-from-id-BfbdDiIE.js} +1 -1
- package/dist/{format-unit-display-CIhGJZzk.js → format-unit-display-XHgGLeHY.js} +8 -8
- package/dist/{fuzzy-DDMiepB2.js → fuzzy-CIEPIox7.js} +1 -1
- package/dist/{index-DEYZ-qUf.js → index-DQDMUxyC.js} +1 -1
- package/dist/{index-BMoy7HHz.js → index-Dv-6Hm_z.js} +1 -1
- package/dist/{index-C4Q79QkD.js → index-Q96zW8J0.js} +1 -1
- package/dist/{netsuite-CnvEeHT3.js → netsuite-Bo49EaVh.js} +1 -1
- package/dist/{rules-V9_CI2u_.js → rules-C0FFlx9A.js} +2 -2
- package/dist/{stock-lN4T3vtF.js → stock-CMKAuU84.js} +2 -2
- package/dist/{supplier-DWG6_Rn3.js → supplier-CxAcIU6h.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-CMihaarh.js → use-inventory-binding-dialog-GNLNP3f8.js} +2 -2
- package/dist/{use-template-enabled-locations-2-CnsmKuzY.js → use-template-enabled-locations-2-DzqBdV2b.js} +2 -2
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +3 -3
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +19 -0
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -0
- package/dist/{xlsx-BB1TdLbM.js → xlsx-BqvCK2Va.js} +1 -1
- package/dist/{xlsx.util-hwt9BILM.js → xlsx.util-CNeUTGll.js} +1 -1
- package/package.json +3 -3
- package/dist/ClosingDraftView-CgAVONKU.js +0 -939
|
@@ -1,19 +1,19 @@
|
|
|
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 { i as Ze } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { k as Xe, u as be, G as R,
|
|
4
|
-
import { t as tt, b as rt, h as Be, d as Ie } from "./date2-
|
|
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 { i as Ze } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-dOwGhgfF.js";
|
|
3
|
+
import { k as Xe, u as be, G as R, q as et, c as Le, y as F, s as je, w as $e } from "./app-Iv30TXsA.js";
|
|
4
|
+
import { t as tt, b as rt, h as Be, d as Ie } from "./date2-VM6HUtqx.js";
|
|
5
5
|
import { F as Fe } from "./form-mode.enum-BKiNVH6A.js";
|
|
6
6
|
import { useDialog as Ke, useSnackbar as Ve, useProxiedModel as st } from "@feedmepos/ui-library";
|
|
7
|
-
import { p as at, f as ge } from "./format-time-from-id-
|
|
8
|
-
import { u as Ge } from "./feature-
|
|
9
|
-
import { b as nt, u as ot, f as He, P as se } from "./format-unit-display-
|
|
7
|
+
import { p as at, f as ge } from "./format-time-from-id-BfbdDiIE.js";
|
|
8
|
+
import { u as Ge } from "./feature-DN8a_F-i.js";
|
|
9
|
+
import { b as nt, u as ot, f as He, P as se } from "./format-unit-display-XHgGLeHY.js";
|
|
10
10
|
import { c as Me } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
11
11
|
import { D as j, R as I } from "./row-action.enum-7rGLGZ5v.js";
|
|
12
|
-
import { i as Oe, c as he, a as le, k as lt, j as Ue } from "./rules-
|
|
13
|
-
import { F as it } from "./decimal-
|
|
12
|
+
import { i as Oe, c as he, a as le, k as lt, j as Ue } from "./rules-C0FFlx9A.js";
|
|
13
|
+
import { F as it } from "./decimal-gAHZETIz.js";
|
|
14
14
|
import { useI18n as ze } from "@feedmepos/mf-common";
|
|
15
15
|
import { E as ct } from "./empty-placeholder-wf6-BWE8.js";
|
|
16
|
-
import { u as ut } from "./netsuite-
|
|
16
|
+
import { u as ut } from "./netsuite-Bo49EaVh.js";
|
|
17
17
|
const Ye = Xe((m, _) => {
|
|
18
18
|
const u = be();
|
|
19
19
|
return {
|
|
@@ -25,15 +25,15 @@ const Ye = Xe((m, _) => {
|
|
|
25
25
|
start: s,
|
|
26
26
|
end: w
|
|
27
27
|
}) {
|
|
28
|
-
const S = u.currentLocationDBName,
|
|
29
|
-
return await _.get(`${
|
|
28
|
+
const S = u.currentLocationDBName, N = `${m.inventoryBackendUrl}/${S}/purchase-order`;
|
|
29
|
+
return await _.get(`${N}?start=${s}&end=${w}`);
|
|
30
30
|
},
|
|
31
31
|
async getPurchaseOrderById(s) {
|
|
32
32
|
const w = u.currentLocationDBName, S = `${m.inventoryBackendUrl}/${w}/purchase-order`;
|
|
33
33
|
return await _.get(`${S}/${s}`);
|
|
34
34
|
},
|
|
35
35
|
async processPurchaseOrder(s, w) {
|
|
36
|
-
const S = u.currentLocationDBName,
|
|
36
|
+
const S = u.currentLocationDBName, N = w || S, $ = `${m.inventoryBackendUrl}/${N}/purchase-order/run-operation`;
|
|
37
37
|
return await _.put($, s);
|
|
38
38
|
},
|
|
39
39
|
async createPurchaseOrder(s) {
|
|
@@ -104,7 +104,7 @@ const Ye = Xe((m, _) => {
|
|
|
104
104
|
}
|
|
105
105
|
}, me = B();
|
|
106
106
|
function Br(m, _) {
|
|
107
|
-
const u = Ke(), s = be(), w = Ge(), S = nt(),
|
|
107
|
+
const u = Ke(), s = be(), w = Ge(), S = nt(), N = ot(), $ = B(!1), d = Ve(), M = Ye(), i = B(new Array()), p = B(
|
|
108
108
|
_ != null && _.startDate && (_ != null && _.endDate) ? _ : Ze()
|
|
109
109
|
), h = V(() => {
|
|
110
110
|
const f = new Date(p.value.startDate), c = new Date(p.value.endDate);
|
|
@@ -146,7 +146,7 @@ function Br(m, _) {
|
|
|
146
146
|
try {
|
|
147
147
|
i.value = await M.getPurchaseOrders(h.value).then((t) => t.sort((e, a) => a._id.localeCompare(e._id)));
|
|
148
148
|
const f = await O.readLastClosing(!0), c = f == null ? void 0 : f._id;
|
|
149
|
-
c && (G.value = at(c)), w.mustUsePoTemplate && await
|
|
149
|
+
c && (G.value = at(c)), w.mustUsePoTemplate && await N.fetchTemplates();
|
|
150
150
|
} catch {
|
|
151
151
|
d.open({
|
|
152
152
|
title: "Something went wrong",
|
|
@@ -293,7 +293,7 @@ function Br(m, _) {
|
|
|
293
293
|
function dt(m, _) {
|
|
294
294
|
return _.reduce(
|
|
295
295
|
(s, w) => {
|
|
296
|
-
const S = w.received.find((
|
|
296
|
+
const S = w.received.find((N) => N.sku._id === m._id);
|
|
297
297
|
return S && (s = Oe(s, S.amount)), s;
|
|
298
298
|
},
|
|
299
299
|
it.toPrecision(he(0), m.unit.precision)
|
|
@@ -309,7 +309,7 @@ function mt(m, _) {
|
|
|
309
309
|
city: s == null ? void 0 : s.city,
|
|
310
310
|
state: s == null ? void 0 : s.state,
|
|
311
311
|
country: s == null ? void 0 : s.country
|
|
312
|
-
},
|
|
312
|
+
}, N = {
|
|
313
313
|
name: m.supplier.name,
|
|
314
314
|
registrationNumber: m.supplier.registrationNumber,
|
|
315
315
|
line1: m.supplier.address.line1,
|
|
@@ -349,7 +349,7 @@ function mt(m, _) {
|
|
|
349
349
|
ref: m.ref || "",
|
|
350
350
|
remark: m.remark || "",
|
|
351
351
|
buyer: S,
|
|
352
|
-
supplier:
|
|
352
|
+
supplier: N,
|
|
353
353
|
items: $,
|
|
354
354
|
status: m.status,
|
|
355
355
|
deliveryOrders: d
|
|
@@ -434,7 +434,7 @@ function Kr(m, _) {
|
|
|
434
434
|
function S(i) {
|
|
435
435
|
return Object.values(R.enum).includes(i);
|
|
436
436
|
}
|
|
437
|
-
async function
|
|
437
|
+
async function N(i, p, h) {
|
|
438
438
|
var O, G;
|
|
439
439
|
const g = Le(p);
|
|
440
440
|
if (i === I.Print) {
|
|
@@ -517,7 +517,7 @@ function Kr(m, _) {
|
|
|
517
517
|
id: "action",
|
|
518
518
|
cell(i) {
|
|
519
519
|
const p = i.row.original, h = w(p);
|
|
520
|
-
return Me(h, (g) =>
|
|
520
|
+
return Me(h, (g) => N(g, p));
|
|
521
521
|
},
|
|
522
522
|
enableSorting: !1,
|
|
523
523
|
size: 40,
|
|
@@ -589,7 +589,7 @@ function Kr(m, _) {
|
|
|
589
589
|
const p = i.row.original, h = p.purchaseOrder ? w(p.purchaseOrder) : [];
|
|
590
590
|
return Me(
|
|
591
591
|
h,
|
|
592
|
-
(g) => p.purchaseOrder ?
|
|
592
|
+
(g) => p.purchaseOrder ? N(g, p.purchaseOrder, p) : void 0
|
|
593
593
|
);
|
|
594
594
|
},
|
|
595
595
|
enableSorting: !1,
|
|
@@ -617,7 +617,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
617
617
|
}, 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" }, kt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, At = { class: "fm-typo-en-body-lg-600" }, xt = {
|
|
618
618
|
key: 1,
|
|
619
619
|
class: "flex flex-col gap-4"
|
|
620
|
-
},
|
|
620
|
+
}, qt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Nt = { class: "fm-typo-en-body-lg-600" }, Pt = {
|
|
621
621
|
key: 2,
|
|
622
622
|
class: "flex flex-col gap-4"
|
|
623
623
|
}, Tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ct = { class: "fm-typo-en-body-lg-600" }, Et = {
|
|
@@ -672,7 +672,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
672
672
|
},
|
|
673
673
|
emits: ["update:show", "submitted"],
|
|
674
674
|
setup(m, { emit: _ }) {
|
|
675
|
-
const u = m, s = _, w = Ke(), S = Ve(),
|
|
675
|
+
const u = m, s = _, w = Ke(), S = Ve(), N = ut(), $ = Ge(), { t: d } = ze(), M = V(
|
|
676
676
|
() => {
|
|
677
677
|
var t, e, a, o;
|
|
678
678
|
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;
|
|
@@ -746,7 +746,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
746
746
|
}), Re = V(
|
|
747
747
|
() => {
|
|
748
748
|
var t, e, a, o, P, A;
|
|
749
|
-
return
|
|
749
|
+
return N.getLocationSubsidiary(
|
|
750
750
|
((a = (e = (t = u.purchaseOrder) == null ? void 0 : t.netSuite) == null ? void 0 : e.subsidiary) == null ? void 0 : a.id) || ((A = (P = (o = u.poRequest) == null ? void 0 : o.netSuite) == null ? void 0 : P.subsidiary) == null ? void 0 : A.id)
|
|
751
751
|
).fullName;
|
|
752
752
|
}
|
|
@@ -872,7 +872,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
872
872
|
}), ne = B(!1), we = V(() => {
|
|
873
873
|
var o, P, A, U;
|
|
874
874
|
let t = !0;
|
|
875
|
-
|
|
875
|
+
N.isEnabled || (t = !1);
|
|
876
876
|
const e = u.purchaseOrder, a = u.poRequest;
|
|
877
877
|
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 && !((A = e == null ? void 0 : e.netSuite) != null && A.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;
|
|
878
878
|
});
|
|
@@ -908,7 +908,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
908
908
|
});
|
|
909
909
|
return;
|
|
910
910
|
}
|
|
911
|
-
await
|
|
911
|
+
await N.syncTransferOrder(o, e == null ? void 0 : e._id, a == null ? void 0 : a._id), S.open({
|
|
912
912
|
title: "Sync with NetSuite",
|
|
913
913
|
message: "Requested to sync with NetSuite. Please wait a moment.",
|
|
914
914
|
type: "success"
|
|
@@ -959,7 +959,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
959
959
|
loading: ne.value,
|
|
960
960
|
onClick: f
|
|
961
961
|
}, null, 8, ["loading"])
|
|
962
|
-
])) :
|
|
962
|
+
])) : q("", !0),
|
|
963
963
|
r("div", null, [
|
|
964
964
|
Q(o, {
|
|
965
965
|
items: p,
|
|
@@ -974,7 +974,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
974
974
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
975
975
|
}, {
|
|
976
976
|
default: pe(() => {
|
|
977
|
-
var b, T, C, H, E, z, ce, ue, de, Y, De, ke, Ae, xe,
|
|
977
|
+
var b, T, C, H, E, z, ce, ue, de, Y, De, ke, Ae, xe, qe, Ne, Pe, Te, Ce, Ee;
|
|
978
978
|
return [
|
|
979
979
|
r("div", vt, [
|
|
980
980
|
r("div", yt, v(n(d)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
|
|
@@ -997,7 +997,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
997
997
|
(E = t.purchaseOrder) != null && E.effectiveAt ? (y(), D("div", Rt, [
|
|
998
998
|
r("div", wt, v(n(d)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
|
|
999
999
|
r("div", Ot, v(n(Be)(new Date((z = t.purchaseOrder) == null ? void 0 : z.effectiveAt))), 1)
|
|
1000
|
-
])) :
|
|
1000
|
+
])) : q("", !0),
|
|
1001
1001
|
r("div", Dt, [
|
|
1002
1002
|
r("div", kt, v(n(d)("inventory.transfer.receiveRequest.details.type.title")), 1),
|
|
1003
1003
|
r("div", At, v(n(d)(
|
|
@@ -1005,33 +1005,33 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
1005
1005
|
)), 1)
|
|
1006
1006
|
]),
|
|
1007
1007
|
(ue = (ce = t.purchaseOrder) == null ? void 0 : ce.supplier) != null && ue.name ? (y(), D("div", xt, [
|
|
1008
|
-
r("div",
|
|
1009
|
-
r("div",
|
|
1010
|
-
])) :
|
|
1008
|
+
r("div", qt, v(n(d)("inventory.transfer.receiveRequest.details.from")), 1),
|
|
1009
|
+
r("div", Nt, v((Y = (de = t.purchaseOrder) == null ? void 0 : de.supplier) == null ? void 0 : Y.name), 1)
|
|
1010
|
+
])) : q("", !0),
|
|
1011
1011
|
t.transferTo ? (y(), D("div", Pt, [
|
|
1012
1012
|
r("div", Tt, v(n(d)("inventory.transfer.receiveRequest.details.to")), 1),
|
|
1013
1013
|
r("div", Ct, v(t.transferTo), 1)
|
|
1014
|
-
])) :
|
|
1015
|
-
n(
|
|
1014
|
+
])) : q("", !0),
|
|
1015
|
+
n(N).isEnabled ? (y(), D("div", Et, [
|
|
1016
1016
|
e[10] || (e[10] = r("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite subsidiary ", -1)),
|
|
1017
1017
|
r("div", $t, v(Re.value || "-"), 1)
|
|
1018
|
-
])) :
|
|
1019
|
-
n(
|
|
1018
|
+
])) : q("", !0),
|
|
1019
|
+
n(N).isEnabled && !i.value ? (y(), D("div", It, [
|
|
1020
1020
|
r("div", Ft, " NetSuite " + v(M.value === n(se).PURCHASE ? "Purchase order" : "Transfer order") + " (ID) ", 1),
|
|
1021
|
-
r("div", Mt, v(t.poRequest ? (ke = (De = t.poRequest) == null ? void 0 : De.netSuite) == null ? void 0 : ke.refNo : (xe = (Ae = t.purchaseOrder) == null ? void 0 : Ae.netSuite) == null ? void 0 : xe.refNo) + " (" + v(t.poRequest ? (
|
|
1022
|
-
])) :
|
|
1023
|
-
n(
|
|
1021
|
+
r("div", Mt, v(t.poRequest ? (ke = (De = t.poRequest) == null ? void 0 : De.netSuite) == null ? void 0 : ke.refNo : (xe = (Ae = t.purchaseOrder) == null ? void 0 : Ae.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)
|
|
1022
|
+
])) : q("", !0),
|
|
1023
|
+
n(N).isEnabled && M.value === n(se).TRANSFER && !i.value ? (y(), D("div", Ut, [
|
|
1024
1024
|
e[11] || (e[11] = r("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite fulfillment IDs ", -1)),
|
|
1025
1025
|
r("div", Lt, v(Z.value), 1)
|
|
1026
|
-
])) :
|
|
1026
|
+
])) : q("", !0),
|
|
1027
1027
|
(Ce = t.purchaseOrder) != null && Ce.ref ? (y(), D("div", jt, [
|
|
1028
1028
|
r("div", Bt, v(n(d)("inventory.transfer.receiveRequest.details.reference")), 1),
|
|
1029
1029
|
r("div", Kt, v(t.purchaseOrder.ref), 1)
|
|
1030
|
-
])) :
|
|
1030
|
+
])) : q("", !0),
|
|
1031
1031
|
(Ee = t.purchaseOrder) != null && Ee.remark ? (y(), D("div", Vt, [
|
|
1032
1032
|
r("div", Gt, v(n(d)("inventory.transfer.receiveRequest.details.remark")), 1),
|
|
1033
1033
|
r("div", Ht, v(t.purchaseOrder.remark), 1)
|
|
1034
|
-
])) :
|
|
1034
|
+
])) : q("", !0)
|
|
1035
1035
|
])
|
|
1036
1036
|
];
|
|
1037
1037
|
}),
|
|
@@ -1051,7 +1051,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
1051
1051
|
]),
|
|
1052
1052
|
r("div", Xt, [
|
|
1053
1053
|
r("div", er, v(b.code), 1),
|
|
1054
|
-
b.totalCost && n($).enableTotalCost ? (y(), D("div", tr, " (" + v(n(Ue)(b.totalCost)) + ") ", 1)) :
|
|
1054
|
+
b.totalCost && n($).enableTotalCost ? (y(), D("div", tr, " (" + v(n(Ue)(b.totalCost)) + ") ", 1)) : q("", !0)
|
|
1055
1055
|
])
|
|
1056
1056
|
]))), 128)),
|
|
1057
1057
|
+n(le)(c.value) ? (y(), D(re, { key: 0 }, [
|
|
@@ -1062,10 +1062,10 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
1062
1062
|
e[12] || (e[12] = r("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Total:", -1)),
|
|
1063
1063
|
r("div", ar, v(n(Ue)(c.value)), 1)
|
|
1064
1064
|
])
|
|
1065
|
-
], 64)) :
|
|
1065
|
+
], 64)) : q("", !0)
|
|
1066
1066
|
])
|
|
1067
1067
|
])
|
|
1068
|
-
], 64)) :
|
|
1068
|
+
], 64)) : q("", !0),
|
|
1069
1069
|
h.value.value === "deliveryHistory" ? (y(), D("div", nr, [
|
|
1070
1070
|
X.value.length ? (y(), D("div", ur, [
|
|
1071
1071
|
(y(!0), D(re, null, ye(X.value, (b, T) => (y(), D(re, { key: T }, [
|
|
@@ -1153,7 +1153,7 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
1153
1153
|
Q(l),
|
|
1154
1154
|
Q(l)
|
|
1155
1155
|
]))
|
|
1156
|
-
])) :
|
|
1156
|
+
])) : q("", !0)
|
|
1157
1157
|
])
|
|
1158
1158
|
];
|
|
1159
1159
|
}),
|
|
@@ -1167,14 +1167,14 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
1167
1167
|
onClick: e[1] || (e[1] = (Y) => W("confirmDraft")),
|
|
1168
1168
|
loading: O.value === "confirmDraft",
|
|
1169
1169
|
disabled: O.value !== "confirmDraft" && g.value
|
|
1170
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
1170
|
+
}, null, 8, ["label", "loading", "disabled"])) : q("", !0),
|
|
1171
1171
|
((b = t.purchaseOrder) == null ? void 0 : b.status) === n(F).enum.DRAFT && M.value === n(se).TRANSFER ? (y(), J(a, {
|
|
1172
1172
|
key: 1,
|
|
1173
1173
|
label: n(d)("inventory.transfer.receiveRequest.actions.submitRequest"),
|
|
1174
1174
|
onClick: e[2] || (e[2] = (Y) => W("submitRequest")),
|
|
1175
1175
|
loading: O.value === "submitRequest",
|
|
1176
1176
|
disabled: O.value !== "submitRequest" && g.value
|
|
1177
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
1177
|
+
}, null, 8, ["label", "loading", "disabled"])) : q("", !0),
|
|
1178
1178
|
((T = t.purchaseOrder) == null ? void 0 : T.status) === n(F).enum.DRAFT ? (y(), J(a, {
|
|
1179
1179
|
key: 2,
|
|
1180
1180
|
label: n(d)("inventory.transfer.receiveRequest.actions.cancelDraft"),
|
|
@@ -1182,28 +1182,28 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
1182
1182
|
loading: O.value === "cancelDraft",
|
|
1183
1183
|
disabled: O.value !== "cancelDraft" && g.value,
|
|
1184
1184
|
variant: "destructive"
|
|
1185
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
1185
|
+
}, null, 8, ["label", "loading", "disabled"])) : q("", !0),
|
|
1186
1186
|
((C = t.purchaseOrder) == null ? void 0 : C.status) === n(F).enum.RECEIVING ? (y(), J(a, {
|
|
1187
1187
|
key: 3,
|
|
1188
1188
|
label: n(d)("inventory.transfer.receiveRequest.actions.completeReceive"),
|
|
1189
1189
|
onClick: e[4] || (e[4] = (Y) => W("completeReceive")),
|
|
1190
1190
|
loading: O.value === "completeReceive",
|
|
1191
1191
|
disabled: O.value !== "completeReceive" && g.value
|
|
1192
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
1192
|
+
}, null, 8, ["label", "loading", "disabled"])) : q("", !0),
|
|
1193
1193
|
t.canResubmit ? (y(), J(a, {
|
|
1194
1194
|
key: 4,
|
|
1195
1195
|
label: n(d)("inventory.transfer.receiveRequest.actions.resubmitRequest"),
|
|
1196
1196
|
onClick: e[5] || (e[5] = (Y) => W("submitRequest")),
|
|
1197
1197
|
loading: O.value === "submitRequest",
|
|
1198
1198
|
disabled: O.value !== "submitRequest" && g.value
|
|
1199
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
1199
|
+
}, null, 8, ["label", "loading", "disabled"])) : q("", !0),
|
|
1200
1200
|
(((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, {
|
|
1201
1201
|
key: 5,
|
|
1202
1202
|
label: n(d)("inventory.transfer.approval.actions.approveRequest"),
|
|
1203
1203
|
onClick: e[6] || (e[6] = (Y) => W("approveRequest")),
|
|
1204
1204
|
loading: O.value === "approveRequest",
|
|
1205
1205
|
disabled: O.value !== "approveRequest" && g.value
|
|
1206
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
1206
|
+
}, null, 8, ["label", "loading", "disabled"])) : q("", !0),
|
|
1207
1207
|
((z = t.purchaseOrder) == null ? void 0 : z.status) === n(F).enum.REQUESTING && t.canApprove ? (y(), J(a, {
|
|
1208
1208
|
key: 6,
|
|
1209
1209
|
label: n(d)("inventory.transfer.approval.actions.rejectRequest"),
|
|
@@ -1211,13 +1211,13 @@ const ft = { class: "flex flex-col gap-16 w-full h-full" }, pt = {
|
|
|
1211
1211
|
loading: O.value === "rejectRequest",
|
|
1212
1212
|
disabled: O.value !== "rejectRequest" && g.value,
|
|
1213
1213
|
variant: "destructive"
|
|
1214
|
-
}, null, 8, ["label", "loading", "disabled"])) :
|
|
1214
|
+
}, null, 8, ["label", "loading", "disabled"])) : q("", !0),
|
|
1215
1215
|
((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, {
|
|
1216
1216
|
key: 7,
|
|
1217
1217
|
label: n(d)("common.close"),
|
|
1218
1218
|
variant: "tertiary",
|
|
1219
1219
|
onClick: e[8] || (e[8] = (Y) => s("update:show", !1))
|
|
1220
|
-
}, null, 8, ["label"])) :
|
|
1220
|
+
}, null, 8, ["label"])) : q("", !0)
|
|
1221
1221
|
])
|
|
1222
1222
|
];
|
|
1223
1223
|
}),
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { defineComponent as J, onMounted as pe, computed as R, ref as U, watch as ce, inject as We, resolveComponent as I, openBlock as A, createElementBlock as Q, createElementVNode as t, createVNode as p, withCtx as E, renderSlot as Oe, withDirectives as Ve, normalizeClass as ie, vModelText as Ae, reactive as Ze, h as Z, toDisplayString as $, unref as e, createBlock as W, mergeProps as Ue, isRef as Ee, createCommentVNode as Y, Fragment as qe, renderList as Je, normalizeStyle as Xe, Teleport as Ye, normalizeProps as et, guardReactiveProps as tt } from "vue";
|
|
2
|
-
import { u as ot, _ as st, a as lt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as ot, _ as st, a as lt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-dOwGhgfF.js";
|
|
3
3
|
import { useI18n as X } from "@feedmepos/mf-common";
|
|
4
|
-
import { P as j, a as nt, f as rt, t as at, b as Re, u as it } from "./format-unit-display-
|
|
4
|
+
import { P as j, a as nt, f as rt, t as at, b as Re, u as it } from "./format-unit-display-XHgGLeHY.js";
|
|
5
5
|
import { R as De } from "./row-action.enum-7rGLGZ5v.js";
|
|
6
|
-
import { a as Ne, u as ze, A as ne } from "./app-
|
|
6
|
+
import { a as Ne, u as ze, A as ne } from "./app-Iv30TXsA.js";
|
|
7
7
|
import { components as re, useDialog as ut, useSnackbar as mt, useProxiedModel as je, useBreakpoints as dt } from "@feedmepos/ui-library";
|
|
8
8
|
import { storeToRefs as Pe } from "pinia";
|
|
9
9
|
import { F as ee } from "./form-mode.enum-BKiNVH6A.js";
|
|
10
|
-
import { u as ue, t as Le, I as pt, n as ct, o as ft, a as K, p as yt, R as me, g as ae, c as vt, A as de, M as bt, b as xt, j as _t } from "./rules-
|
|
11
|
-
import { d as He } from "./defineDeepModel-
|
|
12
|
-
import { _ as ht, b as gt, F as Ft, a as Tt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { u as Qe } from "./feature-
|
|
14
|
-
import { c as wt, u as kt, _ as St } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { F as Be } from "./index-
|
|
16
|
-
import { u as Mt } from "./supplier-
|
|
17
|
-
import { F as Ct } from "./FmMultiselectDialog-
|
|
10
|
+
import { u as ue, t as Le, I as pt, n as ct, o as ft, a as K, p as yt, R as me, g as ae, c as vt, A as de, M as bt, b as xt, j as _t } from "./rules-C0FFlx9A.js";
|
|
11
|
+
import { d as He } from "./defineDeepModel-DzTm7URG.js";
|
|
12
|
+
import { _ as ht, b as gt, F as Ft, a as Tt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-B1Hy3B0-.js";
|
|
13
|
+
import { u as Qe } from "./feature-DN8a_F-i.js";
|
|
14
|
+
import { c as wt, u as kt, _ as St } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DtofkHh5.js";
|
|
15
|
+
import { F as Be } from "./index-Q96zW8J0.js";
|
|
16
|
+
import { u as Mt } from "./supplier-CxAcIU6h.js";
|
|
17
|
+
import { F as Ct } from "./FmMultiselectDialog-e6cut2s7.js";
|
|
18
18
|
import { F as H, _ as Ke } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
19
|
-
import { u as $t } from "./use-template-enabled-locations-2-
|
|
20
|
-
import { u as It } from "./netsuite-
|
|
21
|
-
import { f as Ot } from "./format-time-from-id-
|
|
19
|
+
import { u as $t } from "./use-template-enabled-locations-2-DzqBdV2b.js";
|
|
20
|
+
import { u as It } from "./netsuite-Bo49EaVh.js";
|
|
21
|
+
import { f as Ot } from "./format-time-from-id-BfbdDiIE.js";
|
|
22
22
|
const Vt = { class: "flex flex-col" }, At = { class: "flex flex-col" }, Rt = { class: "flex-1" }, Dt = { class: "flex items-center" }, Pt = { class: "flex-1" }, Lt = { class: "flex-1" }, Bt = /* @__PURE__ */ J({
|
|
23
23
|
__name: "FmMinMaxInput",
|
|
24
24
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as K, computed as _, openBlock as v, createElementBlock as w, createElementVNode as l, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Y, ref as M, resolveComponent as I, createBlock as T, withCtx as R, createVNode as y, unref as a, isRef as Z, normalizeClass as ae, normalizeStyle as re, Teleport as ie, normalizeProps as ue, guardReactiveProps as de } from "vue";
|
|
2
|
-
import { a as G, S as me, c as ne, h as ee, u as ce } from "./app-
|
|
2
|
+
import { a as G, S as me, c as ne, h as ee, u as ce } from "./app-Iv30TXsA.js";
|
|
3
3
|
import { useDialog as pe, useSnackbar as le, useProxiedModel as te, useBreakpoints as fe } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as ve, _ as ye } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { F as U } from "./form-mode.enum-BKiNVH6A.js";
|
|
@@ -7,10 +7,10 @@ import { defineStore as be, storeToRefs as ge } from "pinia";
|
|
|
7
7
|
import { D as oe, R as N } from "./row-action.enum-7rGLGZ5v.js";
|
|
8
8
|
import { c as xe, _ as _e, F as he } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
9
9
|
import { useI18n as O } from "@feedmepos/mf-common";
|
|
10
|
-
import { u as Ve, _ as Ue, a as we } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { R as j, A as Ce, a as J, c as ke, d as Fe } from "./rules-
|
|
12
|
-
import { F as Se } from "./decimal-
|
|
13
|
-
import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { u as Ve, _ as Ue, a as we } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-dOwGhgfF.js";
|
|
11
|
+
import { R as j, A as Ce, a as J, c as ke, d as Fe } from "./rules-C0FFlx9A.js";
|
|
12
|
+
import { F as Se } from "./decimal-gAHZETIz.js";
|
|
13
|
+
import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DozwlCld.js";
|
|
14
14
|
const Ee = { class: "flex flex-col gap-8" }, Ie = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "flex flex-col"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as S, createElementBlock as q, toRaw as be, reactive as xe, 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 F, isRef as we, normalizeClass as Se, normalizeStyle as Re } from "vue";
|
|
2
|
-
import { k as Pe, t as Te, v as Ue, c as O, u as Ee } from "./app-
|
|
2
|
+
import { k as Pe, t as Te, v as Ue, c as O, u as Ee } from "./app-Iv30TXsA.js";
|
|
3
3
|
import { useCoreStore as Le, useI18n as j } from "@feedmepos/mf-common";
|
|
4
4
|
import { D as Ve, R as J } from "./row-action.enum-7rGLGZ5v.js";
|
|
5
5
|
import { c as Ne, _ as Be, F as Q } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
6
|
-
import { u as qe, _ as ze, a as Ie } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { u as qe, _ as ze, a as Ie } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-dOwGhgfF.js";
|
|
7
7
|
import { F as T } from "./form-mode.enum-BKiNVH6A.js";
|
|
8
8
|
import { useDialogChild as je, useDialog as Me, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as Oe } from "@feedmepos/ui-library";
|
|
9
|
-
import { R as E } from "./rules-
|
|
9
|
+
import { R as E } from "./rules-C0FFlx9A.js";
|
|
10
10
|
import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
|
|
11
|
-
import { d as Ge } from "./index-
|
|
11
|
+
import { d as Ge } from "./index-DQDMUxyC.js";
|
|
12
12
|
import { _ as Ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const X = Pe((m, h) => {
|
|
14
14
|
const y = Le();
|