@feedmepos/mf-inventory-portal 1.8.0-dev.7 → 1.8.0-dev.8
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-C8i7vBxz.js +1466 -0
- package/dist/{ApprovalView-1Y_jh_UJ.js → ApprovalView-GHgTeCBV.js} +9 -9
- package/dist/{BindingsDialog-VMvTLguN.js → BindingsDialog-C4-S2CWk.js} +2 -2
- package/dist/{BindingsPicker-KNRM5rMU.js → BindingsPicker-C7YUArBj.js} +2 -2
- package/dist/{BindingsTable-CSyNlNCL.js → BindingsTable-1Zoqi4ZS.js} +4 -4
- package/dist/{BulkReceiveRequestView-vOeHbWM_.js → BulkReceiveRequestView-Lakk8011.js} +19 -19
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DQuI04Yj.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DFSg0-gv.js} +1 -1
- package/dist/{ClosingDraftView-A2pJuhIb.js → ClosingDraftView-CnWFyWSE.js} +20 -20
- package/dist/ClosingHistoryView-Bkm0voU6.js +769 -0
- package/dist/{ClosingTemplateView-DpkNCyoB.js → ClosingTemplateView-Bz81JTsg.js} +18 -18
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DOpIDvsy.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-6s-24euf.js} +1 -1
- package/dist/{DefaultView-B4UuAqYu.js → DefaultView-1RRzbPB3.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-w0YcNH3F.js → DeliveryOrderPrintPreview-KcLqjOj1.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-BimIEHsW.js → EmailDialog.vue_vue_type_script_setup_true_lang-r0Q0qhoK.js} +663 -661
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Cwmk3NLS.js +47 -0
- package/dist/FeatureCapabilityGate-C6t1VwKD.js +74 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang--54VR4oB.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-pzIzIWpX.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B7j4ZSOe.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B6cFB4vX.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D_y8VcCI.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D_o6pX9i.js} +2 -2
- package/dist/{FmMultiselectDialog-DMA5eR0C.js → FmMultiselectDialog-CC_Na_p1.js} +2 -2
- package/dist/{FmMultiselectDialog-BnZInvgp.js → FmMultiselectDialog-D0GhmOQ9.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BXTUsnwN.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DQlSMRoB.js} +6 -6
- package/dist/{ImportView-C7Hah7MM.js → ImportView-DCcdEvy4.js} +6 -6
- package/dist/{IngredientsView-C4-8qNGD.js → IngredientsView-B2I2OPSb.js} +518 -523
- package/dist/{IntegrationExplorerView-D3leld2Z.js → IntegrationExplorerView-WK1EmwLA.js} +4 -4
- package/dist/{IntegrationView-BhRzry3g.js → IntegrationView-CeaL92Yj.js} +15 -15
- package/dist/{InventoryBindingForm-ewAgZ6e-.js → InventoryBindingForm-DgtaDM0I.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bpo7Yv9A.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CqDN355J.js} +5 -5
- package/dist/{InventoryBindingSummary-e67GzHYr.js → InventoryBindingSummary-C_W456aj.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKEzy2Uo.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BMDjCk9T.js} +1 -1
- package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BBkF9lOE.js → PlanTierBadge.vue_vue_type_script_setup_true_lang-BSR_nyHY.js} +71 -94
- package/dist/PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-D6-lo7iI.js +79 -0
- package/dist/{ProductionRunDetailView-Ct7kr5Ht.js → ProductionRunDetailView-C9rxLBbL.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-7u0HQH67.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-DwBY6gIb.js} +7 -7
- package/dist/{ProductionRunView-odWyBZGx.js → ProductionRunView-DvMdVGz1.js} +3 -3
- package/dist/{PublishView-BXA3k8Cp.js → PublishView-Dv-W6ntx.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DRugr4BU.js → PurchaseOrderPrintPreview-D1TAnJd_.js} +2 -2
- package/dist/{ReceiveRequestView-CeJs9NTD.js → ReceiveRequestView-Rc_uw_Ad.js} +13 -13
- package/dist/{RecipeView-BH0REMB3.js → RecipeView-ByUaGc4w.js} +16 -16
- package/dist/SettingsView-K5wAt8oo.js +1032 -0
- package/dist/StockView-B3EjdjVx.js +2615 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Ckw1_xIc.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CsRLy0xI.js} +1 -1
- package/dist/{SupplierView-DH9u6e2M.js → SupplierView-CLVupRN0.js} +298 -296
- package/dist/{SurchargeView-BPVEpc0f.js → SurchargeView-CToB_z5v.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-BRwxKmwb.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CvqIw9q6.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BpiePSmo.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BGPuaJlU.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DOQGPKiv.js → TransferDetails.vue_vue_type_script_setup_true_lang-8ydaQEw-.js} +785 -769
- package/dist/{TransferTemplateView-CEVRsKL7.js → TransferTemplateView-BnfALwmw.js} +20 -20
- package/dist/{UnitCostHistoryView-06rIaX_M.js → UnitCostHistoryView-BMB2MeTh.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-C2zidBrl.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-Dn8Y8zfp.js} +4 -4
- package/dist/{UnitView-Xk_F9SYG.js → UnitView-Bl8jws6R.js} +8 -8
- package/dist/{WarehouseView-bmpLmpcX.js → WarehouseView-BurSM1jg.js} +8 -8
- package/dist/{WastageTemplateView-CWV1pFxM.js → WastageTemplateView-DRfJ9LGR.js} +15 -15
- package/dist/api/license.d.ts +1 -0
- package/dist/{app-CURawLhs.js → app-Duum3eHx.js} +16 -16
- package/dist/app.js +1 -1
- package/dist/{closing-template-q_KGB4jO.js → closing-template-BE41yfue.js} +1 -1
- package/dist/components/FeatureCapabilityGate.spec.d.ts +1 -0
- package/dist/components/FeatureCapabilityGate.vue.d.ts +2 -0
- package/dist/{date2-3kdweNLp.js → date2-DrhO3BxU.js} +1 -1
- package/dist/{dayjs.min-DHE73-wM.js → dayjs.min-CQp6EpOp.js} +1 -1
- package/dist/{decimal-CAnQe2Ib.js → decimal-Cq0qUT4r.js} +2 -2
- package/dist/{defineDeepModel-CctS67Do.js → defineDeepModel-DRC39nJs.js} +1 -1
- package/dist/{duplicate-template-Jk2V2Ezg.js → duplicate-template-j2ymeDNH.js} +1 -1
- package/dist/{feature-D9n0IC0c.js → feature-C0hQza5A.js} +125 -103
- package/dist/feature-flags/vue.spec.d.ts +1 -0
- package/dist/{format-time-from-id-Bmzpbg-8.js → format-time-from-id-BmJoI3jT.js} +1 -1
- package/dist/{format-unit-display-CVg4Bl5L.js → format-unit-display-CRgIMXsD.js} +13 -13
- package/dist/{id-to-date-DPCcxufP.js → id-to-date-CuFZDvIr.js} +1 -1
- package/dist/{import-export.helper-bmGZwUBB.js → import-export.helper-B43zbsbj.js} +6 -6
- package/dist/{index-zCBA-X6R.js → index-BYDjs08n.js} +1 -1
- package/dist/{index-CFNNQo-7.js → index-Cwvg7EHd.js} +3 -3
- package/dist/{index-yt6MlAFG.js → index-DXNYZeq3.js} +1 -1
- package/dist/{lz-string-CqlY9MC2.js → lz-string-6DgW1cPF.js} +1 -1
- package/dist/{netsuite-DudeltN_.js → netsuite-BSpmyaE1.js} +2 -2
- package/dist/{number-BoePMDs8.js → number-5ZeFx-wN.js} +3 -3
- package/dist/{predefined-templates-DT32p04n.js → predefined-templates-C0jtb4T7.js} +1 -1
- package/dist/{purchase-order-template-LaRpWA04.js → purchase-order-template-B5Pjddfi.js} +1 -1
- package/dist/{recalculationUtils-BYN393eE.js → recalculationUtils-DtJWwWSj.js} +1 -1
- package/dist/{row-action.enum-BiP5wkT6.js → row-action.enum-BDDJNSi0.js} +1 -1
- package/dist/{rules-CQT0uAAo.js → rules-CinZKpvV.js} +2 -2
- package/dist/{stock-CVybjhUm.js → stock-1n-4iyqz.js} +3 -3
- package/dist/{stock-B9XerL9c.js → stock-BKMDvf5S.js} +1 -1
- package/dist/stores/feature.d.ts +5 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-dpHijd2E.js → supplier-Cv8HRNou.js} +2 -2
- package/dist/{surcharge-BZ4STY5J.js → surcharge-ktE1pRyy.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-Da5Lngvp.js → uom-rules-DCnXmEkb.js} +1 -1
- package/dist/{use-ingredient-select-dialog-C3YsT5l-.js → use-ingredient-select-dialog-CYUUVrCI.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BSsyrcGe.js → use-inventory-binding-dialog-Dugj9i-6.js} +2 -2
- package/dist/{use-template-enabled-locations-BmJUzSUm.js → use-template-enabled-locations-BlZ7WAqX.js} +2 -2
- package/dist/{use-transfer-locations-frEk_aBH.js → use-transfer-locations-CUDFnsVH.js} +2 -2
- package/dist/{useHrmPermission-Cyjm0y9a.js → useHrmPermission-BOwmXi9H.js} +1 -1
- package/dist/{useNavigationMenu-CnTsOF9T.js → useNavigationMenu-CbNKFBwx.js} +58 -57
- package/dist/{useSseClient-D_7o9nuf.js → useSseClient-CdyQh47h.js} +1 -1
- package/dist/views/settings/PlanLicenseDisplay.spec.d.ts +1 -0
- package/dist/views/settings/PlanLicenseDisplay.vue.d.ts +15 -0
- package/dist/{vue-i18n-DwAcG7yc.js → vue-i18n-dSKy66Jh.js} +169 -169
- package/dist/{xlsx.util-C7S-uyqm.js → xlsx.util-pjzuMquw.js} +2 -2
- package/package.json +5 -5
- package/dist/App-Bo29Nwt0.js +0 -1537
- package/dist/ClosingHistoryView-woRmvmYT.js +0 -761
- package/dist/SettingsView-Dc27wyk-.js +0 -977
- package/dist/StockView-DrHLzosW.js +0 -2616
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
import { f as lt, p as
|
|
2
|
-
import { defineComponent as Ve, ref as re, watch as Ye, createElementBlock as
|
|
1
|
+
import { f as lt, p as Os } from "./format-time-from-id-BmJoI3jT.js";
|
|
2
|
+
import { defineComponent as Ve, ref as re, watch as Ye, createElementBlock as h, openBlock as i, createCommentVNode as V, createElementVNode as e, withDirectives as xs, toDisplayString as k, unref as y, vModelText as ws, toRaw as $s, shallowRef as dt, onUnmounted as os, triggerRef as Cs, computed as H, readonly as As, h as oe, resolveComponent as ne, createVNode as T, Fragment as Ne, renderList as Te, reactive as Ds, onMounted as ns, createBlock as fe, withCtx as ue, createTextVNode as Ge, normalizeClass as We, renderSlot as Ns, isRef as Rs, resolveDynamicComponent as Ps } from "vue";
|
|
3
3
|
import { c as Gt } from "./component-BmLAdDiY.js";
|
|
4
|
-
import { D as qe, R as
|
|
5
|
-
import { q as
|
|
6
|
-
import { h as Pt, a as
|
|
7
|
-
import { j as
|
|
8
|
-
import { F as Be, u as Je, c as
|
|
9
|
-
import { L as
|
|
4
|
+
import { D as qe, R as De } from "./row-action.enum-BDDJNSi0.js";
|
|
5
|
+
import { q as Ce, H as st, d as Fs, u as ze, _ as z, a3 as as, a4 as yt, Z as be, a as Nt, a5 as Wt, a6 as Is, a7 as Ts, G as Es, s as Rt, c as wt, M as Qt, a8 as ls, r as at, C as Ue, w as Fe, B as mt, a9 as qs } from "./app-Duum3eHx.js";
|
|
6
|
+
import { h as Pt, a as Vs, t as Ls, b as et } from "./date2-DrhO3BxU.js";
|
|
7
|
+
import { j as js, c as Us, a as $e, t as Qe, d as ut } from "./number-5ZeFx-wN.js";
|
|
8
|
+
import { F as Be, u as Je, c as Ms, d as Yt, e as St } from "./feature-C0hQza5A.js";
|
|
9
|
+
import { L as Bs } from "./lz-string-6DgW1cPF.js";
|
|
10
10
|
import { useI18n as ht, useCoreStore as gt } from "@feedmepos/mf-common";
|
|
11
|
-
import { useDialog as bt, useSnackbar as Ze, components as pt, FmButtonVariant as je, useProxiedModel as
|
|
12
|
-
import { u as _t, a as Ft, S as Me } from "./netsuite-
|
|
11
|
+
import { useDialog as bt, useSnackbar as Ze, components as pt, FmButtonVariant as je, useProxiedModel as zs } from "@feedmepos/ui-library";
|
|
12
|
+
import { u as _t, a as Ft, S as Me } from "./netsuite-BSpmyaE1.js";
|
|
13
13
|
import { F as tt } from "./FmAdminBadge-DlplQOHb.js";
|
|
14
14
|
import { _ as Jt } from "./empty-placeholder-B0QU467o.js";
|
|
15
|
-
import { a as
|
|
16
|
-
import { u as Xe, _ as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { u as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { u as nr } from "./
|
|
28
|
-
|
|
15
|
+
import { a as Ks, b as Hs, f as ft } from "./format-unit-display-CRgIMXsD.js";
|
|
16
|
+
import { u as Xe, _ as Gs } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-CvqIw9q6.js";
|
|
17
|
+
import { F as Zt } from "./FeatureCapabilityGate-C6t1VwKD.js";
|
|
18
|
+
import { _ as Ws, a as Qs, b as Ys } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DQlSMRoB.js";
|
|
19
|
+
import { e as Js } from "./index-Cwvg7EHd.js";
|
|
20
|
+
import { i as Zs } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-pzIzIWpX.js";
|
|
21
|
+
import { F as Xt } from "./form-mode.enum-BKiNVH6A.js";
|
|
22
|
+
import { u as is } from "./supplier-Cv8HRNou.js";
|
|
23
|
+
import { u as Xs } from "./surcharge-ktE1pRyy.js";
|
|
24
|
+
import { f as er, h as tr, r as sr, s as rr } from "./predefined-templates-C0jtb4T7.js";
|
|
25
|
+
import { F as or } from "./decimal-Cq0qUT4r.js";
|
|
26
|
+
import { d as us } from "./defineDeepModel-DRC39nJs.js";
|
|
27
|
+
import { u as nr } from "./vue-i18n-dSKy66Jh.js";
|
|
28
|
+
import { u as ar } from "./useHrmPermission-BOwmXi9H.js";
|
|
29
|
+
function cs(c, t) {
|
|
29
30
|
return t.reduce(
|
|
30
31
|
(n, m) => {
|
|
31
32
|
const u = m.received.find((d) => d.sku._id === c._id);
|
|
32
|
-
return u && (n =
|
|
33
|
+
return u && (n = js(n, u.amount)), n;
|
|
33
34
|
},
|
|
34
|
-
|
|
35
|
+
or.toPrecision(Us(0), c.unit.precision)
|
|
35
36
|
);
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function ds(c) {
|
|
38
39
|
var n;
|
|
39
|
-
const t =
|
|
40
|
+
const t = Ce(), s = (n = c.supplier.supplyItems) != null && n.length ? { ...c.supplier, registrationNumber: c.supplier.registrationNumber ?? "" } : void 0;
|
|
40
41
|
return (m) => {
|
|
41
42
|
var u, d;
|
|
42
43
|
if ((u = m.totalCost) != null && u.amount) return m.totalCost;
|
|
@@ -56,8 +57,8 @@ function cs(c) {
|
|
|
56
57
|
}
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
-
var Se,
|
|
60
|
+
function lr(c) {
|
|
61
|
+
var Se, Ae, K, ve, P, x, w;
|
|
61
62
|
const { po: t, currentLocation: s, business: n, fulfilling: m, por: u } = c, d = s.doc.profile || {}, { name: r, address: a, regNo: O, legalName: f } = d, N = {
|
|
62
63
|
name: r || s.name || "",
|
|
63
64
|
legalName: f || void 0,
|
|
@@ -73,15 +74,15 @@ function ar(c) {
|
|
|
73
74
|
phoneNumber: t.supplier.phoneNumber || void 0,
|
|
74
75
|
registrationNumber: t.supplier.registrationNumber || void 0,
|
|
75
76
|
line1: ((Se = t.supplier.address) == null ? void 0 : Se.line1) || "",
|
|
76
|
-
line2: ((
|
|
77
|
+
line2: ((Ae = t.supplier.address) == null ? void 0 : Ae.line2) || void 0,
|
|
77
78
|
postcode: ((K = t.supplier.address) == null ? void 0 : K.postcode) || "",
|
|
78
79
|
city: ((ve = t.supplier.address) == null ? void 0 : ve.city) || "",
|
|
79
80
|
state: ((P = t.supplier.address) == null ? void 0 : P.state) || "",
|
|
80
81
|
country: ((x = t.supplier.address) == null ? void 0 : x.country) || ""
|
|
81
|
-
}, F =
|
|
82
|
+
}, F = ds(t), _ = [], B = t.items.filter((A) => A.sku).map((A) => {
|
|
82
83
|
var D;
|
|
83
84
|
const { sku: G, measurement: X } = A, le = $e(
|
|
84
|
-
|
|
85
|
+
cs(A.sku, t.deliveryOrder || []),
|
|
85
86
|
!1
|
|
86
87
|
), g = F(A);
|
|
87
88
|
return g && _.push(g), {
|
|
@@ -135,11 +136,11 @@ function ar(c) {
|
|
|
135
136
|
}, ae = m && (t.deliveryFullfillment || []).length > 0;
|
|
136
137
|
return ae && (se = st.Enum.deliveryOrder), { printData: Oe, templateType: se, isDeliveryPrint: ae };
|
|
137
138
|
}
|
|
138
|
-
function
|
|
139
|
+
function ms(c) {
|
|
139
140
|
var f;
|
|
140
|
-
const { printData: t, templateType: s } =
|
|
141
|
+
const { printData: t, templateType: s } = lr(c), m = er().getTemplateByType(s), u = !!((f = m == null ? void 0 : m.blocks) != null && f.length), d = tr(s), r = u ? m.blocks : d.blocks, a = u ? m.name : d.name, O = !u;
|
|
141
142
|
try {
|
|
142
|
-
const N =
|
|
143
|
+
const N = sr(r, t), R = N.match(/<style>([\s\S]*?)<\/style>/), F = R ? `<style>${R[1]}</style>` : "", _ = N.replace(/<style>[\s\S]*?<\/style>/, "");
|
|
143
144
|
return {
|
|
144
145
|
html: `<!DOCTYPE html>
|
|
145
146
|
<html>
|
|
@@ -164,7 +165,7 @@ ${F}
|
|
|
164
165
|
return alert("Failed to render print template. Please try recreating the template."), null;
|
|
165
166
|
}
|
|
166
167
|
}
|
|
167
|
-
const
|
|
168
|
+
const ir = Fs((c, t) => {
|
|
168
169
|
const s = ze();
|
|
169
170
|
return {
|
|
170
171
|
async getShipments({
|
|
@@ -181,7 +182,7 @@ const lr = Ps((c, t) => {
|
|
|
181
182
|
return await t.post(u, { shipmentIds: n });
|
|
182
183
|
}
|
|
183
184
|
};
|
|
184
|
-
}),
|
|
185
|
+
}), ps = {
|
|
185
186
|
[z.enum.confirmDraft]: {
|
|
186
187
|
primaryActions: {
|
|
187
188
|
text: "Confirm draft",
|
|
@@ -266,10 +267,10 @@ const lr = Ps((c, t) => {
|
|
|
266
267
|
message: "Purchase order will be processed.",
|
|
267
268
|
successMessage: "Purchase order has been processed"
|
|
268
269
|
}
|
|
269
|
-
},
|
|
270
|
+
}, ur = { class: "p-4" }, cr = {
|
|
270
271
|
key: 0,
|
|
271
272
|
class: "fm-typo-en-body-md-400 mb-3"
|
|
272
|
-
},
|
|
273
|
+
}, dr = { class: "fm-typo-en-body-md-400" }, fs = /* @__PURE__ */ Ve({
|
|
273
274
|
__name: "RejectDraftForm",
|
|
274
275
|
props: {
|
|
275
276
|
message: {},
|
|
@@ -285,15 +286,15 @@ const lr = Ps((c, t) => {
|
|
|
285
286
|
function m() {
|
|
286
287
|
n.value = "";
|
|
287
288
|
}
|
|
288
|
-
return (u, d) => (i(),
|
|
289
|
-
t.message ? (i(),
|
|
290
|
-
e("label",
|
|
291
|
-
|
|
289
|
+
return (u, d) => (i(), h("div", ur, [
|
|
290
|
+
t.message ? (i(), h("div", cr, k(t.message), 1)) : V("", !0),
|
|
291
|
+
e("label", dr, k(y(s)("inventory.transfer.receiveRequest.details.rejectionReason")) + " (" + k(y(s)("inventory.common.optional")) + ")", 1),
|
|
292
|
+
xs(e("textarea", {
|
|
292
293
|
"onUpdate:modelValue": d[0] || (d[0] = (r) => n.value = r),
|
|
293
294
|
rows: "4",
|
|
294
295
|
class: "w-full mt-2 p-2 border rounded"
|
|
295
296
|
}, null, 512), [
|
|
296
|
-
[
|
|
297
|
+
[ws, n.value]
|
|
297
298
|
]),
|
|
298
299
|
e("div", { class: "mt-3 flex gap-2" }, [
|
|
299
300
|
e("button", {
|
|
@@ -308,7 +309,7 @@ const lr = Ps((c, t) => {
|
|
|
308
309
|
function vt(c) {
|
|
309
310
|
if (c.items == null)
|
|
310
311
|
return {};
|
|
311
|
-
const t =
|
|
312
|
+
const t = as.safeParse(c);
|
|
312
313
|
if (!t.success) {
|
|
313
314
|
const s = t.error.issues.map((n) => `${n.path.join(".") || "(root)"}: ${n.message}`).join("; ");
|
|
314
315
|
return console.error(
|
|
@@ -319,7 +320,7 @@ function vt(c) {
|
|
|
319
320
|
purchaseOrder: c
|
|
320
321
|
});
|
|
321
322
|
}
|
|
322
|
-
function
|
|
323
|
+
function mr(c) {
|
|
323
324
|
return yt.validatePOItemReceivedStatus({
|
|
324
325
|
dto: c
|
|
325
326
|
});
|
|
@@ -339,7 +340,7 @@ function Ct(c, t, s) {
|
|
|
339
340
|
isPOOverReceive: s
|
|
340
341
|
});
|
|
341
342
|
}
|
|
342
|
-
function
|
|
343
|
+
function vs() {
|
|
343
344
|
const c = ze(), t = Xe(), s = Je();
|
|
344
345
|
async function n(u, d) {
|
|
345
346
|
const r = c.currentLocationDBName;
|
|
@@ -352,7 +353,7 @@ function fs() {
|
|
|
352
353
|
return (u) => s.useOperatePurchaseOrderV2 ? m(u.operateV2, u.transferTo) : n(u.operate, u.transferTo);
|
|
353
354
|
}
|
|
354
355
|
function He(c) {
|
|
355
|
-
const t =
|
|
356
|
+
const t = $s(c);
|
|
356
357
|
if (Array.isArray(t))
|
|
357
358
|
return t.map(He);
|
|
358
359
|
if (t !== null && typeof t == "object") {
|
|
@@ -368,7 +369,7 @@ const kt = {
|
|
|
368
369
|
add: "add",
|
|
369
370
|
delete: "delete"
|
|
370
371
|
};
|
|
371
|
-
function
|
|
372
|
+
function es(c) {
|
|
372
373
|
return {
|
|
373
374
|
dbName: c.dbName,
|
|
374
375
|
type: c.type,
|
|
@@ -377,11 +378,11 @@ function Xt(c) {
|
|
|
377
378
|
doc: c.doc
|
|
378
379
|
};
|
|
379
380
|
}
|
|
380
|
-
const
|
|
381
|
+
const ys = { line1: "", state: "", city: "", postcode: "", country: "" };
|
|
381
382
|
function rt(c) {
|
|
382
383
|
return c == null ? "" : String(c);
|
|
383
384
|
}
|
|
384
|
-
function
|
|
385
|
+
function hs(c) {
|
|
385
386
|
const t = c.address, s = t != null ? {
|
|
386
387
|
...t,
|
|
387
388
|
line1: rt(t.line1),
|
|
@@ -389,15 +390,15 @@ function ys(c) {
|
|
|
389
390
|
city: rt(t.city),
|
|
390
391
|
postcode: rt(t.postcode),
|
|
391
392
|
country: rt(t.country)
|
|
392
|
-
} : { ...
|
|
393
|
+
} : { ...ys };
|
|
393
394
|
return {
|
|
394
395
|
...c,
|
|
395
396
|
registrationNumber: c.registrationNumber ?? "",
|
|
396
397
|
address: s
|
|
397
398
|
};
|
|
398
399
|
}
|
|
399
|
-
function
|
|
400
|
-
const u = He(c.suppliers ?? []).map(
|
|
400
|
+
function ts(c, t, s, n, m) {
|
|
401
|
+
const u = He(c.suppliers ?? []).map(hs), d = He(t.allLocations ?? []).map(es), r = t._currentLocation ? es(He(t._currentLocation)) : null, a = s.inventory ? [He(s.inventory)] : [], O = n.state.setting ? He(n.state.setting) : null, f = He(m.surcharges ?? []);
|
|
401
402
|
return {
|
|
402
403
|
suppliers: u,
|
|
403
404
|
locations: d,
|
|
@@ -407,14 +408,14 @@ function es(c, t, s, n, m) {
|
|
|
407
408
|
surcharges: f
|
|
408
409
|
};
|
|
409
410
|
}
|
|
410
|
-
function
|
|
411
|
-
const c =
|
|
411
|
+
function gs() {
|
|
412
|
+
const c = is(), t = ze(), s = Nt(), n = _t(), m = Xs(), u = ts(
|
|
412
413
|
c,
|
|
413
414
|
t,
|
|
414
415
|
s,
|
|
415
416
|
n,
|
|
416
417
|
m
|
|
417
|
-
), d = dt(
|
|
418
|
+
), d = dt(Ms({ env: u }));
|
|
418
419
|
d.value.setUsePartialUpdates(!0);
|
|
419
420
|
const r = dt(d.value.state()), a = (R) => {
|
|
420
421
|
r.value = d.value.state();
|
|
@@ -426,19 +427,19 @@ function hs() {
|
|
|
426
427
|
Wt(r.value, F, _);
|
|
427
428
|
break;
|
|
428
429
|
case kt.add:
|
|
429
|
-
|
|
430
|
+
Ts(r.value, F, _);
|
|
430
431
|
break;
|
|
431
432
|
case kt.delete:
|
|
432
|
-
|
|
433
|
+
Is(r.value, F);
|
|
433
434
|
break;
|
|
434
435
|
default:
|
|
435
436
|
console.warn(`Unknown partial update operation: ${R}, falling back to 'set'`), Wt(r.value, F, _);
|
|
436
437
|
}
|
|
437
|
-
F !== "remark" && F !== "ref" &&
|
|
438
|
+
F !== "remark" && F !== "ref" && Cs(r);
|
|
438
439
|
};
|
|
439
440
|
d.value.addPartialListener(O);
|
|
440
441
|
function f() {
|
|
441
|
-
const R =
|
|
442
|
+
const R = ts(
|
|
442
443
|
c,
|
|
443
444
|
t,
|
|
444
445
|
s,
|
|
@@ -464,13 +465,13 @@ function hs() {
|
|
|
464
465
|
f();
|
|
465
466
|
},
|
|
466
467
|
{ deep: !0 }
|
|
467
|
-
),
|
|
468
|
+
), os(() => {
|
|
468
469
|
d.value.removeListener(a), d.value.removePartialListener(O);
|
|
469
470
|
});
|
|
470
471
|
function N(R) {
|
|
471
472
|
var F;
|
|
472
473
|
if (R != null && R._id) {
|
|
473
|
-
const _ = /* @__PURE__ */ new Set(["1", "2"]), B = R, E = B.supplier, te = E != null ?
|
|
474
|
+
const _ = /* @__PURE__ */ new Set(["1", "2"]), B = R, E = B.supplier, te = E != null ? hs(E) : { _id: "", name: "", registrationNumber: "", address: { ...ys } }, se = {
|
|
474
475
|
...R,
|
|
475
476
|
version: _.has(R.version) ? R.version : null,
|
|
476
477
|
supplier: te,
|
|
@@ -514,20 +515,20 @@ function hs() {
|
|
|
514
515
|
}
|
|
515
516
|
var At = /* @__PURE__ */ ((c) => (c.RECEIVE_REQUEST = "receive/request", c.APPROVAL = "approval", c))(At || {});
|
|
516
517
|
const ot = re(), Ot = re(), xt = re();
|
|
517
|
-
function
|
|
518
|
-
const s = bt(), n = ze(), m = Je(), u =
|
|
519
|
-
t != null && t.startDate && (t != null && t.endDate) ? t :
|
|
518
|
+
function gi(c, t) {
|
|
519
|
+
const s = bt(), n = ze(), m = Je(), u = is(), d = gt(), r = Ks(), a = Hs(), O = re(!1), f = Ze(), N = Xe(), R = ir(), F = re(new Array()), _ = re(new Array()), B = re(
|
|
520
|
+
t != null && t.startDate && (t != null && t.endDate) ? t : Zs()
|
|
520
521
|
), E = H(() => {
|
|
521
522
|
const g = new Date(B.value.startDate), D = new Date(B.value.endDate);
|
|
522
523
|
return {
|
|
523
|
-
start:
|
|
524
|
-
end:
|
|
524
|
+
start: Ls(g).toISOString(),
|
|
525
|
+
end: Vs(D).toISOString()
|
|
525
526
|
};
|
|
526
|
-
}), te = re(new Array()), se =
|
|
527
|
+
}), te = re(new Array()), se = Es(), Q = re(null);
|
|
527
528
|
async function de(g) {
|
|
528
529
|
function D(ee) {
|
|
529
530
|
const L = {
|
|
530
|
-
mode:
|
|
531
|
+
mode: Xt.CREATE,
|
|
531
532
|
modelValue: g || void 0,
|
|
532
533
|
show: !0,
|
|
533
534
|
"onUpdate:show"(b) {
|
|
@@ -559,7 +560,7 @@ function yi(c, t) {
|
|
|
559
560
|
}
|
|
560
561
|
function Oe(g) {
|
|
561
562
|
const D = {
|
|
562
|
-
mode:
|
|
563
|
+
mode: Xt.UPDATE,
|
|
563
564
|
modelValue: wt(g),
|
|
564
565
|
show: !0,
|
|
565
566
|
"onUpdate:show"(ie) {
|
|
@@ -576,7 +577,7 @@ function yi(c, t) {
|
|
|
576
577
|
const j = n.locationRestaurantFromCore(D.doc._id);
|
|
577
578
|
j !== null && (D.doc = j);
|
|
578
579
|
}
|
|
579
|
-
const ie =
|
|
580
|
+
const ie = ms({
|
|
580
581
|
po: g,
|
|
581
582
|
currentLocation: D,
|
|
582
583
|
business: d.currentBusiness.value,
|
|
@@ -584,7 +585,7 @@ function yi(c, t) {
|
|
|
584
585
|
por: g.request
|
|
585
586
|
});
|
|
586
587
|
if (!ie) return;
|
|
587
|
-
const ee =
|
|
588
|
+
const ee = rr(ie.html), L = u.supplierById[g.supplier._id], b = {
|
|
588
589
|
recipientName: L.name,
|
|
589
590
|
email: (L == null ? void 0 : L.email) ?? "",
|
|
590
591
|
business: d.currentBusiness.value,
|
|
@@ -604,7 +605,7 @@ function yi(c, t) {
|
|
|
604
605
|
const D = g.flatMap((j) => j.shipmentIds || []).filter(Boolean), ie = D.length > 0 ? await R.getShipmentsByIds(D) : [];
|
|
605
606
|
_.value = ie;
|
|
606
607
|
const ee = await se.readCurrentLocationLastClosing(!0), L = ee == null ? void 0 : ee._id;
|
|
607
|
-
L && (Q.value =
|
|
608
|
+
L && (Q.value = Os(L)), await m.awaitFeatureLoaded(() => m.mustUsePoTemplate) && await a.fetchTemplates();
|
|
608
609
|
const b = F.value.map((j) => {
|
|
609
610
|
var J;
|
|
610
611
|
return ((J = j.request) == null ? void 0 : J.id) ?? "";
|
|
@@ -620,7 +621,7 @@ function yi(c, t) {
|
|
|
620
621
|
O.value = !1;
|
|
621
622
|
}
|
|
622
623
|
}
|
|
623
|
-
async function
|
|
624
|
+
async function Ae() {
|
|
624
625
|
te.value = [], O.value = !0;
|
|
625
626
|
try {
|
|
626
627
|
te.value = await N.readRequests(
|
|
@@ -643,7 +644,7 @@ function yi(c, t) {
|
|
|
643
644
|
case "receive/request":
|
|
644
645
|
return Se();
|
|
645
646
|
case "approval":
|
|
646
|
-
return
|
|
647
|
+
return Ae();
|
|
647
648
|
}
|
|
648
649
|
}
|
|
649
650
|
function ve(g, D) {
|
|
@@ -689,7 +690,7 @@ function yi(c, t) {
|
|
|
689
690
|
x.value = b;
|
|
690
691
|
}
|
|
691
692
|
async function G(g, D, ie, ee, L) {
|
|
692
|
-
const b =
|
|
693
|
+
const b = vs();
|
|
693
694
|
O.value = !0;
|
|
694
695
|
try {
|
|
695
696
|
await b({
|
|
@@ -733,7 +734,7 @@ function yi(c, t) {
|
|
|
733
734
|
}
|
|
734
735
|
}
|
|
735
736
|
async function X(g, D, ie) {
|
|
736
|
-
const ee =
|
|
737
|
+
const ee = ps[D];
|
|
737
738
|
if (!ee) {
|
|
738
739
|
f.open({
|
|
739
740
|
title: "Something went wrong",
|
|
@@ -749,7 +750,7 @@ function yi(c, t) {
|
|
|
749
750
|
title: b.title,
|
|
750
751
|
message: b.message,
|
|
751
752
|
primaryActions: b.primaryActions,
|
|
752
|
-
contentComponent:
|
|
753
|
+
contentComponent: fs,
|
|
753
754
|
contentComponentProps: {
|
|
754
755
|
message: b.message,
|
|
755
756
|
onChange: (ke) => me = ke
|
|
@@ -765,10 +766,10 @@ function yi(c, t) {
|
|
|
765
766
|
});
|
|
766
767
|
return;
|
|
767
768
|
}
|
|
768
|
-
const j = [], J =
|
|
769
|
+
const j = [], J = gs();
|
|
769
770
|
J.init(g), (D === z.enum.confirmDraft || D === z.enum.submitRequest) && j.push({
|
|
770
771
|
action: "confirmDraft",
|
|
771
|
-
payload: J.controller.value.toConfirmDraftData(
|
|
772
|
+
payload: J.controller.value.toConfirmDraftData(Ce())
|
|
772
773
|
}), s.open({
|
|
773
774
|
title: b.title,
|
|
774
775
|
message: b.message,
|
|
@@ -818,8 +819,8 @@ function yi(c, t) {
|
|
|
818
819
|
promptEmailDialog: ae
|
|
819
820
|
};
|
|
820
821
|
}
|
|
821
|
-
function
|
|
822
|
-
var ae, Se,
|
|
822
|
+
function pr(c) {
|
|
823
|
+
var ae, Se, Ae, K, ve, P;
|
|
823
824
|
const { po: t, currentLocation: s, business: n, fulfilling: m, por: u } = c, { name: d, address: r, regNo: a, legalName: O } = s.doc.profile, f = {
|
|
824
825
|
name: d,
|
|
825
826
|
legalName: O,
|
|
@@ -836,13 +837,13 @@ function mr(c) {
|
|
|
836
837
|
registrationNumber: t.supplier.registrationNumber,
|
|
837
838
|
line1: (ae = t.supplier.address) == null ? void 0 : ae.line1,
|
|
838
839
|
line2: (Se = t.supplier.address) == null ? void 0 : Se.line2,
|
|
839
|
-
postcode: (
|
|
840
|
+
postcode: (Ae = t.supplier.address) == null ? void 0 : Ae.postcode,
|
|
840
841
|
city: (K = t.supplier.address) == null ? void 0 : K.city,
|
|
841
842
|
state: (ve = t.supplier.address) == null ? void 0 : ve.state,
|
|
842
843
|
country: (P = t.supplier.address) == null ? void 0 : P.country
|
|
843
|
-
}, R =
|
|
844
|
+
}, R = ds(t), F = t.items.map((x) => {
|
|
844
845
|
const { sku: w, measurement: A } = x, G = $e(
|
|
845
|
-
|
|
846
|
+
cs(x.sku, t.deliveryOrder || []),
|
|
846
847
|
!1
|
|
847
848
|
), X = R(x);
|
|
848
849
|
return {
|
|
@@ -894,7 +895,7 @@ function mr(c) {
|
|
|
894
895
|
deliveryOrders: _
|
|
895
896
|
}, Q = new URL(window.location.href), de = m && (t.deliveryFullfillment || []).length > 0 ? "receive-request/delivery-print-preview" : "receive-request/print-preview";
|
|
896
897
|
Q.pathname = Q.hostname.includes("portal.feedme") ? `/inventory/${de}` : `/${de}`;
|
|
897
|
-
const Oe =
|
|
898
|
+
const Oe = Bs.compressToEncodedURIComponent(JSON.stringify(se));
|
|
898
899
|
Q.searchParams.append("data", Oe), window.open(Q.href, "_blank", "noreferrer");
|
|
899
900
|
}
|
|
900
901
|
const Ke = {
|
|
@@ -959,7 +960,7 @@ const Ke = {
|
|
|
959
960
|
value: z.enum.returnStock
|
|
960
961
|
}
|
|
961
962
|
};
|
|
962
|
-
function
|
|
963
|
+
function bs() {
|
|
963
964
|
const c = Je();
|
|
964
965
|
return {
|
|
965
966
|
ableToMarkReceived(t) {
|
|
@@ -979,22 +980,22 @@ function gs() {
|
|
|
979
980
|
}
|
|
980
981
|
};
|
|
981
982
|
}
|
|
982
|
-
function
|
|
983
|
+
function _s() {
|
|
983
984
|
const c = H(() => [
|
|
984
985
|
{
|
|
985
986
|
action: Qt.Action.manage,
|
|
986
987
|
subject: Qt.Subject.Business.inventory_orderDraftApproval
|
|
987
988
|
}
|
|
988
|
-
]), { hasPermission: t } =
|
|
989
|
+
]), { hasPermission: t } = ar(c);
|
|
989
990
|
return {
|
|
990
|
-
hasOrderDraftPermission:
|
|
991
|
+
hasOrderDraftPermission: As(t)
|
|
991
992
|
};
|
|
992
993
|
}
|
|
993
|
-
function
|
|
994
|
-
const m = ze(), u = _t(), d = gt(), r =
|
|
995
|
-
() => N.enablePrintTemplate ? [qe[
|
|
994
|
+
function bi(c, t, s, n) {
|
|
995
|
+
const m = ze(), u = _t(), d = gt(), r = bs(), { t: a } = ht(), O = Ze(), { hasOrderDraftPermission: f } = _s(), N = Je(), R = H(
|
|
996
|
+
() => N.enablePrintTemplate ? [qe[De.PrintCustom]] : []
|
|
996
997
|
), F = H(
|
|
997
|
-
() => N.enablePurchaseOrderEmail ? [qe[
|
|
998
|
+
() => N.enablePurchaseOrderEmail ? [qe[De.Email]] : []
|
|
998
999
|
);
|
|
999
1000
|
function _(K) {
|
|
1000
1001
|
const ve = B(K), P = n == null ? void 0 : n.excludeRowActions;
|
|
@@ -1006,50 +1007,50 @@ function hi(c, t, s, n) {
|
|
|
1006
1007
|
switch (K.status) {
|
|
1007
1008
|
case "DRAFT":
|
|
1008
1009
|
return [
|
|
1009
|
-
qe[
|
|
1010
|
-
qe[
|
|
1010
|
+
qe[De.Update],
|
|
1011
|
+
qe[De.Details],
|
|
1011
1012
|
K.supplier.internal === "restaurant" || K.supplier.internal === "warehouse" ? Ke[z.enum.submitRequest] : Ke[z.enum.confirmDraft],
|
|
1012
1013
|
Ke[z.enum.cancelDraft]
|
|
1013
1014
|
];
|
|
1014
1015
|
case "RECEIVING":
|
|
1015
1016
|
return [
|
|
1016
1017
|
...r.ableToMarkReceived(K) ? [Ke[z.enum.completeReceive]] : [],
|
|
1017
|
-
qe[
|
|
1018
|
-
qe[
|
|
1018
|
+
qe[De.Details],
|
|
1019
|
+
qe[De.Print],
|
|
1019
1020
|
...R.value,
|
|
1020
1021
|
...F.value
|
|
1021
1022
|
];
|
|
1022
1023
|
case "PENDING_APPROVAL": {
|
|
1023
|
-
const P = [qe[
|
|
1024
|
+
const P = [qe[De.Details]];
|
|
1024
1025
|
return f.value && P.push(
|
|
1025
|
-
qe[
|
|
1026
|
+
qe[De.Update],
|
|
1026
1027
|
Ke[z.enum.approveDraft],
|
|
1027
1028
|
Ke[z.enum.rejectDraft]
|
|
1028
1029
|
), P;
|
|
1029
1030
|
}
|
|
1030
1031
|
case "REQUESTING":
|
|
1031
1032
|
return c === "receive/request" ? [
|
|
1032
|
-
qe[
|
|
1033
|
-
qe[
|
|
1033
|
+
qe[De.Details],
|
|
1034
|
+
qe[De.Print],
|
|
1034
1035
|
...R.value
|
|
1035
1036
|
] : [
|
|
1036
1037
|
Ke[z.enum.approveRequest],
|
|
1037
1038
|
Ke[z.enum.rejectRequest],
|
|
1038
|
-
qe[
|
|
1039
|
+
qe[De.Details]
|
|
1039
1040
|
// DefaultRowActions[RowActionEnum.Print]
|
|
1040
1041
|
];
|
|
1041
1042
|
case "PROCESSING":
|
|
1042
1043
|
return [
|
|
1043
|
-
qe[
|
|
1044
|
-
qe[
|
|
1044
|
+
qe[De.Details],
|
|
1045
|
+
qe[De.Print],
|
|
1045
1046
|
...R.value
|
|
1046
1047
|
];
|
|
1047
1048
|
case "COMPLETE":
|
|
1048
1049
|
case "CANCEL":
|
|
1049
1050
|
default:
|
|
1050
1051
|
return [
|
|
1051
|
-
qe[
|
|
1052
|
-
qe[
|
|
1052
|
+
qe[De.Details],
|
|
1053
|
+
qe[De.Print],
|
|
1053
1054
|
...R.value
|
|
1054
1055
|
];
|
|
1055
1056
|
}
|
|
@@ -1072,7 +1073,7 @@ function hi(c, t, s, n) {
|
|
|
1072
1073
|
}
|
|
1073
1074
|
const w = wt(x);
|
|
1074
1075
|
if (!(n != null && n.onCustomAction && await n.onCustomAction(K, w))) {
|
|
1075
|
-
if (K ===
|
|
1076
|
+
if (K === De.Print || K === De.PrintCustom) {
|
|
1076
1077
|
let b = w;
|
|
1077
1078
|
if (b.items == null && (n != null && n.fetchFullPo)) {
|
|
1078
1079
|
const o = await n.fetchFullPo(w);
|
|
@@ -1092,22 +1093,22 @@ function hi(c, t, s, n) {
|
|
|
1092
1093
|
fulfilling: c === "approval",
|
|
1093
1094
|
por: ke
|
|
1094
1095
|
};
|
|
1095
|
-
if (K ===
|
|
1096
|
-
const o =
|
|
1097
|
-
o && (ae.value = o.html, Se.value = o.templateName,
|
|
1096
|
+
if (K === De.PrintCustom) {
|
|
1097
|
+
const o = ms(we);
|
|
1098
|
+
o && (ae.value = o.html, Se.value = o.templateName, Ae.value = o.isDefault, Oe.value = !0);
|
|
1098
1099
|
} else
|
|
1099
|
-
|
|
1100
|
+
pr(we);
|
|
1100
1101
|
return;
|
|
1101
1102
|
}
|
|
1102
|
-
if (K ===
|
|
1103
|
+
if (K === De.Details) {
|
|
1103
1104
|
t.promptShowTransferDetails(w, P);
|
|
1104
1105
|
return;
|
|
1105
1106
|
}
|
|
1106
|
-
if (K ===
|
|
1107
|
+
if (K === De.Update) {
|
|
1107
1108
|
(ie = t.promptUpdateTransferDialog) == null || ie.call(t, w);
|
|
1108
1109
|
return;
|
|
1109
1110
|
}
|
|
1110
|
-
if (K ===
|
|
1111
|
+
if (K === De.Email) {
|
|
1111
1112
|
(ee = t.promptEmailDialog) == null || ee.call(t, w);
|
|
1112
1113
|
return;
|
|
1113
1114
|
}
|
|
@@ -1430,7 +1431,7 @@ function hi(c, t, s, n) {
|
|
|
1430
1431
|
{
|
|
1431
1432
|
id: "action",
|
|
1432
1433
|
cell(P) {
|
|
1433
|
-
const x = P.row.original, A = (x.purchaseOrder ? _(x.purchaseOrder) : []).map((G) => G.value ===
|
|
1434
|
+
const x = P.row.original, A = (x.purchaseOrder ? _(x.purchaseOrder) : []).map((G) => G.value === De.Print ? {
|
|
1434
1435
|
...G,
|
|
1435
1436
|
translationKey: "inventory.transfer.receiveRequest.details.printDeliveryOrder"
|
|
1436
1437
|
} : G);
|
|
@@ -1523,19 +1524,19 @@ function hi(c, t, s, n) {
|
|
|
1523
1524
|
}
|
|
1524
1525
|
return K;
|
|
1525
1526
|
}
|
|
1526
|
-
const de = H(() => c === "receive/request" ? se() : Q()), Oe = re(!1), ae = re(""), Se = re(""),
|
|
1527
|
+
const de = H(() => c === "receive/request" ? se() : Q()), Oe = re(!1), ae = re(""), Se = re(""), Ae = re(!1);
|
|
1527
1528
|
return {
|
|
1528
1529
|
columnDefs: de,
|
|
1529
1530
|
showCustomPrintDialog: Oe,
|
|
1530
1531
|
customPrintHtml: ae,
|
|
1531
1532
|
customPrintTemplateName: Se,
|
|
1532
|
-
customPrintIsDefault:
|
|
1533
|
+
customPrintIsDefault: Ae
|
|
1533
1534
|
};
|
|
1534
1535
|
}
|
|
1535
|
-
const
|
|
1536
|
+
const fr = { class: "flex flex-col gap-4 border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, vr = { class: "flex items-center justify-between" }, yr = {
|
|
1536
1537
|
key: 0,
|
|
1537
1538
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary"
|
|
1538
|
-
},
|
|
1539
|
+
}, hr = { class: "flex justify-between items-start py-1 gap-4" }, gr = { class: "flex-1 min-w-0 flex flex-col gap-2" }, br = { class: "flex flex-col gap-2 items-end w-52 shrink-0" }, _r = {
|
|
1539
1540
|
key: 0,
|
|
1540
1541
|
class: "border-b border-fm-color-stroke-secondary"
|
|
1541
1542
|
}, It = /* @__PURE__ */ Ve({
|
|
@@ -1563,8 +1564,8 @@ const pr = { class: "flex flex-col gap-4 border border-fm-color-neutral-gray-200
|
|
|
1563
1564
|
}
|
|
1564
1565
|
return (a, O) => {
|
|
1565
1566
|
const f = ne("FmButton"), N = ne("FmTextField"), R = ne("FmStepperField");
|
|
1566
|
-
return i(),
|
|
1567
|
-
e("div",
|
|
1567
|
+
return i(), h("div", fr, [
|
|
1568
|
+
e("div", vr, [
|
|
1568
1569
|
O[0] || (O[0] = e("div", { class: "fm-typo-en-body-lg-600 text-fm-color-typo-secondary" }, "Price adjustments", -1)),
|
|
1569
1570
|
T(f, {
|
|
1570
1571
|
variant: "tertiary",
|
|
@@ -1574,12 +1575,12 @@ const pr = { class: "flex flex-col gap-4 border border-fm-color-neutral-gray-200
|
|
|
1574
1575
|
onClick: m
|
|
1575
1576
|
})
|
|
1576
1577
|
]),
|
|
1577
|
-
s.value.length === 0 ? (i(),
|
|
1578
|
-
(i(!0),
|
|
1578
|
+
s.value.length === 0 ? (i(), h("div", yr, " No price adjustments ")) : V("", !0),
|
|
1579
|
+
(i(!0), h(Ne, null, Te(s.value, (F, _) => (i(), h("div", {
|
|
1579
1580
|
key: F.id
|
|
1580
1581
|
}, [
|
|
1581
|
-
e("div",
|
|
1582
|
-
e("div",
|
|
1582
|
+
e("div", hr, [
|
|
1583
|
+
e("div", gr, [
|
|
1583
1584
|
T(N, {
|
|
1584
1585
|
"model-value": F.name,
|
|
1585
1586
|
"onUpdate:modelValue": (B) => u(F.id, B),
|
|
@@ -1588,7 +1589,7 @@ const pr = { class: "flex flex-col gap-4 border border-fm-color-neutral-gray-200
|
|
|
1588
1589
|
size: "md"
|
|
1589
1590
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
1590
1591
|
]),
|
|
1591
|
-
e("div",
|
|
1592
|
+
e("div", br, [
|
|
1592
1593
|
T(R, {
|
|
1593
1594
|
"model-value": n(F),
|
|
1594
1595
|
"onUpdate:modelValue": (B) => d(F.id, B),
|
|
@@ -1596,7 +1597,7 @@ const pr = { class: "flex flex-col gap-4 border border-fm-color-neutral-gray-200
|
|
|
1596
1597
|
step: 0.01,
|
|
1597
1598
|
placeholder: "0.00",
|
|
1598
1599
|
size: "md",
|
|
1599
|
-
"append-text":
|
|
1600
|
+
"append-text": y(Ce)()
|
|
1600
1601
|
}, null, 8, ["model-value", "onUpdate:modelValue", "append-text"])
|
|
1601
1602
|
]),
|
|
1602
1603
|
T(f, {
|
|
@@ -1607,7 +1608,7 @@ const pr = { class: "flex flex-col gap-4 border border-fm-color-neutral-gray-200
|
|
|
1607
1608
|
onClick: (B) => r(F.id)
|
|
1608
1609
|
}, null, 8, ["onClick"])
|
|
1609
1610
|
]),
|
|
1610
|
-
_ < s.value.length - 1 ? (i(),
|
|
1611
|
+
_ < s.value.length - 1 ? (i(), h("div", _r)) : V("", !0)
|
|
1611
1612
|
]))), 128))
|
|
1612
1613
|
]);
|
|
1613
1614
|
};
|
|
@@ -1633,9 +1634,9 @@ function Tt(c) {
|
|
|
1633
1634
|
adjustments: d ?? []
|
|
1634
1635
|
}), m = n(t.value), s.value = t.value.state();
|
|
1635
1636
|
}
|
|
1636
|
-
return
|
|
1637
|
+
return os(() => m()), { controller: t, state: s, reset: u };
|
|
1637
1638
|
}
|
|
1638
|
-
const
|
|
1639
|
+
const Sr = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, kr = { class: "flex flex-col gap-8" }, Or = { class: "flex w-full justify-end gap-16" }, xr = /* @__PURE__ */ Ve({
|
|
1639
1640
|
__name: "FulfillmentForm",
|
|
1640
1641
|
props: {
|
|
1641
1642
|
purchaseOrder: {},
|
|
@@ -1643,12 +1644,12 @@ const _r = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1643
1644
|
},
|
|
1644
1645
|
emits: ["update:show"],
|
|
1645
1646
|
setup(c, { emit: t }) {
|
|
1646
|
-
const s = c, n =
|
|
1647
|
+
const s = c, n = Ds({
|
|
1647
1648
|
id: "",
|
|
1648
1649
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1649
1650
|
items: []
|
|
1650
1651
|
}), m = re(), u = t, d = (a) => a != null && a !== "";
|
|
1651
|
-
|
|
1652
|
+
ns(() => {
|
|
1652
1653
|
s.purchaseOrder && (n.items = s.purchaseOrder.items.map((a) => ({
|
|
1653
1654
|
id: a.id,
|
|
1654
1655
|
sku: a.sku,
|
|
@@ -1659,17 +1660,17 @@ const _r = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1659
1660
|
const r = H(() => n.items.length <= 10);
|
|
1660
1661
|
return (a, O) => {
|
|
1661
1662
|
const f = ne("FmTable"), N = ne("FmButton"), R = ne("FmForm");
|
|
1662
|
-
return i(),
|
|
1663
|
+
return i(), fe(R, {
|
|
1663
1664
|
ref_key: "formRef",
|
|
1664
1665
|
ref: m,
|
|
1665
1666
|
class: "bg-white flex flex-col gap-32 rounded-3xl p-24 w-[800px]",
|
|
1666
1667
|
onValidationFailed: console.log,
|
|
1667
1668
|
onValidationSuccess: O[1] || (O[1] = () => s.confirm(n))
|
|
1668
1669
|
}, {
|
|
1669
|
-
default:
|
|
1670
|
+
default: ue(() => [
|
|
1670
1671
|
O[2] || (O[2] = e("div", { class: "fm-typo-en-title-sm-600" }, "Confirm the transfer amount", -1)),
|
|
1671
|
-
e("div",
|
|
1672
|
-
e("div",
|
|
1672
|
+
e("div", Sr, [
|
|
1673
|
+
e("div", kr, [
|
|
1673
1674
|
T(f, {
|
|
1674
1675
|
"column-defs": [
|
|
1675
1676
|
{
|
|
@@ -1677,7 +1678,7 @@ const _r = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1677
1678
|
cell: (F) => {
|
|
1678
1679
|
const _ = s.purchaseOrder.items.find((B) => d(F.row.original.id) ? B.id === F.row.original.id : B.sku._id === F.row.original.sku._id);
|
|
1679
1680
|
return oe(
|
|
1680
|
-
|
|
1681
|
+
y(pt).FmTooltip,
|
|
1681
1682
|
{
|
|
1682
1683
|
content: _.code,
|
|
1683
1684
|
placement: "top",
|
|
@@ -1699,7 +1700,7 @@ const _r = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1699
1700
|
cell: (F) => {
|
|
1700
1701
|
const _ = s.purchaseOrder.items.find((B) => d(F.row.original.id) ? B.id === F.row.original.id : B.sku._id === F.row.original.sku._id);
|
|
1701
1702
|
return oe(
|
|
1702
|
-
|
|
1703
|
+
y(pt).FmTooltip,
|
|
1703
1704
|
{
|
|
1704
1705
|
content: _.name,
|
|
1705
1706
|
placement: "top",
|
|
@@ -1723,7 +1724,7 @@ const _r = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1723
1724
|
amount: 1,
|
|
1724
1725
|
precision: 0
|
|
1725
1726
|
};
|
|
1726
|
-
return oe(
|
|
1727
|
+
return oe(Ws, {
|
|
1727
1728
|
style: {
|
|
1728
1729
|
flex: "1 1 0%"
|
|
1729
1730
|
},
|
|
@@ -1740,10 +1741,10 @@ const _r = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1740
1741
|
},
|
|
1741
1742
|
disableUnit: !0,
|
|
1742
1743
|
rules: [
|
|
1743
|
-
|
|
1744
|
-
+
|
|
1744
|
+
y(Qs)(
|
|
1745
|
+
+y($e)({ amount: 0, precision: 0 })
|
|
1745
1746
|
),
|
|
1746
|
-
|
|
1747
|
+
y(Ys)(+y($e)(B.quantity))
|
|
1747
1748
|
],
|
|
1748
1749
|
applyDefaultRules: !0
|
|
1749
1750
|
});
|
|
@@ -1755,7 +1756,7 @@ const _r = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1755
1756
|
}, null, 8, ["column-defs", "row-data", "hide-footer"])
|
|
1756
1757
|
])
|
|
1757
1758
|
]),
|
|
1758
|
-
e("div",
|
|
1759
|
+
e("div", Or, [
|
|
1759
1760
|
T(N, {
|
|
1760
1761
|
class: "px-16",
|
|
1761
1762
|
label: "Confirm",
|
|
@@ -1778,7 +1779,7 @@ const _r = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1778
1779
|
}
|
|
1779
1780
|
});
|
|
1780
1781
|
var Dt = /* @__PURE__ */ ((c) => (c.loading = "loading", c.error = "error", c.success = "success", c))(Dt || {});
|
|
1781
|
-
function
|
|
1782
|
+
function wr(c) {
|
|
1782
1783
|
const t = re({
|
|
1783
1784
|
state: "loading"
|
|
1784
1785
|
/* loading */
|
|
@@ -1865,7 +1866,7 @@ const nt = {
|
|
|
1865
1866
|
buttonVariant: je.Primary,
|
|
1866
1867
|
available: !1
|
|
1867
1868
|
}
|
|
1868
|
-
},
|
|
1869
|
+
}, $r = { class: "flex flex-row-reverse" }, Cr = /* @__PURE__ */ Ve({
|
|
1869
1870
|
__name: "NetSuiteSync",
|
|
1870
1871
|
props: {
|
|
1871
1872
|
poRequest: {},
|
|
@@ -1925,7 +1926,7 @@ const nt = {
|
|
|
1925
1926
|
}
|
|
1926
1927
|
return (r, a) => {
|
|
1927
1928
|
const O = ne("FmButton");
|
|
1928
|
-
return i(),
|
|
1929
|
+
return i(), h("div", $r, [
|
|
1929
1930
|
T(O, {
|
|
1930
1931
|
"prepend-icon": "sync",
|
|
1931
1932
|
variant: "secondary",
|
|
@@ -1939,22 +1940,22 @@ const nt = {
|
|
|
1939
1940
|
]);
|
|
1940
1941
|
};
|
|
1941
1942
|
}
|
|
1942
|
-
}),
|
|
1943
|
+
}), Ar = {
|
|
1943
1944
|
key: 0,
|
|
1944
1945
|
class: "flex flex-col gap-8"
|
|
1945
|
-
},
|
|
1946
|
+
}, Dr = { class: "flex flex-col gap-4" }, Nr = { class: "fm-typo-en-body-lg-600" }, Rr = {
|
|
1946
1947
|
key: 0,
|
|
1947
1948
|
class: "flex flex-col gap-4"
|
|
1948
|
-
},
|
|
1949
|
+
}, Pr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fr = { class: "fm-typo-en-body-lg-600" }, Ir = { key: 0 }, Tr = { key: 1 }, Er = {
|
|
1949
1950
|
key: 1,
|
|
1950
1951
|
class: "flex flex-col gap-4"
|
|
1951
|
-
},
|
|
1952
|
+
}, qr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Vr = { class: "fm-typo-en-body-lg-600" }, Lr = { key: 0 }, jr = { key: 1 }, Ur = {
|
|
1952
1953
|
key: 2,
|
|
1953
1954
|
class: "flex flex-col gap-4"
|
|
1954
|
-
},
|
|
1955
|
+
}, Mr = { class: "fm-typo-en-body-lg-600" }, Br = {
|
|
1955
1956
|
key: 3,
|
|
1956
1957
|
class: "flex flex-col gap-4"
|
|
1957
|
-
},
|
|
1958
|
+
}, zr = { class: "fm-typo-en-body-lg-600" }, Kr = /* @__PURE__ */ Ve({
|
|
1958
1959
|
__name: "NetSuiteInfo",
|
|
1959
1960
|
props: {
|
|
1960
1961
|
transferType: {},
|
|
@@ -1966,7 +1967,7 @@ const nt = {
|
|
|
1966
1967
|
},
|
|
1967
1968
|
setup(c) {
|
|
1968
1969
|
const t = c, s = _t(), n = Xe(), m = re(t.poRequest);
|
|
1969
|
-
|
|
1970
|
+
ns(async () => {
|
|
1970
1971
|
var a;
|
|
1971
1972
|
if (!t.poRequest && ((a = t.purchaseOrder) != null && a._id)) {
|
|
1972
1973
|
const O = await n.getLatestPurchaseOrderRequest(t.purchaseOrder._id);
|
|
@@ -1991,36 +1992,36 @@ const nt = {
|
|
|
1991
1992
|
}).join(", ") : "N/A";
|
|
1992
1993
|
});
|
|
1993
1994
|
return (a, O) => {
|
|
1994
|
-
var f, N, R, F, _, B, E, te, se, Q, de, Oe, ae, Se,
|
|
1995
|
-
return
|
|
1996
|
-
e("div",
|
|
1995
|
+
var f, N, R, F, _, B, E, te, se, Q, de, Oe, ae, Se, Ae, K;
|
|
1996
|
+
return y(s).isEnabled ? (i(), h("div", Ar, [
|
|
1997
|
+
e("div", Dr, [
|
|
1997
1998
|
O[0] || (O[0] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, "NetSuite subsidiary", -1)),
|
|
1998
|
-
e("div",
|
|
1999
|
+
e("div", Nr, k(u.value || "N/A"), 1)
|
|
1999
2000
|
]),
|
|
2000
|
-
!a.isTransferBetweenOutlets && a.scope ===
|
|
2001
|
-
e("div",
|
|
2002
|
-
e("div",
|
|
2003
|
-
(B = (_ = a.purchaseOrder) == null ? void 0 : _.netSuite) != null && B.id ? (i(),
|
|
2001
|
+
!a.isTransferBetweenOutlets && a.scope === y(At).RECEIVE_REQUEST ? (i(), h("div", Rr, [
|
|
2002
|
+
e("div", Pr, " NetSuite " + k((N = (f = a.purchaseOrder) == null ? void 0 : f.netSuite) != null && N.recordType ? y(ls)((F = (R = a.purchaseOrder) == null ? void 0 : R.netSuite) == null ? void 0 : F.recordType) : a.transferType === y(at).enum.purchase ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
|
|
2003
|
+
e("div", Fr, [
|
|
2004
|
+
(B = (_ = a.purchaseOrder) == null ? void 0 : _.netSuite) != null && B.id ? (i(), h("span", Ir, k((te = (E = a.purchaseOrder) == null ? void 0 : E.netSuite) == null ? void 0 : te.refNo) + " (" + k((Q = (se = a.purchaseOrder) == null ? void 0 : se.netSuite) == null ? void 0 : Q.id) + ") ", 1)) : (i(), h("span", Tr, "N/A"))
|
|
2004
2005
|
])
|
|
2005
2006
|
])) : V("", !0),
|
|
2006
|
-
!a.isTransferBetweenOutlets && m.value || a.scope ===
|
|
2007
|
-
e("div",
|
|
2008
|
-
e("div",
|
|
2009
|
-
(Oe = (de = m.value) == null ? void 0 : de.netSuite) != null && Oe.id ? (i(),
|
|
2007
|
+
!a.isTransferBetweenOutlets && m.value || a.scope === y(At).APPROVAL ? (i(), h("div", Er, [
|
|
2008
|
+
e("div", qr, " (Request) NetSuite " + k(a.transferType === y(at).enum.purchase ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
|
|
2009
|
+
e("div", Vr, [
|
|
2010
|
+
(Oe = (de = m.value) == null ? void 0 : de.netSuite) != null && Oe.id ? (i(), h("span", Lr, k((Se = (ae = m.value) == null ? void 0 : ae.netSuite) == null ? void 0 : Se.refNo) + " (" + k((K = (Ae = m.value) == null ? void 0 : Ae.netSuite) == null ? void 0 : K.id) + ") ", 1)) : (i(), h("span", jr, "N/A"))
|
|
2010
2011
|
])
|
|
2011
2012
|
])) : V("", !0),
|
|
2012
|
-
d.value ? (i(),
|
|
2013
|
+
d.value ? (i(), h("div", Ur, [
|
|
2013
2014
|
O[1] || (O[1] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Transaction Number ", -1)),
|
|
2014
|
-
e("div",
|
|
2015
|
+
e("div", Mr, k(d.value), 1)
|
|
2015
2016
|
])) : V("", !0),
|
|
2016
|
-
|
|
2017
|
+
y(s).isEnabled && a.transferType === y(at).enum.transfer && !a.isTransferBetweenOutlets ? (i(), h("div", Br, [
|
|
2017
2018
|
O[2] || (O[2] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite fulfillment IDs ", -1)),
|
|
2018
|
-
e("div",
|
|
2019
|
+
e("div", zr, k(r.value), 1)
|
|
2019
2020
|
])) : V("", !0)
|
|
2020
2021
|
])) : V("", !0);
|
|
2021
2022
|
};
|
|
2022
2023
|
}
|
|
2023
|
-
}),
|
|
2024
|
+
}), Hr = { class: "flex flex-row-reverse" }, Gr = /* @__PURE__ */ Ve({
|
|
2024
2025
|
__name: "NetSuiteLog",
|
|
2025
2026
|
props: {
|
|
2026
2027
|
netsuiteId: {},
|
|
@@ -2052,7 +2053,7 @@ const nt = {
|
|
|
2052
2053
|
}
|
|
2053
2054
|
return (m, u) => {
|
|
2054
2055
|
const d = ne("FmButton");
|
|
2055
|
-
return i(),
|
|
2056
|
+
return i(), h("div", Hr, [
|
|
2056
2057
|
T(d, {
|
|
2057
2058
|
"prepend-icon": "history",
|
|
2058
2059
|
variant: "secondary",
|
|
@@ -2065,16 +2066,16 @@ const nt = {
|
|
|
2065
2066
|
]);
|
|
2066
2067
|
};
|
|
2067
2068
|
}
|
|
2068
|
-
}),
|
|
2069
|
+
}), Wr = { class: "flex flex-row-reverse" }, Qr = { key: 0 }, Yr = { key: 1 }, Jr = { class: "mb-6" }, Zr = { class: "fm-typo-en-body-md-400" }, Xr = { key: 0 }, eo = { key: 1 }, to = {
|
|
2069
2070
|
key: 0,
|
|
2070
2071
|
class: "flex"
|
|
2071
|
-
},
|
|
2072
|
+
}, so = {
|
|
2072
2073
|
key: 1,
|
|
2073
2074
|
class: "border-t pt-6"
|
|
2074
|
-
},
|
|
2075
|
+
}, ro = { class: "fm-typo-en-body-lg-600 mb-4 flex items-center gap-2" }, oo = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg overflow-y-auto" }, no = { class: "w-full" }, ao = {
|
|
2075
2076
|
class: "p-3 fm-typo-en-body-sm-600",
|
|
2076
2077
|
style: { "min-width": "130px" }
|
|
2077
|
-
},
|
|
2078
|
+
}, lo = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, io = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, uo = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, co = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, mo = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, po = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, fo = { class: "p-3 fm-typo-en-body-sm-600" }, vo = { key: 2 }, yo = { key: 1 }, ho = /* @__PURE__ */ Ve({
|
|
2078
2079
|
__name: "NetSuiteLatestInfo",
|
|
2079
2080
|
props: {
|
|
2080
2081
|
netsuiteId: {},
|
|
@@ -2137,14 +2138,14 @@ const nt = {
|
|
|
2137
2138
|
}
|
|
2138
2139
|
return (B, E) => {
|
|
2139
2140
|
const te = ne("FmButton"), se = ne("FmLabel"), Q = ne("FmCircularProgress"), de = ne("FmIcon"), Oe = ne("FmDialog");
|
|
2140
|
-
return i(),
|
|
2141
|
+
return i(), h("div", Wr, [
|
|
2141
2142
|
T(Oe, {
|
|
2142
2143
|
modelValue: n.value,
|
|
2143
2144
|
"onUpdate:modelValue": E[2] || (E[2] = (ae) => n.value = ae),
|
|
2144
2145
|
overlay: !0,
|
|
2145
2146
|
"max-width": 800
|
|
2146
2147
|
}, {
|
|
2147
|
-
"dialog-button":
|
|
2148
|
+
"dialog-button": ue(() => [
|
|
2148
2149
|
T(te, {
|
|
2149
2150
|
"prepend-icon": "info",
|
|
2150
2151
|
variant: "secondary",
|
|
@@ -2155,34 +2156,34 @@ const nt = {
|
|
|
2155
2156
|
"border-color": "primary"
|
|
2156
2157
|
})
|
|
2157
2158
|
]),
|
|
2158
|
-
"dialog-header":
|
|
2159
|
+
"dialog-header": ue(() => E[3] || (E[3] = [
|
|
2159
2160
|
e("div", null, "NetSuite latest info", -1)
|
|
2160
2161
|
])),
|
|
2161
|
-
default:
|
|
2162
|
-
u.value ? (i(),
|
|
2163
|
-
d.value ? (i(),
|
|
2164
|
-
e("div",
|
|
2162
|
+
default: ue(() => [
|
|
2163
|
+
u.value ? (i(), h("div", Qr, "Loading...")) : (i(), h("div", Yr, [
|
|
2164
|
+
d.value ? (i(), h("p", yo, "Something went wrong.")) : (i(), h(Ne, { key: 0 }, [
|
|
2165
|
+
e("div", Jr, [
|
|
2165
2166
|
E[4] || (E[4] = e("h3", { class: "fm-typo-en-body-lg-600 mb-4" }, "NetSuite Order Details", -1)),
|
|
2166
|
-
(i(!0),
|
|
2167
|
+
(i(!0), h(Ne, null, Te(O.value, (ae, Se) => (i(), h("div", {
|
|
2167
2168
|
key: Se,
|
|
2168
2169
|
class: "mb-2"
|
|
2169
2170
|
}, [
|
|
2170
2171
|
e("div", null, [
|
|
2171
2172
|
T(se, {
|
|
2172
|
-
label:
|
|
2173
|
+
label: y(Rt)(Se)
|
|
2173
2174
|
}, null, 8, ["label"]),
|
|
2174
|
-
e("div",
|
|
2175
|
-
Array.isArray(ae) ? (i(),
|
|
2175
|
+
e("div", Zr, [
|
|
2176
|
+
Array.isArray(ae) ? (i(), h("span", Xr, k(ae.length > 0 ? ae.join(", ") : "N/A"), 1)) : (i(), h("span", eo, k(ae), 1))
|
|
2176
2177
|
])
|
|
2177
2178
|
])
|
|
2178
2179
|
]))), 128))
|
|
2179
2180
|
]),
|
|
2180
|
-
r.value ? (i(),
|
|
2181
|
+
r.value ? (i(), h("div", to, [
|
|
2181
2182
|
E[5] || (E[5] = e("span", null, "Change Log Loading...", -1)),
|
|
2182
2183
|
T(Q, { size: "md" })
|
|
2183
2184
|
])) : V("", !0),
|
|
2184
|
-
!r.value && f.value.length > 0 ? (i(),
|
|
2185
|
-
e("h3",
|
|
2185
|
+
!r.value && f.value.length > 0 ? (i(), h("div", so, [
|
|
2186
|
+
e("h3", ro, [
|
|
2186
2187
|
T(de, {
|
|
2187
2188
|
name: "error",
|
|
2188
2189
|
color: "#ff9500",
|
|
@@ -2190,8 +2191,8 @@ const nt = {
|
|
|
2190
2191
|
}),
|
|
2191
2192
|
E[6] || (E[6] = Ge(" Change Logs "))
|
|
2192
2193
|
]),
|
|
2193
|
-
e("div",
|
|
2194
|
-
e("table",
|
|
2194
|
+
e("div", oo, [
|
|
2195
|
+
e("table", no, [
|
|
2195
2196
|
E[7] || (E[7] = e("thead", { class: "bg-fm-color-neutral-gray-50" }, [
|
|
2196
2197
|
e("tr", { class: "border-b border-fm-color-neutral-gray-200" }, [
|
|
2197
2198
|
e("th", {
|
|
@@ -2209,32 +2210,32 @@ const nt = {
|
|
|
2209
2210
|
])
|
|
2210
2211
|
], -1)),
|
|
2211
2212
|
e("tbody", null, [
|
|
2212
|
-
(i(!0),
|
|
2213
|
+
(i(!0), h(Ne, null, Te(f.value, (ae, Se) => (i(), h("tr", {
|
|
2213
2214
|
key: Se,
|
|
2214
2215
|
class: "border-b border-fm-color-neutral-gray-200 last:border-b-0"
|
|
2215
2216
|
}, [
|
|
2216
|
-
e("td",
|
|
2217
|
-
e("td",
|
|
2218
|
-
e("td",
|
|
2219
|
-
e("td",
|
|
2217
|
+
e("td", ao, k(_(ae._dateiso8601)), 1),
|
|
2218
|
+
e("td", lo, k(ae._rolename), 1),
|
|
2219
|
+
e("td", io, k(ae._employeename), 1),
|
|
2220
|
+
e("td", uo, k(ae._contextname), 1),
|
|
2220
2221
|
e("td", {
|
|
2221
2222
|
class: We(`p-3 fm-typo-en-body-sm-600 ${F(Number(ae.type) - 1)}`)
|
|
2222
|
-
}, k(
|
|
2223
|
-
e("td",
|
|
2224
|
-
e("td",
|
|
2225
|
-
e("td",
|
|
2226
|
-
e("td",
|
|
2223
|
+
}, k(y(Me)[Number(ae.type) - 1]), 3),
|
|
2224
|
+
e("td", co, k(ae.lineid || ""), 1),
|
|
2225
|
+
e("td", mo, k(ae._fieldname), 1),
|
|
2226
|
+
e("td", po, k(ae.oldvalue || ""), 1),
|
|
2227
|
+
e("td", fo, k(ae.newvalue || ""), 1)
|
|
2227
2228
|
]))), 128))
|
|
2228
2229
|
])
|
|
2229
2230
|
])
|
|
2230
2231
|
])
|
|
2231
|
-
])) : (i(),
|
|
2232
|
+
])) : (i(), h("div", vo, E[8] || (E[8] = [
|
|
2232
2233
|
e("p", null, "No change logs available.", -1)
|
|
2233
2234
|
])))
|
|
2234
2235
|
], 64))
|
|
2235
2236
|
]))
|
|
2236
2237
|
]),
|
|
2237
|
-
"dialog-footer":
|
|
2238
|
+
"dialog-footer": ue(() => [
|
|
2238
2239
|
T(te, {
|
|
2239
2240
|
class: "ml-auto sm:w-full xs:w-full",
|
|
2240
2241
|
label: "Close",
|
|
@@ -2248,10 +2249,10 @@ const nt = {
|
|
|
2248
2249
|
]);
|
|
2249
2250
|
};
|
|
2250
2251
|
}
|
|
2251
|
-
}),
|
|
2252
|
+
}), go = {
|
|
2252
2253
|
key: 0,
|
|
2253
2254
|
class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16 flex flex-col gap-8"
|
|
2254
|
-
},
|
|
2255
|
+
}, bo = { class: "flex gap-8 items-center" }, _o = { class: "ml-auto" }, So = { class: "flex gap-3" }, ko = /* @__PURE__ */ Ve({
|
|
2255
2256
|
__name: "NetSuitePanel",
|
|
2256
2257
|
props: {
|
|
2257
2258
|
poRequest: {},
|
|
@@ -2261,20 +2262,20 @@ const nt = {
|
|
|
2261
2262
|
scope: {}
|
|
2262
2263
|
},
|
|
2263
2264
|
setup(c) {
|
|
2264
|
-
const t = c, s =
|
|
2265
|
+
const t = c, s = Js(), n = H(() => s.isNetSuiteEnabled);
|
|
2265
2266
|
return (m, u) => {
|
|
2266
2267
|
var r, a;
|
|
2267
2268
|
const d = ne("FmMenuDivider");
|
|
2268
|
-
return n.value ? (i(),
|
|
2269
|
-
e("div",
|
|
2269
|
+
return n.value ? (i(), h("div", go, [
|
|
2270
|
+
e("div", bo, [
|
|
2270
2271
|
u[0] || (u[0] = e("span", { class: "flex-1 fm-typo-en-body-lg-600" }, "NetSuite Info", -1)),
|
|
2271
|
-
e("div",
|
|
2272
|
-
e("div",
|
|
2273
|
-
(a = (r = t.purchaseOrder) == null ? void 0 : r.netSuite) != null && a.id ? (i(),
|
|
2274
|
-
default:
|
|
2272
|
+
e("div", _o, [
|
|
2273
|
+
e("div", So, [
|
|
2274
|
+
(a = (r = t.purchaseOrder) == null ? void 0 : r.netSuite) != null && a.id ? (i(), fe(tt, { key: 0 }, {
|
|
2275
|
+
default: ue(() => {
|
|
2275
2276
|
var O, f, N;
|
|
2276
2277
|
return [
|
|
2277
|
-
T(
|
|
2278
|
+
T(ho, {
|
|
2278
2279
|
"netsuite-id": (f = (O = m.purchaseOrder) == null ? void 0 : O.netSuite) == null ? void 0 : f.id,
|
|
2279
2280
|
"purchase-order-id": (N = m.purchaseOrder) == null ? void 0 : N._id
|
|
2280
2281
|
}, null, 8, ["netsuite-id", "purchase-order-id"])
|
|
@@ -2283,10 +2284,10 @@ const nt = {
|
|
|
2283
2284
|
_: 1
|
|
2284
2285
|
})) : V("", !0),
|
|
2285
2286
|
T(tt, null, {
|
|
2286
|
-
default:
|
|
2287
|
+
default: ue(() => {
|
|
2287
2288
|
var O, f, N;
|
|
2288
2289
|
return [
|
|
2289
|
-
T(
|
|
2290
|
+
T(Gr, {
|
|
2290
2291
|
"netsuite-id": (f = (O = m.purchaseOrder) == null ? void 0 : O.netSuite) == null ? void 0 : f.id,
|
|
2291
2292
|
"purchase-order-id": (N = m.purchaseOrder) == null ? void 0 : N._id
|
|
2292
2293
|
}, null, 8, ["netsuite-id", "purchase-order-id"])
|
|
@@ -2294,7 +2295,7 @@ const nt = {
|
|
|
2294
2295
|
}),
|
|
2295
2296
|
_: 1
|
|
2296
2297
|
}),
|
|
2297
|
-
T(
|
|
2298
|
+
T(Cr, {
|
|
2298
2299
|
"po-request": m.poRequest,
|
|
2299
2300
|
"purchase-order": m.purchaseOrder,
|
|
2300
2301
|
"is-transfer-between-outlets": !n.value,
|
|
@@ -2304,7 +2305,7 @@ const nt = {
|
|
|
2304
2305
|
])
|
|
2305
2306
|
]),
|
|
2306
2307
|
T(d),
|
|
2307
|
-
T(
|
|
2308
|
+
T(Kr, {
|
|
2308
2309
|
"po-request": m.poRequest,
|
|
2309
2310
|
"purchase-order": m.purchaseOrder,
|
|
2310
2311
|
"transfer-type": m.transferType,
|
|
@@ -2315,7 +2316,7 @@ const nt = {
|
|
|
2315
2316
|
])) : V("", !0);
|
|
2316
2317
|
};
|
|
2317
2318
|
}
|
|
2318
|
-
}),
|
|
2319
|
+
}), Oo = ["open"], xo = { class: "fm-typo-en-body-sm-600 cursor-pointer select-none" }, ss = /* @__PURE__ */ Ve({
|
|
2319
2320
|
__name: "FmAdminCollapsiblePanel",
|
|
2320
2321
|
props: {
|
|
2321
2322
|
title: { default: "Admin" },
|
|
@@ -2326,28 +2327,28 @@ const nt = {
|
|
|
2326
2327
|
},
|
|
2327
2328
|
setup(c) {
|
|
2328
2329
|
const t = c;
|
|
2329
|
-
return (s, n) => (i(),
|
|
2330
|
+
return (s, n) => (i(), fe(tt, {
|
|
2330
2331
|
selectable: t.selectable,
|
|
2331
2332
|
class: We(t.class)
|
|
2332
2333
|
}, {
|
|
2333
|
-
default:
|
|
2334
|
+
default: ue(() => [
|
|
2334
2335
|
e("details", {
|
|
2335
2336
|
open: t.open,
|
|
2336
2337
|
class: "w-full"
|
|
2337
2338
|
}, [
|
|
2338
|
-
e("summary",
|
|
2339
|
+
e("summary", xo, k(t.title), 1),
|
|
2339
2340
|
e("div", {
|
|
2340
2341
|
class: We(["mt-4 flex flex-col gap-2", t.contentClass])
|
|
2341
2342
|
}, [
|
|
2342
|
-
|
|
2343
|
+
Ns(s.$slots, "default")
|
|
2343
2344
|
], 2)
|
|
2344
|
-
], 8,
|
|
2345
|
+
], 8, Oo)
|
|
2345
2346
|
]),
|
|
2346
2347
|
_: 3
|
|
2347
2348
|
}, 8, ["selectable", "class"]));
|
|
2348
2349
|
}
|
|
2349
2350
|
});
|
|
2350
|
-
function
|
|
2351
|
+
function Ss(c) {
|
|
2351
2352
|
if (!(c != null && c.itemsAtSubmission)) return [];
|
|
2352
2353
|
const t = new Set(c.itemsAtSubmission.map((m) => m.sku._id)), s = /* @__PURE__ */ new Set(), n = [];
|
|
2353
2354
|
for (const m of c.items) {
|
|
@@ -2356,7 +2357,7 @@ function _s(c) {
|
|
|
2356
2357
|
}
|
|
2357
2358
|
return n;
|
|
2358
2359
|
}
|
|
2359
|
-
function
|
|
2360
|
+
function ks(c, t) {
|
|
2360
2361
|
var m;
|
|
2361
2362
|
if (!c || t.length === 0) return {};
|
|
2362
2363
|
const s = new Set(t.map((u) => u.sku._id)), n = {};
|
|
@@ -2379,25 +2380,25 @@ function Ss(c, t) {
|
|
|
2379
2380
|
{}
|
|
2380
2381
|
);
|
|
2381
2382
|
}
|
|
2382
|
-
const
|
|
2383
|
+
const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4" }, Co = { class: "flex flex-col gap-4 fm-typo-en-body-lg-600" }, Ao = { class: "flex flex-col gap-4" }, Do = { class: "flex justify-between items-start py-1 gap-4" }, No = { class: "flex flex-col flex-1 min-w-0" }, Ro = { class: "fm-typo-en-body-lg-600 truncate" }, Po = { class: "fm-typo-en-body-md-400 truncate" }, Fo = { class: "flex flex-col gap-2 items-end w-52 shrink-0" }, Io = {
|
|
2383
2384
|
key: 0,
|
|
2384
2385
|
class: "flex items-center gap-2"
|
|
2385
|
-
},
|
|
2386
|
+
}, To = {
|
|
2386
2387
|
key: 0,
|
|
2387
2388
|
class: "border-b border-fm-color-stroke-secondary"
|
|
2388
|
-
},
|
|
2389
|
+
}, Eo = { class: "flex flex-col gap-4" }, qo = { class: "flex items-center justify-between" }, Vo = {
|
|
2389
2390
|
key: 0,
|
|
2390
2391
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary"
|
|
2391
|
-
},
|
|
2392
|
+
}, Lo = { class: "flex justify-between items-start py-1 gap-4" }, jo = { class: "flex-1 min-w-0 flex flex-col gap-2" }, Uo = { class: "flex flex-col gap-2 items-end w-52 shrink-0" }, Mo = {
|
|
2392
2393
|
key: 0,
|
|
2393
2394
|
class: "flex items-center gap-2"
|
|
2394
|
-
},
|
|
2395
|
+
}, Bo = {
|
|
2395
2396
|
key: 0,
|
|
2396
2397
|
class: "border-b border-fm-color-stroke-secondary"
|
|
2397
|
-
},
|
|
2398
|
+
}, zo = { class: "flex flex-col gap-4" }, Ko = { class: "flex flex-col gap-4" }, Ho = { class: "flex flex-col gap-4" }, Go = { class: "flex flex-col gap-4 fm-typo-en-body-lg-600" }, Wo = {
|
|
2398
2399
|
key: 1,
|
|
2399
2400
|
class: "flex flex-col gap-4"
|
|
2400
|
-
},
|
|
2401
|
+
}, Qo = { class: "flex flex-col gap-4 fm-typo-en-body-lg-600" }, ct = "Will be ignored on save (zero or negative quantity)", Yo = /* @__PURE__ */ Ve({
|
|
2401
2402
|
__name: "EditForm",
|
|
2402
2403
|
props: {
|
|
2403
2404
|
purchaseOrder: {},
|
|
@@ -2407,12 +2408,12 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2407
2408
|
emits: ["submitted"],
|
|
2408
2409
|
setup(c, { emit: t }) {
|
|
2409
2410
|
var ee;
|
|
2410
|
-
const { t: s } =
|
|
2411
|
+
const { t: s } = nr(), n = Je(), m = Ze(), u = re(!1), d = Nt(), r = c, a = (((ee = r.purchaseOrder) == null ? void 0 : ee.version) ?? Ue.enum[1]) === Ue.enum[2], O = t, f = us("deliveryOrder"), N = Xe(), {
|
|
2411
2412
|
controller: R,
|
|
2412
2413
|
state: F,
|
|
2413
2414
|
reset: _
|
|
2414
2415
|
} = Tt({
|
|
2415
|
-
currency:
|
|
2416
|
+
currency: Ce(),
|
|
2416
2417
|
adjustments: r.deliveryOrder.priceAdjustments
|
|
2417
2418
|
}), B = H(
|
|
2418
2419
|
() => {
|
|
@@ -2423,8 +2424,8 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2423
2424
|
}
|
|
2424
2425
|
), E = n.enablePurchaseOrderReceiveWithCustomCost, te = n.enablePortalDeliveryOrderWrite, se = re({}), Q = H(
|
|
2425
2426
|
() => (r.purchaseOrder.itemsAtSubmission ?? r.purchaseOrder.items).length
|
|
2426
|
-
), de = H(() =>
|
|
2427
|
-
() =>
|
|
2427
|
+
), de = H(() => Ss(r.purchaseOrder)), Oe = H(
|
|
2428
|
+
() => ks(r.purchaseOrder, de.value)
|
|
2428
2429
|
), ae = H(
|
|
2429
2430
|
() => r.purchaseOrder.items.map(
|
|
2430
2431
|
(L, b) => H({
|
|
@@ -2448,19 +2449,19 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2448
2449
|
},
|
|
2449
2450
|
set: (j) => {
|
|
2450
2451
|
f.received[b].cost = {
|
|
2451
|
-
currency:
|
|
2452
|
+
currency: Ce(),
|
|
2452
2453
|
...Qe(j, 4)
|
|
2453
2454
|
};
|
|
2454
2455
|
}
|
|
2455
2456
|
})
|
|
2456
2457
|
)
|
|
2457
2458
|
);
|
|
2458
|
-
function
|
|
2459
|
+
function Ae(L) {
|
|
2459
2460
|
var j;
|
|
2460
2461
|
const b = !se.value[L];
|
|
2461
2462
|
if (se.value[L] = b, b) {
|
|
2462
2463
|
const J = (j = f.received[L]) == null ? void 0 : j.cost;
|
|
2463
|
-
f.received[L].cost = J ? { ...J, precision: 4 } : { currency:
|
|
2464
|
+
f.received[L].cost = J ? { ...J, precision: 4 } : { currency: Ce(), amount: 0, precision: 4 };
|
|
2464
2465
|
} else
|
|
2465
2466
|
delete f.received[L].cost;
|
|
2466
2467
|
}
|
|
@@ -2470,7 +2471,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2470
2471
|
function P() {
|
|
2471
2472
|
K.value.push({ skuId: null, costEnabled: !1 }), f.received.push({
|
|
2472
2473
|
sku: null,
|
|
2473
|
-
amount:
|
|
2474
|
+
amount: Fe.fromNumber(0),
|
|
2474
2475
|
measurement: null
|
|
2475
2476
|
});
|
|
2476
2477
|
}
|
|
@@ -2484,7 +2485,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2484
2485
|
}
|
|
2485
2486
|
function A(L, b) {
|
|
2486
2487
|
var ke, we;
|
|
2487
|
-
const j = (ke = r.receivedInfoMap) == null ? void 0 : ke[b.sku._id], J = j ? `${s("inventory.transfer.receiveRequest.details.received")} ${
|
|
2488
|
+
const j = (ke = r.receivedInfoMap) == null ? void 0 : ke[b.sku._id], J = j ? `${s("inventory.transfer.receiveRequest.details.received")} ${Fe.toFormatString({ value: j.received })} / ${ft(b.quantity, b.sku.unit, b.measurement)}` : void 0;
|
|
2488
2489
|
return (((we = ae.value[L]) == null ? void 0 : we.value) ?? 0) > 0 ? J : J ? `${J} · ${ct}` : ct;
|
|
2489
2490
|
}
|
|
2490
2491
|
function G(L, b) {
|
|
@@ -2492,7 +2493,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2492
2493
|
const J = (((ke = X.value[b]) == null ? void 0 : ke.value) ?? 0) <= 0;
|
|
2493
2494
|
let me;
|
|
2494
2495
|
if (L.skuId && Oe.value[L.skuId]) {
|
|
2495
|
-
const we = Oe.value[L.skuId], o =
|
|
2496
|
+
const we = Oe.value[L.skuId], o = Fe.toFormatString({ value: we.received });
|
|
2496
2497
|
me = `${s("inventory.transfer.receiveRequest.details.received")} ${o}`;
|
|
2497
2498
|
}
|
|
2498
2499
|
return J ? me ? `${me} · ${ct}` : ct : me;
|
|
@@ -2524,7 +2525,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2524
2525
|
},
|
|
2525
2526
|
set: (J) => {
|
|
2526
2527
|
f.received[j].cost = {
|
|
2527
|
-
currency:
|
|
2528
|
+
currency: Ce(),
|
|
2528
2529
|
...Qe(J, 4)
|
|
2529
2530
|
};
|
|
2530
2531
|
}
|
|
@@ -2533,7 +2534,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2533
2534
|
);
|
|
2534
2535
|
function g(L) {
|
|
2535
2536
|
const b = K.value[L], j = Q.value + L;
|
|
2536
|
-
b.costEnabled = !b.costEnabled, b.costEnabled ? f.received[j].cost = { currency:
|
|
2537
|
+
b.costEnabled = !b.costEnabled, b.costEnabled ? f.received[j].cost = { currency: Ce(), amount: 0, precision: 4 } : delete f.received[j].cost;
|
|
2537
2538
|
}
|
|
2538
2539
|
Ye(
|
|
2539
2540
|
() => u.value,
|
|
@@ -2556,7 +2557,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2556
2557
|
// instead of the backend treating it as a new extra item (see CreateForm.vue).
|
|
2557
2558
|
...a && C.id ? { id: C.id } : {},
|
|
2558
2559
|
sku: C.sku,
|
|
2559
|
-
amount:
|
|
2560
|
+
amount: Fe.fromNumber(0),
|
|
2560
2561
|
measurement: C.measurement ?? null
|
|
2561
2562
|
};
|
|
2562
2563
|
});
|
|
@@ -2592,7 +2593,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2592
2593
|
}), f.received.push({
|
|
2593
2594
|
...a && q.id ? { id: q.id } : {},
|
|
2594
2595
|
sku: q.sku,
|
|
2595
|
-
amount:
|
|
2596
|
+
amount: Fe.fromNumber(0),
|
|
2596
2597
|
measurement: q.measurement ?? null
|
|
2597
2598
|
}));
|
|
2598
2599
|
}
|
|
@@ -2623,14 +2624,14 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2623
2624
|
}
|
|
2624
2625
|
return (L, b) => {
|
|
2625
2626
|
const j = ne("FmButton"), J = ne("FmStepperField"), me = ne("FmSwitch"), ke = ne("FmSelect"), we = ne("FmTextField"), o = ne("FmDialog");
|
|
2626
|
-
return i(),
|
|
2627
|
+
return i(), fe(o, {
|
|
2627
2628
|
modelValue: u.value,
|
|
2628
2629
|
"onUpdate:modelValue": b[1] || (b[1] = (l) => u.value = l),
|
|
2629
2630
|
overlay: !0,
|
|
2630
2631
|
"min-width": 800
|
|
2631
2632
|
}, {
|
|
2632
|
-
"dialog-button":
|
|
2633
|
-
|
|
2633
|
+
"dialog-button": ue(() => [
|
|
2634
|
+
y(te) ? (i(), fe(j, {
|
|
2634
2635
|
key: 0,
|
|
2635
2636
|
variant: "plain",
|
|
2636
2637
|
label: "Edit",
|
|
@@ -2638,10 +2639,10 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2638
2639
|
"prepend-icon": "edit"
|
|
2639
2640
|
})) : V("", !0)
|
|
2640
2641
|
]),
|
|
2641
|
-
"dialog-header":
|
|
2642
|
-
e("div", null, "Received on " + k(
|
|
2642
|
+
"dialog-header": ue(() => [
|
|
2643
|
+
e("div", null, "Received on " + k(y(et)(r.deliveryOrder.createdAt)), 1)
|
|
2643
2644
|
]),
|
|
2644
|
-
"dialog-footer":
|
|
2645
|
+
"dialog-footer": ue(() => [
|
|
2645
2646
|
T(j, {
|
|
2646
2647
|
class: "ml-auto",
|
|
2647
2648
|
label: "Apply changes",
|
|
@@ -2652,23 +2653,23 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2652
2653
|
onClick: ie
|
|
2653
2654
|
}, null, 8, ["disabled", "loading"])
|
|
2654
2655
|
]),
|
|
2655
|
-
default:
|
|
2656
|
-
e("div",
|
|
2657
|
-
e("div",
|
|
2656
|
+
default: ue(() => [
|
|
2657
|
+
e("div", wo, [
|
|
2658
|
+
e("div", $o, [
|
|
2658
2659
|
b[2] || (b[2] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Adjustment date", -1)),
|
|
2659
|
-
e("div",
|
|
2660
|
+
e("div", Co, k(r.deliveryOrder.adjustment ? y(et)(new Date(y(mt)(r.deliveryOrder.adjustment))) : "-"), 1)
|
|
2660
2661
|
]),
|
|
2661
|
-
e("div",
|
|
2662
|
+
e("div", Ao, [
|
|
2662
2663
|
b[4] || (b[4] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Items going to receive ", -1)),
|
|
2663
|
-
(i(!0),
|
|
2664
|
+
(i(!0), h(Ne, null, Te(r.purchaseOrder.items, (l, $) => {
|
|
2664
2665
|
var C;
|
|
2665
|
-
return i(),
|
|
2666
|
-
e("div",
|
|
2667
|
-
e("div",
|
|
2668
|
-
e("span",
|
|
2669
|
-
e("span",
|
|
2666
|
+
return i(), h("div", { key: $ }, [
|
|
2667
|
+
e("div", Do, [
|
|
2668
|
+
e("div", No, [
|
|
2669
|
+
e("span", Ro, k(l.sku.name), 1),
|
|
2670
|
+
e("span", Po, k(l.sku.code), 1)
|
|
2670
2671
|
]),
|
|
2671
|
-
e("div",
|
|
2672
|
+
e("div", Fo, [
|
|
2672
2673
|
T(J, {
|
|
2673
2674
|
label: "Receive Quantity",
|
|
2674
2675
|
modelValue: ae.value[$].value,
|
|
@@ -2676,15 +2677,15 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2676
2677
|
"append-text": ((C = l.measurement) == null ? void 0 : C.abbrev) ?? l.sku.unit.abbrev,
|
|
2677
2678
|
"helper-text": A($, l)
|
|
2678
2679
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "append-text", "helper-text"]),
|
|
2679
|
-
|
|
2680
|
+
y(E) ? (i(), h("div", Io, [
|
|
2680
2681
|
T(me, {
|
|
2681
2682
|
"model-value": se.value[$],
|
|
2682
|
-
"onUpdate:modelValue": (q) =>
|
|
2683
|
+
"onUpdate:modelValue": (q) => Ae($),
|
|
2683
2684
|
size: "sm"
|
|
2684
2685
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
2685
2686
|
b[3] || (b[3] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Override cost ", -1))
|
|
2686
2687
|
])) : V("", !0),
|
|
2687
|
-
|
|
2688
|
+
y(E) && se.value[$] ? (i(), fe(J, {
|
|
2688
2689
|
key: 1,
|
|
2689
2690
|
modelValue: Se.value[$].value,
|
|
2690
2691
|
"onUpdate:modelValue": (q) => Se.value[$].value = q,
|
|
@@ -2693,16 +2694,16 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2693
2694
|
min: 0,
|
|
2694
2695
|
placeholder: "0.0000",
|
|
2695
2696
|
size: "sm",
|
|
2696
|
-
"append-text":
|
|
2697
|
+
"append-text": y(Ce)()
|
|
2697
2698
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "append-text"])) : V("", !0)
|
|
2698
2699
|
])
|
|
2699
2700
|
]),
|
|
2700
|
-
$ < r.purchaseOrder.items.length - 1 ? (i(),
|
|
2701
|
+
$ < r.purchaseOrder.items.length - 1 ? (i(), h("div", To)) : V("", !0)
|
|
2701
2702
|
]);
|
|
2702
2703
|
}), 128))
|
|
2703
2704
|
]),
|
|
2704
|
-
e("div",
|
|
2705
|
-
e("div",
|
|
2705
|
+
e("div", Eo, [
|
|
2706
|
+
e("div", qo, [
|
|
2706
2707
|
b[5] || (b[5] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Extra items", -1)),
|
|
2707
2708
|
T(j, {
|
|
2708
2709
|
variant: "tertiary",
|
|
@@ -2712,12 +2713,12 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2712
2713
|
onClick: P
|
|
2713
2714
|
})
|
|
2714
2715
|
]),
|
|
2715
|
-
K.value.length === 0 ? (i(),
|
|
2716
|
-
(i(!0),
|
|
2716
|
+
K.value.length === 0 ? (i(), h("div", Vo, " No extra items added ")) : V("", !0),
|
|
2717
|
+
(i(!0), h(Ne, null, Te(K.value, (l, $) => {
|
|
2717
2718
|
var C, q;
|
|
2718
|
-
return i(),
|
|
2719
|
-
e("div",
|
|
2720
|
-
e("div",
|
|
2719
|
+
return i(), h("div", { key: $ }, [
|
|
2720
|
+
e("div", Lo, [
|
|
2721
|
+
e("div", jo, [
|
|
2721
2722
|
T(ke, {
|
|
2722
2723
|
"model-value": l.skuId,
|
|
2723
2724
|
"onUpdate:modelValue": (Y) => w($, Y),
|
|
@@ -2729,16 +2730,16 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2729
2730
|
disabled: l.locked
|
|
2730
2731
|
}, null, 8, ["model-value", "onUpdate:modelValue", "items", "disabled"])
|
|
2731
2732
|
]),
|
|
2732
|
-
e("div",
|
|
2733
|
+
e("div", Uo, [
|
|
2733
2734
|
T(J, {
|
|
2734
2735
|
label: "Receive Quantity",
|
|
2735
2736
|
modelValue: X.value[$].value,
|
|
2736
2737
|
"onUpdate:modelValue": (Y) => X.value[$].value = Y,
|
|
2737
|
-
"append-text": l.skuId ? ((q = (C =
|
|
2738
|
+
"append-text": l.skuId ? ((q = (C = y(d).skuById[l.skuId]) == null ? void 0 : C.unit) == null ? void 0 : q.abbrev) ?? "" : "",
|
|
2738
2739
|
"helper-text": G(l, $),
|
|
2739
2740
|
disabled: l.quantityLocked || !l.skuId
|
|
2740
2741
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "append-text", "helper-text", "disabled"]),
|
|
2741
|
-
|
|
2742
|
+
y(E) ? (i(), h("div", Mo, [
|
|
2742
2743
|
T(me, {
|
|
2743
2744
|
"model-value": l.costEnabled,
|
|
2744
2745
|
"onUpdate:modelValue": (Y) => g($),
|
|
@@ -2746,7 +2747,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2746
2747
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
2747
2748
|
b[6] || (b[6] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Override cost ", -1))
|
|
2748
2749
|
])) : V("", !0),
|
|
2749
|
-
|
|
2750
|
+
y(E) && l.costEnabled ? (i(), fe(J, {
|
|
2750
2751
|
key: 1,
|
|
2751
2752
|
modelValue: le.value[$].value,
|
|
2752
2753
|
"onUpdate:modelValue": (Y) => le.value[$].value = Y,
|
|
@@ -2755,10 +2756,10 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2755
2756
|
min: 0,
|
|
2756
2757
|
placeholder: "0.0000",
|
|
2757
2758
|
size: "sm",
|
|
2758
|
-
"append-text":
|
|
2759
|
+
"append-text": y(Ce)()
|
|
2759
2760
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "append-text"])) : V("", !0)
|
|
2760
2761
|
]),
|
|
2761
|
-
l.locked ? V("", !0) : (i(),
|
|
2762
|
+
l.locked ? V("", !0) : (i(), fe(j, {
|
|
2762
2763
|
key: 0,
|
|
2763
2764
|
variant: "tertiary",
|
|
2764
2765
|
"prepend-icon": "delete",
|
|
@@ -2767,33 +2768,33 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2767
2768
|
onClick: (Y) => x($)
|
|
2768
2769
|
}, null, 8, ["onClick"]))
|
|
2769
2770
|
]),
|
|
2770
|
-
$ < K.value.length - 1 ? (i(),
|
|
2771
|
+
$ < K.value.length - 1 ? (i(), h("div", Bo)) : V("", !0)
|
|
2771
2772
|
]);
|
|
2772
2773
|
}), 128))
|
|
2773
2774
|
]),
|
|
2774
|
-
e("div",
|
|
2775
|
+
e("div", zo, [
|
|
2775
2776
|
b[7] || (b[7] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Delivery order no.", -1)),
|
|
2776
|
-
e("div",
|
|
2777
|
+
e("div", Ko, [
|
|
2777
2778
|
T(we, {
|
|
2778
|
-
modelValue:
|
|
2779
|
-
"onUpdate:modelValue": b[0] || (b[0] = (l) =>
|
|
2779
|
+
modelValue: y(f).deliveryOrderNumber,
|
|
2780
|
+
"onUpdate:modelValue": b[0] || (b[0] = (l) => y(f).deliveryOrderNumber = l),
|
|
2780
2781
|
size: "md",
|
|
2781
2782
|
placeholder: r.deliveryOrder.deliveryOrderNumber
|
|
2782
2783
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2783
2784
|
])
|
|
2784
2785
|
]),
|
|
2785
|
-
e("div",
|
|
2786
|
+
e("div", Ho, [
|
|
2786
2787
|
b[8] || (b[8] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Remark", -1)),
|
|
2787
|
-
e("div",
|
|
2788
|
+
e("div", Go, k(r.deliveryOrder.remark || "N/A"), 1)
|
|
2788
2789
|
]),
|
|
2789
|
-
|
|
2790
|
+
y(n).enablePurchaseOrderPriceAdjustment ? (i(), fe(It, {
|
|
2790
2791
|
key: 0,
|
|
2791
|
-
controller:
|
|
2792
|
-
state:
|
|
2792
|
+
controller: y(R),
|
|
2793
|
+
state: y(F)
|
|
2793
2794
|
}, null, 8, ["controller", "state"])) : V("", !0),
|
|
2794
|
-
B.value >= 0 ? (i(),
|
|
2795
|
+
B.value >= 0 ? (i(), h("div", Wo, [
|
|
2795
2796
|
b[9] || (b[9] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Fulfilment's sequence", -1)),
|
|
2796
|
-
e("div",
|
|
2797
|
+
e("div", Qo, k(B.value + 1), 1)
|
|
2797
2798
|
])) : V("", !0)
|
|
2798
2799
|
])
|
|
2799
2800
|
]),
|
|
@@ -2801,37 +2802,37 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2801
2802
|
}, 8, ["modelValue"]);
|
|
2802
2803
|
};
|
|
2803
2804
|
}
|
|
2804
|
-
}),
|
|
2805
|
+
}), Jo = { class: "flex flex-col gap-3" }, Zo = { class: "flex flex-col gap-4" }, Xo = { class: "flex flex-col gap-4 fm-typo-en-body-lg-600" }, en = {
|
|
2805
2806
|
key: 0,
|
|
2806
2807
|
class: "flex flex-col gap-4"
|
|
2807
|
-
},
|
|
2808
|
+
}, tn = { class: "flex items-center justify-between" }, sn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, rn = {
|
|
2808
2809
|
key: 0,
|
|
2809
2810
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
2810
|
-
},
|
|
2811
|
+
}, on = { class: "flex gap-4" }, nn = { class: "flex-1" }, an = { class: "flex-1" }, ln = {
|
|
2811
2812
|
key: 0,
|
|
2812
2813
|
class: "flex items-center text-fm-color-system-error-300"
|
|
2813
|
-
},
|
|
2814
|
+
}, un = { class: "fm-typo-en-body-md-400" }, cn = { class: "flex flex-col gap-4" }, dn = { class: "flex justify-between items-start py-1 gap-4" }, mn = { class: "flex flex-col flex-1 min-w-0" }, pn = { class: "fm-typo-en-body-lg-600 truncate" }, fn = { class: "fm-typo-en-body-md-400 truncate" }, vn = { class: "flex flex-col gap-2 items-end w-52 shrink-0" }, yn = {
|
|
2814
2815
|
key: 0,
|
|
2815
2816
|
class: "fm-typo-en-body-sm-400 text-fm-color-system-error-300 self-end text-right"
|
|
2816
|
-
},
|
|
2817
|
+
}, hn = {
|
|
2817
2818
|
key: 1,
|
|
2818
2819
|
class: "flex items-center gap-2"
|
|
2819
|
-
},
|
|
2820
|
+
}, gn = {
|
|
2820
2821
|
key: 0,
|
|
2821
2822
|
class: "border-b border-fm-color-stroke-secondary"
|
|
2822
|
-
},
|
|
2823
|
+
}, bn = { class: "flex flex-col gap-4" }, _n = { class: "flex items-center justify-between" }, Sn = {
|
|
2823
2824
|
key: 0,
|
|
2824
2825
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary"
|
|
2825
|
-
},
|
|
2826
|
+
}, kn = { class: "flex justify-between items-start py-1 gap-4" }, On = { class: "flex-1 min-w-0 flex flex-col gap-2" }, xn = { class: "flex flex-col gap-2 items-end w-52 shrink-0" }, wn = {
|
|
2826
2827
|
key: 0,
|
|
2827
2828
|
class: "fm-typo-en-body-sm-400 text-fm-color-system-error-300 self-end text-right"
|
|
2828
|
-
},
|
|
2829
|
+
}, $n = {
|
|
2829
2830
|
key: 1,
|
|
2830
2831
|
class: "flex items-center gap-2"
|
|
2831
|
-
},
|
|
2832
|
+
}, Cn = {
|
|
2832
2833
|
key: 0,
|
|
2833
2834
|
class: "border-b border-fm-color-stroke-secondary"
|
|
2834
|
-
},
|
|
2835
|
+
}, An = { class: "flex flex-col gap-4" }, Dn = { class: "flex flex-col gap-4" }, Nn = { class: "flex flex-col gap-4" }, Rn = { class: "flex flex-col gap-4 fm-typo-en-body-lg-600" }, rs = "Will be ignored on save (zero or negative quantity)", Pn = /* @__PURE__ */ Ve({
|
|
2835
2836
|
__name: "CreateForm",
|
|
2836
2837
|
props: {
|
|
2837
2838
|
purchaseOrder: {},
|
|
@@ -2841,21 +2842,21 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2841
2842
|
emits: ["submitted"],
|
|
2842
2843
|
setup(c, { emit: t }) {
|
|
2843
2844
|
var ye, I, pe;
|
|
2844
|
-
const { t: s } = ht(), n = re(!1), m = gt(), u = c, d = t, r =
|
|
2845
|
+
const { t: s } = ht(), n = re(!1), m = gt(), u = c, d = t, r = us("", {
|
|
2845
2846
|
default: {
|
|
2846
2847
|
deliveryOrderNumber: "",
|
|
2847
2848
|
remark: "",
|
|
2848
|
-
received: (u.purchaseOrder.itemsAtSubmission ?? u.purchaseOrder.items).map((
|
|
2849
|
+
received: (u.purchaseOrder.itemsAtSubmission ?? u.purchaseOrder.items).map((v) => {
|
|
2849
2850
|
var p;
|
|
2850
2851
|
return {
|
|
2851
2852
|
// Propagate the stable id so V2 submissions match this existing PO line instead
|
|
2852
2853
|
// of the backend's classify-received.ts treating it as a new extra item (which
|
|
2853
2854
|
// appends a duplicate item record with quantity = this delivery's amount, on
|
|
2854
2855
|
// every single delivery — inflating the PO's total ordered quantity forever).
|
|
2855
|
-
...(((p = u.purchaseOrder) == null ? void 0 : p.version) ?? Ue.enum[1]) === Ue.enum[2] &&
|
|
2856
|
-
sku:
|
|
2857
|
-
amount:
|
|
2858
|
-
measurement:
|
|
2856
|
+
...(((p = u.purchaseOrder) == null ? void 0 : p.version) ?? Ue.enum[1]) === Ue.enum[2] && v.id ? { id: v.id } : {},
|
|
2857
|
+
sku: v.sku,
|
|
2858
|
+
amount: Fe.fromNumber(0),
|
|
2859
|
+
measurement: v.measurement
|
|
2859
2860
|
};
|
|
2860
2861
|
}),
|
|
2861
2862
|
createdBy: {
|
|
@@ -2868,50 +2869,50 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2868
2869
|
controller: R,
|
|
2869
2870
|
state: F,
|
|
2870
2871
|
reset: _
|
|
2871
|
-
} = Tt({ currency:
|
|
2872
|
+
} = Tt({ currency: Ce() }), B = H(
|
|
2872
2873
|
() => u.purchaseOrder.deliveryFullfillment != null
|
|
2873
2874
|
), E = H(
|
|
2874
2875
|
() => f.enablePortalDeliveryOrderWrite && (u.purchaseOrder.status === be.Enum.RECEIVING || u.purchaseOrder.status === be.Enum.COMPLETE) && !B.value
|
|
2875
2876
|
), te = f.enablePurchaseOrderReceiveWithCustomCost, se = f.enableBackdateReceive, Q = re({}), de = H(
|
|
2876
2877
|
() => u.purchaseOrder.itemsAtSubmission ?? u.purchaseOrder.items
|
|
2877
|
-
), Oe = H(() =>
|
|
2878
|
-
() =>
|
|
2878
|
+
), Oe = H(() => Ss(u.purchaseOrder)), ae = H(
|
|
2879
|
+
() => ks(u.purchaseOrder, Oe.value)
|
|
2879
2880
|
);
|
|
2880
|
-
function Se(
|
|
2881
|
-
return
|
|
2881
|
+
function Se(v) {
|
|
2882
|
+
return v.sku._id ?? null;
|
|
2882
2883
|
}
|
|
2883
|
-
const
|
|
2884
|
+
const Ae = (((pe = u.purchaseOrder) == null ? void 0 : pe.version) ?? Ue.enum[1]) === Ue.enum[2], K = Ze(), ve = H({
|
|
2884
2885
|
get() {
|
|
2885
2886
|
if (!r.createdAt) return "";
|
|
2886
|
-
const
|
|
2887
|
+
const v = new Date(r.createdAt), p = v.getFullYear(), S = String(v.getMonth() + 1).padStart(2, "0"), U = String(v.getDate()).padStart(2, "0");
|
|
2887
2888
|
return `${p}-${S}-${U}`;
|
|
2888
2889
|
},
|
|
2889
|
-
set(
|
|
2890
|
-
if (
|
|
2891
|
-
const p = r.createdAt ? new Date(r.createdAt) : /* @__PURE__ */ new Date(), [S, U, M] =
|
|
2890
|
+
set(v) {
|
|
2891
|
+
if (v) {
|
|
2892
|
+
const p = r.createdAt ? new Date(r.createdAt) : /* @__PURE__ */ new Date(), [S, U, M] = v.split("-");
|
|
2892
2893
|
p.setFullYear(parseInt(S)), p.setMonth(parseInt(U) - 1), p.setDate(parseInt(M)), r.createdAt = p.toISOString();
|
|
2893
2894
|
}
|
|
2894
2895
|
}
|
|
2895
2896
|
}), P = H({
|
|
2896
2897
|
get() {
|
|
2897
2898
|
if (!r.createdAt) return "";
|
|
2898
|
-
const
|
|
2899
|
+
const v = new Date(r.createdAt), p = String(v.getHours()).padStart(2, "0"), S = String(v.getMinutes()).padStart(2, "0");
|
|
2899
2900
|
return `${p}:${S}`;
|
|
2900
2901
|
},
|
|
2901
|
-
set(
|
|
2902
|
-
if (
|
|
2903
|
-
const p = r.createdAt ? new Date(r.createdAt) : /* @__PURE__ */ new Date(), [S, U] =
|
|
2902
|
+
set(v) {
|
|
2903
|
+
if (v) {
|
|
2904
|
+
const p = r.createdAt ? new Date(r.createdAt) : /* @__PURE__ */ new Date(), [S, U] = v.split(":");
|
|
2904
2905
|
p.setHours(parseInt(S)), p.setMinutes(parseInt(U)), r.createdAt = p.toISOString();
|
|
2905
2906
|
}
|
|
2906
2907
|
}
|
|
2907
2908
|
}), x = H(() => {
|
|
2908
|
-
const
|
|
2909
|
-
if (!
|
|
2910
|
-
const p = new Date(
|
|
2909
|
+
const v = mt(u.purchaseOrder._id);
|
|
2910
|
+
if (!v) return "";
|
|
2911
|
+
const p = new Date(v), S = p.getFullYear(), U = String(p.getMonth() + 1).padStart(2, "0"), M = String(p.getDate()).padStart(2, "0");
|
|
2911
2912
|
return `${S}-${U}-${M}`;
|
|
2912
2913
|
}), w = H(() => {
|
|
2913
|
-
const
|
|
2914
|
-
return
|
|
2914
|
+
const v = mt(u.purchaseOrder._id);
|
|
2915
|
+
return v ? new Date(v) : null;
|
|
2915
2916
|
}), A = H(() => {
|
|
2916
2917
|
if (!ve.value || !P.value || !w.value) return null;
|
|
2917
2918
|
if (/* @__PURE__ */ new Date(`${ve.value}T${P.value}:00`) < w.value) {
|
|
@@ -2923,15 +2924,15 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2923
2924
|
const S = p.amount;
|
|
2924
2925
|
return S ? +$e(S) > 0 : !1;
|
|
2925
2926
|
}));
|
|
2926
|
-
function X(
|
|
2927
|
+
function X(v) {
|
|
2927
2928
|
var U;
|
|
2928
|
-
const p = (U = u.receivedInfoMap[
|
|
2929
|
-
return `${s("inventory.transfer.receiveRequest.details.received")} ${S} / ${ft(
|
|
2929
|
+
const p = (U = u.receivedInfoMap[v.sku._id]) == null ? void 0 : U.received, S = p != null ? Fe.toFormatString({ value: p }) : "0";
|
|
2930
|
+
return `${s("inventory.transfer.receiveRequest.details.received")} ${S} / ${ft(v.quantity, v.sku.unit, v.measurement)}`;
|
|
2930
2931
|
}
|
|
2931
2932
|
function le() {
|
|
2932
2933
|
r.createdAt = "";
|
|
2933
2934
|
}
|
|
2934
|
-
const g = H(() => de.value.map((
|
|
2935
|
+
const g = H(() => de.value.map((v, p) => H({
|
|
2935
2936
|
get: () => {
|
|
2936
2937
|
var U;
|
|
2937
2938
|
const S = (U = r.received[p]) == null ? void 0 : U.amount;
|
|
@@ -2943,24 +2944,24 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2943
2944
|
r.received[p].amount = Qe(S, U);
|
|
2944
2945
|
}
|
|
2945
2946
|
})));
|
|
2946
|
-
function D(
|
|
2947
|
-
const p = !Q.value[
|
|
2948
|
-
if (Q.value[
|
|
2949
|
-
const S = de.value[
|
|
2950
|
-
S.totalCost ? r.received[
|
|
2947
|
+
function D(v) {
|
|
2948
|
+
const p = !Q.value[v];
|
|
2949
|
+
if (Q.value[v] = p, p) {
|
|
2950
|
+
const S = de.value[v];
|
|
2951
|
+
S.totalCost ? r.received[v].cost = {
|
|
2951
2952
|
currency: S.totalCost.currency,
|
|
2952
2953
|
amount: S.totalCost.amount,
|
|
2953
2954
|
precision: 4
|
|
2954
2955
|
// Standardize to 4 decimals
|
|
2955
|
-
} : r.received[
|
|
2956
|
-
currency:
|
|
2956
|
+
} : r.received[v].cost = {
|
|
2957
|
+
currency: Ce(),
|
|
2957
2958
|
amount: 0,
|
|
2958
2959
|
precision: 4
|
|
2959
2960
|
};
|
|
2960
2961
|
} else
|
|
2961
|
-
delete r.received[
|
|
2962
|
+
delete r.received[v].cost;
|
|
2962
2963
|
}
|
|
2963
|
-
const ie = H(() => de.value.map((
|
|
2964
|
+
const ie = H(() => de.value.map((v, p) => H({
|
|
2964
2965
|
get: () => {
|
|
2965
2966
|
var U;
|
|
2966
2967
|
const S = (U = r.received[p]) == null ? void 0 : U.cost;
|
|
@@ -2968,37 +2969,37 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
2968
2969
|
},
|
|
2969
2970
|
set: (S) => {
|
|
2970
2971
|
r.received[p].cost = {
|
|
2971
|
-
currency:
|
|
2972
|
+
currency: Ce(),
|
|
2972
2973
|
...Qe(S, 4)
|
|
2973
2974
|
};
|
|
2974
2975
|
}
|
|
2975
2976
|
}))), ee = re([]), L = H(
|
|
2976
|
-
() => N.skus.filter((
|
|
2977
|
+
() => N.skus.filter((v) => !v.isInactive).map((v) => ({ label: `${v.name} (${v.code})`, value: v._id }))
|
|
2977
2978
|
), b = H(() => de.value.length);
|
|
2978
2979
|
function j() {
|
|
2979
2980
|
ee.value.push({ skuId: null, stableKey: null, costEnabled: !1 }), r.received.push({
|
|
2980
2981
|
sku: null,
|
|
2981
|
-
amount:
|
|
2982
|
+
amount: Fe.fromNumber(0),
|
|
2982
2983
|
measurement: null
|
|
2983
2984
|
});
|
|
2984
2985
|
}
|
|
2985
|
-
function J(
|
|
2986
|
-
ee.value.splice(
|
|
2986
|
+
function J(v) {
|
|
2987
|
+
ee.value.splice(v, 1), r.received.splice(b.value + v, 1);
|
|
2987
2988
|
}
|
|
2988
|
-
function me(
|
|
2989
|
-
ee.value[
|
|
2989
|
+
function me(v, p) {
|
|
2990
|
+
ee.value[v].skuId = p;
|
|
2990
2991
|
const S = p ? N.skuById[p] : null;
|
|
2991
|
-
r.received[b.value +
|
|
2992
|
+
r.received[b.value + v].sku = S;
|
|
2992
2993
|
}
|
|
2993
|
-
function ke(
|
|
2994
|
-
const p =
|
|
2994
|
+
function ke(v) {
|
|
2995
|
+
const p = v.stableKey;
|
|
2995
2996
|
if (p && ae.value[p]) {
|
|
2996
|
-
const S = ae.value[p], U =
|
|
2997
|
+
const S = ae.value[p], U = Fe.toFormatString({ value: S.received });
|
|
2997
2998
|
return `${s("inventory.transfer.receiveRequest.details.received")} ${U}`;
|
|
2998
2999
|
}
|
|
2999
3000
|
}
|
|
3000
3001
|
const we = H(
|
|
3001
|
-
() => ee.value.map((
|
|
3002
|
+
() => ee.value.map((v, p) => {
|
|
3002
3003
|
const S = b.value + p;
|
|
3003
3004
|
return H({
|
|
3004
3005
|
get: () => {
|
|
@@ -3014,7 +3015,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3014
3015
|
});
|
|
3015
3016
|
})
|
|
3016
3017
|
), o = H(
|
|
3017
|
-
() => ee.value.map((
|
|
3018
|
+
() => ee.value.map((v, p) => {
|
|
3018
3019
|
const S = b.value + p;
|
|
3019
3020
|
return H({
|
|
3020
3021
|
get: () => {
|
|
@@ -3024,16 +3025,16 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3024
3025
|
},
|
|
3025
3026
|
set: (U) => {
|
|
3026
3027
|
r.received[S].cost = {
|
|
3027
|
-
currency:
|
|
3028
|
+
currency: Ce(),
|
|
3028
3029
|
...Qe(U, 4)
|
|
3029
3030
|
};
|
|
3030
3031
|
}
|
|
3031
3032
|
});
|
|
3032
3033
|
})
|
|
3033
3034
|
);
|
|
3034
|
-
function l(
|
|
3035
|
-
const p = ee.value[
|
|
3036
|
-
p.costEnabled = !p.costEnabled, p.costEnabled ? r.received[S].cost = { currency:
|
|
3035
|
+
function l(v) {
|
|
3036
|
+
const p = ee.value[v], S = b.value + v;
|
|
3037
|
+
p.costEnabled = !p.costEnabled, p.costEnabled ? r.received[S].cost = { currency: Ce(), amount: 0, precision: 4 } : delete r.received[S].cost;
|
|
3037
3038
|
}
|
|
3038
3039
|
function $() {
|
|
3039
3040
|
Y() && O.open({
|
|
@@ -3059,7 +3060,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3059
3060
|
},
|
|
3060
3061
|
purchaseOrderId: u.purchaseOrder._id,
|
|
3061
3062
|
purchaseOrderRev: u.purchaseOrder._rev,
|
|
3062
|
-
currency:
|
|
3063
|
+
currency: Ce()
|
|
3063
3064
|
}).then(() => {
|
|
3064
3065
|
K.open(
|
|
3065
3066
|
{
|
|
@@ -3083,25 +3084,25 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3083
3084
|
1e4
|
|
3084
3085
|
), !1) : !0;
|
|
3085
3086
|
}
|
|
3086
|
-
return Ye(B, (
|
|
3087
|
-
!
|
|
3087
|
+
return Ye(B, (v) => {
|
|
3088
|
+
!v || !n.value || Y();
|
|
3088
3089
|
}), Ye(
|
|
3089
3090
|
() => n.value,
|
|
3090
|
-
(
|
|
3091
|
+
(v) => {
|
|
3091
3092
|
var U;
|
|
3092
|
-
if (!
|
|
3093
|
+
if (!v) {
|
|
3093
3094
|
ee.value = [], _([]), r.received = de.value.map((M) => ({
|
|
3094
|
-
...
|
|
3095
|
+
...Ae && M.id ? { id: M.id } : {},
|
|
3095
3096
|
sku: M.sku,
|
|
3096
|
-
amount:
|
|
3097
|
+
amount: Fe.fromNumber(0),
|
|
3097
3098
|
measurement: M.measurement
|
|
3098
3099
|
}));
|
|
3099
3100
|
return;
|
|
3100
3101
|
}
|
|
3101
3102
|
const p = de.value;
|
|
3102
3103
|
for (let M = 0; M < p.length; M++) {
|
|
3103
|
-
const _e = p[M], W = (((U = u.purchaseOrder) == null ? void 0 : U.version) ?? Ue.enum[1]) === Ue.enum[2] ? _e.id : _e.sku._id, Z = u.receivedMap[W], ge = +$e(_e.quantity),
|
|
3104
|
-
g.value[M].value = Math.max(0, ge -
|
|
3104
|
+
const _e = p[M], W = (((U = u.purchaseOrder) == null ? void 0 : U.version) ?? Ue.enum[1]) === Ue.enum[2] ? _e.id : _e.sku._id, Z = u.receivedMap[W], ge = +$e(_e.quantity), Pe = Z ? +$e(Z.received) : 0;
|
|
3105
|
+
g.value[M].value = Math.max(0, ge - Pe);
|
|
3105
3106
|
}
|
|
3106
3107
|
const S = Oe.value;
|
|
3107
3108
|
if (S.length) {
|
|
@@ -3114,9 +3115,9 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3114
3115
|
historyItem: M
|
|
3115
3116
|
}), r.received.push({
|
|
3116
3117
|
// Propagate the stable id so V2 submissions align with the existing PO line.
|
|
3117
|
-
...
|
|
3118
|
+
...Ae && M.id ? { id: M.id } : {},
|
|
3118
3119
|
sku: M.sku,
|
|
3119
|
-
amount:
|
|
3120
|
+
amount: Fe.fromNumber(0),
|
|
3120
3121
|
measurement: M.measurement ?? null
|
|
3121
3122
|
});
|
|
3122
3123
|
}
|
|
@@ -3129,16 +3130,16 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3129
3130
|
}
|
|
3130
3131
|
}
|
|
3131
3132
|
}
|
|
3132
|
-
), (
|
|
3133
|
-
const S = ne("FmButton"), U = ne("FmDatePicker"), M = ne("FmTimePicker"), _e = ne("FmIcon"), xe = ne("FmStepperField"), W = ne("FmSwitch"), Z = ne("FmSelect"), ge = ne("FmTextField"),
|
|
3134
|
-
return i(),
|
|
3133
|
+
), (v, p) => {
|
|
3134
|
+
const S = ne("FmButton"), U = ne("FmDatePicker"), M = ne("FmTimePicker"), _e = ne("FmIcon"), xe = ne("FmStepperField"), W = ne("FmSwitch"), Z = ne("FmSelect"), ge = ne("FmTextField"), Pe = ne("FmDialog");
|
|
3135
|
+
return i(), fe(Pe, {
|
|
3135
3136
|
modelValue: n.value,
|
|
3136
3137
|
"onUpdate:modelValue": p[4] || (p[4] = (Ie) => n.value = Ie),
|
|
3137
3138
|
overlay: !0,
|
|
3138
3139
|
"min-width": 800
|
|
3139
3140
|
}, {
|
|
3140
|
-
"dialog-button":
|
|
3141
|
-
E.value ? (i(),
|
|
3141
|
+
"dialog-button": ue(() => [
|
|
3142
|
+
E.value ? (i(), fe(S, {
|
|
3142
3143
|
key: 0,
|
|
3143
3144
|
variant: "primary",
|
|
3144
3145
|
label: "Create",
|
|
@@ -3147,10 +3148,10 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3147
3148
|
class: "w-full"
|
|
3148
3149
|
})) : V("", !0)
|
|
3149
3150
|
]),
|
|
3150
|
-
"dialog-header":
|
|
3151
|
+
"dialog-header": ue(() => [
|
|
3151
3152
|
e("div", null, "Order #" + k(u.purchaseOrder.seqNumber) + " (New Delivery Order)", 1)
|
|
3152
3153
|
]),
|
|
3153
|
-
"dialog-footer":
|
|
3154
|
+
"dialog-footer": ue(() => [
|
|
3154
3155
|
T(S, {
|
|
3155
3156
|
class: "ml-auto",
|
|
3156
3157
|
label: "Create",
|
|
@@ -3161,21 +3162,21 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3161
3162
|
onClick: $
|
|
3162
3163
|
}, null, 8, ["disabled", "loading"])
|
|
3163
3164
|
]),
|
|
3164
|
-
default:
|
|
3165
|
+
default: ue(() => {
|
|
3165
3166
|
var Ie;
|
|
3166
3167
|
return [
|
|
3167
|
-
e("div",
|
|
3168
|
-
e("div",
|
|
3168
|
+
e("div", Jo, [
|
|
3169
|
+
e("div", Zo, [
|
|
3169
3170
|
p[5] || (p[5] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Received by", -1)),
|
|
3170
|
-
e("div",
|
|
3171
|
+
e("div", Xo, k((Ie = y(m).sessionUser.value) == null ? void 0 : Ie.displayName), 1)
|
|
3171
3172
|
]),
|
|
3172
|
-
|
|
3173
|
-
e("div",
|
|
3174
|
-
e("div",
|
|
3173
|
+
y(se) ? (i(), h("div", en, [
|
|
3174
|
+
e("div", tn, [
|
|
3175
|
+
e("div", sn, [
|
|
3175
3176
|
p[6] || (p[6] = Ge(" Delivery Date & Time ")),
|
|
3176
|
-
!ve.value && !P.value ? (i(),
|
|
3177
|
+
!ve.value && !P.value ? (i(), h("div", rn, " Leave blank to use current date & time ")) : V("", !0)
|
|
3177
3178
|
]),
|
|
3178
|
-
ve.value || P.value ? (i(),
|
|
3179
|
+
ve.value || P.value ? (i(), fe(S, {
|
|
3179
3180
|
key: 0,
|
|
3180
3181
|
variant: "tertiary",
|
|
3181
3182
|
label: "Clear",
|
|
@@ -3183,75 +3184,75 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3183
3184
|
onClick: le
|
|
3184
3185
|
})) : V("", !0)
|
|
3185
3186
|
]),
|
|
3186
|
-
e("div",
|
|
3187
|
-
e("div",
|
|
3187
|
+
e("div", on, [
|
|
3188
|
+
e("div", nn, [
|
|
3188
3189
|
T(U, {
|
|
3189
3190
|
modelValue: ve.value,
|
|
3190
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
3191
|
+
"onUpdate:modelValue": p[0] || (p[0] = (he) => ve.value = he)
|
|
3191
3192
|
}, null, 8, ["modelValue"])
|
|
3192
3193
|
]),
|
|
3193
|
-
e("div",
|
|
3194
|
+
e("div", an, [
|
|
3194
3195
|
T(M, {
|
|
3195
3196
|
modelValue: P.value,
|
|
3196
|
-
"onUpdate:modelValue": p[1] || (p[1] = (
|
|
3197
|
+
"onUpdate:modelValue": p[1] || (p[1] = (he) => P.value = he)
|
|
3197
3198
|
}, null, 8, ["modelValue"])
|
|
3198
3199
|
])
|
|
3199
3200
|
]),
|
|
3200
|
-
A.value ? (i(),
|
|
3201
|
+
A.value ? (i(), h("div", ln, [
|
|
3201
3202
|
T(_e, {
|
|
3202
3203
|
name: "error",
|
|
3203
3204
|
class: "inline-block mr-1",
|
|
3204
3205
|
size: "sm"
|
|
3205
3206
|
}),
|
|
3206
|
-
e("div",
|
|
3207
|
+
e("div", un, k(A.value), 1)
|
|
3207
3208
|
])) : V("", !0)
|
|
3208
3209
|
])) : V("", !0),
|
|
3209
|
-
e("div",
|
|
3210
|
+
e("div", cn, [
|
|
3210
3211
|
p[8] || (p[8] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Items going to receive ", -1)),
|
|
3211
|
-
(i(!0),
|
|
3212
|
+
(i(!0), h(Ne, null, Te(de.value, (he, ce) => {
|
|
3212
3213
|
var Re;
|
|
3213
|
-
return i(),
|
|
3214
|
-
e("div",
|
|
3215
|
-
e("div",
|
|
3216
|
-
e("span",
|
|
3217
|
-
e("span",
|
|
3214
|
+
return i(), h("div", { key: ce }, [
|
|
3215
|
+
e("div", dn, [
|
|
3216
|
+
e("div", mn, [
|
|
3217
|
+
e("span", pn, k(he.sku.name), 1),
|
|
3218
|
+
e("span", fn, k(he.sku.code), 1)
|
|
3218
3219
|
]),
|
|
3219
|
-
e("div",
|
|
3220
|
+
e("div", vn, [
|
|
3220
3221
|
T(xe, {
|
|
3221
3222
|
label: "Receive Quantity",
|
|
3222
|
-
modelValue: g.value[
|
|
3223
|
-
"onUpdate:modelValue": (Ee) => g.value[
|
|
3224
|
-
"helper-text": X(
|
|
3225
|
-
"append-text": ((Re =
|
|
3223
|
+
modelValue: g.value[ce].value,
|
|
3224
|
+
"onUpdate:modelValue": (Ee) => g.value[ce].value = Ee,
|
|
3225
|
+
"helper-text": X(he),
|
|
3226
|
+
"append-text": ((Re = he.measurement) == null ? void 0 : Re.abbrev) ?? he.sku.unit.abbrev
|
|
3226
3227
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "helper-text", "append-text"]),
|
|
3227
|
-
g.value[
|
|
3228
|
-
|
|
3228
|
+
g.value[ce].value <= 0 ? (i(), h("div", yn, k(rs))) : V("", !0),
|
|
3229
|
+
y(te) ? (i(), h("div", hn, [
|
|
3229
3230
|
T(W, {
|
|
3230
|
-
"model-value": Q.value[
|
|
3231
|
-
"onUpdate:modelValue": (Ee) => D(
|
|
3231
|
+
"model-value": Q.value[ce],
|
|
3232
|
+
"onUpdate:modelValue": (Ee) => D(ce),
|
|
3232
3233
|
size: "sm"
|
|
3233
3234
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
3234
3235
|
p[7] || (p[7] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Override cost ", -1))
|
|
3235
3236
|
])) : V("", !0),
|
|
3236
|
-
|
|
3237
|
+
y(te) && Q.value[ce] ? (i(), fe(xe, {
|
|
3237
3238
|
key: 2,
|
|
3238
|
-
modelValue: ie.value[
|
|
3239
|
-
"onUpdate:modelValue": (Ee) => ie.value[
|
|
3239
|
+
modelValue: ie.value[ce].value,
|
|
3240
|
+
"onUpdate:modelValue": (Ee) => ie.value[ce].value = Ee,
|
|
3240
3241
|
label: "Total Cost",
|
|
3241
3242
|
step: 1e-4,
|
|
3242
3243
|
min: 0,
|
|
3243
3244
|
placeholder: "0.0000",
|
|
3244
3245
|
size: "sm",
|
|
3245
|
-
"append-text":
|
|
3246
|
+
"append-text": y(Ce)()
|
|
3246
3247
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "append-text"])) : V("", !0)
|
|
3247
3248
|
])
|
|
3248
3249
|
]),
|
|
3249
|
-
|
|
3250
|
+
ce < de.value.length - 1 ? (i(), h("div", gn)) : V("", !0)
|
|
3250
3251
|
]);
|
|
3251
3252
|
}), 128))
|
|
3252
3253
|
]),
|
|
3253
|
-
e("div",
|
|
3254
|
-
e("div",
|
|
3254
|
+
e("div", bn, [
|
|
3255
|
+
e("div", _n, [
|
|
3255
3256
|
p[9] || (p[9] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Extra items", -1)),
|
|
3256
3257
|
T(S, {
|
|
3257
3258
|
variant: "tertiary",
|
|
@@ -3261,89 +3262,89 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3261
3262
|
onClick: j
|
|
3262
3263
|
})
|
|
3263
3264
|
]),
|
|
3264
|
-
ee.value.length === 0 ? (i(),
|
|
3265
|
-
(i(!0),
|
|
3265
|
+
ee.value.length === 0 ? (i(), h("div", Sn, " No extra items added ")) : V("", !0),
|
|
3266
|
+
(i(!0), h(Ne, null, Te(ee.value, (he, ce) => {
|
|
3266
3267
|
var Re, Ee;
|
|
3267
|
-
return i(),
|
|
3268
|
-
e("div",
|
|
3269
|
-
e("div",
|
|
3268
|
+
return i(), h("div", { key: ce }, [
|
|
3269
|
+
e("div", kn, [
|
|
3270
|
+
e("div", On, [
|
|
3270
3271
|
T(Z, {
|
|
3271
|
-
"model-value":
|
|
3272
|
-
"onUpdate:modelValue": (Le) => me(
|
|
3272
|
+
"model-value": he.skuId,
|
|
3273
|
+
"onUpdate:modelValue": (Le) => me(ce, Le),
|
|
3273
3274
|
label: "Ingredient",
|
|
3274
3275
|
items: L.value,
|
|
3275
3276
|
searchable: "",
|
|
3276
3277
|
searchTarget: "label",
|
|
3277
3278
|
placeholder: "Select ingredient",
|
|
3278
|
-
disabled: !!
|
|
3279
|
+
disabled: !!he.historyItem
|
|
3279
3280
|
}, null, 8, ["model-value", "onUpdate:modelValue", "items", "disabled"])
|
|
3280
3281
|
]),
|
|
3281
|
-
e("div",
|
|
3282
|
+
e("div", xn, [
|
|
3282
3283
|
T(xe, {
|
|
3283
3284
|
label: "Receive Quantity",
|
|
3284
|
-
modelValue: we.value[
|
|
3285
|
-
"onUpdate:modelValue": (Le) => we.value[
|
|
3286
|
-
"append-text":
|
|
3287
|
-
"helper-text": ke(
|
|
3285
|
+
modelValue: we.value[ce].value,
|
|
3286
|
+
"onUpdate:modelValue": (Le) => we.value[ce].value = Le,
|
|
3287
|
+
"append-text": he.skuId ? ((Ee = (Re = y(N).skuById[he.skuId]) == null ? void 0 : Re.unit) == null ? void 0 : Ee.abbrev) ?? "" : "",
|
|
3288
|
+
"helper-text": ke(he)
|
|
3288
3289
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "append-text", "helper-text"]),
|
|
3289
|
-
we.value[
|
|
3290
|
-
|
|
3290
|
+
we.value[ce].value <= 0 ? (i(), h("div", wn, k(rs))) : V("", !0),
|
|
3291
|
+
y(te) ? (i(), h("div", $n, [
|
|
3291
3292
|
T(W, {
|
|
3292
|
-
"model-value":
|
|
3293
|
-
"onUpdate:modelValue": (Le) => l(
|
|
3293
|
+
"model-value": he.costEnabled,
|
|
3294
|
+
"onUpdate:modelValue": (Le) => l(ce),
|
|
3294
3295
|
size: "sm"
|
|
3295
3296
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
3296
3297
|
p[10] || (p[10] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Override cost ", -1))
|
|
3297
3298
|
])) : V("", !0),
|
|
3298
|
-
|
|
3299
|
+
y(te) && he.costEnabled ? (i(), fe(xe, {
|
|
3299
3300
|
key: 2,
|
|
3300
|
-
modelValue: o.value[
|
|
3301
|
-
"onUpdate:modelValue": (Le) => o.value[
|
|
3301
|
+
modelValue: o.value[ce].value,
|
|
3302
|
+
"onUpdate:modelValue": (Le) => o.value[ce].value = Le,
|
|
3302
3303
|
label: "Total Cost",
|
|
3303
3304
|
step: 1e-4,
|
|
3304
3305
|
min: 0,
|
|
3305
3306
|
placeholder: "0.0000",
|
|
3306
3307
|
size: "sm",
|
|
3307
|
-
"append-text":
|
|
3308
|
+
"append-text": y(Ce)()
|
|
3308
3309
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "append-text"])) : V("", !0)
|
|
3309
3310
|
]),
|
|
3310
|
-
|
|
3311
|
+
he.historyItem ? V("", !0) : (i(), fe(S, {
|
|
3311
3312
|
key: 0,
|
|
3312
3313
|
variant: "tertiary",
|
|
3313
3314
|
"prepend-icon": "delete",
|
|
3314
3315
|
size: "md",
|
|
3315
3316
|
class: "mt-6",
|
|
3316
|
-
onClick: (Le) => J(
|
|
3317
|
+
onClick: (Le) => J(ce)
|
|
3317
3318
|
}, null, 8, ["onClick"]))
|
|
3318
3319
|
]),
|
|
3319
|
-
|
|
3320
|
+
ce < ee.value.length - 1 ? (i(), h("div", Cn)) : V("", !0)
|
|
3320
3321
|
]);
|
|
3321
3322
|
}), 128))
|
|
3322
3323
|
]),
|
|
3323
|
-
e("div",
|
|
3324
|
+
e("div", An, [
|
|
3324
3325
|
p[11] || (p[11] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Delivery order no.", -1)),
|
|
3325
|
-
e("div",
|
|
3326
|
+
e("div", Dn, [
|
|
3326
3327
|
T(ge, {
|
|
3327
|
-
modelValue:
|
|
3328
|
-
"onUpdate:modelValue": p[2] || (p[2] = (
|
|
3328
|
+
modelValue: y(r).deliveryOrderNumber,
|
|
3329
|
+
"onUpdate:modelValue": p[2] || (p[2] = (he) => y(r).deliveryOrderNumber = he),
|
|
3329
3330
|
size: "md"
|
|
3330
3331
|
}, null, 8, ["modelValue"])
|
|
3331
3332
|
])
|
|
3332
3333
|
]),
|
|
3333
|
-
e("div",
|
|
3334
|
+
e("div", Nn, [
|
|
3334
3335
|
p[12] || (p[12] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Remark", -1)),
|
|
3335
|
-
e("div",
|
|
3336
|
+
e("div", Rn, [
|
|
3336
3337
|
T(ge, {
|
|
3337
|
-
modelValue:
|
|
3338
|
-
"onUpdate:modelValue": p[3] || (p[3] = (
|
|
3338
|
+
modelValue: y(r).remark,
|
|
3339
|
+
"onUpdate:modelValue": p[3] || (p[3] = (he) => y(r).remark = he),
|
|
3339
3340
|
size: "md"
|
|
3340
3341
|
}, null, 8, ["modelValue"])
|
|
3341
3342
|
])
|
|
3342
3343
|
]),
|
|
3343
|
-
|
|
3344
|
+
y(f).enablePurchaseOrderPriceAdjustment ? (i(), fe(It, {
|
|
3344
3345
|
key: 1,
|
|
3345
|
-
controller:
|
|
3346
|
-
state:
|
|
3346
|
+
controller: y(R),
|
|
3347
|
+
state: y(F)
|
|
3347
3348
|
}, null, 8, ["controller", "state"])) : V("", !0)
|
|
3348
3349
|
])
|
|
3349
3350
|
];
|
|
@@ -3352,10 +3353,10 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3352
3353
|
}, 8, ["modelValue"]);
|
|
3353
3354
|
};
|
|
3354
3355
|
}
|
|
3355
|
-
}),
|
|
3356
|
+
}), Fn = {
|
|
3356
3357
|
key: 0,
|
|
3357
3358
|
class: "flex flex-col gap-1"
|
|
3358
|
-
},
|
|
3359
|
+
}, In = { class: "truncate" }, Tn = { class: "shrink-0" }, En = /* @__PURE__ */ Ve({
|
|
3359
3360
|
__name: "PriceAdjustmentList",
|
|
3360
3361
|
props: {
|
|
3361
3362
|
adjustments: {}
|
|
@@ -3366,17 +3367,17 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3366
3367
|
const u = m.amount < 0 ? "-" : "+", d = $e({ ...m, amount: Math.abs(m.amount) });
|
|
3367
3368
|
return `${u}${m.currency} ${d}`;
|
|
3368
3369
|
}
|
|
3369
|
-
return (m, u) => s.value.length ? (i(),
|
|
3370
|
-
(i(!0),
|
|
3370
|
+
return (m, u) => s.value.length ? (i(), h("div", Fn, [
|
|
3371
|
+
(i(!0), h(Ne, null, Te(s.value, (d) => (i(), h("div", {
|
|
3371
3372
|
key: d.id,
|
|
3372
3373
|
class: "flex justify-between gap-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
3373
3374
|
}, [
|
|
3374
|
-
e("span",
|
|
3375
|
-
e("span",
|
|
3375
|
+
e("span", In, k(d.name), 1),
|
|
3376
|
+
e("span", Tn, k(n(d.dinero)), 1)
|
|
3376
3377
|
]))), 128))
|
|
3377
3378
|
])) : V("", !0);
|
|
3378
3379
|
}
|
|
3379
|
-
}),
|
|
3380
|
+
}), qn = { class: "flex flex-col gap-3" }, Vn = /* @__PURE__ */ Ve({
|
|
3380
3381
|
__name: "PriceAdjustmentEditForm",
|
|
3381
3382
|
props: {
|
|
3382
3383
|
purchaseOrder: {}
|
|
@@ -3384,7 +3385,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3384
3385
|
emits: ["submitted"],
|
|
3385
3386
|
setup(c, { emit: t }) {
|
|
3386
3387
|
const s = c, n = t, m = Xe(), u = Ze(), d = re(!1), r = re(!1), { controller: a, state: O, reset: f } = Tt({
|
|
3387
|
-
currency:
|
|
3388
|
+
currency: Ce(),
|
|
3388
3389
|
adjustments: s.purchaseOrder.priceAdjustments
|
|
3389
3390
|
});
|
|
3390
3391
|
Ye(
|
|
@@ -3412,13 +3413,13 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3412
3413
|
}
|
|
3413
3414
|
return (R, F) => {
|
|
3414
3415
|
const _ = ne("FmButton"), B = ne("FmDialog");
|
|
3415
|
-
return i(),
|
|
3416
|
+
return i(), fe(B, {
|
|
3416
3417
|
modelValue: d.value,
|
|
3417
3418
|
"onUpdate:modelValue": F[0] || (F[0] = (E) => d.value = E),
|
|
3418
3419
|
overlay: !0,
|
|
3419
3420
|
"min-width": 600
|
|
3420
3421
|
}, {
|
|
3421
|
-
"dialog-button":
|
|
3422
|
+
"dialog-button": ue(() => [
|
|
3422
3423
|
T(_, {
|
|
3423
3424
|
variant: "plain",
|
|
3424
3425
|
label: "Edit price adjustments",
|
|
@@ -3426,10 +3427,10 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3426
3427
|
"prepend-icon": "edit"
|
|
3427
3428
|
})
|
|
3428
3429
|
]),
|
|
3429
|
-
"dialog-header":
|
|
3430
|
+
"dialog-header": ue(() => [
|
|
3430
3431
|
e("div", null, "Price adjustments — PO# " + k(s.purchaseOrder.seqNumber), 1)
|
|
3431
3432
|
]),
|
|
3432
|
-
"dialog-footer":
|
|
3433
|
+
"dialog-footer": ue(() => [
|
|
3433
3434
|
T(_, {
|
|
3434
3435
|
class: "ml-auto",
|
|
3435
3436
|
label: "Apply changes",
|
|
@@ -3440,11 +3441,11 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3440
3441
|
onClick: N
|
|
3441
3442
|
}, null, 8, ["disabled", "loading"])
|
|
3442
3443
|
]),
|
|
3443
|
-
default:
|
|
3444
|
-
e("div",
|
|
3444
|
+
default: ue(() => [
|
|
3445
|
+
e("div", qn, [
|
|
3445
3446
|
T(It, {
|
|
3446
|
-
controller:
|
|
3447
|
-
state:
|
|
3447
|
+
controller: y(a),
|
|
3448
|
+
state: y(O)
|
|
3448
3449
|
}, null, 8, ["controller", "state"])
|
|
3449
3450
|
])
|
|
3450
3451
|
]),
|
|
@@ -3452,16 +3453,16 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3452
3453
|
}, 8, ["modelValue"]);
|
|
3453
3454
|
};
|
|
3454
3455
|
}
|
|
3455
|
-
}),
|
|
3456
|
+
}), Ln = { class: "flex flex-row-reverse" }, jn = {
|
|
3456
3457
|
key: 0,
|
|
3457
3458
|
class: "flex"
|
|
3458
|
-
},
|
|
3459
|
+
}, Un = {
|
|
3459
3460
|
key: 1,
|
|
3460
3461
|
class: "border-t pt-6"
|
|
3461
|
-
},
|
|
3462
|
+
}, Mn = { class: "fm-typo-en-body-lg-600 mb-4 flex items-center gap-2" }, Bn = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg overflow-y-auto" }, zn = { class: "w-full" }, Kn = {
|
|
3462
3463
|
class: "p-3 fm-typo-en-body-sm-600",
|
|
3463
3464
|
style: { "min-width": "130px" }
|
|
3464
|
-
},
|
|
3465
|
+
}, Hn = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Gn = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Wn = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Qn = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Yn = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Jn = { class: "p-3 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Zn = { class: "p-3 fm-typo-en-body-sm-600" }, Xn = { key: 2 }, ea = /* @__PURE__ */ Ve({
|
|
3465
3466
|
__name: "NetSuiteTransactionChangeLog",
|
|
3466
3467
|
props: {
|
|
3467
3468
|
netsuiteId: {}
|
|
@@ -3505,14 +3506,14 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3505
3506
|
}
|
|
3506
3507
|
return (f, N) => {
|
|
3507
3508
|
const R = ne("FmButton"), F = ne("FmCircularProgress"), _ = ne("FmIcon"), B = ne("FmDialog");
|
|
3508
|
-
return i(),
|
|
3509
|
+
return i(), h("div", Ln, [
|
|
3509
3510
|
T(B, {
|
|
3510
3511
|
modelValue: n.value,
|
|
3511
3512
|
"onUpdate:modelValue": N[2] || (N[2] = (E) => n.value = E),
|
|
3512
3513
|
overlay: !0,
|
|
3513
3514
|
"max-width": 800
|
|
3514
3515
|
}, {
|
|
3515
|
-
"dialog-button":
|
|
3516
|
+
"dialog-button": ue(() => [
|
|
3516
3517
|
T(R, {
|
|
3517
3518
|
"prepend-icon": "info",
|
|
3518
3519
|
variant: "secondary",
|
|
@@ -3523,16 +3524,16 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3523
3524
|
"border-color": "primary"
|
|
3524
3525
|
})
|
|
3525
3526
|
]),
|
|
3526
|
-
"dialog-header":
|
|
3527
|
+
"dialog-header": ue(() => N[3] || (N[3] = [
|
|
3527
3528
|
e("div", null, "NetSuite info", -1)
|
|
3528
3529
|
])),
|
|
3529
|
-
default:
|
|
3530
|
-
m.value ? (i(),
|
|
3530
|
+
default: ue(() => [
|
|
3531
|
+
m.value ? (i(), h("div", jn, [
|
|
3531
3532
|
N[4] || (N[4] = e("span", null, "Change Log Loading...", -1)),
|
|
3532
3533
|
T(F, { size: "md" })
|
|
3533
3534
|
])) : V("", !0),
|
|
3534
|
-
!m.value && d.value.length > 0 ? (i(),
|
|
3535
|
-
e("h3",
|
|
3535
|
+
!m.value && d.value.length > 0 ? (i(), h("div", Un, [
|
|
3536
|
+
e("h3", Mn, [
|
|
3536
3537
|
T(_, {
|
|
3537
3538
|
name: "error",
|
|
3538
3539
|
color: "#ff9500",
|
|
@@ -3540,8 +3541,8 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3540
3541
|
}),
|
|
3541
3542
|
N[5] || (N[5] = Ge(" Change Logs "))
|
|
3542
3543
|
]),
|
|
3543
|
-
e("div",
|
|
3544
|
-
e("table",
|
|
3544
|
+
e("div", Bn, [
|
|
3545
|
+
e("table", zn, [
|
|
3545
3546
|
N[6] || (N[6] = e("thead", { class: "bg-fm-color-neutral-gray-50" }, [
|
|
3546
3547
|
e("tr", { class: "border-b border-fm-color-neutral-gray-200" }, [
|
|
3547
3548
|
e("th", {
|
|
@@ -3559,30 +3560,30 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3559
3560
|
])
|
|
3560
3561
|
], -1)),
|
|
3561
3562
|
e("tbody", null, [
|
|
3562
|
-
(i(!0),
|
|
3563
|
+
(i(!0), h(Ne, null, Te(d.value, (E, te) => (i(), h("tr", {
|
|
3563
3564
|
key: te,
|
|
3564
3565
|
class: "border-b border-fm-color-neutral-gray-200 last:border-b-0"
|
|
3565
3566
|
}, [
|
|
3566
|
-
e("td",
|
|
3567
|
-
e("td",
|
|
3568
|
-
e("td",
|
|
3569
|
-
e("td",
|
|
3567
|
+
e("td", Kn, k(O(E._dateiso8601)), 1),
|
|
3568
|
+
e("td", Hn, k(E._rolename), 1),
|
|
3569
|
+
e("td", Gn, k(E._employeename), 1),
|
|
3570
|
+
e("td", Wn, k(E._contextname), 1),
|
|
3570
3571
|
e("td", {
|
|
3571
3572
|
class: We(`p-3 fm-typo-en-body-sm-600 ${a(Number(E.type) - 1)}`)
|
|
3572
|
-
}, k(
|
|
3573
|
-
e("td",
|
|
3574
|
-
e("td",
|
|
3575
|
-
e("td",
|
|
3576
|
-
e("td",
|
|
3573
|
+
}, k(y(Me)[Number(E.type) - 1]), 3),
|
|
3574
|
+
e("td", Qn, k(E.lineid || ""), 1),
|
|
3575
|
+
e("td", Yn, k(E._fieldname), 1),
|
|
3576
|
+
e("td", Jn, k(E.oldvalue || ""), 1),
|
|
3577
|
+
e("td", Zn, k(E.newvalue || ""), 1)
|
|
3577
3578
|
]))), 128))
|
|
3578
3579
|
])
|
|
3579
3580
|
])
|
|
3580
3581
|
])
|
|
3581
|
-
])) : (i(),
|
|
3582
|
+
])) : (i(), h("div", Xn, N[7] || (N[7] = [
|
|
3582
3583
|
e("p", null, "No change logs available.", -1)
|
|
3583
3584
|
])))
|
|
3584
3585
|
]),
|
|
3585
|
-
"dialog-footer":
|
|
3586
|
+
"dialog-footer": ue(() => [
|
|
3586
3587
|
T(R, {
|
|
3587
3588
|
class: "ml-auto sm:w-full xs:w-full",
|
|
3588
3589
|
label: "Close",
|
|
@@ -3596,82 +3597,79 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3596
3597
|
]);
|
|
3597
3598
|
};
|
|
3598
3599
|
}
|
|
3599
|
-
}),
|
|
3600
|
+
}), ta = { class: "flex flex-col w-full gap-3" }, sa = { class: "flex" }, ra = { class: "fm-typo-en-title-md-600 text-fm-color-typo-primary" }, oa = { class: "flex flex-col gap-16 w-full h-full" }, na = { class: "flex justify-between" }, aa = { class: "fm-typo-en-body-lg-600" }, la = { class: "flex gap-2" }, ia = {
|
|
3600
3601
|
key: 0,
|
|
3601
3602
|
class: "flex items-center gap-1"
|
|
3602
|
-
},
|
|
3603
|
+
}, ua = { class: "fm-typo-en-body-md-400" }, ca = { class: "flex flex-col gap-8" }, da = {
|
|
3603
3604
|
key: 0,
|
|
3604
3605
|
class: "flex items-start justify-between gap-6"
|
|
3605
|
-
},
|
|
3606
|
+
}, ma = { class: "text-xs font-mono text-right break-all" }, pa = {
|
|
3606
3607
|
key: 1,
|
|
3607
3608
|
class: "flex items-start justify-between gap-6"
|
|
3608
|
-
},
|
|
3609
|
+
}, fa = { class: "fm-typo-en-body-sm-600" }, va = {
|
|
3609
3610
|
key: 2,
|
|
3610
3611
|
class: "flex items-start justify-between gap-6"
|
|
3611
|
-
},
|
|
3612
|
+
}, ya = { class: "text-xs font-mono text-right break-all" }, ha = {
|
|
3612
3613
|
key: 3,
|
|
3613
3614
|
class: "flex items-start justify-between gap-6"
|
|
3614
|
-
},
|
|
3615
|
+
}, ga = { class: "text-xs font-mono text-right break-all" }, ba = { class: "flex flex-col gap-4" }, _a = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Sa = { class: "flex gap-1" }, ka = { class: "fm-typo-en-body-lg-600" }, Oa = {
|
|
3615
3616
|
key: 0,
|
|
3616
3617
|
class: "flex flex-col gap-4"
|
|
3617
|
-
},
|
|
3618
|
+
}, xa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, wa = { class: "fm-typo-en-body-lg-600" }, $a = { class: "flex flex-col gap-4" }, Ca = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Aa = { class: "fm-typo-en-body-lg-600" }, Da = {
|
|
3618
3619
|
key: 1,
|
|
3619
3620
|
class: "flex flex-col gap-4"
|
|
3620
|
-
},
|
|
3621
|
+
}, Na = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ra = { class: "fm-typo-en-body-lg-600" }, Pa = {
|
|
3621
3622
|
key: 2,
|
|
3622
3623
|
class: "flex flex-col gap-4"
|
|
3623
|
-
},
|
|
3624
|
+
}, Fa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ia = { class: "fm-typo-en-body-lg-600" }, Ta = {
|
|
3624
3625
|
key: 3,
|
|
3625
3626
|
class: "flex flex-col gap-4"
|
|
3626
|
-
},
|
|
3627
|
+
}, Ea = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qa = { class: "fm-typo-en-body-lg-600" }, Va = {
|
|
3627
3628
|
key: 4,
|
|
3628
3629
|
class: "flex flex-col gap-4"
|
|
3629
|
-
},
|
|
3630
|
+
}, La = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ja = { class: "fm-typo-en-body-lg-600" }, Ua = {
|
|
3630
3631
|
key: 5,
|
|
3631
3632
|
class: "flex flex-col gap-4"
|
|
3632
|
-
},
|
|
3633
|
-
key: 0,
|
|
3634
|
-
class: "flex items-center gap-4"
|
|
3635
|
-
}, sl = { class: "line-clamp-1 fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, rl = {
|
|
3633
|
+
}, Ma = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ba = { class: "fm-typo-en-body-lg-600" }, za = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Ka = { class: "flex flex-col gap-8" }, Ha = { class: "flex gap-8 items-center" }, Ga = { class: "flex-1 fm-typo-en-body-lg-600" }, Wa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-4" }, Qa = { class: "flex w-full gap-4" }, Ya = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2 flex items-center gap-2" }, Ja = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-2" }, Za = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Xa = ["innerHTML"], el = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, tl = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, sl = { class: "flex items-center gap-4" }, rl = { class: "line-clamp-1 fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ol = {
|
|
3636
3634
|
key: 0,
|
|
3637
3635
|
class: "inline-flex items-center gap-1 text-xs font-medium text-gray-500 bg-gray-100 px-2 py-0.5 rounded-full"
|
|
3638
|
-
},
|
|
3636
|
+
}, nl = { class: "py-8" }, al = { class: "flex justify-end gap-4 items-center" }, ll = { class: "fm-typo-en-body-lg-600" }, il = {
|
|
3639
3637
|
key: 0,
|
|
3640
3638
|
class: "flex justify-end"
|
|
3641
|
-
},
|
|
3639
|
+
}, ul = {
|
|
3642
3640
|
key: 1,
|
|
3643
3641
|
class: "flex-1 xs:w-screen xs:max-w-full"
|
|
3644
|
-
},
|
|
3642
|
+
}, cl = {
|
|
3645
3643
|
key: 0,
|
|
3646
3644
|
class: "flex flex-col items-center gap-8 h-full"
|
|
3647
|
-
},
|
|
3645
|
+
}, dl = ["src"], ml = { class: "fm-typo-en-body-lg-600" }, pl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary px-16" }, fl = {
|
|
3648
3646
|
key: 1,
|
|
3649
3647
|
class: "px-4 flex flex-col"
|
|
3650
|
-
},
|
|
3648
|
+
}, vl = { class: "flex gap-12 content-stretch" }, yl = {
|
|
3651
3649
|
class: "flex flex-col w-40",
|
|
3652
3650
|
name: "circles"
|
|
3653
|
-
},
|
|
3651
|
+
}, hl = { class: "flex-1 flex flex-col items-center" }, gl = { class: "h-40 w-40 bg-fm-color-primary rounded-full flex items-center justify-center" }, bl = { class: "flex-1 flex flex-col items-center" }, _l = { class: "flex w-full items-center gap-4" }, Sl = {
|
|
3654
3652
|
class: "py-12 flex flex-col gap-4",
|
|
3655
3653
|
name: "received-at header"
|
|
3656
|
-
},
|
|
3654
|
+
}, kl = { class: "fm-typo-en-body-lg-400" }, Ol = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, xl = { class: "ml-auto flex gap-1" }, wl = { class: "flex gap-12 content-stretch" }, $l = {
|
|
3657
3655
|
class: "flex flex-col w-40",
|
|
3658
3656
|
name: "circles"
|
|
3659
|
-
},
|
|
3657
|
+
}, Cl = { class: "flex-1 flex flex-col items-center" }, Al = {
|
|
3660
3658
|
class: "py-12 flex flex-col gap-4 flex-1",
|
|
3661
3659
|
name: "delivery details"
|
|
3662
|
-
},
|
|
3660
|
+
}, Dl = { class: "flex flex-col gap-8" }, Nl = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Rl = { class: "flex flex-col gap-4" }, Pl = {
|
|
3663
3661
|
key: 2,
|
|
3664
3662
|
class: "flex-1 xs:w-screen xs:max-w-full"
|
|
3665
|
-
},
|
|
3663
|
+
}, Fl = {
|
|
3666
3664
|
key: 0,
|
|
3667
3665
|
class: "flex flex-col items-center gap-8 h-full"
|
|
3668
|
-
},
|
|
3666
|
+
}, Il = ["src"], Tl = { class: "fm-typo-en-body-lg-600" }, El = {
|
|
3669
3667
|
key: 1,
|
|
3670
3668
|
class: "px-4 flex flex-col gap-12"
|
|
3671
|
-
},
|
|
3669
|
+
}, ql = { class: "flex flex-col gap-4" }, Vl = { class: "flex justify-between gap-8" }, Ll = { class: "fm-typo-en-body-lg-600" }, jl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary whitespace-nowrap" }, Ul = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ml = {
|
|
3672
3670
|
key: 0,
|
|
3673
3671
|
class: "fm-typo-en-body-md-400"
|
|
3674
|
-
},
|
|
3672
|
+
}, Bl = { class: "flex gap-8 xs:flex-col" }, _i = /* @__PURE__ */ Ve({
|
|
3675
3673
|
__name: "TransferDetails",
|
|
3676
3674
|
props: {
|
|
3677
3675
|
poRequest: {},
|
|
@@ -3687,7 +3685,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3687
3685
|
},
|
|
3688
3686
|
emits: ["update:show", "submitted"],
|
|
3689
3687
|
setup(c, { emit: t }) {
|
|
3690
|
-
const s = c, n = t, m = bt(), u = Ze(), d = Je(), r = ze(), a = gt(), { hasOrderDraftPermission: O } =
|
|
3688
|
+
const s = c, n = t, m = bt(), u = Ze(), d = Je(), r = ze(), a = gt(), { hasOrderDraftPermission: O } = _s(), f = gs();
|
|
3691
3689
|
function N(o) {
|
|
3692
3690
|
const l = o.isCustomCost, $ = o.totalCost;
|
|
3693
3691
|
return l != null ? l === !0 : $ != null;
|
|
@@ -3707,7 +3705,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3707
3705
|
name: ((l = a.sessionUser.value) == null ? void 0 : l.displayName) ?? ""
|
|
3708
3706
|
};
|
|
3709
3707
|
}
|
|
3710
|
-
), F =
|
|
3708
|
+
), F = bs(), { t: _ } = ht(), B = H(
|
|
3711
3709
|
() => {
|
|
3712
3710
|
var o, l, $, C;
|
|
3713
3711
|
return ((l = (o = s.purchaseOrder) == null ? void 0 : o.supplier) == null ? void 0 : l.internal) === "restaurant" || ((C = ($ = s.purchaseOrder) == null ? void 0 : $.supplier) == null ? void 0 : C.internal) === "warehouse" ? at.enum.transfer : at.enum.purchase;
|
|
@@ -3727,26 +3725,26 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3727
3725
|
}
|
|
3728
3726
|
}
|
|
3729
3727
|
return l;
|
|
3730
|
-
}), te = re(!1), se = re(""), Q = re(!0), de = Xe(), Oe =
|
|
3728
|
+
}), te = re(!1), se = re(""), Q = re(!0), de = Xe(), Oe = wr(de.getWorkflowConfig), ae = vs(), Se = [
|
|
3731
3729
|
z.enum.receiveStock,
|
|
3732
3730
|
z.enum.processRequest,
|
|
3733
3731
|
z.enum.closeRequest
|
|
3734
|
-
],
|
|
3735
|
-
var pe,
|
|
3732
|
+
], Ae = H(() => {
|
|
3733
|
+
var pe, v, p, S, U, M, _e, xe, W;
|
|
3736
3734
|
if (!s.purchaseOrder)
|
|
3737
3735
|
return [];
|
|
3738
3736
|
const o = Oe.result.value;
|
|
3739
3737
|
if (o.state === Dt.loading)
|
|
3740
3738
|
return [];
|
|
3741
3739
|
let l;
|
|
3742
|
-
const $ =
|
|
3740
|
+
const $ = as.safeParse(s.purchaseOrder);
|
|
3743
3741
|
if ($.success)
|
|
3744
3742
|
l = $.data;
|
|
3745
3743
|
else {
|
|
3746
3744
|
const Z = /* @__PURE__ */ new Set(["1", "2"]), ge = { line1: "", state: "", city: "", postcode: "", country: "" };
|
|
3747
3745
|
l = {
|
|
3748
3746
|
_id: ((pe = s.purchaseOrder) == null ? void 0 : pe._id) ?? "",
|
|
3749
|
-
status: ((
|
|
3747
|
+
status: ((v = s.purchaseOrder) == null ? void 0 : v.status) ?? be.enum.DRAFT,
|
|
3750
3748
|
version: Z.has((p = s.purchaseOrder) == null ? void 0 : p.version) ? (S = s.purchaseOrder) == null ? void 0 : S.version : null,
|
|
3751
3749
|
seqNumber: typeof ((U = s.purchaseOrder) == null ? void 0 : U.seqNumber) == "number" ? s.purchaseOrder.seqNumber : 0,
|
|
3752
3750
|
supplier: {
|
|
@@ -3775,7 +3773,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3775
3773
|
// null for an unvalidatable POR yields the same available actions.
|
|
3776
3774
|
purchaseOrderRequest: (() => {
|
|
3777
3775
|
if (s.poRequest == null) return s.poRequest;
|
|
3778
|
-
const Z =
|
|
3776
|
+
const Z = qs.safeParse(s.poRequest);
|
|
3779
3777
|
return Z.success ? { ...Z.data, purchaseOrder: null, netSuite: null } : null;
|
|
3780
3778
|
})(),
|
|
3781
3779
|
purchaseOrder: l
|
|
@@ -3796,7 +3794,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3796
3794
|
return s.scope === "approval" && (I = I.filter((Z) => Z !== z.enum.completeReceive)), O.value || (I = I.filter(
|
|
3797
3795
|
(Z) => Z !== z.enum.approveDraft && Z !== z.enum.rejectDraft
|
|
3798
3796
|
)), I;
|
|
3799
|
-
}), K =
|
|
3797
|
+
}), K = zs(s, "show"), ve = H(() => [
|
|
3800
3798
|
{
|
|
3801
3799
|
label: _("inventory.transfer.receiveRequest.details.overview"),
|
|
3802
3800
|
value: "overview"
|
|
@@ -3835,21 +3833,21 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3835
3833
|
secondaryActions: { text: "No", close: !1 }
|
|
3836
3834
|
};
|
|
3837
3835
|
let pe = l.rejectReason ?? "";
|
|
3838
|
-
$ === z.enum.rejectDraft && (I.contentComponent =
|
|
3836
|
+
$ === z.enum.rejectDraft && (I.contentComponent = fs, I.contentComponentProps = {
|
|
3839
3837
|
message: C.message,
|
|
3840
|
-
onChange: (
|
|
3841
|
-
pe =
|
|
3838
|
+
onChange: (v) => {
|
|
3839
|
+
pe = v ?? "";
|
|
3842
3840
|
}
|
|
3843
3841
|
}), m.open(I).onPrimary(async () => {
|
|
3844
3842
|
var p, S, U, M;
|
|
3845
|
-
const
|
|
3846
|
-
$ === z.enum.confirmDraft || $ === z.enum.submitRequest ?
|
|
3843
|
+
const v = [];
|
|
3844
|
+
$ === z.enum.confirmDraft || $ === z.enum.submitRequest ? v.push({
|
|
3847
3845
|
action: "confirmDraft",
|
|
3848
|
-
payload: f.controller.value.toConfirmDraftData(
|
|
3849
|
-
}) : $ === z.enum.approveRequest ? (
|
|
3846
|
+
payload: f.controller.value.toConfirmDraftData(Ce())
|
|
3847
|
+
}) : $ === z.enum.approveRequest ? (v.push({
|
|
3850
3848
|
action: "approveRequest",
|
|
3851
3849
|
payload: null
|
|
3852
|
-
}), l.fulfillment &&
|
|
3850
|
+
}), l.fulfillment && v.push({
|
|
3853
3851
|
action: "processRequest",
|
|
3854
3852
|
payload: {
|
|
3855
3853
|
fulfillmentId: "",
|
|
@@ -3858,7 +3856,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3858
3856
|
items: x(l.fulfillment.items),
|
|
3859
3857
|
createdBy: R.value
|
|
3860
3858
|
}
|
|
3861
|
-
})) : $ === z.enum.processRequest ? l.fulfillment &&
|
|
3859
|
+
})) : $ === z.enum.processRequest ? l.fulfillment && v.push({
|
|
3862
3860
|
action: "processRequest",
|
|
3863
3861
|
payload: {
|
|
3864
3862
|
fulfillmentId: "",
|
|
@@ -3867,13 +3865,13 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3867
3865
|
items: x(l.fulfillment.items),
|
|
3868
3866
|
createdBy: R.value
|
|
3869
3867
|
}
|
|
3870
|
-
}) : $ === z.enum.rejectRequest ?
|
|
3868
|
+
}) : $ === z.enum.rejectRequest ? v.push({
|
|
3871
3869
|
action: "rejectRequest",
|
|
3872
3870
|
payload: null
|
|
3873
|
-
}) : $ === z.enum.closeRequest ?
|
|
3871
|
+
}) : $ === z.enum.closeRequest ? v.push({
|
|
3874
3872
|
action: "closeRequest",
|
|
3875
3873
|
payload: null
|
|
3876
|
-
}) : $ === z.enum.rejectDraft &&
|
|
3874
|
+
}) : $ === z.enum.rejectDraft && v.push({
|
|
3877
3875
|
action: "rejectDraft",
|
|
3878
3876
|
payload: {
|
|
3879
3877
|
rejectReason: pe ?? ""
|
|
@@ -3890,7 +3888,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3890
3888
|
_id: ((p = s.purchaseOrder) == null ? void 0 : p._id) ?? "",
|
|
3891
3889
|
_rev: ((S = s.purchaseOrder) == null ? void 0 : S._rev) ?? "",
|
|
3892
3890
|
action: $ === z.enum.submitRequest ? z.enum.confirmDraft : $,
|
|
3893
|
-
payloads:
|
|
3891
|
+
payloads: v
|
|
3894
3892
|
// add payload if action is receiveStock or processRequest
|
|
3895
3893
|
},
|
|
3896
3894
|
transferTo: (M = (U = s.poRequest) == null ? void 0 : U.to) == null ? void 0 : M.dbName
|
|
@@ -3900,7 +3898,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3900
3898
|
}
|
|
3901
3899
|
}).onSecondary(() => {
|
|
3902
3900
|
Y("cancelled");
|
|
3903
|
-
for (let
|
|
3901
|
+
for (let v = 0; v < q + 2; v++)
|
|
3904
3902
|
m.close();
|
|
3905
3903
|
}).onClose(() => {
|
|
3906
3904
|
});
|
|
@@ -3910,7 +3908,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3910
3908
|
var q, Y, ye, I;
|
|
3911
3909
|
if (o === z.enum.receiveStock)
|
|
3912
3910
|
return;
|
|
3913
|
-
const l =
|
|
3911
|
+
const l = ps[o];
|
|
3914
3912
|
if (!l) {
|
|
3915
3913
|
u.open({
|
|
3916
3914
|
title: "Something went wrong",
|
|
@@ -3923,7 +3921,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3923
3921
|
if (s.purchaseOrder) {
|
|
3924
3922
|
se.value = `${o}`, te.value = !0, Q.value = !1;
|
|
3925
3923
|
const pe = {};
|
|
3926
|
-
let
|
|
3924
|
+
let v = 0;
|
|
3927
3925
|
if ((o === z.enum.confirmDraft || // auto receive for warehouse to warehouse
|
|
3928
3926
|
o === z.enum.completeReceive) && d.autoReceiveWarehouse)
|
|
3929
3927
|
pe.autoReceive = !0;
|
|
@@ -3934,12 +3932,12 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3934
3932
|
m.open({
|
|
3935
3933
|
closeButton: !1,
|
|
3936
3934
|
title: "Confirm transfer amount",
|
|
3937
|
-
dialogComponent:
|
|
3935
|
+
dialogComponent: xr,
|
|
3938
3936
|
dialogComponentProps: {
|
|
3939
3937
|
purchaseOrder: s.purchaseOrder,
|
|
3940
3938
|
confirm: M,
|
|
3941
3939
|
"onUpdate:show": (xe) => {
|
|
3942
|
-
xe || (se.value = "", te.value = !1, Q.value = !0,
|
|
3940
|
+
xe || (se.value = "", te.value = !1, Q.value = !0, v++, m.close()), _e("cancelled");
|
|
3943
3941
|
}
|
|
3944
3942
|
}
|
|
3945
3943
|
});
|
|
@@ -3953,7 +3951,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3953
3951
|
pe,
|
|
3954
3952
|
o,
|
|
3955
3953
|
l,
|
|
3956
|
-
|
|
3954
|
+
v
|
|
3957
3955
|
) === "submitted" && (u.open({
|
|
3958
3956
|
title: "Success",
|
|
3959
3957
|
message: $,
|
|
@@ -3998,8 +3996,8 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
3998
3996
|
];
|
|
3999
3997
|
$.reverse().sort((I, pe) => I.createdAt.localeCompare(pe.createdAt));
|
|
4000
3998
|
function C(I) {
|
|
4001
|
-
var p, S, U, M, _e, xe, W, Z, ge,
|
|
4002
|
-
const pe = l.findIndex((
|
|
3999
|
+
var p, S, U, M, _e, xe, W, Z, ge, Pe, Ie, he;
|
|
4000
|
+
const pe = l.findIndex((ce) => ce.id === I.fullfillmentId), v = [
|
|
4003
4001
|
(S = (p = l[pe]) == null ? void 0 : p.netSuite) != null && S.id ? {
|
|
4004
4002
|
label: "Fulfillment's ref no. (Netsuite)",
|
|
4005
4003
|
values: [
|
|
@@ -4010,9 +4008,9 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4010
4008
|
label: "Netsuite ref no.",
|
|
4011
4009
|
values: [`${((Z = I == null ? void 0 : I.netSuite) == null ? void 0 : Z.refNo) ?? "N/A"} (${((ge = I == null ? void 0 : I.netSuite) == null ? void 0 : ge.id) ?? "-"})`]
|
|
4012
4010
|
} : null,
|
|
4013
|
-
(
|
|
4011
|
+
(Pe = I == null ? void 0 : I.netSuite) != null && Pe.recordType ? {
|
|
4014
4012
|
label: "Netsuite Type",
|
|
4015
|
-
values: [
|
|
4013
|
+
values: [ls((Ie = I == null ? void 0 : I.netSuite) == null ? void 0 : Ie.recordType)]
|
|
4016
4014
|
} : null
|
|
4017
4015
|
];
|
|
4018
4016
|
return {
|
|
@@ -4028,11 +4026,11 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4028
4026
|
},
|
|
4029
4027
|
{
|
|
4030
4028
|
label: "Received by",
|
|
4031
|
-
values: [(
|
|
4029
|
+
values: [(he = I.createdBy) == null ? void 0 : he.name]
|
|
4032
4030
|
},
|
|
4033
4031
|
{
|
|
4034
4032
|
label: "Received items",
|
|
4035
|
-
values: I.received.map((
|
|
4033
|
+
values: I.received.map((ce) => {
|
|
4036
4034
|
var Re;
|
|
4037
4035
|
return oe("div", [
|
|
4038
4036
|
oe(
|
|
@@ -4052,14 +4050,14 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4052
4050
|
{
|
|
4053
4051
|
class: "fm-typo-en-body-lg-800 basis-1/2 shrink-0 grow"
|
|
4054
4052
|
},
|
|
4055
|
-
`${
|
|
4053
|
+
`${ce.sku.name}`
|
|
4056
4054
|
),
|
|
4057
4055
|
oe(
|
|
4058
4056
|
"span",
|
|
4059
4057
|
{
|
|
4060
4058
|
class: "fm-typo-en-body-md-400"
|
|
4061
4059
|
},
|
|
4062
|
-
`${
|
|
4060
|
+
`${ce.sku.code} `
|
|
4063
4061
|
)
|
|
4064
4062
|
]
|
|
4065
4063
|
),
|
|
@@ -4080,14 +4078,14 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4080
4078
|
{
|
|
4081
4079
|
class: "fm-typo-en-body-lg-600 self-end"
|
|
4082
4080
|
},
|
|
4083
|
-
$e(
|
|
4081
|
+
$e(ce.amount, !1)
|
|
4084
4082
|
),
|
|
4085
4083
|
oe(
|
|
4086
4084
|
"span",
|
|
4087
4085
|
{
|
|
4088
4086
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
4089
4087
|
},
|
|
4090
|
-
((Re =
|
|
4088
|
+
((Re = ce.measurement) == null ? void 0 : Re.abbrev) ?? ce.sku.unit.abbrev
|
|
4091
4089
|
)
|
|
4092
4090
|
]
|
|
4093
4091
|
),
|
|
@@ -4096,7 +4094,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4096
4094
|
{
|
|
4097
4095
|
class: "flex self-end fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
4098
4096
|
},
|
|
4099
|
-
`${
|
|
4097
|
+
`${ce.cost ? `(${ut(ce.cost)})` : ""}`
|
|
4100
4098
|
)
|
|
4101
4099
|
]
|
|
4102
4100
|
)
|
|
@@ -4117,12 +4115,12 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4117
4115
|
label: "Fulfilment's sequence",
|
|
4118
4116
|
values: [`${pe + 1}`]
|
|
4119
4117
|
} : null,
|
|
4120
|
-
...
|
|
4121
|
-
].filter((
|
|
4118
|
+
...v
|
|
4119
|
+
].filter((ce) => !!ce)
|
|
4122
4120
|
};
|
|
4123
4121
|
}
|
|
4124
4122
|
function q(I) {
|
|
4125
|
-
var
|
|
4123
|
+
var v, p, S;
|
|
4126
4124
|
const pe = l.findIndex((U) => U.id === I.id);
|
|
4127
4125
|
return {
|
|
4128
4126
|
header: "Fulfillment",
|
|
@@ -4207,7 +4205,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4207
4205
|
]);
|
|
4208
4206
|
})
|
|
4209
4207
|
},
|
|
4210
|
-
(
|
|
4208
|
+
(v = I.netSuite) != null && v.refNo ? {
|
|
4211
4209
|
label: "Netsuite Ref no. (ID)",
|
|
4212
4210
|
values: [`${(p = I.netSuite) == null ? void 0 : p.refNo} (${((S = I.netSuite) == null ? void 0 : S.id) ?? "-"})`]
|
|
4213
4211
|
} : null
|
|
@@ -4235,19 +4233,19 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4235
4233
|
for (const [q, Y] of Object.entries(l)) {
|
|
4236
4234
|
const ye = Y.map((p) => s.receivedMap[p]).filter(Boolean);
|
|
4237
4235
|
if (ye.length === 0) continue;
|
|
4238
|
-
const I = { amount: 0, precision: $[q] ?? 0 }, pe = ye.reduce((p, S) =>
|
|
4236
|
+
const I = { amount: 0, precision: $[q] ?? 0 }, pe = ye.reduce((p, S) => Fe.add([p, S.total]), I), v = ye.reduce((p, S) => Fe.add([p, S.received]), I);
|
|
4239
4237
|
C[q] = {
|
|
4240
4238
|
key: q,
|
|
4241
4239
|
total: pe,
|
|
4242
|
-
received:
|
|
4243
|
-
remaining:
|
|
4240
|
+
received: v,
|
|
4241
|
+
remaining: Fe.subtract([pe, v])
|
|
4244
4242
|
};
|
|
4245
4243
|
}
|
|
4246
4244
|
return C;
|
|
4247
4245
|
});
|
|
4248
4246
|
function ee(o) {
|
|
4249
4247
|
const l = ie.value[o.sku._id], $ = b(o);
|
|
4250
|
-
return l ? `<span class="${$} fm-typo-en-body-lg-600">${
|
|
4248
|
+
return l ? `<span class="${$} fm-typo-en-body-lg-600">${Fe.toFormatString({ value: l.received })}</span>/${ft(o.quantity, o.sku.unit, o.measurement)}` : `<span class="fm-typo-en-body-lg-600">-</span>/${ft(o.quantity, o.sku.unit, o.measurement)}`;
|
|
4251
4249
|
}
|
|
4252
4250
|
function L(o) {
|
|
4253
4251
|
const l = s.purchaseOrder;
|
|
@@ -4257,7 +4255,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4257
4255
|
const l = ie.value[o.sku._id];
|
|
4258
4256
|
if (!l)
|
|
4259
4257
|
return "text-fm-color-typo-tertiary";
|
|
4260
|
-
const { isPartialReceive: $, isNoReceive: C, isOverReceive: q, isFullReceive: Y } =
|
|
4258
|
+
const { isPartialReceive: $, isNoReceive: C, isOverReceive: q, isFullReceive: Y } = mr(l);
|
|
4261
4259
|
return C ? "text-fm-color-typo-tertiary" : $ ? "text-fm-color-system-warning-300" : q ? "text-fm-color-system-error-300" : Y ? "text-fm-color-system-success-300" : "";
|
|
4262
4260
|
}
|
|
4263
4261
|
const j = H(() => {
|
|
@@ -4268,14 +4266,14 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4268
4266
|
(pe) => pe.id === q.id
|
|
4269
4267
|
);
|
|
4270
4268
|
return Y && Y.quantity !== q.quantity && C.set(q.sku.code, {
|
|
4271
|
-
originalAmount: Number(
|
|
4272
|
-
newAmount: Number(
|
|
4269
|
+
originalAmount: Number(Fe.toFormatString({ value: Y.quantity })),
|
|
4270
|
+
newAmount: Number(Fe.toFormatString({ value: q.quantity }))
|
|
4273
4271
|
}), C;
|
|
4274
4272
|
}, /* @__PURE__ */ new Map()) : ($ = s.purchaseOrder) == null ? void 0 : $.items.reduce((C, q) => {
|
|
4275
|
-
var pe,
|
|
4276
|
-
const Y = (
|
|
4273
|
+
var pe, v;
|
|
4274
|
+
const Y = (v = (pe = s.purchaseOrder) == null ? void 0 : pe.itemsAtSubmission) == null ? void 0 : v.find(
|
|
4277
4275
|
(p) => p.sku._id === q.sku._id
|
|
4278
|
-
), ye = Y ? Number(
|
|
4276
|
+
), ye = Y ? Number(Fe.toFormatString({ value: Y.quantity })) : 0, I = Number(Fe.toFormatString({ value: q.quantity }));
|
|
4279
4277
|
return Y && ye !== I && C.set(q.sku.code, {
|
|
4280
4278
|
originalAmount: ye,
|
|
4281
4279
|
newAmount: I
|
|
@@ -4303,20 +4301,20 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4303
4301
|
return o ? [...o.actionChangelogs ?? []].reverse() : [];
|
|
4304
4302
|
});
|
|
4305
4303
|
return (o, l) => {
|
|
4306
|
-
const $ = ne("FmButton"), C = ne("FmButtonGroup"), q = ne("FmChip"), Y = ne("FmIcon"), ye = ne("FmMenuDivider"), I = ne("FmCard"), pe = ne("FmTooltip"),
|
|
4307
|
-
return i(),
|
|
4308
|
-
modelValue:
|
|
4309
|
-
"onUpdate:modelValue": l[9] || (l[9] = (S) =>
|
|
4304
|
+
const $ = ne("FmButton"), C = ne("FmButtonGroup"), q = ne("FmChip"), Y = ne("FmIcon"), ye = ne("FmMenuDivider"), I = ne("FmCard"), pe = ne("FmTooltip"), v = ne("FmSpacer"), p = ne("FmSideSheet");
|
|
4305
|
+
return i(), fe(p, {
|
|
4306
|
+
modelValue: y(K),
|
|
4307
|
+
"onUpdate:modelValue": l[9] || (l[9] = (S) => Rs(K) ? K.value = S : null),
|
|
4310
4308
|
"dismiss-away": Q.value,
|
|
4311
4309
|
"max-width": 600,
|
|
4312
4310
|
"close-button": !1
|
|
4313
4311
|
}, {
|
|
4314
|
-
"side-sheet-header":
|
|
4312
|
+
"side-sheet-header": ue(() => {
|
|
4315
4313
|
var S, U;
|
|
4316
4314
|
return [
|
|
4317
|
-
e("div",
|
|
4318
|
-
e("div",
|
|
4319
|
-
e("div",
|
|
4315
|
+
e("div", ta, [
|
|
4316
|
+
e("div", sa, [
|
|
4317
|
+
e("div", ra, k(y(_)("inventory.transfer.receiveRequest.details.title") + ((S = o.purchaseOrder) != null && S.seqNumber ? ` #${(U = o.purchaseOrder) == null ? void 0 : U.seqNumber}` : "")), 1),
|
|
4320
4318
|
T($, {
|
|
4321
4319
|
class: "ml-auto -m-2",
|
|
4322
4320
|
variant: "tertiary",
|
|
@@ -4329,7 +4327,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4329
4327
|
modelValue: P.value,
|
|
4330
4328
|
"onUpdate:modelValue": l[1] || (l[1] = (M) => P.value = M)
|
|
4331
4329
|
}, null, 8, ["items", "modelValue"]),
|
|
4332
|
-
o.purchaseOrder && P.value.value === "deliveryHistory" ? (i(),
|
|
4330
|
+
o.purchaseOrder && P.value.value === "deliveryHistory" ? (i(), fe(Pn, {
|
|
4333
4331
|
key: 0,
|
|
4334
4332
|
"purchase-order": o.purchaseOrder,
|
|
4335
4333
|
"received-info-map": X.value,
|
|
@@ -4341,97 +4339,97 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4341
4339
|
])
|
|
4342
4340
|
];
|
|
4343
4341
|
}),
|
|
4344
|
-
default:
|
|
4342
|
+
default: ue(() => {
|
|
4345
4343
|
var S, U, M, _e, xe;
|
|
4346
4344
|
return [
|
|
4347
|
-
e("div",
|
|
4348
|
-
P.value.value === "overview" ? (i(),
|
|
4345
|
+
e("div", oa, [
|
|
4346
|
+
P.value.value === "overview" ? (i(), h(Ne, { key: 0 }, [
|
|
4349
4347
|
e("div", null, [
|
|
4350
4348
|
T(I, {
|
|
4351
4349
|
variant: "outlined",
|
|
4352
4350
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
4353
4351
|
}, {
|
|
4354
|
-
default:
|
|
4355
|
-
var W, Z, ge,
|
|
4352
|
+
default: ue(() => {
|
|
4353
|
+
var W, Z, ge, Pe, Ie, he, ce, Re, Ee, Le;
|
|
4356
4354
|
return [
|
|
4357
|
-
e("div",
|
|
4358
|
-
e("div",
|
|
4359
|
-
e("div",
|
|
4355
|
+
e("div", na, [
|
|
4356
|
+
e("div", aa, k(y(_)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
|
|
4357
|
+
e("div", la, [
|
|
4360
4358
|
T(q, {
|
|
4361
4359
|
label: le.value.status,
|
|
4362
4360
|
class: We(le.value.statusClass),
|
|
4363
4361
|
compact: ""
|
|
4364
4362
|
}, null, 8, ["label", "class"]),
|
|
4365
|
-
E.value ? (i(),
|
|
4363
|
+
E.value ? (i(), h("div", ia, [
|
|
4366
4364
|
T(Y, {
|
|
4367
4365
|
name: "local_shipping",
|
|
4368
4366
|
color: "#666666"
|
|
4369
4367
|
}),
|
|
4370
|
-
e("span",
|
|
4368
|
+
e("span", ua, k(E.value), 1)
|
|
4371
4369
|
])) : V("", !0)
|
|
4372
4370
|
])
|
|
4373
4371
|
]),
|
|
4374
4372
|
T(ye),
|
|
4375
|
-
e("div",
|
|
4376
|
-
T(
|
|
4377
|
-
default:
|
|
4373
|
+
e("div", ca, [
|
|
4374
|
+
T(ss, { title: "Debug Info" }, {
|
|
4375
|
+
default: ue(() => {
|
|
4378
4376
|
var it, Et, qt, Vt, Lt, jt, Ut, Mt, Bt, zt, Kt, Ht;
|
|
4379
4377
|
return [
|
|
4380
|
-
(it = o.purchaseOrder) != null && it._id ? (i(),
|
|
4378
|
+
(it = o.purchaseOrder) != null && it._id ? (i(), h("div", da, [
|
|
4381
4379
|
l[10] || (l[10] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Purchase Order ID ", -1)),
|
|
4382
|
-
e("span",
|
|
4380
|
+
e("span", ma, k((Et = o.purchaseOrder) == null ? void 0 : Et._id), 1)
|
|
4383
4381
|
])) : V("", !0),
|
|
4384
|
-
(qt = o.purchaseOrder) != null && qt.status ? (i(),
|
|
4382
|
+
(qt = o.purchaseOrder) != null && qt.status ? (i(), h("div", pa, [
|
|
4385
4383
|
l[11] || (l[11] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Purchase Order Status ", -1)),
|
|
4386
|
-
e("span",
|
|
4384
|
+
e("span", fa, k((Vt = o.purchaseOrder) == null ? void 0 : Vt.status), 1)
|
|
4387
4385
|
])) : V("", !0),
|
|
4388
|
-
(jt = (Lt = o.purchaseOrder) == null ? void 0 : Lt.supplier) != null && jt._id ? (i(),
|
|
4386
|
+
(jt = (Lt = o.purchaseOrder) == null ? void 0 : Lt.supplier) != null && jt._id ? (i(), h("div", va, [
|
|
4389
4387
|
l[12] || (l[12] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Source Location ID ", -1)),
|
|
4390
|
-
e("span",
|
|
4388
|
+
e("span", ya, k(((Mt = (Ut = o.purchaseOrder) == null ? void 0 : Ut.supplier) == null ? void 0 : Mt.internal) != null ? `${(zt = (Bt = o.purchaseOrder) == null ? void 0 : Bt.supplier) == null ? void 0 : zt.internal}_` : "") + k((Ht = (Kt = o.purchaseOrder) == null ? void 0 : Kt.supplier) == null ? void 0 : Ht._id), 1)
|
|
4391
4389
|
])) : V("", !0),
|
|
4392
|
-
o.transferToDbName ? (i(),
|
|
4390
|
+
o.transferToDbName ? (i(), h("div", ha, [
|
|
4393
4391
|
l[13] || (l[13] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Destination Location ID ", -1)),
|
|
4394
|
-
e("span",
|
|
4392
|
+
e("span", ga, k(o.transferToDbName), 1)
|
|
4395
4393
|
])) : V("", !0)
|
|
4396
4394
|
];
|
|
4397
4395
|
}),
|
|
4398
4396
|
_: 1
|
|
4399
4397
|
}),
|
|
4400
|
-
e("div",
|
|
4401
|
-
e("div",
|
|
4402
|
-
e("div",
|
|
4398
|
+
e("div", ba, [
|
|
4399
|
+
e("div", _a, [
|
|
4400
|
+
e("div", Sa, k(y(_)("inventory.transfer.receiveRequest.details.createdAt")), 1)
|
|
4403
4401
|
]),
|
|
4404
|
-
e("div",
|
|
4402
|
+
e("div", ka, k(y(lt)(((W = o.purchaseOrder) == null ? void 0 : W._id) ?? "")), 1)
|
|
4405
4403
|
]),
|
|
4406
|
-
(Z = o.purchaseOrder) != null && Z.effectiveAt ? (i(),
|
|
4407
|
-
e("div",
|
|
4408
|
-
e("div",
|
|
4404
|
+
(Z = o.purchaseOrder) != null && Z.effectiveAt ? (i(), h("div", Oa, [
|
|
4405
|
+
e("div", xa, k(y(_)("inventory.transfer.receiveRequest.details.date")), 1),
|
|
4406
|
+
e("div", wa, k(y(Pt)(new Date((ge = o.purchaseOrder) == null ? void 0 : ge.effectiveAt))), 1)
|
|
4409
4407
|
])) : V("", !0),
|
|
4410
|
-
e("div",
|
|
4411
|
-
e("div",
|
|
4412
|
-
e("div",
|
|
4408
|
+
e("div", $a, [
|
|
4409
|
+
e("div", Ca, k(y(_)("inventory.transfer.receiveRequest.details.type.title")), 1),
|
|
4410
|
+
e("div", Aa, k(y(_)(
|
|
4413
4411
|
`inventory.transfer.receiveRequest.details.type.${B.value.toLocaleLowerCase("en-US")}`
|
|
4414
4412
|
)), 1)
|
|
4415
4413
|
]),
|
|
4416
|
-
(Ie = (
|
|
4417
|
-
e("div",
|
|
4418
|
-
e("div",
|
|
4414
|
+
(Ie = (Pe = o.purchaseOrder) == null ? void 0 : Pe.supplier) != null && Ie.name ? (i(), h("div", Da, [
|
|
4415
|
+
e("div", Na, k(y(_)("inventory.transfer.receiveRequest.details.from")), 1),
|
|
4416
|
+
e("div", Ra, k((ce = (he = o.purchaseOrder) == null ? void 0 : he.supplier) == null ? void 0 : ce.name), 1)
|
|
4419
4417
|
])) : V("", !0),
|
|
4420
|
-
o.transferTo ? (i(),
|
|
4421
|
-
e("div",
|
|
4422
|
-
e("div",
|
|
4418
|
+
o.transferTo ? (i(), h("div", Pa, [
|
|
4419
|
+
e("div", Fa, k(y(_)("inventory.transfer.receiveRequest.details.to")), 1),
|
|
4420
|
+
e("div", Ia, k(o.transferTo), 1)
|
|
4423
4421
|
])) : V("", !0),
|
|
4424
|
-
(Re = o.purchaseOrder) != null && Re.ref ? (i(),
|
|
4425
|
-
e("div",
|
|
4426
|
-
e("div",
|
|
4422
|
+
(Re = o.purchaseOrder) != null && Re.ref ? (i(), h("div", Ta, [
|
|
4423
|
+
e("div", Ea, k(y(_)("inventory.transfer.receiveRequest.details.reference")), 1),
|
|
4424
|
+
e("div", qa, k(o.purchaseOrder.ref), 1)
|
|
4427
4425
|
])) : V("", !0),
|
|
4428
|
-
(Ee = o.purchaseOrder) != null && Ee.remark ? (i(),
|
|
4429
|
-
e("div",
|
|
4430
|
-
e("div",
|
|
4426
|
+
(Ee = o.purchaseOrder) != null && Ee.remark ? (i(), h("div", Va, [
|
|
4427
|
+
e("div", La, k(y(_)("inventory.transfer.receiveRequest.details.remark")), 1),
|
|
4428
|
+
e("div", ja, k(o.purchaseOrder.remark), 1)
|
|
4431
4429
|
])) : V("", !0),
|
|
4432
|
-
((Le = o.purchaseOrder) == null ? void 0 : Le.status) ===
|
|
4433
|
-
e("div",
|
|
4434
|
-
e("div",
|
|
4430
|
+
((Le = o.purchaseOrder) == null ? void 0 : Le.status) === y(be).enum.DRAFT && ke.value ? (i(), h("div", Ua, [
|
|
4431
|
+
e("div", Ma, k(y(_)("inventory.transfer.receiveRequest.details.rejectionReason")), 1),
|
|
4432
|
+
e("div", Ba, k(ke.value !== "" ? ke.value : "-"), 1)
|
|
4435
4433
|
])) : V("", !0)
|
|
4436
4434
|
])
|
|
4437
4435
|
];
|
|
@@ -4439,31 +4437,31 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4439
4437
|
_: 1
|
|
4440
4438
|
})
|
|
4441
4439
|
]),
|
|
4442
|
-
T(
|
|
4440
|
+
T(ko, {
|
|
4443
4441
|
"po-request": o.poRequest,
|
|
4444
4442
|
purchaseOrder: o.purchaseOrder,
|
|
4445
4443
|
transferType: B.value,
|
|
4446
4444
|
transferToDbName: o.transferToDbName,
|
|
4447
4445
|
scope: o.scope
|
|
4448
4446
|
}, null, 8, ["po-request", "purchaseOrder", "transferType", "transferToDbName", "scope"]),
|
|
4449
|
-
e("div",
|
|
4450
|
-
e("div",
|
|
4451
|
-
e("div",
|
|
4452
|
-
e("span",
|
|
4453
|
-
Ge(k(G.value ?
|
|
4454
|
-
(U = (S = o.purchaseOrder) == null ? void 0 : S.netSuite) != null && U.missingItems && ((_e = (M = o.purchaseOrder) == null ? void 0 : M.netSuite) == null ? void 0 : _e.missingItems.length) > 0 ? (i(),
|
|
4447
|
+
e("div", za, [
|
|
4448
|
+
e("div", Ka, [
|
|
4449
|
+
e("div", Ha, [
|
|
4450
|
+
e("span", Ga, [
|
|
4451
|
+
Ge(k(G.value ? y(_)("inventory.transfer.receiveRequest.details.receivedItems") : y(_)("inventory.transfer.receiveRequest.details.requestedItems")) + " ", 1),
|
|
4452
|
+
(U = (S = o.purchaseOrder) == null ? void 0 : S.netSuite) != null && U.missingItems && ((_e = (M = o.purchaseOrder) == null ? void 0 : M.netSuite) == null ? void 0 : _e.missingItems.length) > 0 ? (i(), fe(pe, {
|
|
4455
4453
|
key: 0,
|
|
4456
4454
|
variant: "rich",
|
|
4457
4455
|
placement: "top",
|
|
4458
4456
|
"z-index": 51
|
|
4459
4457
|
}, {
|
|
4460
|
-
content:
|
|
4458
|
+
content: ue(() => {
|
|
4461
4459
|
var W, Z;
|
|
4462
4460
|
return [
|
|
4463
|
-
e("div",
|
|
4464
|
-
(i(!0),
|
|
4461
|
+
e("div", Wa, [
|
|
4462
|
+
(i(!0), h(Ne, null, Te((Z = (W = o.purchaseOrder) == null ? void 0 : W.netSuite) == null ? void 0 : Z.missingItems, (ge, Pe) => (i(), h("div", {
|
|
4465
4463
|
class: "flex justify-center align-middle",
|
|
4466
|
-
key:
|
|
4464
|
+
key: Pe
|
|
4467
4465
|
}, [
|
|
4468
4466
|
T(Y, {
|
|
4469
4467
|
name: "arrow_right",
|
|
@@ -4474,7 +4472,7 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4474
4472
|
])
|
|
4475
4473
|
];
|
|
4476
4474
|
}),
|
|
4477
|
-
default:
|
|
4475
|
+
default: ue(() => [
|
|
4478
4476
|
T(Y, {
|
|
4479
4477
|
name: "error",
|
|
4480
4478
|
color: "#ff2c2c",
|
|
@@ -4486,25 +4484,25 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4486
4484
|
])
|
|
4487
4485
|
]),
|
|
4488
4486
|
T(ye),
|
|
4489
|
-
(i(!0),
|
|
4490
|
-
var ge
|
|
4491
|
-
return i(),
|
|
4487
|
+
(i(!0), h(Ne, null, Te(D.value, (W, Z) => {
|
|
4488
|
+
var ge;
|
|
4489
|
+
return i(), h("div", {
|
|
4492
4490
|
key: Z,
|
|
4493
4491
|
class: "flex flex-col"
|
|
4494
4492
|
}, [
|
|
4495
|
-
e("div",
|
|
4496
|
-
e("div",
|
|
4493
|
+
e("div", Qa, [
|
|
4494
|
+
e("div", Ya, [
|
|
4497
4495
|
Ge(k(W.name) + " ", 1),
|
|
4498
|
-
L(W) ? (i(),
|
|
4496
|
+
L(W) ? (i(), fe(pe, {
|
|
4499
4497
|
key: 0,
|
|
4500
4498
|
variant: "rich",
|
|
4501
4499
|
placement: "top",
|
|
4502
4500
|
"z-index": 51
|
|
4503
4501
|
}, {
|
|
4504
|
-
content:
|
|
4502
|
+
content: ue(() => l[14] || (l[14] = [
|
|
4505
4503
|
e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Extra item (added during delivery) ", -1)
|
|
4506
4504
|
])),
|
|
4507
|
-
default:
|
|
4505
|
+
default: ue(() => [
|
|
4508
4506
|
T(Y, {
|
|
4509
4507
|
name: "add_circle",
|
|
4510
4508
|
color: "#6b7280",
|
|
@@ -4513,23 +4511,23 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4513
4511
|
]),
|
|
4514
4512
|
_: 1
|
|
4515
4513
|
})) : V("", !0),
|
|
4516
|
-
J(W) ? (i(),
|
|
4514
|
+
J(W) ? (i(), fe(pe, {
|
|
4517
4515
|
key: 1,
|
|
4518
4516
|
variant: "rich",
|
|
4519
4517
|
placement: "top",
|
|
4520
4518
|
"z-index": 51
|
|
4521
4519
|
}, {
|
|
4522
|
-
content:
|
|
4523
|
-
var
|
|
4520
|
+
content: ue(() => {
|
|
4521
|
+
var Pe, Ie;
|
|
4524
4522
|
return [
|
|
4525
|
-
e("div",
|
|
4523
|
+
e("div", Ja, [
|
|
4526
4524
|
l[15] || (l[15] = e("div", { class: "font-semibold" }, "Submission changes", -1)),
|
|
4527
|
-
e("div", null, "Original Amount: " + k((
|
|
4528
|
-
e("div", null, " New Amount: " + k((
|
|
4525
|
+
e("div", null, "Original Amount: " + k((Pe = me(W)) == null ? void 0 : Pe.originalAmount), 1),
|
|
4526
|
+
e("div", null, " New Amount: " + k((Ie = me(W)) == null ? void 0 : Ie.newAmount), 1)
|
|
4529
4527
|
])
|
|
4530
4528
|
];
|
|
4531
4529
|
}),
|
|
4532
|
-
default:
|
|
4530
|
+
default: ue(() => [
|
|
4533
4531
|
T(Y, {
|
|
4534
4532
|
name: "error",
|
|
4535
4533
|
color: "#ff9500",
|
|
@@ -4539,44 +4537,62 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4539
4537
|
_: 2
|
|
4540
4538
|
}, 1024)) : V("", !0)
|
|
4541
4539
|
]),
|
|
4542
|
-
e("div",
|
|
4540
|
+
e("div", Za, [
|
|
4543
4541
|
e("span", {
|
|
4544
4542
|
innerHTML: ee(W)
|
|
4545
|
-
}, null, 8,
|
|
4543
|
+
}, null, 8, Xa)
|
|
4546
4544
|
])
|
|
4547
4545
|
]),
|
|
4548
|
-
e("div",
|
|
4549
|
-
e("div",
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4546
|
+
e("div", el, [
|
|
4547
|
+
e("div", tl, k(W.code), 1),
|
|
4548
|
+
(ge = W.totalCost) != null && ge.amount || typeof W.sku == "object" && W.sku != null ? (i(), fe(Zt, {
|
|
4549
|
+
key: 0,
|
|
4550
|
+
"feature-key": "total-cost",
|
|
4551
|
+
compact: ""
|
|
4552
|
+
}, {
|
|
4553
|
+
default: ue(() => {
|
|
4554
|
+
var Pe;
|
|
4555
|
+
return [
|
|
4556
|
+
e("div", sl, [
|
|
4557
|
+
e("span", rl, k(y(ut)(
|
|
4558
|
+
(Pe = W.totalCost) != null && Pe.amount ? W.totalCost : y(f).controller.value.getItemCost(W, y(Ce)()).cost
|
|
4559
|
+
)), 1),
|
|
4560
|
+
N(W) ? V("", !0) : (i(), h("span", ol, [
|
|
4561
|
+
l[16] || (l[16] = e("span", { class: "w-1.5 h-1.5 rounded-full bg-gray-400" }, null, -1)),
|
|
4562
|
+
Ge(" " + k(y(_)("inventory.transfer.form.items.autoCalculated")), 1)
|
|
4563
|
+
]))
|
|
4564
|
+
])
|
|
4565
|
+
];
|
|
4566
|
+
}),
|
|
4567
|
+
_: 2
|
|
4568
|
+
}, 1024)) : V("", !0)
|
|
4559
4569
|
])
|
|
4560
4570
|
]);
|
|
4561
4571
|
}), 128)),
|
|
4562
|
-
+
|
|
4563
|
-
|
|
4564
|
-
|
|
4572
|
+
!y(d).enableTotalCost || +y($e)(y(f).controller.value.getTotalCosts()) ? (i(), fe(Zt, {
|
|
4573
|
+
key: 0,
|
|
4574
|
+
"feature-key": "total-cost"
|
|
4575
|
+
}, {
|
|
4576
|
+
default: ue(() => [
|
|
4577
|
+
e("div", nl, [
|
|
4578
|
+
T(ye)
|
|
4579
|
+
]),
|
|
4580
|
+
e("div", al, [
|
|
4581
|
+
l[17] || (l[17] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Total:", -1)),
|
|
4582
|
+
e("div", ll, k(y(Ce)()) + " " + k(y(ut)({
|
|
4583
|
+
...y(f).controller.value.getTotalCosts(),
|
|
4584
|
+
currency: y(Ce)()
|
|
4585
|
+
}).replace(/[^0-9.,]/g, "")), 1)
|
|
4586
|
+
])
|
|
4565
4587
|
]),
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
currency: h(Ae)()
|
|
4571
|
-
}).replace(/[^0-9.,]/g, "")), 1)
|
|
4572
|
-
])
|
|
4573
|
-
], 64)) : V("", !0),
|
|
4574
|
-
h(d).enablePurchaseOrderPriceAdjustment ? (i(), v(Ce, { key: 1 }, [
|
|
4575
|
-
T(Tn, {
|
|
4588
|
+
_: 1
|
|
4589
|
+
})) : V("", !0),
|
|
4590
|
+
y(d).enablePurchaseOrderPriceAdjustment ? (i(), h(Ne, { key: 1 }, [
|
|
4591
|
+
T(En, {
|
|
4576
4592
|
adjustments: (xe = o.purchaseOrder) == null ? void 0 : xe.priceAdjustments
|
|
4577
4593
|
}, null, 8, ["adjustments"]),
|
|
4578
|
-
o.purchaseOrder ? (i(),
|
|
4579
|
-
T(
|
|
4594
|
+
o.purchaseOrder ? (i(), h("div", il, [
|
|
4595
|
+
T(Vn, {
|
|
4580
4596
|
"purchase-order": o.purchaseOrder,
|
|
4581
4597
|
onSubmitted: l[3] || (l[3] = () => {
|
|
4582
4598
|
n("update:show", !1), n("submitted");
|
|
@@ -4586,14 +4602,14 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4586
4602
|
], 64)) : V("", !0)
|
|
4587
4603
|
])
|
|
4588
4604
|
])
|
|
4589
|
-
], 64)) : P.value.value === "deliveryHistory" ? (i(),
|
|
4590
|
-
g.value.length ? (i(),
|
|
4591
|
-
(i(!0),
|
|
4592
|
-
var ge,
|
|
4593
|
-
return i(),
|
|
4594
|
-
e("div",
|
|
4595
|
-
e("div",
|
|
4596
|
-
e("div",
|
|
4605
|
+
], 64)) : P.value.value === "deliveryHistory" ? (i(), h("div", ul, [
|
|
4606
|
+
g.value.length ? (i(), h("div", fl, [
|
|
4607
|
+
(i(!0), h(Ne, null, Te(g.value, (W, Z) => {
|
|
4608
|
+
var ge, Pe, Ie, he, ce;
|
|
4609
|
+
return i(), h(Ne, { key: Z }, [
|
|
4610
|
+
e("div", vl, [
|
|
4611
|
+
e("div", yl, [
|
|
4612
|
+
e("div", hl, [
|
|
4597
4613
|
e("div", {
|
|
4598
4614
|
class: We([
|
|
4599
4615
|
{
|
|
@@ -4604,15 +4620,15 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4604
4620
|
])
|
|
4605
4621
|
}, null, 2)
|
|
4606
4622
|
]),
|
|
4607
|
-
e("div",
|
|
4608
|
-
W.header === "Received" ? (i(),
|
|
4623
|
+
e("div", gl, [
|
|
4624
|
+
W.header === "Received" ? (i(), fe(Y, {
|
|
4609
4625
|
key: 0,
|
|
4610
4626
|
name: "local_shipping",
|
|
4611
4627
|
outline: "",
|
|
4612
4628
|
color: "#ffffff"
|
|
4613
4629
|
})) : V("", !0)
|
|
4614
4630
|
]),
|
|
4615
|
-
e("div",
|
|
4631
|
+
e("div", bl, [
|
|
4616
4632
|
e("div", {
|
|
4617
4633
|
class: We([
|
|
4618
4634
|
{
|
|
@@ -4624,13 +4640,13 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4624
4640
|
}, null, 2)
|
|
4625
4641
|
])
|
|
4626
4642
|
]),
|
|
4627
|
-
e("div",
|
|
4628
|
-
e("div",
|
|
4629
|
-
e("div",
|
|
4630
|
-
e("div",
|
|
4643
|
+
e("div", _l, [
|
|
4644
|
+
e("div", Sl, [
|
|
4645
|
+
e("div", kl, k(W.header), 1),
|
|
4646
|
+
e("div", Ol, k(W.date), 1)
|
|
4631
4647
|
]),
|
|
4632
|
-
e("div",
|
|
4633
|
-
W.header === "Received" && W.deliveryOrder && o.purchaseOrder ? (i(),
|
|
4648
|
+
e("div", xl, [
|
|
4649
|
+
W.header === "Received" && W.deliveryOrder && o.purchaseOrder ? (i(), fe(Yo, {
|
|
4634
4650
|
key: 0,
|
|
4635
4651
|
deliveryOrder: W.deliveryOrder,
|
|
4636
4652
|
purchaseOrder: o.purchaseOrder,
|
|
@@ -4639,32 +4655,32 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4639
4655
|
n("update:show", !1), n("submitted");
|
|
4640
4656
|
})
|
|
4641
4657
|
}, null, 8, ["deliveryOrder", "purchaseOrder", "received-info-map"])) : V("", !0),
|
|
4642
|
-
(
|
|
4658
|
+
(Pe = (ge = W.deliveryOrder) == null ? void 0 : ge.netSuite) != null && Pe.id ? (i(), fe(ss, {
|
|
4643
4659
|
key: 1,
|
|
4644
4660
|
title: "Admin",
|
|
4645
4661
|
class: "min-w-[140px]"
|
|
4646
4662
|
}, {
|
|
4647
|
-
default:
|
|
4663
|
+
default: ue(() => {
|
|
4648
4664
|
var Re, Ee;
|
|
4649
4665
|
return [
|
|
4650
|
-
T(
|
|
4666
|
+
T(ea, {
|
|
4651
4667
|
"netsuite-id": (Ee = (Re = W.deliveryOrder) == null ? void 0 : Re.netSuite) == null ? void 0 : Ee.id
|
|
4652
4668
|
}, null, 8, ["netsuite-id"])
|
|
4653
4669
|
];
|
|
4654
4670
|
}),
|
|
4655
4671
|
_: 2
|
|
4656
4672
|
}, 1024)) : V("", !0),
|
|
4657
|
-
o.purchaseOrder && ((Ie = W.deliveryOrder) != null && Ie.id) ? (i(),
|
|
4673
|
+
o.purchaseOrder && ((Ie = W.deliveryOrder) != null && Ie.id) ? (i(), fe(Gs, {
|
|
4658
4674
|
key: 2,
|
|
4659
|
-
"purchase-order-id": (
|
|
4660
|
-
"delivery-order-id": (
|
|
4675
|
+
"purchase-order-id": (he = o.purchaseOrder) == null ? void 0 : he._id,
|
|
4676
|
+
"delivery-order-id": (ce = W.deliveryOrder) == null ? void 0 : ce.id
|
|
4661
4677
|
}, null, 8, ["purchase-order-id", "delivery-order-id"])) : V("", !0)
|
|
4662
4678
|
])
|
|
4663
4679
|
])
|
|
4664
4680
|
]),
|
|
4665
|
-
e("div",
|
|
4666
|
-
e("div",
|
|
4667
|
-
e("div",
|
|
4681
|
+
e("div", wl, [
|
|
4682
|
+
e("div", $l, [
|
|
4683
|
+
e("div", Cl, [
|
|
4668
4684
|
e("div", {
|
|
4669
4685
|
class: We([
|
|
4670
4686
|
{
|
|
@@ -4676,26 +4692,26 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4676
4692
|
}, null, 2)
|
|
4677
4693
|
])
|
|
4678
4694
|
]),
|
|
4679
|
-
e("div",
|
|
4695
|
+
e("div", Al, [
|
|
4680
4696
|
T(I, {
|
|
4681
4697
|
variant: "outlined",
|
|
4682
4698
|
class: "py-12 px-16"
|
|
4683
4699
|
}, {
|
|
4684
|
-
default:
|
|
4685
|
-
e("div",
|
|
4686
|
-
(i(!0),
|
|
4700
|
+
default: ue(() => [
|
|
4701
|
+
e("div", Dl, [
|
|
4702
|
+
(i(!0), h(Ne, null, Te(W.info, (Re, Ee) => (i(), h("div", {
|
|
4687
4703
|
key: Ee,
|
|
4688
4704
|
class: "flex flex-col gap-4"
|
|
4689
4705
|
}, [
|
|
4690
|
-
e("div",
|
|
4691
|
-
e("div",
|
|
4692
|
-
(i(!0),
|
|
4706
|
+
e("div", Nl, k(Re == null ? void 0 : Re.label), 1),
|
|
4707
|
+
e("div", Rl, [
|
|
4708
|
+
(i(!0), h(Ne, null, Te(Re == null ? void 0 : Re.values, (Le, it) => (i(), h("div", {
|
|
4693
4709
|
key: it,
|
|
4694
4710
|
class: "fm-typo-en-body-lg-600"
|
|
4695
4711
|
}, [
|
|
4696
|
-
typeof Le == "string" ? (i(),
|
|
4712
|
+
typeof Le == "string" ? (i(), h(Ne, { key: 0 }, [
|
|
4697
4713
|
Ge(k(Le), 1)
|
|
4698
|
-
], 64)) : (i(),
|
|
4714
|
+
], 64)) : (i(), fe(Ps(Le), { key: 1 }))
|
|
4699
4715
|
]))), 128))
|
|
4700
4716
|
])
|
|
4701
4717
|
]))), 128))
|
|
@@ -4707,92 +4723,92 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4707
4723
|
])
|
|
4708
4724
|
], 64);
|
|
4709
4725
|
}), 128))
|
|
4710
|
-
])) : (i(),
|
|
4711
|
-
T(
|
|
4726
|
+
])) : (i(), h("div", cl, [
|
|
4727
|
+
T(v),
|
|
4712
4728
|
e("div", null, [
|
|
4713
4729
|
e("img", {
|
|
4714
|
-
src:
|
|
4730
|
+
src: y(Jt),
|
|
4715
4731
|
alt: "List is empty"
|
|
4716
|
-
}, null, 8,
|
|
4732
|
+
}, null, 8, dl)
|
|
4717
4733
|
]),
|
|
4718
|
-
e("div",
|
|
4719
|
-
e("div",
|
|
4720
|
-
T(
|
|
4721
|
-
T(
|
|
4734
|
+
e("div", ml, k(y(_)("inventory.transfer.receiveRequest.details.noRecordsFound")), 1),
|
|
4735
|
+
e("div", pl, k(y(_)("inventory.transfer.receiveRequest.details.trackDeliveryMessage")), 1),
|
|
4736
|
+
T(v),
|
|
4737
|
+
T(v)
|
|
4722
4738
|
]))
|
|
4723
|
-
])) : P.value.value === "actionLogs" ? (i(),
|
|
4724
|
-
we.value.length ? (i(),
|
|
4725
|
-
(i(!0),
|
|
4739
|
+
])) : P.value.value === "actionLogs" ? (i(), h("div", Pl, [
|
|
4740
|
+
we.value.length ? (i(), h("div", El, [
|
|
4741
|
+
(i(!0), h(Ne, null, Te(we.value, (W, Z) => (i(), fe(I, {
|
|
4726
4742
|
key: Z,
|
|
4727
4743
|
variant: "outlined",
|
|
4728
4744
|
class: "py-12 px-16"
|
|
4729
4745
|
}, {
|
|
4730
|
-
default:
|
|
4746
|
+
default: ue(() => {
|
|
4731
4747
|
var ge;
|
|
4732
4748
|
return [
|
|
4733
|
-
e("div",
|
|
4734
|
-
e("div",
|
|
4735
|
-
e("div",
|
|
4736
|
-
e("div",
|
|
4749
|
+
e("div", ql, [
|
|
4750
|
+
e("div", Vl, [
|
|
4751
|
+
e("div", Ll, k(y(nt)[W.action] ? y(_)(y(nt)[W.action].translationKey) : W.action), 1),
|
|
4752
|
+
e("div", jl, k(y(et)(W.changedAt)), 1)
|
|
4737
4753
|
]),
|
|
4738
|
-
e("div",
|
|
4739
|
-
W.remarks ? (i(),
|
|
4754
|
+
e("div", Ul, k((ge = W.changedBy) == null ? void 0 : ge.name), 1),
|
|
4755
|
+
W.remarks ? (i(), h("div", Ml, k(W.remarks), 1)) : V("", !0)
|
|
4740
4756
|
])
|
|
4741
4757
|
];
|
|
4742
4758
|
}),
|
|
4743
4759
|
_: 2
|
|
4744
4760
|
}, 1024))), 128))
|
|
4745
|
-
])) : (i(),
|
|
4746
|
-
T(
|
|
4761
|
+
])) : (i(), h("div", Fl, [
|
|
4762
|
+
T(v),
|
|
4747
4763
|
e("div", null, [
|
|
4748
4764
|
e("img", {
|
|
4749
|
-
src:
|
|
4765
|
+
src: y(Jt),
|
|
4750
4766
|
alt: "List is empty"
|
|
4751
|
-
}, null, 8,
|
|
4767
|
+
}, null, 8, Il)
|
|
4752
4768
|
]),
|
|
4753
|
-
e("div",
|
|
4754
|
-
T(
|
|
4755
|
-
T(
|
|
4769
|
+
e("div", Tl, k(y(_)("inventory.transfer.receiveRequest.details.noActionLogs")), 1),
|
|
4770
|
+
T(v),
|
|
4771
|
+
T(v)
|
|
4756
4772
|
]))
|
|
4757
4773
|
])) : V("", !0)
|
|
4758
4774
|
])
|
|
4759
4775
|
];
|
|
4760
4776
|
}),
|
|
4761
|
-
"side-sheet-footer":
|
|
4762
|
-
e("div",
|
|
4763
|
-
(i(!0),
|
|
4764
|
-
|
|
4777
|
+
"side-sheet-footer": ue(() => [
|
|
4778
|
+
e("div", Bl, [
|
|
4779
|
+
(i(!0), h(Ne, null, Te(Ae.value, (S) => (i(), h(Ne, null, [
|
|
4780
|
+
y(nt)[S].available != !1 ? (i(), fe($, {
|
|
4765
4781
|
key: S,
|
|
4766
|
-
label:
|
|
4782
|
+
label: y(_)(y(nt)[S].translationKey),
|
|
4767
4783
|
onClick: (U) => A(S),
|
|
4768
4784
|
loading: se.value === S,
|
|
4769
4785
|
disabled: se.value !== S && te.value,
|
|
4770
|
-
variant:
|
|
4786
|
+
variant: y(nt)[S].buttonVariant
|
|
4771
4787
|
}, null, 8, ["label", "onClick", "loading", "disabled", "variant"])) : V("", !0)
|
|
4772
4788
|
], 64))), 256)),
|
|
4773
|
-
|
|
4789
|
+
y(F).ableToMarkReceived(o.purchaseOrder) && !Ae.value.includes("completeReceive") ? (i(), fe($, {
|
|
4774
4790
|
key: 0,
|
|
4775
|
-
label:
|
|
4791
|
+
label: y(_)("inventory.transfer.receiveRequest.actions.completeReceive"),
|
|
4776
4792
|
onClick: l[5] || (l[5] = (S) => A("completeReceive")),
|
|
4777
4793
|
loading: se.value === "completeReceive",
|
|
4778
4794
|
disabled: se.value !== "completeReceive" && te.value
|
|
4779
4795
|
}, null, 8, ["label", "loading", "disabled"])) : V("", !0),
|
|
4780
|
-
|
|
4796
|
+
y(F).ableToMarkApproved(o.purchaseOrder) && o.canApprove && !Ae.value.includes("approveRequest") ? (i(), fe($, {
|
|
4781
4797
|
key: 1,
|
|
4782
|
-
label:
|
|
4798
|
+
label: y(_)("inventory.transfer.approval.actions.approveRequest"),
|
|
4783
4799
|
onClick: l[6] || (l[6] = (S) => A("approveRequest")),
|
|
4784
4800
|
loading: se.value === "approveRequest",
|
|
4785
4801
|
disabled: se.value !== "approveRequest" && te.value
|
|
4786
4802
|
}, null, 8, ["label", "loading", "disabled"])) : V("", !0),
|
|
4787
|
-
|
|
4803
|
+
y(F).ableToCreateFulfillment(o.purchaseOrder, o.poRequest) && s.scope === "approval" ? (i(), fe($, {
|
|
4788
4804
|
key: 2,
|
|
4789
|
-
label:
|
|
4805
|
+
label: y(_)("inventory.transfer.receiveRequest.actions.processRequest"),
|
|
4790
4806
|
onClick: l[7] || (l[7] = (S) => A("processRequest")),
|
|
4791
4807
|
loading: se.value === "processRequest",
|
|
4792
4808
|
disabled: se.value !== "processRequest" && te.value
|
|
4793
4809
|
}, null, 8, ["label", "loading", "disabled"])) : V("", !0),
|
|
4794
4810
|
T($, {
|
|
4795
|
-
label:
|
|
4811
|
+
label: y(_)("common.close"),
|
|
4796
4812
|
variant: "tertiary",
|
|
4797
4813
|
onClick: l[8] || (l[8] = (S) => n("update:show", !1))
|
|
4798
4814
|
}, null, 8, ["label"])
|
|
@@ -4805,16 +4821,16 @@ const xo = { class: "flex flex-col gap-3" }, wo = { class: "flex flex-col gap-4"
|
|
|
4805
4821
|
});
|
|
4806
4822
|
export {
|
|
4807
4823
|
At as P,
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4824
|
+
_i as _,
|
|
4825
|
+
bi as a,
|
|
4826
|
+
ir as b,
|
|
4827
|
+
fs as c,
|
|
4828
|
+
ps as d,
|
|
4829
|
+
gs as e,
|
|
4814
4830
|
vt as f,
|
|
4815
|
-
|
|
4816
|
-
|
|
4831
|
+
cs as g,
|
|
4832
|
+
vs as h,
|
|
4817
4833
|
Tt as i,
|
|
4818
4834
|
It as j,
|
|
4819
|
-
|
|
4835
|
+
gi as u
|
|
4820
4836
|
};
|