@feedmepos/mf-inventory-portal 1.3.12-dev.2 → 1.3.13
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/README.md +27 -3
- package/dist/{App-CNtTZWS5.js → App-Dm-YoD_v.js} +3 -3
- package/dist/{ApprovalView-CEl22JiC.js → ApprovalView-ClQU6bq0.js} +7 -7
- package/dist/{BindingsDialog-CfKXCpBU.js → BindingsDialog--w8amPhB.js} +2 -2
- package/dist/{BindingsPicker-Cs5tz33G.js → BindingsPicker-CLZ2cy95.js} +2 -2
- package/dist/{BindingsTable-BfnpZ-KA.js → BindingsTable-DMKnwFJt.js} +3 -3
- package/dist/ClosingDraftView-DOSvb2cx.js +3061 -0
- package/dist/{ClosingHistoryView-BZGgnEMk.js → ClosingHistoryView-Dbysx1Ca.js} +5 -5
- package/dist/{ClosingTemplateView-CePW41Zv.js → ClosingTemplateView-kOWpFBhr.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-CMiT6FFJ.js → DeliveryOrderPrintPreview-CTrf0b97.js} +9 -9
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cy37JvjC.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-HLHu23Ly.js} +17 -17
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D1F76xVX.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BTwfJTx3.js} +2 -2
- package/dist/{FmMultiselectDialog-DhMpDoSp.js → FmMultiselectDialog-ByvnmkuF.js} +2 -2
- package/dist/{FmMultiselectDialog-BsvCwcJc.js → FmMultiselectDialog-D8AXgAuO.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-nHP7zkk1.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B8Jp-237.js} +4 -4
- package/dist/{ImportView-i_QNJOjX.js → ImportView-B8jTVkI3.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-9mBpcrHT.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-D3bMh_iG.js} +1 -1
- package/dist/{IngredientGroupView-BRXP6KA8.js → IngredientGroupView-DEZHQArP.js} +5 -5
- package/dist/{IngredientsView-Ctxhsn56.js → IngredientsView-D_0aKc2P.js} +15 -15
- package/dist/{IntegrationExplorerView-Bh04rXi3.js → IntegrationExplorerView-RNQ89fRN.js} +5 -5
- package/dist/{IntegrationView-D21VT578.js → IntegrationView-HyqeX65i.js} +13 -13
- package/dist/{InventoryBindingForm-DRN9QJi0.js → InventoryBindingForm-GXWU6jVC.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BLoIOdb3.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BSWEOGs7.js} +5 -5
- package/dist/{InventoryBindingSummary-PAiqx015.js → InventoryBindingSummary-Dcsun-ae.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BIvMfYs0.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BPHzJFkv.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang--ld9yYXG.js → PremiumBadge.vue_vue_type_script_setup_true_lang-eaX2F6rA.js} +1 -1
- package/dist/{PublishView-Dnltnb2q.js → PublishView-BzaSX1CF.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-C117AdbG.js → PurchaseOrderPrintPreview-Dq9RVILX.js} +9 -9
- package/dist/{ReceiveRequestView-CEGAD0Ng.js → ReceiveRequestView-CUR65B8h.js} +23 -23
- package/dist/{RecipeView-BPoXX96N.js → RecipeView-DA1exNa3.js} +15 -15
- package/dist/{SettingsView-5wcHwBbj.js → SettingsView-G9VVMREu.js} +4 -4
- package/dist/StockView-3J7Gkskb.js +2406 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DoBOG20i.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DflfaS_i.js} +1 -1
- package/dist/{SupplierView-CXztXTGJ.js → SupplierView-Br3PxWl6.js} +12 -12
- package/dist/{SurchargeView-mA1cNQGF.js → SurchargeView-DnC875ic.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CbEb8v1Q.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DxElZDE3.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D1hykQLi.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DncbuAH1.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-zeZt-Xni.js → TransferDetails.vue_vue_type_script_setup_true_lang-R0DRQHII.js} +91 -91
- package/dist/{TransferTemplateView-RD0i6kb6.js → TransferTemplateView-CN-1iASP.js} +17 -17
- package/dist/{UnitCostHistoryView-BWCq8Po_.js → UnitCostHistoryView-HMfTl2Rl.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CZjt9Tph.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BQSRm_uN.js} +4 -4
- package/dist/{UnitView-CDqc3Tlc.js → UnitView-2J7SxbnX.js} +7 -7
- package/dist/{WarehouseView-Dn9Y1pfn.js → WarehouseView-EIXt8wd0.js} +5 -5
- package/dist/{WastageTemplateView-DqNfxcrF.js → WastageTemplateView-B8yQevPX.js} +14 -14
- package/dist/{app-BMCau-r9.js → app-DZ_O5S5y.js} +22835 -23575
- package/dist/app.js +2 -2
- package/dist/{closing-template-PafmbL9x.js → closing-template-C3F4uA55.js} +1 -1
- package/dist/{date2-NGc-US7r.js → date2-DoKx3vEH.js} +1 -1
- package/dist/{dayjs.min-D6CbxpmT.js → dayjs.min-BzKmIVU5.js} +1 -1
- package/dist/{decimal-CZC4S20U.js → decimal-CHryhQrv.js} +2 -2
- package/dist/{defineDeepModel-BWzoo1Yl.js → defineDeepModel-Dt72PPYN.js} +1 -1
- package/dist/{duplicate-template-BxSUC5LI.js → duplicate-template-k0PYkiot.js} +1 -1
- package/dist/{export-Df2CdXk-.js → export-D0nU9NCc.js} +1 -1
- package/dist/{feature-Byu94DG1.js → feature-DTXvUM9q.js} +28 -28
- package/dist/{format-time-from-id-hx4F-i1-.js → format-time-from-id-CjML4YH3.js} +1 -1
- package/dist/{format-unit-display-CDw8VsCc.js → format-unit-display-BASnDwRJ.js} +11 -11
- package/dist/{import-export.helper-DYFRZAI2.js → import-export.helper-BGRAKGXv.js} +6 -6
- package/dist/{index-CsMpGUvS.js → index-D5qTaOFp.js} +1 -1
- package/dist/{index-DodBVGPe.js → index-Db7jD-CU.js} +3 -3
- package/dist/{index-Bfe8USZ3.js → index-FhahM2dg.js} +1 -1
- package/dist/{inventory-core-dart.default-Do9H1oK-.js → inventory-core-dart.default-Cvvr8rpN.js} +1 -1
- package/dist/{lodash-jqyiF2Jy.js → lodash-B4Uj749H.js} +1 -1
- package/dist/{lz-string-CZH3sbUP.js → lz-string-Ckbaw1Bu.js} +1 -1
- package/dist/{netsuite-D7C_nhsL.js → netsuite-B4O7LRpC.js} +156 -100
- package/dist/{number-Dzj3ENjG.js → number-9PlMlR2G.js} +3 -3
- package/dist/{predefined-templates-BZ9EyGnO.js → predefined-templates-BqAy88Rp.js} +1 -1
- package/dist/{purchase-order-template-DE9pQpEF.js → purchase-order-template-KkhC0FCL.js} +1 -1
- package/dist/{recalculationUtils-BvTzacgL.js → recalculationUtils-Rj0SZQO3.js} +1 -1
- package/dist/{rules-Cb9NgTav.js → rules-BvLBkdfK.js} +2 -2
- package/dist/{stock-CoJZvuG_.js → stock-CoG3l91v.js} +3 -3
- package/dist/{stock-BVdxOXPo.js → stock-yUbmIey0.js} +1 -1
- package/dist/{supplier-B7nSOpfH.js → supplier-Qlox4B8s.js} +2 -2
- package/dist/{surcharge-F1vEGWak.js → surcharge-CsAxFX-L.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BqBdVzw-.js → use-ingredient-select-dialog-BOtDFKQO.js} +2 -2
- package/dist/{use-inventory-binding-dialog-CsQ8GQND.js → use-inventory-binding-dialog-Dz5NbeEn.js} +2 -2
- package/dist/{use-template-enabled-locations-BzZBqRYv.js → use-template-enabled-locations-MNNKqChl.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 +3 -3
- package/dist/{vue-i18n-Gpl_Em6v.js → vue-i18n-BqX2td3b.js} +134 -134
- package/dist/{xlsx-Cq--BOe0.js → xlsx-CtRIIkxr.js} +1 -1
- package/dist/{xlsx.util-BD4BK3XO.js → xlsx.util-Bd4_86rn.js} +1 -1
- package/package.json +1 -2
- package/dist/ClosingDraftView-DkhhKjNZ.js +0 -3005
- package/dist/StockView-QpWVITjo.js +0 -2431
- package/dist/views/stock/composables/use-stock-adjustment-permission.d.ts +0 -3
- package/dist/views/stock/composables/use-stock-adjustment-permission.test.d.ts +0 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as Oe, ref as
|
|
2
|
-
import { f as mr, h as pr, r as fr, s as yr } from "./predefined-templates-
|
|
3
|
-
import { f as tt, p as vr } from "./format-time-from-id-
|
|
1
|
+
import { defineComponent as Oe, ref as G, watch as Ke, nextTick as Zt, openBlock as i, createBlock as ie, Teleport as er, createElementBlock as v, withModifiers as tr, createElementVNode as e, normalizeClass as Pe, toDisplayString as d, createCommentVNode as M, unref as m, withDirectives as rr, vModelText as sr, toRaw as or, shallowRef as Tt, onUnmounted as nr, triggerRef as ar, computed as Z, readonly as lr, h as z, reactive as ir, onMounted as jt, resolveComponent as X, withCtx as oe, createVNode as L, Fragment as fe, renderList as ke, createTextVNode as Ee, renderSlot as cr, isRef as ur, resolveDynamicComponent as dr } from "vue";
|
|
2
|
+
import { f as mr, h as pr, r as fr, s as yr } from "./predefined-templates-BqAy88Rp.js";
|
|
3
|
+
import { f as tt, p as vr } from "./format-time-from-id-CjML4YH3.js";
|
|
4
4
|
import { c as Ft } from "./component-kqxARxvM.js";
|
|
5
5
|
import { D as xe, R as ue } from "./row-action.enum-Co_O4qD9.js";
|
|
6
|
-
import { I as Ye, o as br, u as Te,
|
|
7
|
-
import { j as Sr, c as Or, a as be, t as ot, d as Je } from "./number-
|
|
8
|
-
import { F as wr } from "./decimal-
|
|
9
|
-
import { h as _t, t as Cr, d as Dr, a as et } from "./date2-
|
|
10
|
-
import { F as Xe, c as $r, a as mt } from "./inventory-core-dart.default-
|
|
11
|
-
import { L as kr } from "./lz-string-
|
|
6
|
+
import { I as Ye, o as br, u as Te, W as q, X as lt, Q as ae, a as hr, Y as It, Z as gr, _ as _r, H as xr, c as Bt, v as gt, s as De, $ as zt, t as Ze, D as st, y as je, E as Ue } from "./app-DZ_O5S5y.js";
|
|
7
|
+
import { j as Sr, c as Or, a as be, t as ot, d as Je } from "./number-9PlMlR2G.js";
|
|
8
|
+
import { F as wr } from "./decimal-CHryhQrv.js";
|
|
9
|
+
import { h as _t, t as Cr, d as Dr, a as et } from "./date2-DoKx3vEH.js";
|
|
10
|
+
import { F as Xe, c as $r, a as mt } from "./inventory-core-dart.default-Cvvr8rpN.js";
|
|
11
|
+
import { L as kr } from "./lz-string-Ckbaw1Bu.js";
|
|
12
12
|
import { useI18n as it, useCoreStore as ct, validatePermission as Rr, Permission as qt } from "@feedmepos/mf-common";
|
|
13
|
-
import { u as ut, a as xt, S as Ne } from "./netsuite-
|
|
13
|
+
import { u as ut, a as xt, S as Ne } from "./netsuite-B4O7LRpC.js";
|
|
14
14
|
import { useDialog as dt, useSnackbar as He, components as nt, FmButtonVariant as Ce, useProxiedModel as Nr } from "@feedmepos/ui-library";
|
|
15
15
|
import { F as ze } from "./FmAdminBadge-DjnBAgyv.js";
|
|
16
|
-
import { u as Ve } from "./feature-
|
|
16
|
+
import { u as Ve } from "./feature-DTXvUM9q.js";
|
|
17
17
|
import { E as Ar } from "./empty-placeholder-wf6-BWE8.js";
|
|
18
|
-
import { u as Pr, a as Tr, f as Fr } from "./format-unit-display-
|
|
19
|
-
import { u as
|
|
20
|
-
import { _ as qr, a as Er, b as Vr } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
18
|
+
import { u as Pr, a as Tr, f as Fr } from "./format-unit-display-BASnDwRJ.js";
|
|
19
|
+
import { u as We, _ as Ir } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-DxElZDE3.js";
|
|
20
|
+
import { _ as qr, a as Er, b as Vr } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-B8Jp-237.js";
|
|
21
21
|
import { u as Lr, R as Et } from "./usePromise-CbVUCxhj.js";
|
|
22
|
-
import { c as Mr } from "./index-
|
|
23
|
-
import { i as Ur } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
22
|
+
import { c as Mr } from "./index-Db7jD-CU.js";
|
|
23
|
+
import { i as Ur } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BTwfJTx3.js";
|
|
24
24
|
import { F as Vt } from "./form-mode.enum-BKiNVH6A.js";
|
|
25
|
-
import { u as jr } from "./supplier-
|
|
26
|
-
import { u as Br } from "./surcharge-
|
|
27
|
-
import { d as Kt } from "./defineDeepModel-
|
|
28
|
-
import { u as zr } from "./vue-i18n-
|
|
25
|
+
import { u as jr } from "./supplier-Qlox4B8s.js";
|
|
26
|
+
import { u as Br } from "./surcharge-CsAxFX-L.js";
|
|
27
|
+
import { d as Kt } from "./defineDeepModel-Dt72PPYN.js";
|
|
28
|
+
import { u as zr } from "./vue-i18n-BqX2td3b.js";
|
|
29
29
|
function Ht(p, r) {
|
|
30
30
|
return r.reduce(
|
|
31
31
|
(l, c) => {
|
|
@@ -138,7 +138,7 @@ ${C}
|
|
|
138
138
|
return alert("Failed to render print template. Please try recreating the template."), null;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const Wr = { class: "w-[95vw] h-[95vh] bg-white rounded-lg flex flex-col shadow-2xl overflow-hidden" }, Gr = { class: "flex justify-between items-center px-16 py-3 border-b border-gray-200 bg-gray-50" }, Yr = { class: "flex items-center gap-2.5" }, Qr = {
|
|
142
142
|
key: 1,
|
|
143
143
|
class: "text-xs text-gray-100 bg-gray-500 px-2 py-0.5 rounded font-medium"
|
|
144
144
|
}, Jr = { class: "flex-1 overflow-auto bg-gray-100" }, gl = /* @__PURE__ */ Oe({
|
|
@@ -151,7 +151,7 @@ const Gr = { class: "w-[95vw] h-[95vh] bg-white rounded-lg flex flex-col shadow-
|
|
|
151
151
|
},
|
|
152
152
|
emits: ["update:modelValue"],
|
|
153
153
|
setup(p, { emit: r }) {
|
|
154
|
-
const s = p, l = r, c =
|
|
154
|
+
const s = p, l = r, c = G(null);
|
|
155
155
|
function n() {
|
|
156
156
|
l("update:modelValue", !1);
|
|
157
157
|
}
|
|
@@ -244,8 +244,8 @@ const Gr = { class: "w-[95vw] h-[95vh] bg-white rounded-lg flex flex-col shadow-
|
|
|
244
244
|
class: "fixed inset-0 z-[9999] bg-black/50 flex justify-center items-center",
|
|
245
245
|
onClick: tr(n, ["self"])
|
|
246
246
|
}, [
|
|
247
|
-
e("div",
|
|
248
|
-
e("div",
|
|
247
|
+
e("div", Wr, [
|
|
248
|
+
e("div", Gr, [
|
|
249
249
|
e("div", Yr, [
|
|
250
250
|
b[0] || (b[0] = e("span", { class: "text-base font-semibold text-gray-700" }, "Print Preview", -1)),
|
|
251
251
|
a.templateName ? (i(), v("span", {
|
|
@@ -294,7 +294,7 @@ const Gr = { class: "w-[95vw] h-[95vh] bg-white rounded-lg flex flex-col shadow-
|
|
|
294
294
|
return await r.post(n, { shipmentIds: l });
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
|
-
}),
|
|
297
|
+
}), Wt = {
|
|
298
298
|
[q.enum.confirmDraft]: {
|
|
299
299
|
primaryActions: {
|
|
300
300
|
text: "Confirm draft",
|
|
@@ -382,7 +382,7 @@ const Gr = { class: "w-[95vw] h-[95vh] bg-white rounded-lg flex flex-col shadow-
|
|
|
382
382
|
}, Zr = { class: "p-4" }, es = {
|
|
383
383
|
key: 0,
|
|
384
384
|
class: "fm-typo-en-body-md-400 mb-3"
|
|
385
|
-
}, ts = { class: "fm-typo-en-body-md-400" },
|
|
385
|
+
}, ts = { class: "fm-typo-en-body-md-400" }, Gt = /* @__PURE__ */ Oe({
|
|
386
386
|
__name: "RejectDraftForm",
|
|
387
387
|
props: {
|
|
388
388
|
message: {},
|
|
@@ -390,7 +390,7 @@ const Gr = { class: "w-[95vw] h-[95vh] bg-white rounded-lg flex flex-col shadow-
|
|
|
390
390
|
onChange: { type: Function }
|
|
391
391
|
},
|
|
392
392
|
setup(p) {
|
|
393
|
-
const r = p, { t: s } = it(), l =
|
|
393
|
+
const r = p, { t: s } = it(), l = G("");
|
|
394
394
|
Ke(l, (n) => {
|
|
395
395
|
var f;
|
|
396
396
|
(f = r.onChange) == null || f.call(r, n ?? "");
|
|
@@ -444,7 +444,7 @@ function bt(p, r, s) {
|
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
function Yt() {
|
|
447
|
-
const p = Te(), r =
|
|
447
|
+
const p = Te(), r = We(), s = Ve();
|
|
448
448
|
async function l(n, f) {
|
|
449
449
|
const t = p.currentLocationDBName;
|
|
450
450
|
return n.doc.supplier.internal && n.operation === q.enum.confirmDraft && (n.operation = q.enum.submitRequest), await r.processPurchaseOrder(n, f || t);
|
|
@@ -567,9 +567,9 @@ function Qt() {
|
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
569
|
var ht = /* @__PURE__ */ ((p) => (p.RECEIVE_REQUEST = "receive/request", p.APPROVAL = "approval", p))(ht || {});
|
|
570
|
-
const Qe =
|
|
570
|
+
const Qe = G(), ft = G();
|
|
571
571
|
function _l(p, r) {
|
|
572
|
-
const s = dt(), l = Te(), c = Ve(), n = Pr(), f = Tr(), t =
|
|
572
|
+
const s = dt(), l = Te(), c = Ve(), n = Pr(), f = Tr(), t = G(!1), a = He(), b = We(), y = Xr(), x = G(new Array()), _ = G(new Array()), C = G(
|
|
573
573
|
r != null && r.startDate && (r != null && r.endDate) ? r : Ur()
|
|
574
574
|
), h = Z(() => {
|
|
575
575
|
const F = new Date(C.value.startDate), I = new Date(C.value.endDate);
|
|
@@ -577,7 +577,7 @@ function _l(p, r) {
|
|
|
577
577
|
start: Cr(F).toISOString(),
|
|
578
578
|
end: Dr(I).toISOString()
|
|
579
579
|
};
|
|
580
|
-
}), U =
|
|
580
|
+
}), U = G(new Array()), R = xr(), j = G(null);
|
|
581
581
|
async function O(F) {
|
|
582
582
|
function I(w) {
|
|
583
583
|
const g = {
|
|
@@ -686,8 +686,8 @@ function _l(p, r) {
|
|
|
686
686
|
}
|
|
687
687
|
await P();
|
|
688
688
|
});
|
|
689
|
-
const S =
|
|
690
|
-
async function
|
|
689
|
+
const S = G(), T = G(Math.random().toString());
|
|
690
|
+
async function W(F, I) {
|
|
691
691
|
const ee = Math.random().toString();
|
|
692
692
|
T.value = ee, I ?? (I = U.value.computeFirst(
|
|
693
693
|
(H) => H.purchaseOrderId === F._id ? H : null
|
|
@@ -757,7 +757,7 @@ function _l(p, r) {
|
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
759
|
async function ye(F, I, ee) {
|
|
760
|
-
const w =
|
|
760
|
+
const w = Wt[I];
|
|
761
761
|
if (!w) {
|
|
762
762
|
a.open({
|
|
763
763
|
title: "Something went wrong",
|
|
@@ -773,7 +773,7 @@ function _l(p, r) {
|
|
|
773
773
|
title: V.title,
|
|
774
774
|
message: V.message,
|
|
775
775
|
primaryActions: V.primaryActions,
|
|
776
|
-
contentComponent:
|
|
776
|
+
contentComponent: Gt,
|
|
777
777
|
contentComponentProps: {
|
|
778
778
|
message: V.message,
|
|
779
779
|
onChange: (we) => Re = we
|
|
@@ -833,7 +833,7 @@ function _l(p, r) {
|
|
|
833
833
|
promptCreateTransferDialog: O,
|
|
834
834
|
promptUpdateTransferDialog: k,
|
|
835
835
|
transferDetailsProps: S,
|
|
836
|
-
promptShowTransferDetails:
|
|
836
|
+
promptShowTransferDetails: W,
|
|
837
837
|
submitAction: ye,
|
|
838
838
|
xilnexImportDialogProps: ft,
|
|
839
839
|
promptUploadTransferDialog: he
|
|
@@ -1000,7 +1000,7 @@ function Jt() {
|
|
|
1000
1000
|
};
|
|
1001
1001
|
}
|
|
1002
1002
|
function Xt() {
|
|
1003
|
-
const p = ct(), r =
|
|
1003
|
+
const p = ct(), r = G(!1);
|
|
1004
1004
|
return Ke(() => p.sessionUser.value, async () => {
|
|
1005
1005
|
try {
|
|
1006
1006
|
const l = await Rr({
|
|
@@ -1081,7 +1081,7 @@ function xl(p, r, s) {
|
|
|
1081
1081
|
return Object.values(q.enum).includes(N);
|
|
1082
1082
|
}
|
|
1083
1083
|
async function C(N, P, $) {
|
|
1084
|
-
var T,
|
|
1084
|
+
var T, W, Q, ye, he, F;
|
|
1085
1085
|
const S = Bt(P);
|
|
1086
1086
|
if (N === ue.Print || N === ue.PrintCustom) {
|
|
1087
1087
|
const I = ($ == null ? void 0 : $.toInventoryLocation) ?? l.currentLocation;
|
|
@@ -1089,7 +1089,7 @@ function xl(p, r, s) {
|
|
|
1089
1089
|
const w = l.locationRestaurantFromCore(I.doc._id);
|
|
1090
1090
|
w !== null && (I.doc = w);
|
|
1091
1091
|
}
|
|
1092
|
-
((T = $ == null ? void 0 : $.netSuite) != null && T.refNo || (
|
|
1092
|
+
((T = $ == null ? void 0 : $.netSuite) != null && T.refNo || (W = S.netSuite) != null && W.refNo) && (S.ref = [((Q = $ == null ? void 0 : $.netSuite) == null ? void 0 : Q.refNo) || ((ye = S.netSuite) == null ? void 0 : ye.refNo)].filter((w) => w).join(" "));
|
|
1093
1093
|
const ee = {
|
|
1094
1094
|
po: S,
|
|
1095
1095
|
currentLocation: I,
|
|
@@ -1190,7 +1190,7 @@ function xl(p, r, s) {
|
|
|
1190
1190
|
accessorKey: "status",
|
|
1191
1191
|
header: () => t("inventory.transfer.table.status"),
|
|
1192
1192
|
cell($) {
|
|
1193
|
-
const S = $.getValue(), T = at($.row.original), { partial:
|
|
1193
|
+
const S = $.getValue(), T = at($.row.original), { partial: W, over: Q } = vt(T), ye = bt(S ?? "", W, Q);
|
|
1194
1194
|
let he = t(`inventory.transfer.status.${ye}`), F = `${S ?? ""}`.toLocaleLowerCase("en-us");
|
|
1195
1195
|
ye === ae.enum.CLOSE && (he = `${t(`inventory.transfer.status.${ae.enum.COMPLETE}`)}`), ye === "PARTIAL_RECEIVED" && F === ae.enum.PROCESSING.toLocaleLowerCase("en-us") && (F = ae.enum.RECEIVING.toLocaleLowerCase("en-us"));
|
|
1196
1196
|
let I = null;
|
|
@@ -1253,7 +1253,7 @@ function xl(p, r, s) {
|
|
|
1253
1253
|
id: "action",
|
|
1254
1254
|
cell($) {
|
|
1255
1255
|
const S = $.row.original, T = x(S);
|
|
1256
|
-
return Ft(T, (
|
|
1256
|
+
return Ft(T, (W) => C(W, S));
|
|
1257
1257
|
},
|
|
1258
1258
|
enableSorting: !1,
|
|
1259
1259
|
size: 40,
|
|
@@ -1273,9 +1273,9 @@ function xl(p, r, s) {
|
|
|
1273
1273
|
},
|
|
1274
1274
|
header: () => "NetSuite Order (ID)",
|
|
1275
1275
|
cell(S) {
|
|
1276
|
-
var
|
|
1276
|
+
var W;
|
|
1277
1277
|
const T = S.row.original;
|
|
1278
|
-
return (
|
|
1278
|
+
return (W = T.netSuite) != null && W.id ? `${T.netSuite.refNo} (${T.netSuite.id})` : "N/A";
|
|
1279
1279
|
},
|
|
1280
1280
|
enableSorting: !1,
|
|
1281
1281
|
size: 200,
|
|
@@ -1287,13 +1287,13 @@ function xl(p, r, s) {
|
|
|
1287
1287
|
{
|
|
1288
1288
|
id: "netsuiteTransactionNumber",
|
|
1289
1289
|
accessorFn: (S) => {
|
|
1290
|
-
var T,
|
|
1291
|
-
return ((
|
|
1290
|
+
var T, W;
|
|
1291
|
+
return ((W = (T = S.netSuite) == null ? void 0 : T.additionalInfo) == null ? void 0 : W.transactionnumber) ?? "N/A";
|
|
1292
1292
|
},
|
|
1293
1293
|
header: () => "NetSuite Transaction No.",
|
|
1294
1294
|
cell(S) {
|
|
1295
|
-
var
|
|
1296
|
-
return ((Q = (
|
|
1295
|
+
var W, Q;
|
|
1296
|
+
return ((Q = (W = S.row.original.netSuite) == null ? void 0 : W.additionalInfo) == null ? void 0 : Q.transactionnumber) ?? "N/A";
|
|
1297
1297
|
},
|
|
1298
1298
|
enableSorting: !1,
|
|
1299
1299
|
size: 200,
|
|
@@ -1363,7 +1363,7 @@ function xl(p, r, s) {
|
|
|
1363
1363
|
label: "N/A",
|
|
1364
1364
|
compact: !0
|
|
1365
1365
|
});
|
|
1366
|
-
const
|
|
1366
|
+
const W = at(S.purchaseOrder), { partial: Q, over: ye } = vt(W), he = bt(T ?? "", Q, ye);
|
|
1367
1367
|
let F = t(`inventory.transfer.status.${he}`), I = `${T ?? ""}`.toLocaleLowerCase("en-us");
|
|
1368
1368
|
return he === ae.enum.CLOSE && (F = `${t(`inventory.transfer.status.${ae.enum.COMPLETE}`)}`), he === "PARTIAL_RECEIVED" && I === ae.enum.PROCESSING.toLocaleLowerCase("en-us") && (I = ae.enum.RECEIVING.toLocaleLowerCase("en-us")), S.rejectedAt && (F = t("inventory.transfer.status.REJECT"), I = ae.enum.REJECT.toLocaleLowerCase("en-us")), z(
|
|
1369
1369
|
"div",
|
|
@@ -1388,12 +1388,12 @@ function xl(p, r, s) {
|
|
|
1388
1388
|
{
|
|
1389
1389
|
id: "action",
|
|
1390
1390
|
cell($) {
|
|
1391
|
-
const S = $.row.original,
|
|
1391
|
+
const S = $.row.original, W = (S.purchaseOrder ? x(S.purchaseOrder) : []).map((Q) => Q.value === ue.Print ? {
|
|
1392
1392
|
...Q,
|
|
1393
1393
|
translationKey: "inventory.transfer.receiveRequest.details.printDeliveryOrder"
|
|
1394
1394
|
} : Q);
|
|
1395
1395
|
return Ft(
|
|
1396
|
-
|
|
1396
|
+
W,
|
|
1397
1397
|
(Q) => S.purchaseOrder ? C(Q, S.purchaseOrder, S) : void 0
|
|
1398
1398
|
);
|
|
1399
1399
|
},
|
|
@@ -1415,9 +1415,9 @@ function xl(p, r, s) {
|
|
|
1415
1415
|
},
|
|
1416
1416
|
header: () => "NetSuite Order (ID)",
|
|
1417
1417
|
cell(S) {
|
|
1418
|
-
var
|
|
1418
|
+
var W;
|
|
1419
1419
|
const T = S.row.original;
|
|
1420
|
-
return (
|
|
1420
|
+
return (W = T.netSuite) != null && W.id ? `${T.netSuite.refNo} (${T.netSuite.id})` : "N/A";
|
|
1421
1421
|
},
|
|
1422
1422
|
enableSorting: !1,
|
|
1423
1423
|
size: 200,
|
|
@@ -1429,13 +1429,13 @@ function xl(p, r, s) {
|
|
|
1429
1429
|
{
|
|
1430
1430
|
id: "netsuiteTransactionNumber",
|
|
1431
1431
|
accessorFn: (S) => {
|
|
1432
|
-
var T,
|
|
1433
|
-
return ((
|
|
1432
|
+
var T, W;
|
|
1433
|
+
return ((W = (T = S.netSuite) == null ? void 0 : T.additionalInfo) == null ? void 0 : W.transactionnumber) ?? "N/A";
|
|
1434
1434
|
},
|
|
1435
1435
|
header: () => "NetSuite Transaction No.",
|
|
1436
1436
|
cell(S) {
|
|
1437
|
-
var
|
|
1438
|
-
return ((Q = (
|
|
1437
|
+
var W, Q;
|
|
1438
|
+
return ((Q = (W = S.row.original.netSuite) == null ? void 0 : W.additionalInfo) == null ? void 0 : Q.transactionnumber) ?? "N/A";
|
|
1439
1439
|
},
|
|
1440
1440
|
enableSorting: !1,
|
|
1441
1441
|
size: 200,
|
|
@@ -1449,7 +1449,7 @@ function xl(p, r, s) {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
return N;
|
|
1451
1451
|
}
|
|
1452
|
-
const R = Z(() => p === "receive/request" ? h() : U()), j =
|
|
1452
|
+
const R = Z(() => p === "receive/request" ? h() : U()), j = G(!1), O = G(""), k = G(""), Y = G(!1);
|
|
1453
1453
|
return {
|
|
1454
1454
|
columnDefs: R,
|
|
1455
1455
|
showCustomPrintDialog: j,
|
|
@@ -1470,7 +1470,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1470
1470
|
id: "",
|
|
1471
1471
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1472
1472
|
items: []
|
|
1473
|
-
}), c =
|
|
1473
|
+
}), c = G(), n = r;
|
|
1474
1474
|
jt(() => {
|
|
1475
1475
|
s.purchaseOrder && (l.items = s.purchaseOrder.items.map((t) => ({
|
|
1476
1476
|
id: t.id,
|
|
@@ -1672,7 +1672,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1672
1672
|
scope: {}
|
|
1673
1673
|
},
|
|
1674
1674
|
setup(p) {
|
|
1675
|
-
const r = p, s = ut(), l = He(), c = dt(), n =
|
|
1675
|
+
const r = p, s = ut(), l = He(), c = dt(), n = G(!1);
|
|
1676
1676
|
Z(() => {
|
|
1677
1677
|
var y, x, _, C;
|
|
1678
1678
|
let t = !0;
|
|
@@ -1763,7 +1763,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1763
1763
|
scope: {}
|
|
1764
1764
|
},
|
|
1765
1765
|
setup(p) {
|
|
1766
|
-
const r = p, s = ut(), l =
|
|
1766
|
+
const r = p, s = ut(), l = We(), c = G(r.poRequest);
|
|
1767
1767
|
jt(async () => {
|
|
1768
1768
|
var a;
|
|
1769
1769
|
if (!r.poRequest && ((a = r.purchaseOrder) != null && a._id)) {
|
|
@@ -1872,14 +1872,14 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1872
1872
|
}, Ls = { class: "fm-typo-en-body-lg-600 mb-4 flex items-center gap-2" }, Ms = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg overflow-y-auto" }, Us = { class: "w-full" }, js = {
|
|
1873
1873
|
class: "p-3 fm-typo-en-body-sm-600",
|
|
1874
1874
|
style: { "min-width": "130px" }
|
|
1875
|
-
}, Bs = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, zs = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ks = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Hs = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" },
|
|
1875
|
+
}, Bs = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, zs = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ks = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Hs = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ws = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Gs = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ys = { class: "p-3 fm-typo-en-body-sm-600" }, Qs = { key: 2 }, Js = { key: 1 }, Xs = /* @__PURE__ */ Oe({
|
|
1876
1876
|
__name: "NetSuiteLatestInfo",
|
|
1877
1877
|
props: {
|
|
1878
1878
|
netsuiteId: {},
|
|
1879
1879
|
purchaseOrderId: {}
|
|
1880
1880
|
},
|
|
1881
1881
|
setup(p) {
|
|
1882
|
-
const r = p, s = xt(), l =
|
|
1882
|
+
const r = p, s = xt(), l = G(!1), c = Te(), n = G(!0), f = G(!1), t = G(!1), a = G(!1), b = G(null), y = G([]);
|
|
1883
1883
|
async function x() {
|
|
1884
1884
|
if (!b.value) {
|
|
1885
1885
|
l.value = !0;
|
|
@@ -2019,8 +2019,8 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2019
2019
|
class: Pe(`p-3 fm-typo-en-body-sm-600 ${C(Number(P.type) - 1)}`)
|
|
2020
2020
|
}, d(m(Ne)[Number(P.type) - 1]), 3),
|
|
2021
2021
|
e("td", Hs, d(P.lineid || ""), 1),
|
|
2022
|
-
e("td",
|
|
2023
|
-
e("td",
|
|
2022
|
+
e("td", Ws, d(P._fieldname), 1),
|
|
2023
|
+
e("td", Gs, d(P.oldvalue || ""), 1),
|
|
2024
2024
|
e("td", Ys, d(P.newvalue || ""), 1)
|
|
2025
2025
|
]))), 128))
|
|
2026
2026
|
])
|
|
@@ -2162,14 +2162,14 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2162
2162
|
emits: ["submitted"],
|
|
2163
2163
|
setup(p, { emit: r }) {
|
|
2164
2164
|
zr();
|
|
2165
|
-
const s = Ve(), l = He(), c =
|
|
2165
|
+
const s = Ve(), l = He(), c = G(!1), n = p, f = r, t = Kt("deliveryOrder"), a = We(), b = Z(
|
|
2166
2166
|
() => {
|
|
2167
2167
|
var j;
|
|
2168
2168
|
return ((j = n.purchaseOrder.deliveryFullfillment) == null ? void 0 : j.findIndex(
|
|
2169
2169
|
(O) => n.deliveryOrder.fullfillmentId && O.id === n.deliveryOrder.fullfillmentId
|
|
2170
2170
|
)) ?? -1;
|
|
2171
2171
|
}
|
|
2172
|
-
), y = s.enablePurchaseOrderReceiveWithCustomCost, x = s.enablePortalDeliveryOrderWrite, _ =
|
|
2172
|
+
), y = s.enablePurchaseOrderReceiveWithCustomCost, x = s.enablePortalDeliveryOrderWrite, _ = G({}), C = Z(() => n.purchaseOrder.items.map((j, O) => Z({
|
|
2173
2173
|
get: () => {
|
|
2174
2174
|
var Y;
|
|
2175
2175
|
const k = (Y = t.received[O]) == null ? void 0 : Y.cost;
|
|
@@ -2264,7 +2264,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2264
2264
|
e("div", co, [
|
|
2265
2265
|
O[4] || (O[4] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Received items", -1)),
|
|
2266
2266
|
(i(!0), v(fe, null, ke(n.deliveryOrder.received, (S, T) => {
|
|
2267
|
-
var
|
|
2267
|
+
var W;
|
|
2268
2268
|
return i(), v("div", { key: T }, [
|
|
2269
2269
|
e("div", uo, [
|
|
2270
2270
|
e("div", mo, [
|
|
@@ -2277,7 +2277,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2277
2277
|
modelValue: h.value[T].value,
|
|
2278
2278
|
"onUpdate:modelValue": (Q) => h.value[T].value = Q,
|
|
2279
2279
|
min: 0,
|
|
2280
|
-
"append-text": ((
|
|
2280
|
+
"append-text": ((W = S.measurement) == null ? void 0 : W.abbrev) ?? S.sku.unit.abbrev
|
|
2281
2281
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "append-text"]),
|
|
2282
2282
|
e("div", vo, d(`${S.cost ? `${m(Je)(S.cost)}` : ""}`), 1),
|
|
2283
2283
|
m(y) ? (i(), v("div", bo, [
|
|
@@ -2346,7 +2346,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2346
2346
|
}, Ko = {
|
|
2347
2347
|
key: 0,
|
|
2348
2348
|
class: "border-b border-fm-color-stroke-secondary"
|
|
2349
|
-
}, Ho = { class: "flex flex-col gap-4" },
|
|
2349
|
+
}, Ho = { class: "flex flex-col gap-4" }, Wo = { class: "flex flex-col gap-4" }, Go = { class: "flex flex-col gap-4" }, Yo = { class: "flex flex-col gap-4 fm-typo-en-body-lg-600" }, Qo = /* @__PURE__ */ Oe({
|
|
2350
2350
|
__name: "CreateForm",
|
|
2351
2351
|
props: {
|
|
2352
2352
|
purchaseOrder: {},
|
|
@@ -2355,7 +2355,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2355
2355
|
emits: ["submitted"],
|
|
2356
2356
|
setup(p, { emit: r }) {
|
|
2357
2357
|
var F, I, ee;
|
|
2358
|
-
const { t: s } = it(), l =
|
|
2358
|
+
const { t: s } = it(), l = G(!1), c = ct(), n = p, f = r, t = Kt("", {
|
|
2359
2359
|
default: {
|
|
2360
2360
|
deliveryOrderNumber: "",
|
|
2361
2361
|
remark: "",
|
|
@@ -2370,7 +2370,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2370
2370
|
},
|
|
2371
2371
|
createdAt: ""
|
|
2372
2372
|
}
|
|
2373
|
-
}), a =
|
|
2373
|
+
}), a = We(), b = dt(), y = Ve(), x = ((ee = n.purchaseOrder) == null ? void 0 : ee.supplier.internal) != null, _ = x && y.enablePOSTransferRequireFulfillment, C = y.enablePortalDeliveryOrderWrite && (n.purchaseOrder.status === ae.Enum.RECEIVING || n.purchaseOrder.status === ae.Enum.COMPLETE) && (x ? !_ : !0), h = y.enablePurchaseOrderReceiveWithCustomCost, U = y.enableBackdateReceive, R = G({}), j = He(), O = Z({
|
|
2374
2374
|
get() {
|
|
2375
2375
|
if (!t.createdAt) return "";
|
|
2376
2376
|
const w = new Date(t.createdAt), g = w.getFullYear(), V = String(w.getMonth() + 1).padStart(2, "0"), H = String(w.getDate()).padStart(2, "0");
|
|
@@ -2426,7 +2426,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2426
2426
|
t.received[g].amount = ot(V, 2);
|
|
2427
2427
|
}
|
|
2428
2428
|
})));
|
|
2429
|
-
function
|
|
2429
|
+
function W(w) {
|
|
2430
2430
|
const g = !R.value[w];
|
|
2431
2431
|
if (R.value[w] = g, g) {
|
|
2432
2432
|
const V = n.purchaseOrder.items[w];
|
|
@@ -2489,7 +2489,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2489
2489
|
});
|
|
2490
2490
|
}
|
|
2491
2491
|
return (w, g) => {
|
|
2492
|
-
const V = X("FmButton"), H = X("FmDatePicker"), ce = X("FmTimePicker"), Re = X("FmIcon"), we = X("FmStepperField"),
|
|
2492
|
+
const V = X("FmButton"), H = X("FmDatePicker"), ce = X("FmTimePicker"), Re = X("FmIcon"), we = X("FmStepperField"), Ge = X("FmSwitch"), o = X("FmTextField"), u = X("FmDialog");
|
|
2493
2493
|
return i(), ie(u, {
|
|
2494
2494
|
modelValue: l.value,
|
|
2495
2495
|
"onUpdate:modelValue": g[4] || (g[4] = (E) => l.value = E),
|
|
@@ -2588,9 +2588,9 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2588
2588
|
"append-text": ((D = A.measurement) == null ? void 0 : D.abbrev) ?? A.sku.unit.abbrev
|
|
2589
2589
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "helper-text", "append-text"]),
|
|
2590
2590
|
m(h) ? (i(), v("div", zo, [
|
|
2591
|
-
L(
|
|
2591
|
+
L(Ge, {
|
|
2592
2592
|
"model-value": R.value[K],
|
|
2593
|
-
"onUpdate:modelValue": (te) =>
|
|
2593
|
+
"onUpdate:modelValue": (te) => W(K),
|
|
2594
2594
|
size: "sm"
|
|
2595
2595
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
2596
2596
|
g[7] || (g[7] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Override cost ", -1))
|
|
@@ -2614,7 +2614,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2614
2614
|
]),
|
|
2615
2615
|
e("div", Ho, [
|
|
2616
2616
|
g[9] || (g[9] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Delivery order no.", -1)),
|
|
2617
|
-
e("div",
|
|
2617
|
+
e("div", Wo, [
|
|
2618
2618
|
L(o, {
|
|
2619
2619
|
modelValue: m(t).deliveryOrderNumber,
|
|
2620
2620
|
"onUpdate:modelValue": g[2] || (g[2] = (A) => m(t).deliveryOrderNumber = A),
|
|
@@ -2622,7 +2622,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2622
2622
|
}, null, 8, ["modelValue"])
|
|
2623
2623
|
])
|
|
2624
2624
|
]),
|
|
2625
|
-
e("div",
|
|
2625
|
+
e("div", Go, [
|
|
2626
2626
|
g[10] || (g[10] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Remark", -1)),
|
|
2627
2627
|
e("div", Yo, [
|
|
2628
2628
|
L(o, {
|
|
@@ -2654,7 +2654,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2654
2654
|
netsuiteId: {}
|
|
2655
2655
|
},
|
|
2656
2656
|
setup(p) {
|
|
2657
|
-
const r = p, s = xt(), l =
|
|
2657
|
+
const r = p, s = xt(), l = G(!1), c = G(!1), n = G(!1), f = G([]);
|
|
2658
2658
|
async function t() {
|
|
2659
2659
|
if (!(f.value.length > 0))
|
|
2660
2660
|
try {
|
|
@@ -2807,7 +2807,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2807
2807
|
}, Bn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, zn = { class: "fm-typo-en-body-lg-600" }, Kn = {
|
|
2808
2808
|
key: 2,
|
|
2809
2809
|
class: "flex flex-col gap-4"
|
|
2810
|
-
}, Hn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
2810
|
+
}, Hn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Wn = { class: "fm-typo-en-body-lg-600" }, Gn = {
|
|
2811
2811
|
key: 3,
|
|
2812
2812
|
class: "flex flex-col gap-4"
|
|
2813
2813
|
}, Yn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qn = { class: "fm-typo-en-body-lg-600" }, Jn = {
|
|
@@ -2899,7 +2899,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2899
2899
|
}
|
|
2900
2900
|
}
|
|
2901
2901
|
return u;
|
|
2902
|
-
}), j =
|
|
2902
|
+
}), j = G(!1), O = G(""), k = G(!0), Y = We(), N = Lr(Y.getWorkflowConfig), P = Yt(), $ = [
|
|
2903
2903
|
q.enum.receiveStock,
|
|
2904
2904
|
q.enum.processRequest,
|
|
2905
2905
|
q.enum.closeRequest
|
|
@@ -2936,7 +2936,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2936
2936
|
return s.scope === "approval" && (B = B.filter((J) => J !== q.enum.completeReceive)), b.value || (B = B.filter(
|
|
2937
2937
|
(J) => J !== q.enum.approveDraft && J !== q.enum.rejectDraft
|
|
2938
2938
|
)), B;
|
|
2939
|
-
}), T = Nr(s, "show"),
|
|
2939
|
+
}), T = Nr(s, "show"), W = Z(() => [
|
|
2940
2940
|
{
|
|
2941
2941
|
label: h("inventory.transfer.receiveRequest.details.overview"),
|
|
2942
2942
|
value: "overview"
|
|
@@ -2945,11 +2945,11 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2945
2945
|
label: h("inventory.transfer.receiveRequest.details.deliveryHistory"),
|
|
2946
2946
|
value: "deliveryHistory"
|
|
2947
2947
|
}
|
|
2948
|
-
]), Q = W
|
|
2948
|
+
]), Q = G(W.value[0]);
|
|
2949
2949
|
Ke(
|
|
2950
2950
|
() => s.show,
|
|
2951
2951
|
(o) => {
|
|
2952
|
-
o && (Q.value =
|
|
2952
|
+
o && (Q.value = W.value[0]);
|
|
2953
2953
|
}
|
|
2954
2954
|
);
|
|
2955
2955
|
function ye(o) {
|
|
@@ -2971,7 +2971,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2971
2971
|
secondaryActions: { text: "No", close: !1 }
|
|
2972
2972
|
};
|
|
2973
2973
|
let te = u.rejectReason ?? "";
|
|
2974
|
-
E === q.enum.rejectDraft && (D.contentComponent =
|
|
2974
|
+
E === q.enum.rejectDraft && (D.contentComponent = Gt, D.contentComponentProps = {
|
|
2975
2975
|
message: A.message,
|
|
2976
2976
|
onChange: (ne) => {
|
|
2977
2977
|
te = ne ?? "";
|
|
@@ -3046,7 +3046,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
3046
3046
|
var K, B, J, D;
|
|
3047
3047
|
if (o === q.enum.receiveStock)
|
|
3048
3048
|
return;
|
|
3049
|
-
const u =
|
|
3049
|
+
const u = Wt[o];
|
|
3050
3050
|
if (!u) {
|
|
3051
3051
|
n.open({
|
|
3052
3052
|
title: "Something went wrong",
|
|
@@ -3398,7 +3398,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
3398
3398
|
var E, A;
|
|
3399
3399
|
const u = ce.value;
|
|
3400
3400
|
return ((E = s.purchaseOrder) == null ? void 0 : E.version) === Ue.enum[2] ? u.get(o.id) : u.get((A = o.sku) == null ? void 0 : A.code);
|
|
3401
|
-
},
|
|
3401
|
+
}, Ge = Z(() => {
|
|
3402
3402
|
const o = s.purchaseOrder;
|
|
3403
3403
|
if (!o) return "";
|
|
3404
3404
|
const u = o.actionChangelogs ?? [], E = u.length ? u[u.length - 1] : null;
|
|
@@ -3431,7 +3431,7 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
3431
3431
|
})
|
|
3432
3432
|
]),
|
|
3433
3433
|
L(A, {
|
|
3434
|
-
items:
|
|
3434
|
+
items: W.value,
|
|
3435
3435
|
modelValue: Q.value,
|
|
3436
3436
|
"onUpdate:modelValue": u[1] || (u[1] = (ve) => Q.value = ve)
|
|
3437
3437
|
}, null, 8, ["items", "modelValue"]),
|
|
@@ -3524,9 +3524,9 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
3524
3524
|
])) : M("", !0),
|
|
3525
3525
|
o.transferTo ? (i(), v("div", Kn, [
|
|
3526
3526
|
e("div", Hn, d(m(h)("inventory.transfer.receiveRequest.details.to")), 1),
|
|
3527
|
-
e("div",
|
|
3527
|
+
e("div", Wn, d(o.transferTo), 1)
|
|
3528
3528
|
])) : M("", !0),
|
|
3529
|
-
(_e = o.purchaseOrder) != null && _e.ref ? (i(), v("div",
|
|
3529
|
+
(_e = o.purchaseOrder) != null && _e.ref ? (i(), v("div", Gn, [
|
|
3530
3530
|
e("div", Yn, d(m(h)("inventory.transfer.receiveRequest.details.reference")), 1),
|
|
3531
3531
|
e("div", Qn, d(o.purchaseOrder.ref), 1)
|
|
3532
3532
|
])) : M("", !0),
|
|
@@ -3534,9 +3534,9 @@ const os = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
3534
3534
|
e("div", Xn, d(m(h)("inventory.transfer.receiveRequest.details.remark")), 1),
|
|
3535
3535
|
e("div", Zn, d(o.purchaseOrder.remark), 1)
|
|
3536
3536
|
])) : M("", !0),
|
|
3537
|
-
((Be = o.purchaseOrder) == null ? void 0 : Be.status) === m(ae).enum.DRAFT &&
|
|
3537
|
+
((Be = o.purchaseOrder) == null ? void 0 : Be.status) === m(ae).enum.DRAFT && Ge.value ? (i(), v("div", ea, [
|
|
3538
3538
|
e("div", ta, d(m(h)("inventory.transfer.receiveRequest.details.rejectionReason")), 1),
|
|
3539
|
-
e("div", ra, d(
|
|
3539
|
+
e("div", ra, d(Ge.value !== "" ? Ge.value : "-"), 1)
|
|
3540
3540
|
])) : M("", !0)
|
|
3541
3541
|
])
|
|
3542
3542
|
];
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { defineComponent as ae, onMounted as Te, computed as B, ref as H, watch as Fe, inject as ot, resolveComponent as R, openBlock as O, createElementBlock as L, createElementVNode as t, createVNode as b, withCtx as N, renderSlot as Ue, withDirectives as Pe, normalizeClass as le, vModelText as Be, reactive as st, h as Q, toDisplayString as M, unref as e, createCommentVNode as oe, Fragment as pe, normalizeStyle as _e, renderList as Qe, createBlock as ne, mergeProps as Ye, createTextVNode as re, mergeModels as Le, useModel as nt, isRef as He, Teleport as lt, normalizeProps as rt, guardReactiveProps as at } from "vue";
|
|
2
2
|
import { u as it, _ as ut } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-sUxHOj47.js";
|
|
3
3
|
import { useI18n as me } from "@feedmepos/mf-common";
|
|
4
|
-
import { f as dt, t as mt, u as Ne, a as pt } from "./format-unit-display-
|
|
4
|
+
import { f as dt, t as mt, u as Ne, a as pt } from "./format-unit-display-BASnDwRJ.js";
|
|
5
5
|
import { R as Ee } from "./row-action.enum-Co_O4qD9.js";
|
|
6
|
-
import { a as We, s as ct, t as X, u as Ge, v as ft, k as ye } from "./app-
|
|
7
|
-
import { _ as yt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { a as We, s as ct, t as X, u as Ge, v as ft, k as ye } from "./app-DZ_O5S5y.js";
|
|
7
|
+
import { _ as yt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BTwfJTx3.js";
|
|
8
8
|
import { components as ue, useSnackbar as vt, useProxiedModel as Ke, useBreakpoints as bt } from "@feedmepos/ui-library";
|
|
9
9
|
import { defineStore as ht, storeToRefs as ze } from "pinia";
|
|
10
10
|
import { F as de } from "./form-mode.enum-BKiNVH6A.js";
|
|
11
|
-
import { I as gt, a as xt, R as ke, A as we, M as _t } from "./rules-
|
|
12
|
-
import { u as ge, t as je, b as kt, n as wt, a as se, g as be, c as ve, d as Tt } from "./number-
|
|
13
|
-
import { d as Ze } from "./defineDeepModel-
|
|
14
|
-
import { _ as Ft, F as Ct, a as It, b as Mt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { u as he } from "./feature-
|
|
16
|
-
import { u as Je } from "./netsuite-
|
|
17
|
-
import { F as xe } from "./inventory-core-dart.default-
|
|
18
|
-
import { u as St } from "./supplier-
|
|
19
|
-
import { u as Ot } from "./use-ingredient-select-dialog-
|
|
11
|
+
import { I as gt, a as xt, R as ke, A as we, M as _t } from "./rules-BvLBkdfK.js";
|
|
12
|
+
import { u as ge, t as je, b as kt, n as wt, a as se, g as be, c as ve, d as Tt } from "./number-9PlMlR2G.js";
|
|
13
|
+
import { d as Ze } from "./defineDeepModel-Dt72PPYN.js";
|
|
14
|
+
import { _ as Ft, F as Ct, a as It, b as Mt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-B8Jp-237.js";
|
|
15
|
+
import { u as he } from "./feature-DTXvUM9q.js";
|
|
16
|
+
import { u as Je } from "./netsuite-B4O7LRpC.js";
|
|
17
|
+
import { F as xe } from "./inventory-core-dart.default-Cvvr8rpN.js";
|
|
18
|
+
import { u as St } from "./supplier-Qlox4B8s.js";
|
|
19
|
+
import { u as Ot } from "./use-ingredient-select-dialog-BOtDFKQO.js";
|
|
20
20
|
import { F as ee, _ as Xe } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
21
|
-
import { u as $t } from "./use-template-enabled-locations-
|
|
22
|
-
import { u as Dt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-
|
|
23
|
-
import { u as At } from "./purchase-order-template-
|
|
21
|
+
import { u as $t } from "./use-template-enabled-locations-MNNKqChl.js";
|
|
22
|
+
import { u as Dt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-HLHu23Ly.js";
|
|
23
|
+
import { u as At } from "./purchase-order-template-KkhC0FCL.js";
|
|
24
24
|
import { _ as Rt } from "./FmConfirmationButton.vue_vue_type_script_setup_true_lang-DLrMEGFR.js";
|
|
25
|
-
import { f as qt } from "./format-time-from-id-
|
|
26
|
-
import { f as Ut } from "./date2-
|
|
25
|
+
import { f as qt } from "./format-time-from-id-CjML4YH3.js";
|
|
26
|
+
import { f as Ut } from "./date2-DoKx3vEH.js";
|
|
27
27
|
const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, Lt = { class: "flex-1" }, Nt = { class: "flex items-center" }, Et = { class: "flex-1" }, zt = { class: "flex-1" }, jt = /* @__PURE__ */ ae({
|
|
28
28
|
__name: "FmMinMaxInput",
|
|
29
29
|
props: {
|