@feedmepos/mf-inventory-portal 1.8.0-dev.10 → 1.8.0-dev.12
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-BjFIh5km.js → App-CicGEJLu.js} +10 -10
- package/dist/{ApprovalView-CauRuf64.js → ApprovalView-VLWlKeUm.js} +9 -9
- package/dist/{BindingsDialog-U-tzIfGX.js → BindingsDialog-B9QMGcL_.js} +2 -2
- package/dist/{BindingsPicker-CV_oghtz.js → BindingsPicker-BcN6UnZY.js} +8 -8
- package/dist/{BindingsTable-TKSQxAxV.js → BindingsTable-CUbjKa4r.js} +4 -4
- package/dist/{BulkReceiveRequestView-Cyeq26qc.js → BulkReceiveRequestView-4CPZAXAy.js} +19 -19
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BpJhboKU.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BlA2qgZ5.js} +1 -1
- package/dist/{ClosingDraftView-UqeHsxyJ.js → ClosingDraftView-D5YnQetl.js} +19 -19
- package/dist/{ClosingHistoryView-Cr6cQq6j.js → ClosingHistoryView-DRDbJSLx.js} +7 -7
- package/dist/{ClosingTemplateView-DZ0Mdc87.js → ClosingTemplateView-B0sSllOB.js} +18 -18
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-C-OsCTxZ.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-Cn-Dnqdk.js} +1 -1
- package/dist/{DefaultView-DQKHG5Jl.js → DefaultView-e09aT02j.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-Z_kBbMMO.js → DeliveryOrderPrintPreview-CEiTyKSF.js} +9 -9
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-Ce6Ly9pT.js → EmailDialog.vue_vue_type_script_setup_true_lang-BsPrm4ag.js} +23 -23
- package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BUYI8koH.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-B7HT3V1a.js} +1 -1
- package/dist/{FeatureCapabilityGate-DOn2IVJb.js → FeatureCapabilityGate-D0MTxdc9.js} +3 -3
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BJuo4lEh.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-xKWr0XDw.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DZxz5hbo.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-COEKHDg3.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CiBhz5sq.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B1rWZes8.js} +2 -2
- package/dist/{FmMultiselectDialog-DvaWLGY5.js → FmMultiselectDialog-BBA5_LF9.js} +2 -2
- package/dist/{FmMultiselectDialog-Bx9cLdYs.js → FmMultiselectDialog-UDtVA5Vq.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D6f1M96D.js → FmUnitInput.vue_vue_type_script_setup_true_lang-KZmvbvl-.js} +5 -5
- package/dist/{ImportView-1-cjN7ay.js → ImportView-BvjN1WZE.js} +6 -6
- package/dist/{IngredientsView-JfKlUU2E.js → IngredientsView-DMZH-ZlH.js} +15 -15
- package/dist/{IntegrationExplorerView-uElgWH8i.js → IntegrationExplorerView-CVnGDtQB.js} +4 -4
- package/dist/{IntegrationPlatformView-g2dU5SG6.js → IntegrationPlatformView-zYecjR4k.js} +3717 -3698
- package/dist/{IntegrationView-B9g888K4.js → IntegrationView-Gw7o5QBi.js} +14 -14
- package/dist/{InventoryBindingForm-DfGOKZWg.js → InventoryBindingForm-Crfc0Q2m.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CNjTdNL7.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-iq_Z0Slq.js} +4 -4
- package/dist/{InventoryBindingSummary-CSii8B2X.js → InventoryBindingSummary-aZ23OBkt.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D_Xk4SOH.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DVy59AaV.js} +2 -2
- package/dist/{PlanTierBadge.vue_vue_type_script_setup_true_lang-DJvfMOND.js → PlanTierBadge.vue_vue_type_script_setup_true_lang-CEk7QpRG.js} +2 -2
- package/dist/{PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-Bdjm0Y4w.js → PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-D-_queLv.js} +1 -1
- package/dist/{ProductionRunDetailView-HgH2Wp99.js → ProductionRunDetailView-B2s-At_4.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-C88pjV2s.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-dGcw7kM5.js} +7 -7
- package/dist/{ProductionRunView-BkvQHeCP.js → ProductionRunView-DoJYE65L.js} +3 -3
- package/dist/{PublishView-CIei_T5e.js → PublishView-Bxu5LPhp.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-Wmv7676h.js → PurchaseOrderPrintPreview-CN_OkiIZ.js} +7 -7
- package/dist/{ReceiveRequestView-MqOIpIDB.js → ReceiveRequestView-tEAiC4se.js} +13 -13
- package/dist/{RecipeView-WzXJX4JU.js → RecipeView--zEtB9Tq.js} +15 -15
- package/dist/{SettingsView-1YlgjyzB.js → SettingsView-BdV_h4o0.js} +28 -28
- package/dist/{StockView-C-dIRXPv.js → StockView-BiiPklpF.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CewKTZzy.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-ft-cHXBc.js} +1 -1
- package/dist/{SupplierView-53rHhQ63.js → SupplierView-DuK7uQ7_.js} +13 -13
- package/dist/{SurchargeView-DuJb5EUn.js → SurchargeView-DIl7Dchz.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-C_YmC-ZX.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CuTMCvrH.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CyQujMzv.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-fo0MDJ11.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CMwqjlb0.js → TransferDetails.vue_vue_type_script_setup_true_lang-BkhuMO-C.js} +127 -127
- package/dist/{TransferTemplateView-B6OGfKQr.js → TransferTemplateView-W5XRqnbL.js} +19 -19
- package/dist/{UnitCostHistoryView-BVlq4BNG.js → UnitCostHistoryView-Ch8xuM01.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CULJEeCU.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DL94fQIF.js} +4 -4
- package/dist/{UnitView-AuIJokVF.js → UnitView-C6ZTO4Lv.js} +7 -7
- package/dist/{WarehouseView-Cjv8S1ov.js → WarehouseView-CfrfNRgD.js} +8 -8
- package/dist/{WastageTemplateView-mxSTzVSZ.js → WastageTemplateView-BhmJRLu7.js} +15 -15
- package/dist/{app-OztWApio.js → app-dKTzLd5p.js} +80 -76
- package/dist/app.js +1 -1
- package/dist/{closing-template-DIxXDgZQ.js → closing-template-ajQDRbYl.js} +1 -1
- package/dist/{date2-BTzYzk-x.js → date2-DUblXUDL.js} +1 -1
- package/dist/{dayjs.min-BIg6CfC4.js → dayjs.min-DkxiGFfT.js} +1 -1
- package/dist/{decimal-B34w3X7O.js → decimal-BX179kHy.js} +2 -2
- package/dist/{defineDeepModel-CrZAv12u.js → defineDeepModel-CM58Rll5.js} +6 -6
- package/dist/{duplicate-template-BKVPhi40.js → duplicate-template-Dza3sV4R.js} +1 -1
- package/dist/{feature-BUVZ_ab3.js → feature-C-hL2EKL.js} +2 -2
- package/dist/{format-time-from-id-DGLxhRFH.js → format-time-from-id-Da7QOfGl.js} +1 -1
- package/dist/{format-unit-display-BhudItCc.js → format-unit-display-CJkyQlWy.js} +12 -12
- package/dist/{id-to-date-BfwadWDS.js → id-to-date-jSA6MUZR.js} +1 -1
- package/dist/{import-export.helper-BdQ_d-fT.js → import-export.helper-iD3T4Dc-.js} +5 -5
- package/dist/{index-B_hoeQNL.js → index-B2CotabP.js} +3 -3
- package/dist/{index-CCvxPS3E.js → index-DH_YYa61.js} +190 -190
- package/dist/{index-BTNI4XZ2.js → index-YkVYUlB9.js} +1 -1
- package/dist/{lz-string-CVEGZpSC.js → lz-string-DmMW0aux.js} +1 -1
- package/dist/{netsuite-DEhdSyBn.js → netsuite-DwmLC3oU.js} +2 -2
- package/dist/{predefined-templates-BTdQl7jj.js → predefined-templates-D7wYOLsG.js} +1 -1
- package/dist/{purchase-order-template-DfMmpsrJ.js → purchase-order-template-BuTYHKgS.js} +1 -1
- package/dist/{recalculationUtils-Ds9Jcg0l.js → recalculationUtils-B5gy_YqF.js} +1 -1
- package/dist/{row-action.enum-B2Y5YFbc.js → row-action.enum-D-YatDz6.js} +1 -1
- package/dist/{rules-D01xYhgI.js → rules-BffOzeXh.js} +3 -3
- package/dist/{stock-D3kBNq3e.js → stock-B0aeTfLR.js} +1 -1
- package/dist/{stock-DyTC4Teu.js → stock-kqgLG0jG.js} +2 -2
- package/dist/{supplier-DaidezrO.js → supplier-CHSHSIUG.js} +2 -2
- package/dist/{surcharge-C-PFvvlU.js → surcharge-CrMml5I4.js} +1 -1
- package/dist/{uom-rules-Un5bhcrm.js → uom-rules-Dp3zvFYF.js} +1 -1
- package/dist/{use-ingredient-select-dialog-DV_hkAt9.js → use-ingredient-select-dialog-BOOSd_9a.js} +2 -2
- package/dist/{use-inventory-binding-dialog-CTceyFrg.js → use-inventory-binding-dialog-DZt8_jNr.js} +2 -2
- package/dist/{use-template-enabled-locations-DGqw8tvz.js → use-template-enabled-locations-BWxbLhSL.js} +2 -2
- package/dist/{use-transfer-locations-DgtKajec.js → use-transfer-locations-DE9eTTVR.js} +14 -14
- package/dist/{useHrmPermission-BMpZlah6.js → useHrmPermission-2d9RL_u8.js} +1 -1
- package/dist/{useNavigationMenu-D0NtXAnB.js → useNavigationMenu-BdTm0J8E.js} +4 -4
- package/dist/{useSseClient-CHZZxy7Z.js → useSseClient-BQ9oplfW.js} +1 -1
- package/dist/{vue-i18n-mXrQUZTi.js → vue-i18n-DngSjCMB.js} +258 -258
- package/dist/{xlsx.util-CKx0NYTq.js → xlsx.util-CnXn04xk.js} +2 -2
- package/package.json +4 -4
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { f as lt, p as xs } from "./format-time-from-id-
|
|
1
|
+
import { f as lt, p as xs } from "./format-time-from-id-Da7QOfGl.js";
|
|
2
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 ws, toDisplayString as O, unref as y, vModelText as $s, toRaw as Cs, shallowRef as dt, onUnmounted as ns, triggerRef as As, computed as H, readonly as Ns, h as oe, resolveComponent as ne, createVNode as E, Fragment as De, renderList as Te, reactive as Ds, onMounted as as, createBlock as fe, withCtx as ue, createTextVNode as Ge, normalizeClass as We, renderSlot as Rs, isRef as Ps, resolveDynamicComponent as Fs } from "vue";
|
|
3
3
|
import { c as Gt } from "./component-BmLAdDiY.js";
|
|
4
|
-
import { D as qe, R as Ne } from "./row-action.enum-
|
|
5
|
-
import { s as Fe, q as Ce, H as st, d as Is, u as ze,
|
|
6
|
-
import { h as Pt, a as Ls, t as js, b as et } from "./date2-
|
|
7
|
-
import { l as Us, a as $e, t as Qe, d as ut } from "./rules-
|
|
8
|
-
import { F as Be, u as Je, c as Ms, d as Yt, e as St } from "./feature-
|
|
9
|
-
import { L as Bs } from "./lz-string-
|
|
4
|
+
import { D as qe, R as Ne } from "./row-action.enum-D-YatDz6.js";
|
|
5
|
+
import { s as Fe, q as Ce, H as st, d as Is, u as ze, $ as z, a4 as ls, a5 as yt, _ as be, a as Dt, a6 as Wt, a7 as Ts, a8 as Es, G as qs, t as Rt, c as wt, O as Qt, a9 as is, r as at, C as Ue, B as mt, aa as Vs } from "./app-dKTzLd5p.js";
|
|
6
|
+
import { h as Pt, a as Ls, t as js, b as et } from "./date2-DUblXUDL.js";
|
|
7
|
+
import { l as Us, a as $e, t as Qe, d as ut } from "./rules-BffOzeXh.js";
|
|
8
|
+
import { F as Be, u as Je, c as Ms, d as Yt, e as St } from "./feature-C-hL2EKL.js";
|
|
9
|
+
import { L as Bs } from "./lz-string-DmMW0aux.js";
|
|
10
10
|
import { useI18n as ht, useCoreStore as gt } from "@feedmepos/mf-common";
|
|
11
|
-
import { useDialog as bt, useSnackbar as
|
|
12
|
-
import { u as _t, a as Ft, S as Me } from "./netsuite-
|
|
11
|
+
import { useDialog as bt, useSnackbar as Xe, 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-DwmLC3oU.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 Ks, b as Hs, f as ft } from "./format-unit-display-
|
|
16
|
-
import { u as
|
|
17
|
-
import { F as
|
|
18
|
-
import { _ as Ws, a as Qs, b as Ys } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { e as Js } from "./index-
|
|
20
|
-
import { i as
|
|
21
|
-
import { F as
|
|
22
|
-
import { u as us } from "./supplier-
|
|
23
|
-
import { u as
|
|
24
|
-
import { f as er, h as tr, r as sr, s as rr } from "./predefined-templates-
|
|
25
|
-
import { F as or } from "./decimal-
|
|
26
|
-
import { d as cs } from "./defineDeepModel-
|
|
27
|
-
import { u as nr } from "./vue-i18n-
|
|
28
|
-
import { u as ar } from "./useHrmPermission-
|
|
15
|
+
import { a as Ks, b as Hs, f as ft } from "./format-unit-display-CJkyQlWy.js";
|
|
16
|
+
import { u as Ze, _ as Gs } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-CuTMCvrH.js";
|
|
17
|
+
import { F as Xt } from "./FeatureCapabilityGate-D0MTxdc9.js";
|
|
18
|
+
import { _ as Ws, a as Qs, b as Ys } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-KZmvbvl-.js";
|
|
19
|
+
import { e as Js } from "./index-B2CotabP.js";
|
|
20
|
+
import { i as Xs } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-xKWr0XDw.js";
|
|
21
|
+
import { F as Zt } from "./form-mode.enum-BKiNVH6A.js";
|
|
22
|
+
import { u as us } from "./supplier-CHSHSIUG.js";
|
|
23
|
+
import { u as Zs } from "./surcharge-CrMml5I4.js";
|
|
24
|
+
import { f as er, h as tr, r as sr, s as rr } from "./predefined-templates-D7wYOLsG.js";
|
|
25
|
+
import { F as or } from "./decimal-BX179kHy.js";
|
|
26
|
+
import { d as cs } from "./defineDeepModel-CM58Rll5.js";
|
|
27
|
+
import { u as nr } from "./vue-i18n-DngSjCMB.js";
|
|
28
|
+
import { u as ar } from "./useHrmPermission-2d9RL_u8.js";
|
|
29
29
|
function ds(u, t) {
|
|
30
30
|
return t.reduce(
|
|
31
31
|
(n, m) => {
|
|
@@ -341,7 +341,7 @@ function Ct(u, t, s) {
|
|
|
341
341
|
});
|
|
342
342
|
}
|
|
343
343
|
function ys() {
|
|
344
|
-
const u = ze(), t =
|
|
344
|
+
const u = ze(), t = Ze(), s = Je();
|
|
345
345
|
async function n(c, d) {
|
|
346
346
|
const r = u.currentLocationDBName;
|
|
347
347
|
return c.doc.supplier.internal && c.operation === z.enum.confirmDraft && (c.operation = z.enum.submitRequest), await t.processPurchaseOrder(c, d || r);
|
|
@@ -409,7 +409,7 @@ function ts(u, t, s, n, m) {
|
|
|
409
409
|
};
|
|
410
410
|
}
|
|
411
411
|
function bs() {
|
|
412
|
-
const u = us(), t = ze(), s = Dt(), n = _t(), m =
|
|
412
|
+
const u = us(), t = ze(), s = Dt(), n = _t(), m = Zs(), c = ts(
|
|
413
413
|
u,
|
|
414
414
|
t,
|
|
415
415
|
s,
|
|
@@ -516,8 +516,8 @@ function bs() {
|
|
|
516
516
|
var At = /* @__PURE__ */ ((u) => (u.RECEIVE_REQUEST = "receive/request", u.APPROVAL = "approval", u))(At || {});
|
|
517
517
|
const ot = re(), kt = re(), xt = re();
|
|
518
518
|
function gi(u, t) {
|
|
519
|
-
const s = bt(), n = ze(), m = Je(), c = us(), d = gt(), r = Ks(), a = Hs(), k = re(!1), f =
|
|
520
|
-
t != null && t.startDate && (t != null && t.endDate) ? t :
|
|
519
|
+
const s = bt(), n = ze(), m = Je(), c = us(), d = gt(), r = Ks(), a = Hs(), k = re(!1), f = Xe(), D = Ze(), R = ir(), F = re(new Array()), b = re(new Array()), B = re(
|
|
520
|
+
t != null && t.startDate && (t != null && t.endDate) ? t : Xs()
|
|
521
521
|
), I = H(() => {
|
|
522
522
|
const g = new Date(B.value.startDate), N = new Date(B.value.endDate);
|
|
523
523
|
return {
|
|
@@ -528,7 +528,7 @@ function gi(u, t) {
|
|
|
528
528
|
async function de(g) {
|
|
529
529
|
function N(ee) {
|
|
530
530
|
const L = {
|
|
531
|
-
mode:
|
|
531
|
+
mode: Zt.CREATE,
|
|
532
532
|
modelValue: g || void 0,
|
|
533
533
|
show: !0,
|
|
534
534
|
"onUpdate:show"(_) {
|
|
@@ -560,7 +560,7 @@ function gi(u, t) {
|
|
|
560
560
|
}
|
|
561
561
|
function ke(g) {
|
|
562
562
|
const N = {
|
|
563
|
-
mode:
|
|
563
|
+
mode: Zt.UPDATE,
|
|
564
564
|
modelValue: wt(g),
|
|
565
565
|
show: !0,
|
|
566
566
|
"onUpdate:show"(ie) {
|
|
@@ -601,14 +601,14 @@ function gi(u, t) {
|
|
|
601
601
|
F.value = [], b.value = [], k.value = !0;
|
|
602
602
|
try {
|
|
603
603
|
const g = await D.getPurchaseOrders(I.value);
|
|
604
|
-
F.value = g.sort((j,
|
|
604
|
+
F.value = g.sort((j, X) => X._id.localeCompare(j._id));
|
|
605
605
|
const N = g.flatMap((j) => j.shipmentIds || []).filter(Boolean), ie = N.length > 0 ? await R.getShipmentsByIds(N) : [];
|
|
606
606
|
b.value = ie;
|
|
607
607
|
const ee = await se.readCurrentLocationLastClosing(!0), L = ee == null ? void 0 : ee._id;
|
|
608
608
|
L && (Q.value = xs(L)), await m.awaitFeatureLoaded(() => m.mustUsePoTemplate) && await a.fetchTemplates();
|
|
609
609
|
const _ = F.value.map((j) => {
|
|
610
|
-
var
|
|
611
|
-
return ((
|
|
610
|
+
var X;
|
|
611
|
+
return ((X = j.request) == null ? void 0 : X.id) ?? "";
|
|
612
612
|
}).filter((j) => j);
|
|
613
613
|
te.value = await D.readRequestByIds(_);
|
|
614
614
|
} catch {
|
|
@@ -713,8 +713,8 @@ function gi(u, t) {
|
|
|
713
713
|
},
|
|
714
714
|
transferTo: ee
|
|
715
715
|
}), await new Promise((me) => setTimeout(me, 1e3));
|
|
716
|
-
const
|
|
717
|
-
N === z.enum.confirmDraft && g.effectiveAt &&
|
|
716
|
+
const X = ze().currentLocationDBName.startsWith("restaurant_");
|
|
717
|
+
N === z.enum.confirmDraft && g.effectiveAt && X ? f.open({
|
|
718
718
|
title: "Success",
|
|
719
719
|
message: `${ie}. The backdate will be reflected once your POS has received this change.`,
|
|
720
720
|
type: "success"
|
|
@@ -766,10 +766,10 @@ function gi(u, t) {
|
|
|
766
766
|
});
|
|
767
767
|
return;
|
|
768
768
|
}
|
|
769
|
-
const j = [],
|
|
770
|
-
|
|
769
|
+
const j = [], X = bs();
|
|
770
|
+
X.init(g), (N === z.enum.confirmDraft || N === z.enum.submitRequest) && j.push({
|
|
771
771
|
action: "confirmDraft",
|
|
772
|
-
payload:
|
|
772
|
+
payload: X.controller.value.toConfirmDraftData(Ce())
|
|
773
773
|
}), s.open({
|
|
774
774
|
title: _.title,
|
|
775
775
|
message: _.message,
|
|
@@ -995,7 +995,7 @@ function ss(u) {
|
|
|
995
995
|
return u != null && u.id ? `${u.refNo ?? "N/A"} (${u.id})` : "N/A";
|
|
996
996
|
}
|
|
997
997
|
function bi(u, t, s, n) {
|
|
998
|
-
const m = ze(), c = _t(), d = gt(), r = _s(), { t: a } = ht(), k =
|
|
998
|
+
const m = ze(), c = _t(), d = gt(), r = _s(), { t: a } = ht(), k = Xe(), { hasOrderDraftPermission: f } = Ss(), D = Je(), R = H(
|
|
999
999
|
() => D.enablePrintTemplate ? [qe[Ne.PrintCustom]] : []
|
|
1000
1000
|
), F = H(
|
|
1001
1001
|
() => D.enablePurchaseOrderEmail ? [qe[Ne.Email]] : []
|
|
@@ -1884,7 +1884,7 @@ const nt = {
|
|
|
1884
1884
|
scope: {}
|
|
1885
1885
|
},
|
|
1886
1886
|
setup(u) {
|
|
1887
|
-
const t = u, s = _t(), n =
|
|
1887
|
+
const t = u, s = _t(), n = Xe(), m = bt(), c = re(!1);
|
|
1888
1888
|
H(() => {
|
|
1889
1889
|
var f, D, R, F;
|
|
1890
1890
|
let r = !0;
|
|
@@ -1975,7 +1975,7 @@ const nt = {
|
|
|
1975
1975
|
scope: {}
|
|
1976
1976
|
},
|
|
1977
1977
|
setup(u) {
|
|
1978
|
-
const t = u, s = _t(), n =
|
|
1978
|
+
const t = u, s = _t(), n = Ze(), m = re(t.poRequest);
|
|
1979
1979
|
as(async () => {
|
|
1980
1980
|
var a;
|
|
1981
1981
|
if (!t.poRequest && ((a = t.purchaseOrder) != null && a._id)) {
|
|
@@ -2039,7 +2039,7 @@ const nt = {
|
|
|
2039
2039
|
purchaseOrderId: {}
|
|
2040
2040
|
},
|
|
2041
2041
|
setup(u) {
|
|
2042
|
-
const t =
|
|
2042
|
+
const t = Xe(), s = Ft();
|
|
2043
2043
|
async function n(m, c) {
|
|
2044
2044
|
const d = [];
|
|
2045
2045
|
if (m && d.push(`body.message:*${m}*`), c) {
|
|
@@ -2077,7 +2077,7 @@ const nt = {
|
|
|
2077
2077
|
]);
|
|
2078
2078
|
};
|
|
2079
2079
|
}
|
|
2080
|
-
}), Wr = { class: "flex flex-row-reverse" }, Qr = { key: 0 }, Yr = { key: 1 }, Jr = { class: "mb-6" },
|
|
2080
|
+
}), Wr = { class: "flex flex-row-reverse" }, Qr = { key: 0 }, Yr = { key: 1 }, Jr = { class: "mb-6" }, Xr = { class: "fm-typo-en-body-md-400" }, Zr = { key: 0 }, eo = { key: 1 }, to = {
|
|
2081
2081
|
key: 0,
|
|
2082
2082
|
class: "flex"
|
|
2083
2083
|
}, so = {
|
|
@@ -2183,8 +2183,8 @@ const nt = {
|
|
|
2183
2183
|
E(se, {
|
|
2184
2184
|
label: y(Rt)(Se)
|
|
2185
2185
|
}, null, 8, ["label"]),
|
|
2186
|
-
e("div",
|
|
2187
|
-
Array.isArray(ae) ? (i(), h("span",
|
|
2186
|
+
e("div", Xr, [
|
|
2187
|
+
Array.isArray(ae) ? (i(), h("span", Zr, O(ae.length > 0 ? ae.join(", ") : "N/A"), 1)) : (i(), h("span", eo, O(ae), 1))
|
|
2188
2188
|
])
|
|
2189
2189
|
])
|
|
2190
2190
|
]))), 128))
|
|
@@ -2419,7 +2419,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2419
2419
|
emits: ["submitted"],
|
|
2420
2420
|
setup(u, { emit: t }) {
|
|
2421
2421
|
var ee;
|
|
2422
|
-
const { t: s } = nr(), n = Je(), m =
|
|
2422
|
+
const { t: s } = nr(), n = Je(), m = Xe(), c = re(!1), d = Dt(), r = u, a = (((ee = r.purchaseOrder) == null ? void 0 : ee.version) ?? Ue.enum[1]) === Ue.enum[2], k = t, f = cs("deliveryOrder"), D = Ze(), {
|
|
2423
2423
|
controller: R,
|
|
2424
2424
|
state: F,
|
|
2425
2425
|
reset: b
|
|
@@ -2441,8 +2441,8 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2441
2441
|
() => r.purchaseOrder.items.map(
|
|
2442
2442
|
(L, _) => H({
|
|
2443
2443
|
get: () => {
|
|
2444
|
-
var
|
|
2445
|
-
const j = (
|
|
2444
|
+
var X;
|
|
2445
|
+
const j = (X = f.received[_]) == null ? void 0 : X.amount;
|
|
2446
2446
|
return j ? +$e(j) : 0;
|
|
2447
2447
|
},
|
|
2448
2448
|
set: (j) => {
|
|
@@ -2454,8 +2454,8 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2454
2454
|
() => r.purchaseOrder.items.map(
|
|
2455
2455
|
(L, _) => H({
|
|
2456
2456
|
get: () => {
|
|
2457
|
-
var
|
|
2458
|
-
const j = (
|
|
2457
|
+
var X;
|
|
2458
|
+
const j = (X = f.received[_]) == null ? void 0 : X.cost;
|
|
2459
2459
|
return j ? +$e(j) : 0;
|
|
2460
2460
|
},
|
|
2461
2461
|
set: (j) => {
|
|
@@ -2471,8 +2471,8 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2471
2471
|
var j;
|
|
2472
2472
|
const _ = !se.value[L];
|
|
2473
2473
|
if (se.value[L] = _, _) {
|
|
2474
|
-
const
|
|
2475
|
-
f.received[L].cost =
|
|
2474
|
+
const X = (j = f.received[L]) == null ? void 0 : j.cost;
|
|
2475
|
+
f.received[L].cost = X ? { ...X, precision: 4 } : { currency: Ce(), amount: 0, precision: 4 };
|
|
2476
2476
|
} else
|
|
2477
2477
|
delete f.received[L].cost;
|
|
2478
2478
|
}
|
|
@@ -2496,18 +2496,18 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2496
2496
|
}
|
|
2497
2497
|
function A(L, _) {
|
|
2498
2498
|
var Oe, we;
|
|
2499
|
-
const j = (Oe = r.receivedInfoMap) == null ? void 0 : Oe[_.sku._id],
|
|
2500
|
-
return (((we = ae.value[L]) == null ? void 0 : we.value) ?? 0) > 0 ?
|
|
2499
|
+
const j = (Oe = r.receivedInfoMap) == null ? void 0 : Oe[_.sku._id], X = j ? `${s("inventory.transfer.receiveRequest.details.received")} ${Fe.toFormatString({ value: j.received })} / ${ft(_.quantity, _.sku.unit, _.measurement)}` : void 0;
|
|
2500
|
+
return (((we = ae.value[L]) == null ? void 0 : we.value) ?? 0) > 0 ? X : X ? `${X} · ${ct}` : ct;
|
|
2501
2501
|
}
|
|
2502
2502
|
function G(L, _) {
|
|
2503
2503
|
var Oe;
|
|
2504
|
-
const
|
|
2504
|
+
const X = (((Oe = J.value[_]) == null ? void 0 : Oe.value) ?? 0) <= 0;
|
|
2505
2505
|
let me;
|
|
2506
2506
|
if (L.skuId && ke.value[L.skuId]) {
|
|
2507
2507
|
const we = ke.value[L.skuId], o = Fe.toFormatString({ value: we.received });
|
|
2508
2508
|
me = `${s("inventory.transfer.receiveRequest.details.received")} ${o}`;
|
|
2509
2509
|
}
|
|
2510
|
-
return
|
|
2510
|
+
return X ? me ? `${me} · ${ct}` : ct : me;
|
|
2511
2511
|
}
|
|
2512
2512
|
const J = H(
|
|
2513
2513
|
() => K.value.map((L, _) => {
|
|
@@ -2515,13 +2515,13 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2515
2515
|
return H({
|
|
2516
2516
|
get: () => {
|
|
2517
2517
|
var me;
|
|
2518
|
-
const
|
|
2519
|
-
return
|
|
2518
|
+
const X = (me = f.received[j]) == null ? void 0 : me.amount;
|
|
2519
|
+
return X ? +$e(X) : 0;
|
|
2520
2520
|
},
|
|
2521
|
-
set: (
|
|
2521
|
+
set: (X) => {
|
|
2522
2522
|
var Oe, we, o;
|
|
2523
2523
|
const me = ((Oe = L.historyItem) == null ? void 0 : Oe.sku.unit.precision) ?? (L.skuId ? (o = (we = d.skuById[L.skuId]) == null ? void 0 : we.unit) == null ? void 0 : o.precision : void 0) ?? 2;
|
|
2524
|
-
f.received[j].amount = Qe(
|
|
2524
|
+
f.received[j].amount = Qe(X, me);
|
|
2525
2525
|
}
|
|
2526
2526
|
});
|
|
2527
2527
|
})
|
|
@@ -2531,13 +2531,13 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2531
2531
|
return H({
|
|
2532
2532
|
get: () => {
|
|
2533
2533
|
var me;
|
|
2534
|
-
const
|
|
2535
|
-
return
|
|
2534
|
+
const X = (me = f.received[j]) == null ? void 0 : me.cost;
|
|
2535
|
+
return X ? +$e(X) : 0;
|
|
2536
2536
|
},
|
|
2537
|
-
set: (
|
|
2537
|
+
set: (X) => {
|
|
2538
2538
|
f.received[j].cost = {
|
|
2539
2539
|
currency: Ce(),
|
|
2540
|
-
...Qe(
|
|
2540
|
+
...Qe(X, 4)
|
|
2541
2541
|
};
|
|
2542
2542
|
}
|
|
2543
2543
|
});
|
|
@@ -2556,13 +2556,13 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2556
2556
|
return;
|
|
2557
2557
|
}
|
|
2558
2558
|
b(r.deliveryOrder.priceAdjustments);
|
|
2559
|
-
const _ = r.purchaseOrder.itemsAtSubmission ?? r.purchaseOrder.items, j = new Set(_.map((C) => C.sku._id)),
|
|
2559
|
+
const _ = r.purchaseOrder.itemsAtSubmission ?? r.purchaseOrder.items, j = new Set(_.map((C) => C.sku._id)), X = {}, me = [];
|
|
2560
2560
|
for (const C of r.deliveryOrder.received ?? []) {
|
|
2561
2561
|
const q = (o = C.sku) == null ? void 0 : o._id;
|
|
2562
|
-
q && (j.has(q) ?
|
|
2562
|
+
q && (j.has(q) ? X[q] = C : me.push(C));
|
|
2563
2563
|
}
|
|
2564
2564
|
f.received = _.map((C) => {
|
|
2565
|
-
const q =
|
|
2565
|
+
const q = X[C.sku._id];
|
|
2566
2566
|
return q ? { ...q } : {
|
|
2567
2567
|
// Propagate the stable id so V2 submissions match this existing PO line
|
|
2568
2568
|
// instead of the backend treating it as a new extra item (see CreateForm.vue).
|
|
@@ -2574,7 +2574,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2574
2574
|
});
|
|
2575
2575
|
const Oe = {};
|
|
2576
2576
|
for (let C = 0; C < _.length; C++)
|
|
2577
|
-
(l =
|
|
2577
|
+
(l = X[_[C].sku._id]) != null && l.cost && (Oe[C] = !0);
|
|
2578
2578
|
se.value = Oe, K.value = [];
|
|
2579
2579
|
const we = de.value;
|
|
2580
2580
|
for (const C of me) {
|
|
@@ -2634,7 +2634,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2634
2634
|
});
|
|
2635
2635
|
}
|
|
2636
2636
|
return (L, _) => {
|
|
2637
|
-
const j = ne("FmButton"),
|
|
2637
|
+
const j = ne("FmButton"), X = ne("FmStepperField"), me = ne("FmSwitch"), Oe = ne("FmSelect"), we = ne("FmTextField"), o = ne("FmDialog");
|
|
2638
2638
|
return i(), fe(o, {
|
|
2639
2639
|
modelValue: c.value,
|
|
2640
2640
|
"onUpdate:modelValue": _[1] || (_[1] = (l) => c.value = l),
|
|
@@ -2681,7 +2681,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2681
2681
|
e("span", Po, O(l.sku.code), 1)
|
|
2682
2682
|
]),
|
|
2683
2683
|
e("div", Fo, [
|
|
2684
|
-
E(
|
|
2684
|
+
E(X, {
|
|
2685
2685
|
label: "Receive Quantity",
|
|
2686
2686
|
modelValue: ae.value[$].value,
|
|
2687
2687
|
"onUpdate:modelValue": (q) => ae.value[$].value = q,
|
|
@@ -2696,7 +2696,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2696
2696
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
2697
2697
|
_[3] || (_[3] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Override cost ", -1))
|
|
2698
2698
|
])) : V("", !0),
|
|
2699
|
-
y(I) && se.value[$] ? (i(), fe(
|
|
2699
|
+
y(I) && se.value[$] ? (i(), fe(X, {
|
|
2700
2700
|
key: 1,
|
|
2701
2701
|
modelValue: Se.value[$].value,
|
|
2702
2702
|
"onUpdate:modelValue": (q) => Se.value[$].value = q,
|
|
@@ -2742,7 +2742,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2742
2742
|
}, null, 8, ["model-value", "onUpdate:modelValue", "items", "disabled"])
|
|
2743
2743
|
]),
|
|
2744
2744
|
e("div", Uo, [
|
|
2745
|
-
E(
|
|
2745
|
+
E(X, {
|
|
2746
2746
|
label: "Receive Quantity",
|
|
2747
2747
|
modelValue: J.value[$].value,
|
|
2748
2748
|
"onUpdate:modelValue": (Y) => J.value[$].value = Y,
|
|
@@ -2758,7 +2758,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2758
2758
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
2759
2759
|
_[6] || (_[6] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Override cost ", -1))
|
|
2760
2760
|
])) : V("", !0),
|
|
2761
|
-
y(I) && l.costEnabled ? (i(), fe(
|
|
2761
|
+
y(I) && l.costEnabled ? (i(), fe(X, {
|
|
2762
2762
|
key: 1,
|
|
2763
2763
|
modelValue: le.value[$].value,
|
|
2764
2764
|
"onUpdate:modelValue": (Y) => le.value[$].value = Y,
|
|
@@ -2813,7 +2813,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2813
2813
|
}, 8, ["modelValue"]);
|
|
2814
2814
|
};
|
|
2815
2815
|
}
|
|
2816
|
-
}), Jo = { class: "flex flex-col gap-3" },
|
|
2816
|
+
}), Jo = { class: "flex flex-col gap-3" }, Xo = { class: "flex flex-col gap-4" }, Zo = { class: "flex flex-col gap-4 fm-typo-en-body-lg-600" }, en = {
|
|
2817
2817
|
key: 0,
|
|
2818
2818
|
class: "flex flex-col gap-4"
|
|
2819
2819
|
}, tn = { class: "flex items-center justify-between" }, sn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, rn = {
|
|
@@ -2876,7 +2876,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2876
2876
|
},
|
|
2877
2877
|
createdAt: ""
|
|
2878
2878
|
}
|
|
2879
|
-
}), a =
|
|
2879
|
+
}), a = Ze(), k = bt(), f = Je(), D = Dt(), {
|
|
2880
2880
|
controller: R,
|
|
2881
2881
|
state: F,
|
|
2882
2882
|
reset: b
|
|
@@ -2892,7 +2892,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2892
2892
|
function Se(v) {
|
|
2893
2893
|
return v.sku._id ?? null;
|
|
2894
2894
|
}
|
|
2895
|
-
const Ae = (((pe = c.purchaseOrder) == null ? void 0 : pe.version) ?? Ue.enum[1]) === Ue.enum[2], K =
|
|
2895
|
+
const Ae = (((pe = c.purchaseOrder) == null ? void 0 : pe.version) ?? Ue.enum[1]) === Ue.enum[2], K = Xe(), ve = H({
|
|
2896
2896
|
get() {
|
|
2897
2897
|
if (!r.createdAt) return "";
|
|
2898
2898
|
const v = new Date(r.createdAt), p = v.getFullYear(), S = String(v.getMonth() + 1).padStart(2, "0"), U = String(v.getDate()).padStart(2, "0");
|
|
@@ -2994,7 +2994,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
2994
2994
|
measurement: null
|
|
2995
2995
|
});
|
|
2996
2996
|
}
|
|
2997
|
-
function
|
|
2997
|
+
function X(v) {
|
|
2998
2998
|
ee.value.splice(v, 1), r.received.splice(_.value + v, 1);
|
|
2999
2999
|
}
|
|
3000
3000
|
function me(v, p) {
|
|
@@ -3019,8 +3019,8 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
3019
3019
|
return U ? +$e(U) : 0;
|
|
3020
3020
|
},
|
|
3021
3021
|
set: (U) => {
|
|
3022
|
-
var xe, W,
|
|
3023
|
-
const M = ee.value[p], _e = ((xe = M == null ? void 0 : M.historyItem) == null ? void 0 : xe.sku.unit.precision) ?? (M != null && M.skuId ? (
|
|
3022
|
+
var xe, W, Z;
|
|
3023
|
+
const M = ee.value[p], _e = ((xe = M == null ? void 0 : M.historyItem) == null ? void 0 : xe.sku.unit.precision) ?? (M != null && M.skuId ? (Z = (W = D.skuById[M.skuId]) == null ? void 0 : W.unit) == null ? void 0 : Z.precision : void 0) ?? 2;
|
|
3024
3024
|
r.received[S].amount = Qe(U, _e);
|
|
3025
3025
|
}
|
|
3026
3026
|
});
|
|
@@ -3112,7 +3112,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
3112
3112
|
}
|
|
3113
3113
|
const p = de.value;
|
|
3114
3114
|
for (let M = 0; M < p.length; M++) {
|
|
3115
|
-
const _e = p[M], W = (((U = c.purchaseOrder) == null ? void 0 : U.version) ?? Ue.enum[1]) === Ue.enum[2] ? _e.id : _e.sku._id,
|
|
3115
|
+
const _e = p[M], W = (((U = c.purchaseOrder) == null ? void 0 : U.version) ?? Ue.enum[1]) === Ue.enum[2] ? _e.id : _e.sku._id, Z = c.receivedMap[W], ge = +$e(_e.quantity), Pe = Z ? +$e(Z.received) : 0;
|
|
3116
3116
|
g.value[M].value = Math.max(0, ge - Pe);
|
|
3117
3117
|
}
|
|
3118
3118
|
const S = ke.value;
|
|
@@ -3142,7 +3142,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
3142
3142
|
}
|
|
3143
3143
|
}
|
|
3144
3144
|
), (v, p) => {
|
|
3145
|
-
const S = ne("FmButton"), U = ne("FmDatePicker"), M = ne("FmTimePicker"), _e = ne("FmIcon"), xe = ne("FmStepperField"), W = ne("FmSwitch"),
|
|
3145
|
+
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");
|
|
3146
3146
|
return i(), fe(Pe, {
|
|
3147
3147
|
modelValue: n.value,
|
|
3148
3148
|
"onUpdate:modelValue": p[4] || (p[4] = (Ie) => n.value = Ie),
|
|
@@ -3177,9 +3177,9 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
3177
3177
|
var Ie;
|
|
3178
3178
|
return [
|
|
3179
3179
|
e("div", Jo, [
|
|
3180
|
-
e("div",
|
|
3180
|
+
e("div", Xo, [
|
|
3181
3181
|
p[5] || (p[5] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Received by", -1)),
|
|
3182
|
-
e("div",
|
|
3182
|
+
e("div", Zo, O((Ie = y(m).sessionUser.value) == null ? void 0 : Ie.displayName), 1)
|
|
3183
3183
|
]),
|
|
3184
3184
|
y(se) ? (i(), h("div", en, [
|
|
3185
3185
|
e("div", tn, [
|
|
@@ -3279,7 +3279,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
3279
3279
|
return i(), h("div", { key: ce }, [
|
|
3280
3280
|
e("div", On, [
|
|
3281
3281
|
e("div", kn, [
|
|
3282
|
-
E(
|
|
3282
|
+
E(Z, {
|
|
3283
3283
|
"model-value": he.skuId,
|
|
3284
3284
|
"onUpdate:modelValue": (Le) => me(ce, Le),
|
|
3285
3285
|
label: "Ingredient",
|
|
@@ -3325,7 +3325,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
3325
3325
|
"prepend-icon": "delete",
|
|
3326
3326
|
size: "md",
|
|
3327
3327
|
class: "mt-6",
|
|
3328
|
-
onClick: (Le) =>
|
|
3328
|
+
onClick: (Le) => X(ce)
|
|
3329
3329
|
}, null, 8, ["onClick"]))
|
|
3330
3330
|
]),
|
|
3331
3331
|
ce < ee.value.length - 1 ? (i(), h("div", Cn)) : V("", !0)
|
|
@@ -3395,7 +3395,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
3395
3395
|
},
|
|
3396
3396
|
emits: ["submitted"],
|
|
3397
3397
|
setup(u, { emit: t }) {
|
|
3398
|
-
const s = u, n = t, m =
|
|
3398
|
+
const s = u, n = t, m = Ze(), c = Xe(), d = re(!1), r = re(!1), { controller: a, state: k, reset: f } = Tt({
|
|
3399
3399
|
currency: Ce(),
|
|
3400
3400
|
adjustments: s.purchaseOrder.priceAdjustments
|
|
3401
3401
|
});
|
|
@@ -3473,7 +3473,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
3473
3473
|
}, 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 = {
|
|
3474
3474
|
class: "p-3 fm-typo-en-body-sm-600",
|
|
3475
3475
|
style: { "min-width": "130px" }
|
|
3476
|
-
}, 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" },
|
|
3476
|
+
}, 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" }, Xn = { class: "p-3 fm-typo-en-body-sm-600" }, Zn = { key: 2 }, ea = /* @__PURE__ */ Ve({
|
|
3477
3477
|
__name: "NetSuiteTransactionChangeLog",
|
|
3478
3478
|
props: {
|
|
3479
3479
|
netsuiteId: {}
|
|
@@ -3585,12 +3585,12 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
3585
3585
|
e("td", Qn, O(I.lineid || ""), 1),
|
|
3586
3586
|
e("td", Yn, O(I._fieldname), 1),
|
|
3587
3587
|
e("td", Jn, O(I.oldvalue || ""), 1),
|
|
3588
|
-
e("td",
|
|
3588
|
+
e("td", Xn, O(I.newvalue || ""), 1)
|
|
3589
3589
|
]))), 128))
|
|
3590
3590
|
])
|
|
3591
3591
|
])
|
|
3592
3592
|
])
|
|
3593
|
-
])) : (i(), h("div",
|
|
3593
|
+
])) : (i(), h("div", Zn, D[7] || (D[7] = [
|
|
3594
3594
|
e("p", null, "No change logs available.", -1)
|
|
3595
3595
|
])))
|
|
3596
3596
|
]),
|
|
@@ -3641,7 +3641,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
3641
3641
|
}, La = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ja = { class: "fm-typo-en-body-lg-600" }, Ua = {
|
|
3642
3642
|
key: 5,
|
|
3643
3643
|
class: "flex flex-col gap-4"
|
|
3644
|
-
}, 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" },
|
|
3644
|
+
}, 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" }, Xa = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Za = ["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 = {
|
|
3645
3645
|
key: 0,
|
|
3646
3646
|
class: "inline-flex items-center gap-1 text-xs font-medium text-gray-500 bg-gray-100 px-2 py-0.5 rounded-full"
|
|
3647
3647
|
}, nl = { class: "py-8" }, al = { class: "flex justify-end gap-4 items-center" }, ll = { class: "fm-typo-en-body-lg-600" }, il = {
|
|
@@ -3696,7 +3696,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
3696
3696
|
},
|
|
3697
3697
|
emits: ["update:show", "submitted"],
|
|
3698
3698
|
setup(u, { emit: t }) {
|
|
3699
|
-
const s = u, n = t, m = bt(), c =
|
|
3699
|
+
const s = u, n = t, m = bt(), c = Xe(), d = Je(), r = ze(), a = gt(), { hasOrderDraftPermission: k } = Ss(), f = bs();
|
|
3700
3700
|
function D(o) {
|
|
3701
3701
|
const l = o.isCustomCost, $ = o.totalCost;
|
|
3702
3702
|
return l != null ? l === !0 : $ != null;
|
|
@@ -3736,7 +3736,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
3736
3736
|
}
|
|
3737
3737
|
}
|
|
3738
3738
|
return l;
|
|
3739
|
-
}), te = re(!1), se = re(""), Q = re(!0), de =
|
|
3739
|
+
}), te = re(!1), se = re(""), Q = re(!0), de = Ze(), ke = wr(de.getWorkflowConfig), ae = ys(), Se = [
|
|
3740
3740
|
z.enum.receiveStock,
|
|
3741
3741
|
z.enum.processRequest,
|
|
3742
3742
|
z.enum.closeRequest
|
|
@@ -3752,11 +3752,11 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
3752
3752
|
if ($.success)
|
|
3753
3753
|
l = $.data;
|
|
3754
3754
|
else {
|
|
3755
|
-
const
|
|
3755
|
+
const Z = /* @__PURE__ */ new Set(["1", "2"]), ge = { line1: "", state: "", city: "", postcode: "", country: "" };
|
|
3756
3756
|
l = {
|
|
3757
3757
|
_id: ((pe = s.purchaseOrder) == null ? void 0 : pe._id) ?? "",
|
|
3758
3758
|
status: ((v = s.purchaseOrder) == null ? void 0 : v.status) ?? be.enum.DRAFT,
|
|
3759
|
-
version:
|
|
3759
|
+
version: Z.has((p = s.purchaseOrder) == null ? void 0 : p.version) ? (S = s.purchaseOrder) == null ? void 0 : S.version : null,
|
|
3760
3760
|
seqNumber: typeof ((U = s.purchaseOrder) == null ? void 0 : U.seqNumber) == "number" ? s.purchaseOrder.seqNumber : 0,
|
|
3761
3761
|
supplier: {
|
|
3762
3762
|
_id: ((_e = (M = s.purchaseOrder) == null ? void 0 : M.supplier) == null ? void 0 : _e._id) ?? "",
|
|
@@ -3770,9 +3770,9 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
3770
3770
|
const C = {
|
|
3771
3771
|
user: R.value,
|
|
3772
3772
|
executedAt: r.locations.computeFirst(
|
|
3773
|
-
(
|
|
3773
|
+
(Z) => {
|
|
3774
3774
|
var ge;
|
|
3775
|
-
return
|
|
3775
|
+
return Z.dbName === ((ge = r._currentLocation) == null ? void 0 : ge.dbName) ? Z : null;
|
|
3776
3776
|
}
|
|
3777
3777
|
),
|
|
3778
3778
|
// Strip purchaseOrder and netSuite from the POR before passing to the Dart
|
|
@@ -3784,8 +3784,8 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
3784
3784
|
// null for an unvalidatable POR yields the same available actions.
|
|
3785
3785
|
purchaseOrderRequest: (() => {
|
|
3786
3786
|
if (s.poRequest == null) return s.poRequest;
|
|
3787
|
-
const
|
|
3788
|
-
return
|
|
3787
|
+
const Z = Vs.safeParse(s.poRequest);
|
|
3788
|
+
return Z.success ? { ...Z.data, purchaseOrder: null, netSuite: null } : null;
|
|
3789
3789
|
})(),
|
|
3790
3790
|
purchaseOrder: l
|
|
3791
3791
|
}, q = d.useOperatePurchaseOrderV2, Y = d.poWorkflowAllowToMarkCompleted, ye = [...Se];
|
|
@@ -3795,15 +3795,15 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
3795
3795
|
o.state === Nt.error ? (console.error("Error fetching workflow config:", o.error), T = St.getAvailableActions({
|
|
3796
3796
|
...C,
|
|
3797
3797
|
orderConfig: St.getDefaultConfig()
|
|
3798
|
-
}).actions.filter((
|
|
3798
|
+
}).actions.filter((Z) => !ye.includes(Z))) : T = St.getAvailableActions({
|
|
3799
3799
|
...C,
|
|
3800
3800
|
orderConfig: o.data
|
|
3801
|
-
}).actions.filter((
|
|
3802
|
-
} catch (
|
|
3803
|
-
console.error("Error getting available actions:",
|
|
3801
|
+
}).actions.filter((Z) => !ye.includes(Z));
|
|
3802
|
+
} catch (Z) {
|
|
3803
|
+
console.error("Error getting available actions:", Z);
|
|
3804
3804
|
}
|
|
3805
|
-
return s.scope === "approval" && (T = T.filter((
|
|
3806
|
-
(
|
|
3805
|
+
return s.scope === "approval" && (T = T.filter((Z) => Z !== z.enum.completeReceive)), k.value || (T = T.filter(
|
|
3806
|
+
(Z) => Z !== z.enum.approveDraft && Z !== z.enum.rejectDraft
|
|
3807
3807
|
)), T;
|
|
3808
3808
|
}), K = zs(s, "show"), ve = H(() => [
|
|
3809
3809
|
{
|
|
@@ -4007,7 +4007,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
4007
4007
|
];
|
|
4008
4008
|
$.reverse().sort((T, pe) => T.createdAt.localeCompare(pe.createdAt));
|
|
4009
4009
|
function C(T) {
|
|
4010
|
-
var p, S, U, M, _e, xe, W,
|
|
4010
|
+
var p, S, U, M, _e, xe, W, Z, ge, Pe, Ie, he;
|
|
4011
4011
|
const pe = l.findIndex((ce) => ce.id === T.fullfillmentId), v = [
|
|
4012
4012
|
(S = (p = l[pe]) == null ? void 0 : p.netSuite) != null && S.id ? {
|
|
4013
4013
|
label: "Fulfillment's ref no. (Netsuite)",
|
|
@@ -4017,7 +4017,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
4017
4017
|
} : null,
|
|
4018
4018
|
(W = T == null ? void 0 : T.netSuite) != null && W.id ? {
|
|
4019
4019
|
label: "Netsuite ref no.",
|
|
4020
|
-
values: [`${((
|
|
4020
|
+
values: [`${((Z = T == null ? void 0 : T.netSuite) == null ? void 0 : Z.refNo) ?? "N/A"} (${((ge = T == null ? void 0 : T.netSuite) == null ? void 0 : ge.id) ?? "-"})`]
|
|
4021
4021
|
} : null,
|
|
4022
4022
|
(Pe = T == null ? void 0 : T.netSuite) != null && Pe.recordType ? {
|
|
4023
4023
|
label: "Netsuite Type",
|
|
@@ -4290,7 +4290,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
4290
4290
|
newAmount: T
|
|
4291
4291
|
}), C;
|
|
4292
4292
|
}, /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
4293
|
-
}),
|
|
4293
|
+
}), X = (o) => {
|
|
4294
4294
|
var $, C;
|
|
4295
4295
|
const l = j.value;
|
|
4296
4296
|
return (($ = s.purchaseOrder) == null ? void 0 : $.version) === Ue.enum[2] ? l.has(o.id) : l.has((C = o.sku) == null ? void 0 : C.code);
|
|
@@ -4361,7 +4361,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
4361
4361
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
4362
4362
|
}, {
|
|
4363
4363
|
default: ue(() => {
|
|
4364
|
-
var W,
|
|
4364
|
+
var W, Z, ge, Pe, Ie, he, ce, Re, Ee, Le;
|
|
4365
4365
|
return [
|
|
4366
4366
|
e("div", na, [
|
|
4367
4367
|
e("div", aa, O(y(b)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
|
|
@@ -4412,7 +4412,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
4412
4412
|
]),
|
|
4413
4413
|
e("div", Oa, O(y(lt)(((W = o.purchaseOrder) == null ? void 0 : W._id) ?? "")), 1)
|
|
4414
4414
|
]),
|
|
4415
|
-
(
|
|
4415
|
+
(Z = o.purchaseOrder) != null && Z.effectiveAt ? (i(), h("div", ka, [
|
|
4416
4416
|
e("div", xa, O(y(b)("inventory.transfer.receiveRequest.details.date")), 1),
|
|
4417
4417
|
e("div", wa, O(y(Pt)(new Date((ge = o.purchaseOrder) == null ? void 0 : ge.effectiveAt))), 1)
|
|
4418
4418
|
])) : V("", !0),
|
|
@@ -4467,10 +4467,10 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
4467
4467
|
"z-index": 51
|
|
4468
4468
|
}, {
|
|
4469
4469
|
content: ue(() => {
|
|
4470
|
-
var W,
|
|
4470
|
+
var W, Z;
|
|
4471
4471
|
return [
|
|
4472
4472
|
e("div", Wa, [
|
|
4473
|
-
(i(!0), h(De, null, Te((
|
|
4473
|
+
(i(!0), h(De, null, Te((Z = (W = o.purchaseOrder) == null ? void 0 : W.netSuite) == null ? void 0 : Z.missingItems, (ge, Pe) => (i(), h("div", {
|
|
4474
4474
|
class: "flex justify-center align-middle",
|
|
4475
4475
|
key: Pe
|
|
4476
4476
|
}, [
|
|
@@ -4495,10 +4495,10 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
4495
4495
|
])
|
|
4496
4496
|
]),
|
|
4497
4497
|
E(ye),
|
|
4498
|
-
(i(!0), h(De, null, Te(N.value, (W,
|
|
4498
|
+
(i(!0), h(De, null, Te(N.value, (W, Z) => {
|
|
4499
4499
|
var ge;
|
|
4500
4500
|
return i(), h("div", {
|
|
4501
|
-
key:
|
|
4501
|
+
key: Z,
|
|
4502
4502
|
class: "flex flex-col"
|
|
4503
4503
|
}, [
|
|
4504
4504
|
e("div", Qa, [
|
|
@@ -4522,7 +4522,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
4522
4522
|
]),
|
|
4523
4523
|
_: 1
|
|
4524
4524
|
})) : V("", !0),
|
|
4525
|
-
|
|
4525
|
+
X(W) ? (i(), fe(pe, {
|
|
4526
4526
|
key: 1,
|
|
4527
4527
|
variant: "rich",
|
|
4528
4528
|
placement: "top",
|
|
@@ -4548,15 +4548,15 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
4548
4548
|
_: 2
|
|
4549
4549
|
}, 1024)) : V("", !0)
|
|
4550
4550
|
]),
|
|
4551
|
-
e("div",
|
|
4551
|
+
e("div", Xa, [
|
|
4552
4552
|
e("span", {
|
|
4553
4553
|
innerHTML: ee(W)
|
|
4554
|
-
}, null, 8,
|
|
4554
|
+
}, null, 8, Za)
|
|
4555
4555
|
])
|
|
4556
4556
|
]),
|
|
4557
4557
|
e("div", el, [
|
|
4558
4558
|
e("div", tl, O(W.code), 1),
|
|
4559
|
-
(ge = W.totalCost) != null && ge.amount || typeof W.sku == "object" && W.sku != null ? (i(), fe(
|
|
4559
|
+
(ge = W.totalCost) != null && ge.amount || typeof W.sku == "object" && W.sku != null ? (i(), fe(Xt, {
|
|
4560
4560
|
key: 0,
|
|
4561
4561
|
"feature-key": "total-cost",
|
|
4562
4562
|
compact: ""
|
|
@@ -4580,7 +4580,7 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
4580
4580
|
])
|
|
4581
4581
|
]);
|
|
4582
4582
|
}), 128)),
|
|
4583
|
-
!y(d).enableTotalCost || +y($e)(y(f).controller.value.getTotalCosts()) ? (i(), fe(
|
|
4583
|
+
!y(d).enableTotalCost || +y($e)(y(f).controller.value.getTotalCosts()) ? (i(), fe(Xt, {
|
|
4584
4584
|
key: 0,
|
|
4585
4585
|
"feature-key": "total-cost"
|
|
4586
4586
|
}, {
|
|
@@ -4615,17 +4615,17 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
4615
4615
|
])
|
|
4616
4616
|
], 64)) : P.value.value === "deliveryHistory" ? (i(), h("div", ul, [
|
|
4617
4617
|
g.value.length ? (i(), h("div", fl, [
|
|
4618
|
-
(i(!0), h(De, null, Te(g.value, (W,
|
|
4618
|
+
(i(!0), h(De, null, Te(g.value, (W, Z) => {
|
|
4619
4619
|
var ge, Pe, Ie, he, ce;
|
|
4620
|
-
return i(), h(De, { key:
|
|
4620
|
+
return i(), h(De, { key: Z }, [
|
|
4621
4621
|
e("div", vl, [
|
|
4622
4622
|
e("div", yl, [
|
|
4623
4623
|
e("div", hl, [
|
|
4624
4624
|
e("div", {
|
|
4625
4625
|
class: We([
|
|
4626
4626
|
{
|
|
4627
|
-
"bg-fm-color-primary":
|
|
4628
|
-
"bg-white":
|
|
4627
|
+
"bg-fm-color-primary": Z !== 0,
|
|
4628
|
+
"bg-white": Z === 0
|
|
4629
4629
|
},
|
|
4630
4630
|
"w-[2px] h-full"
|
|
4631
4631
|
])
|
|
@@ -4643,8 +4643,8 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
4643
4643
|
e("div", {
|
|
4644
4644
|
class: We([
|
|
4645
4645
|
{
|
|
4646
|
-
"bg-fm-color-primary":
|
|
4647
|
-
"bg-white":
|
|
4646
|
+
"bg-fm-color-primary": Z < g.value.length - 1,
|
|
4647
|
+
"bg-white": Z >= g.value.length - 1
|
|
4648
4648
|
},
|
|
4649
4649
|
"w-[2px] h-full"
|
|
4650
4650
|
])
|
|
@@ -4695,8 +4695,8 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
4695
4695
|
e("div", {
|
|
4696
4696
|
class: We([
|
|
4697
4697
|
{
|
|
4698
|
-
"bg-fm-color-primary":
|
|
4699
|
-
"bg-white":
|
|
4698
|
+
"bg-fm-color-primary": Z < g.value.length - 1,
|
|
4699
|
+
"bg-white": Z >= g.value.length - 1
|
|
4700
4700
|
},
|
|
4701
4701
|
"w-[2px] h-full"
|
|
4702
4702
|
])
|
|
@@ -4749,8 +4749,8 @@ const wo = { class: "flex flex-col gap-3" }, $o = { class: "flex flex-col gap-4"
|
|
|
4749
4749
|
]))
|
|
4750
4750
|
])) : P.value.value === "actionLogs" ? (i(), h("div", Pl, [
|
|
4751
4751
|
we.value.length ? (i(), h("div", El, [
|
|
4752
|
-
(i(!0), h(De, null, Te(we.value, (W,
|
|
4753
|
-
key:
|
|
4752
|
+
(i(!0), h(De, null, Te(we.value, (W, Z) => (i(), fe(T, {
|
|
4753
|
+
key: Z,
|
|
4754
4754
|
variant: "outlined",
|
|
4755
4755
|
class: "py-12 px-16"
|
|
4756
4756
|
}, {
|