@feedmepos/mf-inventory-portal 1.6.0-dev.3 → 1.6.0-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-B3v9TpYf.js → App-xiS9XCUg.js} +4 -4
- package/dist/{ApprovalView-CgSWBqGL.js → ApprovalView-Co4xloBe.js} +19 -19
- package/dist/{BindingsDialog-cuVJk-j1.js → BindingsDialog-Ch1xgZ7D.js} +2 -2
- package/dist/{BindingsPicker-BWExdi2i.js → BindingsPicker-BSNOsgIa.js} +2 -2
- package/dist/{BindingsTable-D_ownrD8.js → BindingsTable-CvoKDM69.js} +3 -3
- package/dist/{ClosingDraftView-CH4rRSa8.js → ClosingDraftView-Chy_R-c9.js} +15 -15
- package/dist/{ClosingHistoryView-DyJTTeuN.js → ClosingHistoryView-DQUYXIe5.js} +86 -85
- package/dist/{ClosingTemplateView-CCaWrZM0.js → ClosingTemplateView-yi3O0zya.js} +14 -14
- package/dist/{DefaultView-CkzStvXF.js → DefaultView-w0Bc0QUo.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-DqAr5x53.js → DeliveryOrderPrintPreview-BzO9UcbC.js} +11 -11
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DqWyCa9E.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DYzIZpMo.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CmwbIlrp.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-C1-Z8zpZ.js} +2 -2
- package/dist/{FmMultiselectDialog-CBueAqXa.js → FmMultiselectDialog-8k_CySos.js} +1 -1
- package/dist/{FmMultiselectDialog-BjfL7tS_.js → FmMultiselectDialog-C6MHEYsa.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DsnnH-Eg.js → FmUnitInput.vue_vue_type_script_setup_true_lang-cf1asT1H.js} +5 -5
- package/dist/{ImportView-CdCmecqs.js → ImportView-Z8N8eFi0.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DFFEOf1r.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BabrzvVA.js} +1 -1
- package/dist/{IngredientGroupView-DredICtA.js → IngredientGroupView-CNl676Lh.js} +5 -5
- package/dist/{IngredientsView-NVqf1Uz2.js → IngredientsView-6zB8OUXt.js} +15 -15
- package/dist/{IntegrationExplorerView-acIvemxd.js → IntegrationExplorerView-C27IyImO.js} +5 -5
- package/dist/{IntegrationView-D1WQQ77d.js → IntegrationView-pDisxkqH.js} +13 -13
- package/dist/{InventoryBindingForm-Co-HFgPC.js → InventoryBindingForm-cJUY8472.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-31S9IWT-.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-_mIak9Y4.js} +5 -5
- package/dist/{InventoryBindingSummary-ClGakACk.js → InventoryBindingSummary-DiOokH9o.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DxLGZccU.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CXBvvJc9.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-By84L9BE.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D1JFU868.js} +1 -1
- package/dist/{PublishView-B4KiryRp.js → PublishView-CthOIZV3.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-B3ckpYGo.js → PurchaseOrderPrintPreview-CR8pm2bB.js} +11 -11
- package/dist/{ReceiveRequestView-DB3KxepY.js → ReceiveRequestView-DgqABsfx.js} +26 -26
- package/dist/{RecipeView-ORGkuz7s.js → RecipeView-062Vcx0q.js} +1117 -1104
- package/dist/{SettingsView-CUQSQm5t.js → SettingsView-B36YQEUM.js} +4 -4
- package/dist/{StockView-C5DLGTFB.js → StockView-8orJpsPH.js} +19 -19
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-D4tr-_r3.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bw-GxZr8.js} +1 -1
- package/dist/{SupplierView-CzV2uwQ_.js → SupplierView-CQi9bh5A.js} +12 -12
- package/dist/{SurchargeView-BKpiD5X3.js → SurchargeView-BgxF6xyH.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-h348d7Qr.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BbY1p0bB.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CByUj6Dr.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BiMvxm3x.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DwxqJzCI.js → TransferDetails.vue_vue_type_script_setup_true_lang-DtCPS8FC.js} +122 -122
- package/dist/{TransferTemplateView-BwYxJPuG.js → TransferTemplateView-92Xn4mWr.js} +20 -20
- package/dist/{UnitCostHistoryView-x-D5SPvy.js → UnitCostHistoryView-cTI5jhBt.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-_ikjQCiI.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-bjr08iok.js} +5 -5
- package/dist/{UnitView-BxzrlOf8.js → UnitView-BqXvkdiR.js} +7 -7
- package/dist/{WarehouseView-CF8LFmX6.js → WarehouseView-_2zJPaTf.js} +5 -5
- package/dist/WastageTemplateView-DYW58rtZ.js +2381 -0
- package/dist/{app-RZOZE_aq.js → app-B790gOK1.js} +3456 -3346
- package/dist/app.js +1 -1
- package/dist/{closing-template-DFky3nsj.js → closing-template-0jLV_s0d.js} +1 -1
- package/dist/{date2-Zd8s0WJZ.js → date2-BEmmexd8.js} +1 -1
- package/dist/{dayjs.min-DOheFX-N.js → dayjs.min-e4Xq09pW.js} +20 -20
- package/dist/{decimal-DZV54_-d.js → decimal-Lptt-Wz-.js} +2 -2
- package/dist/{defineDeepModel-BafL7HGh.js → defineDeepModel-emCSlL_h.js} +1 -1
- package/dist/{duplicate-template-CIRGg8u0.js → duplicate-template-CShJdJ8d.js} +1 -1
- package/dist/{feature-DmUfahWi.js → feature-BFFJbkBm.js} +2 -2
- package/dist/{format-time-from-id-Cvs-pvTQ.js → format-time-from-id-Dj-j01eE.js} +1 -1
- package/dist/{format-unit-display-Ct52pQhg.js → format-unit-display-CJw32VBR.js} +12 -12
- package/dist/{import-export.helper-GpHiQgfL.js → import-export.helper-C07viLOs.js} +6 -6
- package/dist/{index-DvS3EsKX.js → index-B0mYVcHF.js} +1 -1
- package/dist/{index-BPWYA9rA.js → index-DJZQrFf7.js} +1 -1
- package/dist/{index-COtZ_830.js → index-TBsXDgch.js} +3 -3
- package/dist/{inventory-core-dart.default-C5GRQNbz.js → inventory-core-dart.default-BieljiaS.js} +1 -1
- package/dist/{lz-string-CgJEBSwK.js → lz-string-Co3f7xQi.js} +1 -1
- package/dist/{netsuite-CFJ5LqxE.js → netsuite-BMQZw2dt.js} +2 -2
- package/dist/{number-CrRJAm--.js → number-Czc4vu4K.js} +3 -3
- package/dist/{predefined-templates-DbVYBwXg.js → predefined-templates-BVHsFJHC.js} +1 -1
- package/dist/{purchase-order-template-D5_LechD.js → purchase-order-template-CMDl8eio.js} +1 -1
- package/dist/{recalculationUtils-CzTUnNuq.js → recalculationUtils-BZoPTIoG.js} +1 -1
- package/dist/{rules-Dt7qmGku.js → rules-DuDYwy_d.js} +2 -2
- package/dist/{stock-DTT_yVJQ.js → stock-DkLzKOLk.js} +1 -1
- package/dist/{supplier-BhoskXN1.js → supplier-Dk3xHNeA.js} +2 -2
- package/dist/{surcharge-B-cEnplc.js → surcharge-CUNMAeS3.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-BF3BTv8-.js → uom-rules-DtG5eCqQ.js} +1 -1
- package/dist/{use-ingredient-select-dialog-UTaeFSL4.js → use-ingredient-select-dialog-CkNu7fD6.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BMZNPgya.js → use-inventory-binding-dialog-Cnc65VQI.js} +2 -2
- package/dist/use-template-enabled-locations-CRF0AM-M.js +146 -0
- package/dist/{use-transfer-locations-BDcd3S0e.js → use-transfer-locations-cX4FfzNZ.js} +7 -7
- package/dist/{useHrmPermission-BSvhHnzz.js → useHrmPermission-CmJd4Bup.js} +1 -1
- package/dist/{useNavigationMenu-Cu1Ml6QH.js → useNavigationMenu-BQZghwYI.js} +2 -2
- package/dist/{useSseClient-B9ljCmxo.js → useSseClient-C3PTrM-h.js} +12 -12
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +12 -0
- package/dist/views/adjustment-template/wastage-template/helpers.d.ts +33 -0
- package/dist/views/adjustment-template/wastage-template/helpers.spec.d.ts +1 -0
- package/dist/views/adjustment-template/wastage-template/props.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +12 -0
- package/dist/{vue-i18n-cA5Vobl3.js → vue-i18n-1noprZJM.js} +293 -293
- package/dist/{xlsx-B6U9iwtM.js → xlsx-i55Kt0AR.js} +1 -1
- package/dist/{xlsx.util-C0rDXf6J.js → xlsx.util-jC5etKar.js} +3 -3
- package/package.json +2 -2
- package/dist/WastageTemplateView-t-Mdjn7D.js +0 -2327
- package/dist/use-template-enabled-locations-BTyUgLYB.js +0 -132
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { defineComponent as qe, ref as J, watch as Ge, nextTick as us, openBlock as a, createBlock as pe, Teleport as ds, createElementBlock as h, withModifiers as ms, createElementVNode as e, normalizeClass as Ue, toDisplayString as x, createCommentVNode as T, unref as _, withDirectives as ps, vModelText as fs, toRaw as vs, shallowRef as Vt, onUnmounted as ys, triggerRef as bs, computed as M, readonly as hs, h as Y, reactive as gs, onMounted as Wt, resolveComponent as te, withCtx as ie, createVNode as q, Fragment as $e, renderList as Ee, createTextVNode as ze, renderSlot as _s, isRef as Ss, resolveDynamicComponent as xs } from "vue";
|
|
2
|
-
import { f as ks, h as Os, r as ws, s as Qt } from "./predefined-templates-
|
|
3
|
-
import { f as st, p as $s } from "./format-time-from-id-
|
|
2
|
+
import { f as ks, h as Os, r as ws, s as Qt } from "./predefined-templates-BVHsFJHC.js";
|
|
3
|
+
import { f as st, p as $s } from "./format-time-from-id-Dj-j01eE.js";
|
|
4
4
|
import { c as Lt } from "./component-kqxARxvM.js";
|
|
5
5
|
import { D as Pe, R as he } from "./row-action.enum-DQ9bJ_uv.js";
|
|
6
|
-
import { G as Je, m as Cs, u as Me,
|
|
7
|
-
import { h as wt, t as As, d as Ts, a as tt } from "./date2-
|
|
8
|
-
import { j as Ps, c as Is, a as ge, t as Ke, d as ot } from "./number-
|
|
9
|
-
import { F as
|
|
10
|
-
import { L as Es } from "./lz-string-
|
|
6
|
+
import { G as Je, m as Cs, u as Me, Y as E, Z as ut, Q as fe, a as kt, _ as Ut, $ as Ds, a0 as Rs, E as Ns, c as Yt, s as Ot, q as De, L as Mt, a1 as Jt, r as et, C as Fe, w as Ae, B as at } from "./app-B790gOK1.js";
|
|
7
|
+
import { h as wt, t as As, d as Ts, a as tt } from "./date2-BEmmexd8.js";
|
|
8
|
+
import { j as Ps, c as Is, a as ge, t as Ke, d as ot } from "./number-Czc4vu4K.js";
|
|
9
|
+
import { F as Xe, c as Fs, a as vt } from "./inventory-core-dart.default-BieljiaS.js";
|
|
10
|
+
import { L as Es } from "./lz-string-Co3f7xQi.js";
|
|
11
11
|
import { useI18n as dt, useCoreStore as mt } from "@feedmepos/mf-common";
|
|
12
|
-
import { u as pt, a as $t, S as Le } from "./netsuite-
|
|
12
|
+
import { u as pt, a as $t, S as Le } from "./netsuite-BMQZw2dt.js";
|
|
13
13
|
import { useDialog as ft, useSnackbar as Qe, components as lt, FmButtonVariant as Ve, useProxiedModel as qs } from "@feedmepos/ui-library";
|
|
14
14
|
import { F as We } from "./FmAdminBadge-DjnBAgyv.js";
|
|
15
|
-
import { u as He } from "./feature-
|
|
15
|
+
import { u as He } from "./feature-BFFJbkBm.js";
|
|
16
16
|
import { _ as Vs } from "./empty-placeholder-B0QU467o.js";
|
|
17
|
-
import { a as Ls, b as Us, f as it } from "./format-unit-display-
|
|
18
|
-
import { u as Ye, _ as Ms } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { _ as js, a as Bs, b as zs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
17
|
+
import { a as Ls, b as Us, f as it } from "./format-unit-display-CJw32VBR.js";
|
|
18
|
+
import { u as Ye, _ as Ms } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-BbY1p0bB.js";
|
|
19
|
+
import { _ as js, a as Bs, b as zs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-cf1asT1H.js";
|
|
20
20
|
import { u as Ks, R as jt } from "./usePromise-CbVUCxhj.js";
|
|
21
|
-
import { d as Hs } from "./index-
|
|
22
|
-
import { i as Gs } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
21
|
+
import { d as Hs } from "./index-TBsXDgch.js";
|
|
22
|
+
import { i as Gs } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-C1-Z8zpZ.js";
|
|
23
23
|
import { F as Bt } from "./form-mode.enum-BKiNVH6A.js";
|
|
24
|
-
import { u as
|
|
25
|
-
import { u as Ws } from "./surcharge-
|
|
26
|
-
import { F as Qs } from "./decimal-
|
|
27
|
-
import { d as
|
|
28
|
-
import { u as Ys } from "./vue-i18n-
|
|
29
|
-
import { u as Js } from "./useHrmPermission-
|
|
24
|
+
import { u as Zt } from "./supplier-Dk3xHNeA.js";
|
|
25
|
+
import { u as Ws } from "./surcharge-CUNMAeS3.js";
|
|
26
|
+
import { F as Qs } from "./decimal-Lptt-Wz-.js";
|
|
27
|
+
import { d as Xt } from "./defineDeepModel-emCSlL_h.js";
|
|
28
|
+
import { u as Ys } from "./vue-i18n-1noprZJM.js";
|
|
29
|
+
import { u as Js } from "./useHrmPermission-CmJd4Bup.js";
|
|
30
30
|
function es(b, s) {
|
|
31
31
|
return s.reduce(
|
|
32
32
|
(i, p) => {
|
|
@@ -36,7 +36,7 @@ function es(b, s) {
|
|
|
36
36
|
Qs.toPrecision(Is(0), b.unit.precision)
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Zs(b) {
|
|
40
40
|
var ue;
|
|
41
41
|
const { po: s, currentLocation: o, business: i, fulfilling: p, por: u } = b, { name: v, address: t, regNo: c, legalName: d } = o.doc.profile, S = {
|
|
42
42
|
name: v,
|
|
@@ -69,10 +69,10 @@ function Xs(b) {
|
|
|
69
69
|
quantity: ge(se.quantity, !1),
|
|
70
70
|
unit: (D == null ? void 0 : D.abbrev) || j.unit.abbrev,
|
|
71
71
|
received: ne,
|
|
72
|
-
unitCost: se.totalCost ? `${se.totalCost.currency} ${
|
|
73
|
-
value: se.quantity.amount === 0 ?
|
|
72
|
+
unitCost: se.totalCost ? `${se.totalCost.currency} ${Xe.toFormatString({
|
|
73
|
+
value: se.quantity.amount === 0 ? Xe.fromNumber(0) : Xe.divide([se.totalCost, se.quantity])
|
|
74
74
|
})}` : void 0,
|
|
75
|
-
cost: se.totalCost ? `${se.totalCost.currency} ${
|
|
75
|
+
cost: se.totalCost ? `${se.totalCost.currency} ${Xe.toFormatString({
|
|
76
76
|
value: se.totalCost
|
|
77
77
|
})}` : void 0
|
|
78
78
|
};
|
|
@@ -95,7 +95,7 @@ function Xs(b) {
|
|
|
95
95
|
const se = u.from.dbName;
|
|
96
96
|
o.dbName === se || (U = "Inventory Receive Note", w = Je.Enum.goodsReceivedNote);
|
|
97
97
|
}
|
|
98
|
-
const
|
|
98
|
+
const Z = {
|
|
99
99
|
title: U,
|
|
100
100
|
businessName: i == null ? void 0 : i.name,
|
|
101
101
|
logo: i == null ? void 0 : i.thumbnail,
|
|
@@ -109,11 +109,11 @@ function Xs(b) {
|
|
|
109
109
|
status: s.status,
|
|
110
110
|
deliveryOrders: R
|
|
111
111
|
}, z = p && (s.deliveryFullfillment || []).length > 0;
|
|
112
|
-
return z && (w = Je.Enum.deliveryOrder), { printData:
|
|
112
|
+
return z && (w = Je.Enum.deliveryOrder), { printData: Z, templateType: w, isDeliveryPrint: z };
|
|
113
113
|
}
|
|
114
114
|
function ts(b) {
|
|
115
115
|
var S;
|
|
116
|
-
const { printData: s, templateType: o } =
|
|
116
|
+
const { printData: s, templateType: o } = Zs(b), p = ks().getTemplateByType(o), u = !!((S = p == null ? void 0 : p.blocks) != null && S.length), v = Os(o), t = u ? p.blocks : v.blocks, c = u ? p.name : v.name, d = !u;
|
|
117
117
|
try {
|
|
118
118
|
const $ = ws(t, s), C = $.match(/<style>([\s\S]*?)<\/style>/), R = C ? `<style>${C[1]}</style>` : "", w = $.replace(/<style>[\s\S]*?<\/style>/, "");
|
|
119
119
|
return {
|
|
@@ -140,7 +140,7 @@ ${R}
|
|
|
140
140
|
return alert("Failed to render print template. Please try recreating the template."), null;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
const
|
|
143
|
+
const Xs = { class: "w-[95vw] h-[95vh] bg-white rounded-lg flex flex-col shadow-2xl overflow-hidden" }, er = { class: "flex justify-between items-center px-16 py-3 border-b border-gray-200 bg-gray-50" }, tr = { class: "flex items-center gap-2.5" }, sr = {
|
|
144
144
|
key: 1,
|
|
145
145
|
class: "text-xs text-gray-100 bg-gray-500 px-2 py-0.5 rounded font-medium"
|
|
146
146
|
}, rr = { class: "flex-1 overflow-auto bg-gray-100" }, Bl = /* @__PURE__ */ qe({
|
|
@@ -246,7 +246,7 @@ const Zs = { class: "w-[95vw] h-[95vh] bg-white rounded-lg flex flex-col shadow-
|
|
|
246
246
|
class: "fixed inset-0 z-[9999] bg-black/50 flex justify-center items-center",
|
|
247
247
|
onClick: ms(u, ["self"])
|
|
248
248
|
}, [
|
|
249
|
-
e("div",
|
|
249
|
+
e("div", Xs, [
|
|
250
250
|
e("div", er, [
|
|
251
251
|
e("div", tr, [
|
|
252
252
|
d[0] || (d[0] = e("span", { class: "text-base font-semibold text-gray-700" }, "Print Preview", -1)),
|
|
@@ -495,7 +495,7 @@ function Kt(b, s, o, i, p) {
|
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
497
|
function ns() {
|
|
498
|
-
const b =
|
|
498
|
+
const b = Zt(), s = Me(), o = kt(), i = pt(), p = Ws(), u = Kt(
|
|
499
499
|
b,
|
|
500
500
|
s,
|
|
501
501
|
o,
|
|
@@ -569,9 +569,9 @@ function ns() {
|
|
|
569
569
|
};
|
|
570
570
|
}
|
|
571
571
|
var xt = /* @__PURE__ */ ((b) => (b.RECEIVE_REQUEST = "receive/request", b.APPROVAL = "approval", b))(xt || {});
|
|
572
|
-
const
|
|
572
|
+
const Ze = J(), bt = J(), ht = J();
|
|
573
573
|
function zl(b, s) {
|
|
574
|
-
const o = ft(), i = Me(), p = He(), u =
|
|
574
|
+
const o = ft(), i = Me(), p = He(), u = Zt(), v = mt(), t = Ls(), c = Us(), d = J(!1), S = Qe(), $ = Ye(), C = or(), R = J(new Array()), w = J(new Array()), U = J(
|
|
575
575
|
s != null && s.startDate && (s != null && s.endDate) ? s : Gs()
|
|
576
576
|
), P = M(() => {
|
|
577
577
|
const f = new Date(U.value.startDate), l = new Date(U.value.endDate);
|
|
@@ -579,7 +579,7 @@ function zl(b, s) {
|
|
|
579
579
|
start: As(f).toISOString(),
|
|
580
580
|
end: Ts(l).toISOString()
|
|
581
581
|
};
|
|
582
|
-
}),
|
|
582
|
+
}), Z = J(new Array()), z = Ns(), ue = J(null);
|
|
583
583
|
async function se(f) {
|
|
584
584
|
function l(L) {
|
|
585
585
|
const H = {
|
|
@@ -587,12 +587,12 @@ function zl(b, s) {
|
|
|
587
587
|
modelValue: f || void 0,
|
|
588
588
|
show: !0,
|
|
589
589
|
"onUpdate:show"(le) {
|
|
590
|
-
|
|
590
|
+
Ze.value.show = le;
|
|
591
591
|
},
|
|
592
592
|
templateId: L,
|
|
593
593
|
lastClosingDate: ue.value
|
|
594
594
|
};
|
|
595
|
-
|
|
595
|
+
Ze.value = H;
|
|
596
596
|
}
|
|
597
597
|
let k;
|
|
598
598
|
p.mustUsePoTemplate && !(f != null && f.template) ? o.open({
|
|
@@ -619,11 +619,11 @@ function zl(b, s) {
|
|
|
619
619
|
modelValue: Yt(f),
|
|
620
620
|
show: !0,
|
|
621
621
|
"onUpdate:show"(k) {
|
|
622
|
-
|
|
622
|
+
Ze.value.show = k;
|
|
623
623
|
},
|
|
624
624
|
lastClosingDate: ue.value
|
|
625
625
|
};
|
|
626
|
-
|
|
626
|
+
Ze.value = l;
|
|
627
627
|
}
|
|
628
628
|
function D(f) {
|
|
629
629
|
if (!v.currentBusiness.value) return;
|
|
@@ -665,7 +665,7 @@ function zl(b, s) {
|
|
|
665
665
|
var xe;
|
|
666
666
|
return ((xe = re.request) == null ? void 0 : xe.id) ?? "";
|
|
667
667
|
}).filter((re) => re);
|
|
668
|
-
|
|
668
|
+
Z.value = await $.readRequestByIds(le);
|
|
669
669
|
} catch {
|
|
670
670
|
S.open({
|
|
671
671
|
title: "Something went wrong",
|
|
@@ -677,9 +677,9 @@ function zl(b, s) {
|
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
679
|
async function I() {
|
|
680
|
-
|
|
680
|
+
Z.value = [], d.value = !0;
|
|
681
681
|
try {
|
|
682
|
-
|
|
682
|
+
Z.value = await $.readRequests(
|
|
683
683
|
void 0,
|
|
684
684
|
P.value.start,
|
|
685
685
|
P.value.end
|
|
@@ -718,7 +718,7 @@ function zl(b, s) {
|
|
|
718
718
|
const K = J(), ce = J(Math.random().toString());
|
|
719
719
|
async function Ce(f, l) {
|
|
720
720
|
const k = Math.random().toString();
|
|
721
|
-
ce.value = k, l ?? (l =
|
|
721
|
+
ce.value = k, l ?? (l = Z.value.computeFirst(
|
|
722
722
|
(re) => re.purchaseOrderId === f._id ? re : null
|
|
723
723
|
) ?? void 0);
|
|
724
724
|
const L = b === "receive/request" ? i.currentLocation : l == null ? void 0 : l.to, H = b === "approval", le = {
|
|
@@ -854,11 +854,11 @@ function zl(b, s) {
|
|
|
854
854
|
return {
|
|
855
855
|
purchaseOrders: R,
|
|
856
856
|
shipments: w,
|
|
857
|
-
purchaseRequests:
|
|
857
|
+
purchaseRequests: Z,
|
|
858
858
|
updateDateRange: W,
|
|
859
859
|
fetchData: N,
|
|
860
860
|
loading: d,
|
|
861
|
-
transferDialogProps:
|
|
861
|
+
transferDialogProps: Ze,
|
|
862
862
|
promptCreateTransferDialog: se,
|
|
863
863
|
promptUpdateTransferDialog: j,
|
|
864
864
|
transferDetailsProps: K,
|
|
@@ -902,7 +902,7 @@ function cr(b) {
|
|
|
902
902
|
quantity: ge(j.quantity, !1),
|
|
903
903
|
unit: (ne == null ? void 0 : ne.abbrev) || D.unit.abbrev,
|
|
904
904
|
received: I,
|
|
905
|
-
cost: j.totalCost ? `${j.totalCost.currency} ${
|
|
905
|
+
cost: j.totalCost ? `${j.totalCost.currency} ${Xe.toFormatString({
|
|
906
906
|
value: j.totalCost
|
|
907
907
|
})}` : void 0
|
|
908
908
|
};
|
|
@@ -930,7 +930,7 @@ function cr(b) {
|
|
|
930
930
|
const j = u.from.dbName;
|
|
931
931
|
o.dbName === j || (U = "Inventory Receive Note");
|
|
932
932
|
}
|
|
933
|
-
const
|
|
933
|
+
const Z = {
|
|
934
934
|
title: U,
|
|
935
935
|
businessName: i == null ? void 0 : i.name,
|
|
936
936
|
logo: i == null ? void 0 : i.thumbnail,
|
|
@@ -945,7 +945,7 @@ function cr(b) {
|
|
|
945
945
|
deliveryOrders: R
|
|
946
946
|
}, z = new URL(window.location.href), ue = p && (s.deliveryFullfillment || []).length > 0 ? "receive-request/delivery-print-preview" : "receive-request/print-preview";
|
|
947
947
|
z.pathname = z.hostname.includes("portal.feedme") ? `/inventory/${ue}` : `/${ue}`;
|
|
948
|
-
const se = Es.compressToEncodedURIComponent(JSON.stringify(
|
|
948
|
+
const se = Es.compressToEncodedURIComponent(JSON.stringify(Z));
|
|
949
949
|
z.searchParams.append("data", se), window.open(z.href, "_blank", "noreferrer");
|
|
950
950
|
}
|
|
951
951
|
const je = {
|
|
@@ -1475,9 +1475,9 @@ function Kl(b, s, o) {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
return D;
|
|
1477
1477
|
}
|
|
1478
|
-
const
|
|
1478
|
+
const Z = M(() => b === "receive/request" ? U() : P()), z = J(!1), ue = J(""), se = J(""), j = J(!1);
|
|
1479
1479
|
return {
|
|
1480
|
-
columnDefs:
|
|
1480
|
+
columnDefs: Z,
|
|
1481
1481
|
showCustomPrintDialog: z,
|
|
1482
1482
|
customPrintHtml: ue,
|
|
1483
1483
|
customPrintTemplateName: se,
|
|
@@ -1584,8 +1584,8 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1584
1584
|
unit: R.sku.unit,
|
|
1585
1585
|
"onUpdate:modelValue": (P) => {
|
|
1586
1586
|
if (!P) return;
|
|
1587
|
-
const
|
|
1588
|
-
|
|
1587
|
+
const Z = i.items.find((z) => z.id === R.id || z.sku._id === R.sku._id);
|
|
1588
|
+
Z && (Z.amount = P.amount);
|
|
1589
1589
|
},
|
|
1590
1590
|
disableUnit: !0,
|
|
1591
1591
|
rules: [
|
|
@@ -1805,8 +1805,8 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1805
1805
|
).fullName;
|
|
1806
1806
|
}
|
|
1807
1807
|
), v = M(() => {
|
|
1808
|
-
var c, d, S, $, C, R, w, U, P,
|
|
1809
|
-
return (S = (d = (c = s.purchaseOrder) == null ? void 0 : c.netSuite) == null ? void 0 : d.additionalInfo) != null && S.transactionnumber ? (R = (C = ($ = s.purchaseOrder) == null ? void 0 : $.netSuite) == null ? void 0 : C.additionalInfo) == null ? void 0 : R.transactionnumber : (P = (U = (w = p.value) == null ? void 0 : w.netSuite) == null ? void 0 : U.additionalInfo) != null && P.transactionnumber ? (ue = (z = (
|
|
1808
|
+
var c, d, S, $, C, R, w, U, P, Z, z, ue;
|
|
1809
|
+
return (S = (d = (c = s.purchaseOrder) == null ? void 0 : c.netSuite) == null ? void 0 : d.additionalInfo) != null && S.transactionnumber ? (R = (C = ($ = s.purchaseOrder) == null ? void 0 : $.netSuite) == null ? void 0 : C.additionalInfo) == null ? void 0 : R.transactionnumber : (P = (U = (w = p.value) == null ? void 0 : w.netSuite) == null ? void 0 : U.additionalInfo) != null && P.transactionnumber ? (ue = (z = (Z = p.value) == null ? void 0 : Z.netSuite) == null ? void 0 : z.additionalInfo) == null ? void 0 : ue.transactionnumber : null;
|
|
1810
1810
|
}), t = M(() => {
|
|
1811
1811
|
var c, d, S, $, C, R;
|
|
1812
1812
|
return (d = (c = s.purchaseOrder) == null ? void 0 : c.deliveryFullfillment) != null && d.length && (($ = (S = s.purchaseOrder) == null ? void 0 : S.deliveryFullfillment) == null ? void 0 : $.length) > 0 ? (R = (C = s.purchaseOrder) == null ? void 0 : C.deliveryFullfillment) == null ? void 0 : R.map((w) => {
|
|
@@ -1815,7 +1815,7 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1815
1815
|
}).join(", ") : "N/A";
|
|
1816
1816
|
});
|
|
1817
1817
|
return (c, d) => {
|
|
1818
|
-
var S, $, C, R, w, U, P,
|
|
1818
|
+
var S, $, C, R, w, U, P, Z, z, ue, se, j, D, ne, I, N;
|
|
1819
1819
|
return _(o).isEnabled ? (a(), h("div", yr, [
|
|
1820
1820
|
e("div", br, [
|
|
1821
1821
|
d[0] || (d[0] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, "NetSuite subsidiary", -1)),
|
|
@@ -1824,7 +1824,7 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1824
1824
|
!c.isTransferBetweenOutlets && c.scope === _(xt).RECEIVE_REQUEST ? (a(), h("div", gr, [
|
|
1825
1825
|
e("div", _r, " NetSuite " + x(($ = (S = c.purchaseOrder) == null ? void 0 : S.netSuite) != null && $.recordType ? _(Jt)((R = (C = c.purchaseOrder) == null ? void 0 : C.netSuite) == null ? void 0 : R.recordType) : c.transferType === _(et).enum.purchase ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
|
|
1826
1826
|
e("div", Sr, [
|
|
1827
|
-
(U = (w = c.purchaseOrder) == null ? void 0 : w.netSuite) != null && U.id ? (a(), h("span", xr, x((
|
|
1827
|
+
(U = (w = c.purchaseOrder) == null ? void 0 : w.netSuite) != null && U.id ? (a(), h("span", xr, x((Z = (P = c.purchaseOrder) == null ? void 0 : P.netSuite) == null ? void 0 : Z.refNo) + " (" + x((ue = (z = c.purchaseOrder) == null ? void 0 : z.netSuite) == null ? void 0 : ue.id) + ") ", 1)) : (a(), h("span", kr, "N/A"))
|
|
1828
1828
|
])
|
|
1829
1829
|
])) : T("", !0),
|
|
1830
1830
|
!c.isTransferBetweenOutlets && p.value || c.scope === _(xt).APPROVAL ? (a(), h("div", Or, [
|
|
@@ -1898,7 +1898,7 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1898
1898
|
}, Kr = { class: "fm-typo-en-body-lg-600 mb-4 flex items-center gap-2" }, Hr = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg overflow-y-auto" }, Gr = { class: "w-full" }, Wr = {
|
|
1899
1899
|
class: "p-3 fm-typo-en-body-sm-600",
|
|
1900
1900
|
style: { "min-width": "130px" }
|
|
1901
|
-
}, Qr = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Yr = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Jr = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" },
|
|
1901
|
+
}, Qr = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Yr = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Jr = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Zr = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Xr = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, eo = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, to = { class: "p-3 fm-typo-en-body-sm-600" }, so = { key: 2 }, ro = { key: 1 }, oo = /* @__PURE__ */ qe({
|
|
1902
1902
|
__name: "NetSuiteLatestInfo",
|
|
1903
1903
|
props: {
|
|
1904
1904
|
netsuiteId: {},
|
|
@@ -1960,7 +1960,7 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1960
1960
|
});
|
|
1961
1961
|
}
|
|
1962
1962
|
return (U, P) => {
|
|
1963
|
-
const
|
|
1963
|
+
const Z = te("FmButton"), z = te("FmLabel"), ue = te("FmCircularProgress"), se = te("FmIcon"), j = te("FmDialog");
|
|
1964
1964
|
return a(), h("div", Er, [
|
|
1965
1965
|
q(j, {
|
|
1966
1966
|
modelValue: i.value,
|
|
@@ -1969,7 +1969,7 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1969
1969
|
"max-width": 800
|
|
1970
1970
|
}, {
|
|
1971
1971
|
"dialog-button": ie(() => [
|
|
1972
|
-
q(
|
|
1972
|
+
q(Z, {
|
|
1973
1973
|
"prepend-icon": "info",
|
|
1974
1974
|
variant: "secondary",
|
|
1975
1975
|
label: "Latest Info",
|
|
@@ -2044,8 +2044,8 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2044
2044
|
e("td", {
|
|
2045
2045
|
class: Ue(`p-3 fm-typo-en-body-sm-600 ${R(Number(D.type) - 1)}`)
|
|
2046
2046
|
}, x(_(Le)[Number(D.type) - 1]), 3),
|
|
2047
|
-
e("td",
|
|
2048
|
-
e("td",
|
|
2047
|
+
e("td", Zr, x(D.lineid || ""), 1),
|
|
2048
|
+
e("td", Xr, x(D._fieldname), 1),
|
|
2049
2049
|
e("td", eo, x(D.oldvalue || ""), 1),
|
|
2050
2050
|
e("td", to, x(D.newvalue || ""), 1)
|
|
2051
2051
|
]))), 128))
|
|
@@ -2059,7 +2059,7 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2059
2059
|
]))
|
|
2060
2060
|
]),
|
|
2061
2061
|
"dialog-footer": ie(() => [
|
|
2062
|
-
q(
|
|
2062
|
+
q(Z, {
|
|
2063
2063
|
class: "ml-auto sm:w-full xs:w-full",
|
|
2064
2064
|
label: "Close",
|
|
2065
2065
|
size: "md",
|
|
@@ -2229,7 +2229,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2229
2229
|
},
|
|
2230
2230
|
emits: ["submitted"],
|
|
2231
2231
|
setup(b, { emit: s }) {
|
|
2232
|
-
const { t: o } = Ys(), i = He(), p = Qe(), u = J(!1), v = kt(), t = b, c = s, d =
|
|
2232
|
+
const { t: o } = Ys(), i = He(), p = Qe(), u = J(!1), v = kt(), t = b, c = s, d = Xt("deliveryOrder"), S = Ye(), $ = M(
|
|
2233
2233
|
() => {
|
|
2234
2234
|
var f;
|
|
2235
2235
|
return ((f = t.purchaseOrder.deliveryFullfillment) == null ? void 0 : f.findIndex(
|
|
@@ -2238,7 +2238,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2238
2238
|
}
|
|
2239
2239
|
), C = i.enablePurchaseOrderReceiveWithCustomCost, R = i.enablePortalDeliveryOrderWrite, w = J({}), U = M(
|
|
2240
2240
|
() => (t.purchaseOrder.itemsAtSubmission ?? t.purchaseOrder.items).length
|
|
2241
|
-
), P = M(() => is(t.purchaseOrder)),
|
|
2241
|
+
), P = M(() => is(t.purchaseOrder)), Z = M(
|
|
2242
2242
|
() => cs(t.purchaseOrder, P.value)
|
|
2243
2243
|
), z = M(
|
|
2244
2244
|
() => t.purchaseOrder.items.map(
|
|
@@ -2306,8 +2306,8 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2306
2306
|
var le;
|
|
2307
2307
|
const L = (((le = ce.value[l]) == null ? void 0 : le.value) ?? 0) <= 0;
|
|
2308
2308
|
let H;
|
|
2309
|
-
if (f.skuId &&
|
|
2310
|
-
const re =
|
|
2309
|
+
if (f.skuId && Z.value[f.skuId]) {
|
|
2310
|
+
const re = Z.value[f.skuId], xe = Ae.toFormatString({ value: re.received });
|
|
2311
2311
|
H = `${o("inventory.transfer.receiveRequest.details.received")} ${xe}`;
|
|
2312
2312
|
}
|
|
2313
2313
|
return L ? H ? `${H} · ${nt}` : nt : H;
|
|
@@ -2612,7 +2612,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2612
2612
|
}, Ho = { class: "flex gap-4" }, Go = { class: "flex-1" }, Wo = { class: "flex-1" }, Qo = {
|
|
2613
2613
|
key: 0,
|
|
2614
2614
|
class: "flex items-center text-fm-color-system-error-300"
|
|
2615
|
-
}, Yo = { class: "fm-typo-en-body-md-400" }, Jo = { class: "flex flex-col gap-4" },
|
|
2615
|
+
}, Yo = { class: "fm-typo-en-body-md-400" }, Jo = { class: "flex flex-col gap-4" }, Zo = { class: "flex justify-between items-start py-1 gap-4" }, Xo = { class: "flex flex-col flex-1 min-w-0" }, en = { class: "fm-typo-en-body-lg-600 truncate" }, tn = { class: "fm-typo-en-body-md-400 truncate" }, sn = { class: "flex flex-col gap-2 items-end w-52 shrink-0" }, rn = {
|
|
2616
2616
|
key: 0,
|
|
2617
2617
|
class: "fm-typo-en-body-sm-400 text-fm-color-system-error-300 self-end text-right"
|
|
2618
2618
|
}, on = {
|
|
@@ -2643,7 +2643,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2643
2643
|
emits: ["submitted"],
|
|
2644
2644
|
setup(b, { emit: s }) {
|
|
2645
2645
|
var oe, A, de;
|
|
2646
|
-
const { t: o } = dt(), i = J(!1), p = mt(), u = b, v = s, t =
|
|
2646
|
+
const { t: o } = dt(), i = J(!1), p = mt(), u = b, v = s, t = Xt("", {
|
|
2647
2647
|
default: {
|
|
2648
2648
|
deliveryOrderNumber: "",
|
|
2649
2649
|
remark: "",
|
|
@@ -2658,7 +2658,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2658
2658
|
},
|
|
2659
2659
|
createdAt: ""
|
|
2660
2660
|
}
|
|
2661
|
-
}), c = Ye(), d = ft(), S = He(), $ = kt(), C = ((de = u.purchaseOrder) == null ? void 0 : de.supplier.internal) != null, R = C && S.enablePOSTransferRequireFulfillment, w = S.enablePortalDeliveryOrderWrite && (u.purchaseOrder.status === fe.Enum.RECEIVING || u.purchaseOrder.status === fe.Enum.COMPLETE) && (C ? !R : !0), U = S.enablePurchaseOrderReceiveWithCustomCost, P = S.enableBackdateReceive,
|
|
2661
|
+
}), c = Ye(), d = ft(), S = He(), $ = kt(), C = ((de = u.purchaseOrder) == null ? void 0 : de.supplier.internal) != null, R = C && S.enablePOSTransferRequireFulfillment, w = S.enablePortalDeliveryOrderWrite && (u.purchaseOrder.status === fe.Enum.RECEIVING || u.purchaseOrder.status === fe.Enum.COMPLETE) && (C ? !R : !0), U = S.enablePurchaseOrderReceiveWithCustomCost, P = S.enableBackdateReceive, Z = J({}), z = M(
|
|
2662
2662
|
() => u.purchaseOrder.itemsAtSubmission ?? u.purchaseOrder.items
|
|
2663
2663
|
), ue = M(() => is(u.purchaseOrder)), se = M(
|
|
2664
2664
|
() => cs(u.purchaseOrder, ue.value)
|
|
@@ -2733,8 +2733,8 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2733
2733
|
}
|
|
2734
2734
|
})));
|
|
2735
2735
|
function f(y) {
|
|
2736
|
-
const m = !
|
|
2737
|
-
if (
|
|
2736
|
+
const m = !Z.value[y];
|
|
2737
|
+
if (Z.value[y] = m, m) {
|
|
2738
2738
|
const g = z.value[y];
|
|
2739
2739
|
g.totalCost ? t.received[y].cost = {
|
|
2740
2740
|
currency: g.totalCost.currency,
|
|
@@ -2871,7 +2871,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2871
2871
|
}
|
|
2872
2872
|
const m = z.value;
|
|
2873
2873
|
for (let B = 0; B < m.length; B++) {
|
|
2874
|
-
const be = m[B],
|
|
2874
|
+
const be = m[B], X = (((V = u.purchaseOrder) == null ? void 0 : V.version) ?? Fe.enum[1]) === Fe.enum[2] ? be.id : be.sku._id, ye = u.receivedMap[X], Oe = +ge(be.quantity), Re = ye ? +ge(ye.received) : 0;
|
|
2875
2875
|
ve.value[B].value = Math.max(0, Oe - Re);
|
|
2876
2876
|
}
|
|
2877
2877
|
const g = ue.value;
|
|
@@ -2894,14 +2894,14 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2894
2894
|
for (let B = 0; B < g.length; B++) {
|
|
2895
2895
|
const be = D(g[B]), we = be ? se.value[be] : void 0;
|
|
2896
2896
|
if (we) {
|
|
2897
|
-
const
|
|
2898
|
-
r.value[B].value = Math.max(0, we.remaining.amount /
|
|
2897
|
+
const X = Math.pow(10, we.remaining.precision ?? 2);
|
|
2898
|
+
r.value[B].value = Math.max(0, we.remaining.amount / X);
|
|
2899
2899
|
}
|
|
2900
2900
|
}
|
|
2901
2901
|
}
|
|
2902
2902
|
}
|
|
2903
2903
|
), (y, m) => {
|
|
2904
|
-
const g = te("FmButton"), V = te("FmDatePicker"), B = te("FmTimePicker"), be = te("FmIcon"), we = te("FmStepperField"),
|
|
2904
|
+
const g = te("FmButton"), V = te("FmDatePicker"), B = te("FmTimePicker"), be = te("FmIcon"), we = te("FmStepperField"), X = te("FmSwitch"), ye = te("FmSelect"), Oe = te("FmTextField"), Re = te("FmDialog");
|
|
2905
2905
|
return a(), pe(Re, {
|
|
2906
2906
|
modelValue: i.value,
|
|
2907
2907
|
"onUpdate:modelValue": m[4] || (m[4] = (Ne) => i.value = Ne),
|
|
@@ -2982,8 +2982,8 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2982
2982
|
(a(!0), h($e, null, Ee(z.value, (me, ee) => {
|
|
2983
2983
|
var ke;
|
|
2984
2984
|
return a(), h("div", { key: ee }, [
|
|
2985
|
-
e("div",
|
|
2986
|
-
e("div",
|
|
2985
|
+
e("div", Zo, [
|
|
2986
|
+
e("div", Xo, [
|
|
2987
2987
|
e("span", en, x(me.sku.name), 1),
|
|
2988
2988
|
e("span", tn, x(me.sku.code), 1)
|
|
2989
2989
|
]),
|
|
@@ -2997,14 +2997,14 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2997
2997
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "helper-text", "append-text"]),
|
|
2998
2998
|
ve.value[ee].value <= 0 ? (a(), h("div", rn, x(Gt))) : T("", !0),
|
|
2999
2999
|
_(U) ? (a(), h("div", on, [
|
|
3000
|
-
q(
|
|
3001
|
-
"model-value":
|
|
3000
|
+
q(X, {
|
|
3001
|
+
"model-value": Z.value[ee],
|
|
3002
3002
|
"onUpdate:modelValue": (Te) => f(ee),
|
|
3003
3003
|
size: "sm"
|
|
3004
3004
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
3005
3005
|
m[7] || (m[7] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Override cost ", -1))
|
|
3006
3006
|
])) : T("", !0),
|
|
3007
|
-
_(U) &&
|
|
3007
|
+
_(U) && Z.value[ee] ? (a(), pe(we, {
|
|
3008
3008
|
key: 2,
|
|
3009
3009
|
modelValue: l.value[ee].value,
|
|
3010
3010
|
"onUpdate:modelValue": (Te) => l.value[ee].value = Te,
|
|
@@ -3059,7 +3059,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3059
3059
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "append-text", "helper-text"]),
|
|
3060
3060
|
r.value[ee].value <= 0 ? (a(), h("div", pn, x(Gt))) : T("", !0),
|
|
3061
3061
|
_(U) ? (a(), h("div", fn, [
|
|
3062
|
-
q(
|
|
3062
|
+
q(X, {
|
|
3063
3063
|
"model-value": me.costEnabled,
|
|
3064
3064
|
"onUpdate:modelValue": (Ie) => O(ee),
|
|
3065
3065
|
size: "sm"
|
|
@@ -3225,8 +3225,8 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3225
3225
|
])
|
|
3226
3226
|
], -1)),
|
|
3227
3227
|
e("tbody", null, [
|
|
3228
|
-
(a(!0), h($e, null, Ee(v.value, (P,
|
|
3229
|
-
key:
|
|
3228
|
+
(a(!0), h($e, null, Ee(v.value, (P, Z) => (a(), h("tr", {
|
|
3229
|
+
key: Z,
|
|
3230
3230
|
class: "border-b border-fm-color-neutral-gray-200 last:border-b-0"
|
|
3231
3231
|
}, [
|
|
3232
3232
|
e("td", Cn, x(d(P._dateiso8601)), 1),
|
|
@@ -3274,7 +3274,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3274
3274
|
}, Yn = { class: "fm-typo-en-body-sm-600" }, Jn = {
|
|
3275
3275
|
key: 2,
|
|
3276
3276
|
class: "flex items-start justify-between gap-6"
|
|
3277
|
-
},
|
|
3277
|
+
}, Zn = { class: "text-xs font-mono text-right break-all" }, Xn = {
|
|
3278
3278
|
key: 3,
|
|
3279
3279
|
class: "flex items-start justify-between gap-6"
|
|
3280
3280
|
}, ea = { class: "text-xs font-mono text-right break-all" }, ta = { class: "flex flex-col gap-4" }, sa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ra = { class: "flex gap-1" }, oa = { class: "fm-typo-en-body-lg-600" }, na = {
|
|
@@ -3313,7 +3313,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3313
3313
|
}, Ya = { class: "flex gap-12 content-stretch" }, Ja = {
|
|
3314
3314
|
class: "flex flex-col w-40",
|
|
3315
3315
|
name: "circles"
|
|
3316
|
-
},
|
|
3316
|
+
}, Za = { class: "flex-1 flex flex-col items-center" }, Xa = { class: "h-40 w-40 bg-fm-color-primary rounded-full flex items-center justify-center" }, el = { class: "flex-1 flex flex-col items-center" }, tl = { class: "flex w-full items-center gap-4" }, sl = {
|
|
3317
3317
|
class: "py-12 flex flex-col gap-4",
|
|
3318
3318
|
name: "received-at header"
|
|
3319
3319
|
}, rl = { class: "fm-typo-en-body-lg-400" }, ol = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, nl = { class: "ml-auto flex gap-1" }, al = { class: "flex gap-12 content-stretch" }, ll = {
|
|
@@ -3378,7 +3378,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3378
3378
|
}
|
|
3379
3379
|
}
|
|
3380
3380
|
return n;
|
|
3381
|
-
}),
|
|
3381
|
+
}), Z = J(!1), z = J(""), ue = J(!0), se = Ye(), j = Ks(se.getWorkflowConfig), D = os(), ne = [
|
|
3382
3382
|
E.enum.receiveStock,
|
|
3383
3383
|
E.enum.processRequest,
|
|
3384
3384
|
E.enum.closeRequest
|
|
@@ -3536,7 +3536,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3536
3536
|
}
|
|
3537
3537
|
const { successMessage: O, ...F } = n;
|
|
3538
3538
|
if (o.purchaseOrder) {
|
|
3539
|
-
z.value = `${r}`,
|
|
3539
|
+
z.value = `${r}`, Z.value = !0, ue.value = !1;
|
|
3540
3540
|
const de = {};
|
|
3541
3541
|
let y = 0;
|
|
3542
3542
|
if ((r === E.enum.confirmDraft || // auto receive for warehouse to warehouse
|
|
@@ -3554,7 +3554,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3554
3554
|
purchaseOrder: o.purchaseOrder,
|
|
3555
3555
|
confirm: B,
|
|
3556
3556
|
"onUpdate:show": (we) => {
|
|
3557
|
-
we || (z.value = "",
|
|
3557
|
+
we || (z.value = "", Z.value = !1, ue.value = !0, y++, p.close()), be("cancelled");
|
|
3558
3558
|
}
|
|
3559
3559
|
}
|
|
3560
3560
|
});
|
|
@@ -3581,7 +3581,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3581
3581
|
type: "error"
|
|
3582
3582
|
}), console.error("Error when submitting PO operation", r, o.purchaseOrder, m);
|
|
3583
3583
|
} finally {
|
|
3584
|
-
z.value = "",
|
|
3584
|
+
z.value = "", Z.value = !1, ue.value = !0;
|
|
3585
3585
|
}
|
|
3586
3586
|
}
|
|
3587
3587
|
}
|
|
@@ -3613,7 +3613,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3613
3613
|
];
|
|
3614
3614
|
O.reverse().sort((A, de) => A.createdAt.localeCompare(de.createdAt));
|
|
3615
3615
|
function F(A) {
|
|
3616
|
-
var m, g, V, B, be, we,
|
|
3616
|
+
var m, g, V, B, be, we, X, ye, Oe, Re, Ne, me;
|
|
3617
3617
|
const de = n.findIndex((ee) => ee.id === A.fullfillmentId), y = [
|
|
3618
3618
|
(g = (m = n[de]) == null ? void 0 : m.netSuite) != null && g.id ? {
|
|
3619
3619
|
label: "Fulfillment's ref no. (Netsuite)",
|
|
@@ -3621,7 +3621,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3621
3621
|
`${((B = (V = n[de]) == null ? void 0 : V.netSuite) == null ? void 0 : B.refNo) ?? "N/A"} (${((we = (be = n[de]) == null ? void 0 : be.netSuite) == null ? void 0 : we.id) ?? "-"})`
|
|
3622
3622
|
]
|
|
3623
3623
|
} : null,
|
|
3624
|
-
(
|
|
3624
|
+
(X = A == null ? void 0 : A.netSuite) != null && X.id ? {
|
|
3625
3625
|
label: "Netsuite ref no.",
|
|
3626
3626
|
values: [`${((ye = A == null ? void 0 : A.netSuite) == null ? void 0 : ye.refNo) ?? "N/A"} (${((Oe = A == null ? void 0 : A.netSuite) == null ? void 0 : Oe.id) ?? "-"})`]
|
|
3627
3627
|
} : null,
|
|
@@ -3938,7 +3938,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3938
3938
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
3939
3939
|
}, {
|
|
3940
3940
|
default: ie(() => {
|
|
3941
|
-
var
|
|
3941
|
+
var X, ye, Oe, Re, Ne, me, ee, ke, Te, Ie;
|
|
3942
3942
|
return [
|
|
3943
3943
|
e("div", Mn, [
|
|
3944
3944
|
e("div", jn, x(_(w)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
|
|
@@ -3973,9 +3973,9 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3973
3973
|
])) : T("", !0),
|
|
3974
3974
|
(At = (Nt = r.purchaseOrder) == null ? void 0 : Nt.supplier) != null && At._id ? (a(), h("div", Jn, [
|
|
3975
3975
|
n[11] || (n[11] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Source Location ID ", -1)),
|
|
3976
|
-
e("span",
|
|
3976
|
+
e("span", Zn, x(((Pt = (Tt = r.purchaseOrder) == null ? void 0 : Tt.supplier) == null ? void 0 : Pt.internal) != null ? `${(Ft = (It = r.purchaseOrder) == null ? void 0 : It.supplier) == null ? void 0 : Ft.internal}_` : "") + x((qt = (Et = r.purchaseOrder) == null ? void 0 : Et.supplier) == null ? void 0 : qt._id), 1)
|
|
3977
3977
|
])) : T("", !0),
|
|
3978
|
-
r.transferToDbName ? (a(), h("div",
|
|
3978
|
+
r.transferToDbName ? (a(), h("div", Xn, [
|
|
3979
3979
|
n[12] || (n[12] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Destination Location ID ", -1)),
|
|
3980
3980
|
e("span", ea, x(r.transferToDbName), 1)
|
|
3981
3981
|
])) : T("", !0)
|
|
@@ -3987,7 +3987,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3987
3987
|
e("div", sa, [
|
|
3988
3988
|
e("div", ra, x(_(w)("inventory.transfer.receiveRequest.details.createdAt")), 1)
|
|
3989
3989
|
]),
|
|
3990
|
-
e("div", oa, x(_(st)(((
|
|
3990
|
+
e("div", oa, x(_(st)(((X = r.purchaseOrder) == null ? void 0 : X._id) ?? "")), 1)
|
|
3991
3991
|
]),
|
|
3992
3992
|
(ye = r.purchaseOrder) != null && ye.effectiveAt ? (a(), h("div", na, [
|
|
3993
3993
|
e("div", aa, x(_(w)("inventory.transfer.receiveRequest.details.date")), 1),
|
|
@@ -4044,10 +4044,10 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4044
4044
|
"z-index": 51
|
|
4045
4045
|
}, {
|
|
4046
4046
|
content: ie(() => {
|
|
4047
|
-
var
|
|
4047
|
+
var X, ye;
|
|
4048
4048
|
return [
|
|
4049
4049
|
e("div", Na, [
|
|
4050
|
-
(a(!0), h($e, null, Ee((ye = (
|
|
4050
|
+
(a(!0), h($e, null, Ee((ye = (X = r.purchaseOrder) == null ? void 0 : X.netSuite) == null ? void 0 : ye.missingItems, (Oe, Re) => (a(), h("div", {
|
|
4051
4051
|
class: "flex justify-center align-middle",
|
|
4052
4052
|
key: Re
|
|
4053
4053
|
}, [
|
|
@@ -4072,7 +4072,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4072
4072
|
])
|
|
4073
4073
|
]),
|
|
4074
4074
|
q(oe),
|
|
4075
|
-
(a(!0), h($e, null, Ee(((we = r.purchaseOrder) == null ? void 0 : we.items) ?? [], (
|
|
4075
|
+
(a(!0), h($e, null, Ee(((we = r.purchaseOrder) == null ? void 0 : we.items) ?? [], (X, ye) => {
|
|
4076
4076
|
var Oe;
|
|
4077
4077
|
return a(), h("div", {
|
|
4078
4078
|
key: ye,
|
|
@@ -4080,8 +4080,8 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4080
4080
|
}, [
|
|
4081
4081
|
e("div", Aa, [
|
|
4082
4082
|
e("div", Ta, [
|
|
4083
|
-
ze(x(
|
|
4084
|
-
L(
|
|
4083
|
+
ze(x(X.name) + " ", 1),
|
|
4084
|
+
L(X) ? (a(), pe(de, {
|
|
4085
4085
|
key: 0,
|
|
4086
4086
|
variant: "rich",
|
|
4087
4087
|
placement: "top",
|
|
@@ -4099,7 +4099,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4099
4099
|
]),
|
|
4100
4100
|
_: 1
|
|
4101
4101
|
})) : T("", !0),
|
|
4102
|
-
re(
|
|
4102
|
+
re(X) ? (a(), pe(de, {
|
|
4103
4103
|
key: 1,
|
|
4104
4104
|
variant: "rich",
|
|
4105
4105
|
placement: "top",
|
|
@@ -4110,8 +4110,8 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4110
4110
|
return [
|
|
4111
4111
|
e("div", Pa, [
|
|
4112
4112
|
n[14] || (n[14] = e("div", { class: "font-semibold" }, "Submission changes", -1)),
|
|
4113
|
-
e("div", null, "Original Amount: " + x((Re = xe(
|
|
4114
|
-
e("div", null, " New Amount: " + x((Ne = xe(
|
|
4113
|
+
e("div", null, "Original Amount: " + x((Re = xe(X)) == null ? void 0 : Re.originalAmount), 1),
|
|
4114
|
+
e("div", null, " New Amount: " + x((Ne = xe(X)) == null ? void 0 : Ne.newAmount), 1)
|
|
4115
4115
|
])
|
|
4116
4116
|
];
|
|
4117
4117
|
}),
|
|
@@ -4127,17 +4127,17 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4127
4127
|
]),
|
|
4128
4128
|
e("div", Ia, [
|
|
4129
4129
|
e("span", {
|
|
4130
|
-
innerHTML: k(
|
|
4130
|
+
innerHTML: k(X)
|
|
4131
4131
|
}, null, 8, Fa)
|
|
4132
4132
|
])
|
|
4133
4133
|
]),
|
|
4134
4134
|
e("div", Ea, [
|
|
4135
|
-
e("div", qa, x(
|
|
4135
|
+
e("div", qa, x(X.code), 1),
|
|
4136
4136
|
_(v).enableTotalCost ? (a(), h("div", Va, [
|
|
4137
4137
|
e("span", La, x(_(ot)(
|
|
4138
|
-
(Oe =
|
|
4138
|
+
(Oe = X.totalCost) != null && Oe.amount ? X.totalCost : _(S).controller.value.getItemCost(X, _(De)()).cost
|
|
4139
4139
|
)), 1),
|
|
4140
|
-
$(
|
|
4140
|
+
$(X) ? T("", !0) : (a(), h("span", Ua, [
|
|
4141
4141
|
n[15] || (n[15] = e("span", { class: "w-1.5 h-1.5 rounded-full bg-gray-400" }, null, -1)),
|
|
4142
4142
|
ze(" " + x(_(w)("inventory.transfer.form.items.autoCalculated")), 1)
|
|
4143
4143
|
]))
|
|
@@ -4161,12 +4161,12 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4161
4161
|
])
|
|
4162
4162
|
], 64)) : K.value.value === "deliveryHistory" ? (a(), h("div", za, [
|
|
4163
4163
|
l.value.length ? (a(), h("div", Qa, [
|
|
4164
|
-
(a(!0), h($e, null, Ee(l.value, (
|
|
4164
|
+
(a(!0), h($e, null, Ee(l.value, (X, ye) => {
|
|
4165
4165
|
var Oe, Re, Ne, me, ee;
|
|
4166
4166
|
return a(), h($e, { key: ye }, [
|
|
4167
4167
|
e("div", Ya, [
|
|
4168
4168
|
e("div", Ja, [
|
|
4169
|
-
e("div",
|
|
4169
|
+
e("div", Za, [
|
|
4170
4170
|
e("div", {
|
|
4171
4171
|
class: Ue([
|
|
4172
4172
|
{
|
|
@@ -4177,8 +4177,8 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4177
4177
|
])
|
|
4178
4178
|
}, null, 2)
|
|
4179
4179
|
]),
|
|
4180
|
-
e("div",
|
|
4181
|
-
|
|
4180
|
+
e("div", Xa, [
|
|
4181
|
+
X.header === "Received" ? (a(), pe(Q, {
|
|
4182
4182
|
key: 0,
|
|
4183
4183
|
name: "local_shipping",
|
|
4184
4184
|
outline: "",
|
|
@@ -4199,20 +4199,20 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4199
4199
|
]),
|
|
4200
4200
|
e("div", tl, [
|
|
4201
4201
|
e("div", sl, [
|
|
4202
|
-
e("div", rl, x(
|
|
4203
|
-
e("div", ol, x(
|
|
4202
|
+
e("div", rl, x(X.header), 1),
|
|
4203
|
+
e("div", ol, x(X.date), 1)
|
|
4204
4204
|
]),
|
|
4205
4205
|
e("div", nl, [
|
|
4206
|
-
|
|
4206
|
+
X.header === "Received" && X.deliveryOrder && r.purchaseOrder ? (a(), pe(Vo, {
|
|
4207
4207
|
key: 0,
|
|
4208
|
-
deliveryOrder:
|
|
4208
|
+
deliveryOrder: X.deliveryOrder,
|
|
4209
4209
|
purchaseOrder: r.purchaseOrder,
|
|
4210
4210
|
"received-info-map": ve.value,
|
|
4211
4211
|
onSubmitted: n[3] || (n[3] = () => {
|
|
4212
4212
|
i("update:show", !1), i("submitted");
|
|
4213
4213
|
})
|
|
4214
4214
|
}, null, 8, ["deliveryOrder", "purchaseOrder", "received-info-map"])) : T("", !0),
|
|
4215
|
-
(Re = (Oe =
|
|
4215
|
+
(Re = (Oe = X.deliveryOrder) == null ? void 0 : Oe.netSuite) != null && Re.id ? (a(), pe(Ht, {
|
|
4216
4216
|
key: 1,
|
|
4217
4217
|
title: "Admin",
|
|
4218
4218
|
class: "min-w-[140px]"
|
|
@@ -4221,16 +4221,16 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4221
4221
|
var ke, Te;
|
|
4222
4222
|
return [
|
|
4223
4223
|
q(En, {
|
|
4224
|
-
"netsuite-id": (Te = (ke =
|
|
4224
|
+
"netsuite-id": (Te = (ke = X.deliveryOrder) == null ? void 0 : ke.netSuite) == null ? void 0 : Te.id
|
|
4225
4225
|
}, null, 8, ["netsuite-id"])
|
|
4226
4226
|
];
|
|
4227
4227
|
}),
|
|
4228
4228
|
_: 2
|
|
4229
4229
|
}, 1024)) : T("", !0),
|
|
4230
|
-
r.purchaseOrder && ((Ne =
|
|
4230
|
+
r.purchaseOrder && ((Ne = X.deliveryOrder) != null && Ne.id) ? (a(), pe(Ms, {
|
|
4231
4231
|
key: 2,
|
|
4232
4232
|
"purchase-order-id": (me = r.purchaseOrder) == null ? void 0 : me._id,
|
|
4233
|
-
"delivery-order-id": (ee =
|
|
4233
|
+
"delivery-order-id": (ee = X.deliveryOrder) == null ? void 0 : ee.id
|
|
4234
4234
|
}, null, 8, ["purchase-order-id", "delivery-order-id"])) : T("", !0)
|
|
4235
4235
|
])
|
|
4236
4236
|
])
|
|
@@ -4256,7 +4256,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4256
4256
|
}, {
|
|
4257
4257
|
default: ie(() => [
|
|
4258
4258
|
e("div", ul, [
|
|
4259
|
-
(a(!0), h($e, null, Ee(
|
|
4259
|
+
(a(!0), h($e, null, Ee(X.info, (ke, Te) => (a(), h("div", {
|
|
4260
4260
|
key: Te,
|
|
4261
4261
|
class: "flex flex-col gap-4"
|
|
4262
4262
|
}, [
|
|
@@ -4305,7 +4305,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4305
4305
|
label: _(w)(_(gt)[g].translationKey),
|
|
4306
4306
|
onClick: (V) => _e(g),
|
|
4307
4307
|
loading: z.value === g,
|
|
4308
|
-
disabled: z.value !== g &&
|
|
4308
|
+
disabled: z.value !== g && Z.value,
|
|
4309
4309
|
variant: _(gt)[g].buttonVariant
|
|
4310
4310
|
}, null, 8, ["label", "onClick", "loading", "disabled", "variant"])) : T("", !0)
|
|
4311
4311
|
], 64))), 256)),
|
|
@@ -4314,21 +4314,21 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4314
4314
|
label: _(w)("inventory.transfer.receiveRequest.actions.completeReceive"),
|
|
4315
4315
|
onClick: n[4] || (n[4] = (g) => _e("completeReceive")),
|
|
4316
4316
|
loading: z.value === "completeReceive",
|
|
4317
|
-
disabled: z.value !== "completeReceive" &&
|
|
4317
|
+
disabled: z.value !== "completeReceive" && Z.value
|
|
4318
4318
|
}, null, 8, ["label", "loading", "disabled"])) : T("", !0),
|
|
4319
4319
|
_(R).ableToMarkApproved(r.purchaseOrder) && r.canApprove && !I.value.includes("approveRequest") ? (a(), pe(O, {
|
|
4320
4320
|
key: 1,
|
|
4321
4321
|
label: _(w)("inventory.transfer.approval.actions.approveRequest"),
|
|
4322
4322
|
onClick: n[5] || (n[5] = (g) => _e("approveRequest")),
|
|
4323
4323
|
loading: z.value === "approveRequest",
|
|
4324
|
-
disabled: z.value !== "approveRequest" &&
|
|
4324
|
+
disabled: z.value !== "approveRequest" && Z.value
|
|
4325
4325
|
}, null, 8, ["label", "loading", "disabled"])) : T("", !0),
|
|
4326
4326
|
_(R).ableToCreateFulfillment(r.purchaseOrder, r.poRequest) && o.scope === "approval" ? (a(), pe(O, {
|
|
4327
4327
|
key: 2,
|
|
4328
4328
|
label: _(w)("inventory.transfer.receiveRequest.actions.processRequest"),
|
|
4329
4329
|
onClick: n[6] || (n[6] = (g) => _e("processRequest")),
|
|
4330
4330
|
loading: z.value === "processRequest",
|
|
4331
|
-
disabled: z.value !== "processRequest" &&
|
|
4331
|
+
disabled: z.value !== "processRequest" && Z.value
|
|
4332
4332
|
}, null, 8, ["label", "loading", "disabled"])) : T("", !0),
|
|
4333
4333
|
q(O, {
|
|
4334
4334
|
label: _(w)("common.close"),
|