@feedmepos/mf-inventory-portal 1.6.0-dev.5 → 1.6.0-dev.7
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-N_A_FNAB.js → App-CfPro_9C.js} +4 -4
- package/dist/{ApprovalView-C3DMTm29.js → ApprovalView-DSN8Po9S.js} +7 -7
- package/dist/{BindingsDialog-BtW0pmTX.js → BindingsDialog-Bnuqm3nG.js} +2 -2
- package/dist/{BindingsPicker-Bk0EjxSw.js → BindingsPicker-Dd4REc66.js} +2 -2
- package/dist/{BindingsTable-CeaHn1jg.js → BindingsTable-C-HtmMpH.js} +3 -3
- package/dist/{ClosingDraftView-A3UkCFfZ.js → ClosingDraftView-CTtxiXwh.js} +1589 -1587
- package/dist/{ClosingHistoryView-C2ibgrRJ.js → ClosingHistoryView-cvmoaHAt.js} +5 -5
- package/dist/{ClosingTemplateView-BhLp4v3-.js → ClosingTemplateView-BBxNHF64.js} +649 -633
- package/dist/{DefaultView-Daa7GT9a.js → DefaultView-CsqggsmN.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-DApmJ10O.js → DeliveryOrderPrintPreview-DKEmN4tO.js} +2 -2
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BZEwLoWS.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CLMHR5Fy.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BGLXxy9f.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-24Qj9QM3.js} +2 -2
- package/dist/{FmMultiselectDialog-CcTSua5Z.js → FmMultiselectDialog-C70WEGrm.js} +1 -1
- package/dist/{FmMultiselectDialog-CdqjMwOd.js → FmMultiselectDialog-DXBkITTj.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-LEQb0vey.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B8QH4-MU.js} +5 -5
- package/dist/{ImportView-DqaVApcB.js → ImportView-BNS7vOnx.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-WBndAXdl.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CGoVzY_5.js} +1 -1
- package/dist/{IngredientGroupView-WVc5ldDX.js → IngredientGroupView-Db80oGZN.js} +5 -5
- package/dist/{IngredientsView-p9WlyxE1.js → IngredientsView-q6E2tmIN.js} +15 -15
- package/dist/{IntegrationExplorerView-Bs567ndw.js → IntegrationExplorerView-4pyt5Z5K.js} +5 -5
- package/dist/{IntegrationView-C_3Txr7N.js → IntegrationView-BnZlrLP_.js} +13 -13
- package/dist/{InventoryBindingForm-D-5OAdr7.js → InventoryBindingForm-D-j7xlaq.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BI0F2wm8.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BPMTYItR.js} +5 -5
- package/dist/{InventoryBindingSummary-BiBsGTPe.js → InventoryBindingSummary-BS9rFFE5.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D9mYfoFx.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DvtFGe3C.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DlPExtn6.js → PremiumBadge.vue_vue_type_script_setup_true_lang-54yXqcN9.js} +1 -1
- package/dist/{PublishView-CXeqtOyt.js → PublishView-xnFv__ui.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DBILC2K7.js → PurchaseOrderPrintPreview-CMMBoIGC.js} +2 -2
- package/dist/{ReceiveRequestView-l-RGzVf1.js → ReceiveRequestView-BR2e1bFZ.js} +36 -34
- package/dist/{RecipeView-ChRrKxYJ.js → RecipeView-CHnyBJ0f.js} +17 -17
- package/dist/{SettingsView-Dm3KVNKb.js → SettingsView-Cf6T5YmG.js} +4 -4
- package/dist/{StockView-BYAa_VAn.js → StockView-Cv5M6SI4.js} +600 -574
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bo13JpC0.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BdJfkEW-.js} +1 -1
- package/dist/{SupplierView-DAhHzCfU.js → SupplierView-Bm3pUwbz.js} +12 -12
- package/dist/{SurchargeView-Dwg_GgXO.js → SurchargeView-CvxmTW8L.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bzo6X02f.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Dohtj-Y_.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D7vU7B-g.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DBWoc7Cq.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Fu5bzyCn.js → TransferDetails.vue_vue_type_script_setup_true_lang-BvQoNFyl.js} +155 -155
- package/dist/{TransferTemplateView-D83mALJc.js → TransferTemplateView-DwslyLh7.js} +20 -20
- package/dist/{UnitCostHistoryView-bLuL811q.js → UnitCostHistoryView-DyYMqFXw.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BtfHlHlK.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BiVS-xuv.js} +5 -5
- package/dist/{UnitView-hVmDrHS5.js → UnitView-DWS3MozP.js} +7 -7
- package/dist/{WarehouseView-DTWAM8Ku.js → WarehouseView-BWO6YSsg.js} +5 -5
- package/dist/{WastageTemplateView-Du6TkCs_.js → WastageTemplateView-BtCHJ60X.js} +14 -14
- package/dist/api/netsuite.d.ts +20 -0
- package/dist/{app-CjiuiHDk.js → app-BS8Y8XB1.js} +1322 -1286
- package/dist/app.d.ts +4 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-DnrdINvt.js → closing-template-Dnukh28P.js} +1 -1
- package/dist/{date2-CEDyMoeQ.js → date2-DOWGtN_k.js} +1 -1
- package/dist/{dayjs.min-CIVQErWc.js → dayjs.min-D3dSrhTX.js} +1 -1
- package/dist/{decimal-BAfZRSNA.js → decimal-Bk_LcBc8.js} +2 -2
- package/dist/{defineDeepModel-D1HBffUN.js → defineDeepModel-s_J1LoEM.js} +1 -1
- package/dist/{duplicate-template-BuOORkUm.js → duplicate-template-BTf1Xhvo.js} +1 -1
- package/dist/{feature-CZ0r-3eT.js → feature-DDV6dfk3.js} +2 -2
- package/dist/{format-time-from-id-DKmu5H0z.js → format-time-from-id-Q4wzJvY5.js} +1 -1
- package/dist/{format-unit-display-Dm4efhiE.js → format-unit-display-B8tTISaS.js} +12 -12
- package/dist/{import-export.helper-DaM43GoV.js → import-export.helper-BK3vn2Ss.js} +6 -6
- package/dist/{index-DS1UFJw-.js → index-C74Cmjq-.js} +1 -1
- package/dist/{index-1jHWxZYp.js → index-CY7iF8Ji.js} +1 -1
- package/dist/{index-BY60odIp.js → index-fQ54arbf.js} +3 -3
- package/dist/{inventory-core-dart.default-B-5CRfwa.js → inventory-core-dart.default-Dl166D_R.js} +784 -667
- package/dist/{lz-string-7ChjNJSh.js → lz-string-wIxbEJut.js} +1 -1
- package/dist/{netsuite-ByzZ2V2q.js → netsuite-BeD5zM7r.js} +2 -2
- package/dist/{number-DOp0IIeB.js → number-B5DVgaWM.js} +3 -3
- package/dist/{predefined-templates-Cv7y-PEr.js → predefined-templates-DZNPHq12.js} +1 -1
- package/dist/{purchase-order-template-DMFXbjSU.js → purchase-order-template-aR89SUGU.js} +1 -1
- package/dist/{recalculationUtils-CN5TRdlv.js → recalculationUtils-DjE7iLEk.js} +1 -1
- package/dist/{rules-CwE6-Bgq.js → rules-C_1llraF.js} +2 -2
- package/dist/{stock-BmGq4brU.js → stock-DzPtGhtF.js} +1 -1
- package/dist/stores/integration/netsuite.d.ts +4 -0
- package/dist/{supplier-DTI-AuoG.js → supplier-Bln8QZF9.js} +2 -2
- package/dist/{surcharge-BNZkFyPC.js → surcharge-Czr01eFJ.js} +1 -1
- package/dist/{uom-rules-Cq0RgLTU.js → uom-rules-DGZ_Y5qW.js} +1 -1
- package/dist/{use-ingredient-select-dialog-DeHCSx2W.js → use-ingredient-select-dialog-Bo31tZwb.js} +2 -2
- package/dist/{use-inventory-binding-dialog-gMr04QyN.js → use-inventory-binding-dialog-Cs0ag6eH.js} +2 -2
- package/dist/{use-template-enabled-locations-BFQ-usJX.js → use-template-enabled-locations-Dz7i898A.js} +2 -2
- package/dist/{use-transfer-locations-Cesi5IqS.js → use-transfer-locations-DGKaXjGH.js} +2 -2
- package/dist/{useHrmPermission-v7thUa0X.js → useHrmPermission-YMieTr4z.js} +1 -1
- package/dist/{useNavigationMenu-C83bSqHT.js → useNavigationMenu-CR9b-9EU.js} +2 -2
- package/dist/{useSseClient-BhzCF0dm.js → useSseClient-D5xvMgqf.js} +3 -3
- package/dist/{vue-i18n-BfenxIpE.js → vue-i18n-CPBfs8-Q.js} +321 -321
- package/dist/{xlsx-CGE_W8K4.js → xlsx-9rrE89GF.js} +398 -398
- package/dist/{xlsx.util-C5NsmjEo.js → xlsx.util-Dt_h5XF4.js} +3 -3
- package/package.json +3 -3
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineComponent as qe, ref as J, watch as Ge, nextTick as us, openBlock as a, createBlock as pe, Teleport as ds, createElementBlock as h, withModifiers as ms, createElementVNode as e, normalizeClass as Ue, toDisplayString as x, createCommentVNode as T, unref as _, withDirectives as ps, vModelText as fs, toRaw as vs, shallowRef as Vt, onUnmounted as ys, triggerRef as bs, computed as M, readonly as hs, h as Y, reactive as gs, onMounted as Wt, resolveComponent as
|
|
2
|
-
import { f as ks, h as Os, r as ws, s as Qt } from "./predefined-templates-
|
|
3
|
-
import { f as st, p as $s } from "./format-time-from-id-
|
|
1
|
+
import { defineComponent as qe, ref as J, watch as Ge, nextTick as us, openBlock as a, createBlock as pe, Teleport as ds, createElementBlock as h, withModifiers as ms, createElementVNode as e, normalizeClass as Ue, toDisplayString as x, createCommentVNode as T, unref as _, withDirectives as ps, vModelText as fs, toRaw as vs, shallowRef as Vt, onUnmounted as ys, triggerRef as bs, computed as M, readonly as hs, h as Y, reactive as gs, onMounted as Wt, resolveComponent as se, withCtx as ie, createVNode as q, Fragment as $e, renderList as Ee, createTextVNode as ze, renderSlot as _s, isRef as Ss, resolveDynamicComponent as xs } from "vue";
|
|
2
|
+
import { f as ks, h as Os, r as ws, s as Qt } from "./predefined-templates-DZNPHq12.js";
|
|
3
|
+
import { f as st, p as $s } from "./format-time-from-id-Q4wzJvY5.js";
|
|
4
4
|
import { c as Lt } from "./component-kqxARxvM.js";
|
|
5
5
|
import { D as Pe, R as he } from "./row-action.enum-DQ9bJ_uv.js";
|
|
6
|
-
import { G as Je, m as Cs, u as Me, Y as E, Z as ut, Q as fe, a as kt, _ as Ut, $ as Ds, a0 as Rs, E as Ns, c as Yt, s as Ot, q as De, L as Mt, a1 as Jt, r as et, C as Fe, w as Ae, B as at } from "./app-
|
|
7
|
-
import { h as wt, t as As, d as Ts, a as tt } from "./date2-
|
|
8
|
-
import { j as Ps, c as Is, a as ge, t as Ke, d as ot } from "./number-
|
|
9
|
-
import { F as Xe, c as Fs, a as vt } from "./inventory-core-dart.default-
|
|
10
|
-
import { L as Es } from "./lz-string-
|
|
6
|
+
import { G as Je, m as Cs, u as Me, Y as E, Z as ut, Q as fe, a as kt, _ as Ut, $ as Ds, a0 as Rs, E as Ns, c as Yt, s as Ot, q as De, L as Mt, a1 as Jt, r as et, C as Fe, w as Ae, B as at } from "./app-BS8Y8XB1.js";
|
|
7
|
+
import { h as wt, t as As, d as Ts, a as tt } from "./date2-DOWGtN_k.js";
|
|
8
|
+
import { j as Ps, c as Is, a as ge, t as Ke, d as ot } from "./number-B5DVgaWM.js";
|
|
9
|
+
import { F as Xe, c as Fs, a as vt } from "./inventory-core-dart.default-Dl166D_R.js";
|
|
10
|
+
import { L as Es } from "./lz-string-wIxbEJut.js";
|
|
11
11
|
import { useI18n as dt, useCoreStore as mt } from "@feedmepos/mf-common";
|
|
12
|
-
import { u as pt, a as $t, S as Le } from "./netsuite-
|
|
12
|
+
import { u as pt, a as $t, S as Le } from "./netsuite-BeD5zM7r.js";
|
|
13
13
|
import { useDialog as ft, useSnackbar as Qe, components as lt, FmButtonVariant as Ve, useProxiedModel as qs } from "@feedmepos/ui-library";
|
|
14
14
|
import { F as We } from "./FmAdminBadge-DjnBAgyv.js";
|
|
15
|
-
import { u as He } from "./feature-
|
|
15
|
+
import { u as He } from "./feature-DDV6dfk3.js";
|
|
16
16
|
import { _ as Vs } from "./empty-placeholder-B0QU467o.js";
|
|
17
|
-
import { a as Ls, b as Us, f as it } from "./format-unit-display-
|
|
18
|
-
import { u as Ye, _ as Ms } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { _ as js, a as Bs, b as zs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
17
|
+
import { a as Ls, b as Us, f as it } from "./format-unit-display-B8tTISaS.js";
|
|
18
|
+
import { u as Ye, _ as Ms } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-Dohtj-Y_.js";
|
|
19
|
+
import { _ as js, a as Bs, b as zs } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-B8QH4-MU.js";
|
|
20
20
|
import { u as Ks, R as jt } from "./usePromise-CbVUCxhj.js";
|
|
21
|
-
import { d as Hs } from "./index-
|
|
22
|
-
import { i as Gs } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
21
|
+
import { d as Hs } from "./index-fQ54arbf.js";
|
|
22
|
+
import { i as Gs } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-24Qj9QM3.js";
|
|
23
23
|
import { F as Bt } from "./form-mode.enum-BKiNVH6A.js";
|
|
24
|
-
import { u as Zt } from "./supplier-
|
|
25
|
-
import { u as Ws } from "./surcharge-
|
|
26
|
-
import { F as Qs } from "./decimal-
|
|
27
|
-
import { d as Xt } from "./defineDeepModel-
|
|
28
|
-
import { u as Ys } from "./vue-i18n-
|
|
29
|
-
import { u as Js } from "./useHrmPermission-
|
|
24
|
+
import { u as Zt } from "./supplier-Bln8QZF9.js";
|
|
25
|
+
import { u as Ws } from "./surcharge-Czr01eFJ.js";
|
|
26
|
+
import { F as Qs } from "./decimal-Bk_LcBc8.js";
|
|
27
|
+
import { d as Xt } from "./defineDeepModel-s_J1LoEM.js";
|
|
28
|
+
import { u as Ys } from "./vue-i18n-CPBfs8-Q.js";
|
|
29
|
+
import { u as Js } from "./useHrmPermission-YMieTr4z.js";
|
|
30
30
|
function es(b, s) {
|
|
31
31
|
return s.reduce(
|
|
32
32
|
(i, p) => {
|
|
@@ -58,29 +58,29 @@ function Zs(b) {
|
|
|
58
58
|
city: s.supplier.address.city,
|
|
59
59
|
state: s.supplier.address.state,
|
|
60
60
|
country: s.supplier.address.country
|
|
61
|
-
}, C = s.items.map((
|
|
62
|
-
const { sku: j, measurement: D } =
|
|
63
|
-
es(
|
|
61
|
+
}, C = s.items.map((re) => {
|
|
62
|
+
const { sku: j, measurement: D } = re, ne = ge(
|
|
63
|
+
es(re.sku, s.deliveryOrder || []),
|
|
64
64
|
!1
|
|
65
65
|
);
|
|
66
66
|
return {
|
|
67
67
|
code: j.code,
|
|
68
68
|
description: j.name,
|
|
69
|
-
quantity: ge(
|
|
69
|
+
quantity: ge(re.quantity, !1),
|
|
70
70
|
unit: (D == null ? void 0 : D.abbrev) || j.unit.abbrev,
|
|
71
71
|
received: ne,
|
|
72
|
-
unitCost:
|
|
73
|
-
value:
|
|
72
|
+
unitCost: re.totalCost ? `${re.totalCost.currency} ${Xe.toFormatString({
|
|
73
|
+
value: re.quantity.amount === 0 ? Xe.fromNumber(0) : Xe.divide([re.totalCost, re.quantity])
|
|
74
74
|
})}` : void 0,
|
|
75
|
-
cost:
|
|
76
|
-
value:
|
|
75
|
+
cost: re.totalCost ? `${re.totalCost.currency} ${Xe.toFormatString({
|
|
76
|
+
value: re.totalCost
|
|
77
77
|
})}` : void 0
|
|
78
78
|
};
|
|
79
|
-
}), R = s.deliveryOrder.map((
|
|
80
|
-
createdAt: wt(new Date(
|
|
81
|
-
ref:
|
|
82
|
-
remark:
|
|
83
|
-
items:
|
|
79
|
+
}), R = s.deliveryOrder.map((re) => ({
|
|
80
|
+
createdAt: wt(new Date(re.createdAt)),
|
|
81
|
+
ref: re.deliveryOrderNumber,
|
|
82
|
+
remark: re.remark || "",
|
|
83
|
+
items: re.received.map((j) => {
|
|
84
84
|
var D;
|
|
85
85
|
return {
|
|
86
86
|
code: j.sku.code,
|
|
@@ -92,8 +92,8 @@ function Zs(b) {
|
|
|
92
92
|
}));
|
|
93
93
|
let w = Je.Enum.purchaseOrder, U = "Inventory Receive Note";
|
|
94
94
|
if (s.supplier.internal ? (U = "Inventory Transfer Note", w = Je.Enum.transferOrder) : (U = "Purchase Order", w = Je.Enum.purchaseOrder), (ue = u == null ? void 0 : u.from) != null && ue.dbName) {
|
|
95
|
-
const
|
|
96
|
-
o.dbName ===
|
|
95
|
+
const re = u.from.dbName;
|
|
96
|
+
o.dbName === re || (U = "Inventory Receive Note", w = Je.Enum.goodsReceivedNote);
|
|
97
97
|
}
|
|
98
98
|
const Z = {
|
|
99
99
|
title: U,
|
|
@@ -580,7 +580,7 @@ function zl(b, s) {
|
|
|
580
580
|
end: Ts(l).toISOString()
|
|
581
581
|
};
|
|
582
582
|
}), Z = J(new Array()), z = Ns(), ue = J(null);
|
|
583
|
-
async function
|
|
583
|
+
async function re(f) {
|
|
584
584
|
function l(L) {
|
|
585
585
|
const H = {
|
|
586
586
|
mode: Bt.CREATE,
|
|
@@ -629,8 +629,8 @@ function zl(b, s) {
|
|
|
629
629
|
if (!v.currentBusiness.value) return;
|
|
630
630
|
const l = i.currentLocation;
|
|
631
631
|
if (l.type === "restaurant") {
|
|
632
|
-
const
|
|
633
|
-
|
|
632
|
+
const X = i.locationRestaurantFromCore(l.doc._id);
|
|
633
|
+
X !== null && (l.doc = X);
|
|
634
634
|
}
|
|
635
635
|
const k = ts({
|
|
636
636
|
po: f,
|
|
@@ -646,8 +646,8 @@ function zl(b, s) {
|
|
|
646
646
|
business: v.currentBusiness.value,
|
|
647
647
|
modelValue: L,
|
|
648
648
|
show: !0,
|
|
649
|
-
"onUpdate:show"(
|
|
650
|
-
bt.value.show =
|
|
649
|
+
"onUpdate:show"(X) {
|
|
650
|
+
bt.value.show = X;
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
653
|
bt.value = le;
|
|
@@ -656,15 +656,15 @@ function zl(b, s) {
|
|
|
656
656
|
R.value = [], w.value = [], d.value = !0;
|
|
657
657
|
try {
|
|
658
658
|
const f = await $.getPurchaseOrders(P.value);
|
|
659
|
-
R.value = f.sort((
|
|
660
|
-
const l = f.flatMap((
|
|
659
|
+
R.value = f.sort((X, xe) => xe._id.localeCompare(X._id));
|
|
660
|
+
const l = f.flatMap((X) => X.shipmentIds || []).filter(Boolean), k = l.length > 0 ? await C.getShipmentsByIds(l) : [];
|
|
661
661
|
w.value = k;
|
|
662
662
|
const L = await z.readCurrentLocationLastClosing(!0), H = L == null ? void 0 : L._id;
|
|
663
663
|
H && (ue.value = $s(H)), await p.awaitFeatureLoaded(() => p.mustUsePoTemplate) && await c.fetchTemplates();
|
|
664
|
-
const le = R.value.map((
|
|
664
|
+
const le = R.value.map((X) => {
|
|
665
665
|
var xe;
|
|
666
|
-
return ((xe =
|
|
667
|
-
}).filter((
|
|
666
|
+
return ((xe = X.request) == null ? void 0 : xe.id) ?? "";
|
|
667
|
+
}).filter((X) => X);
|
|
668
668
|
Z.value = await $.readRequestByIds(le);
|
|
669
669
|
} catch {
|
|
670
670
|
S.open({
|
|
@@ -719,7 +719,7 @@ function zl(b, s) {
|
|
|
719
719
|
async function Ce(f, l) {
|
|
720
720
|
const k = Math.random().toString();
|
|
721
721
|
ce.value = k, l ?? (l = Z.value.computeFirst(
|
|
722
|
-
(
|
|
722
|
+
(X) => X.purchaseOrderId === f._id ? X : null
|
|
723
723
|
) ?? void 0);
|
|
724
724
|
const L = b === "receive/request" ? i.currentLocation : l == null ? void 0 : l.to, H = b === "approval", le = {
|
|
725
725
|
poRequest: l,
|
|
@@ -732,8 +732,8 @@ function zl(b, s) {
|
|
|
732
732
|
show: !0,
|
|
733
733
|
canResubmit: !1,
|
|
734
734
|
canApprove: H,
|
|
735
|
-
"onUpdate:show"(
|
|
736
|
-
K.value.show =
|
|
735
|
+
"onUpdate:show"(X) {
|
|
736
|
+
K.value.show = X;
|
|
737
737
|
},
|
|
738
738
|
scope: b,
|
|
739
739
|
receivedMap: ct(f) ?? {},
|
|
@@ -775,12 +775,12 @@ function zl(b, s) {
|
|
|
775
775
|
message: k,
|
|
776
776
|
type: "success"
|
|
777
777
|
});
|
|
778
|
-
} catch (
|
|
778
|
+
} catch (X) {
|
|
779
779
|
S.open({
|
|
780
780
|
title: "Something went wrong",
|
|
781
|
-
message: "Please try again.",
|
|
781
|
+
message: X instanceof Error ? X.message : "Please try again.",
|
|
782
782
|
type: "error"
|
|
783
|
-
}), console.error("Error when submitting PO operation", l, f,
|
|
783
|
+
}), console.error("Error when submitting PO operation", l, f, X);
|
|
784
784
|
} finally {
|
|
785
785
|
d.value = !1, N();
|
|
786
786
|
}
|
|
@@ -818,8 +818,8 @@ function zl(b, s) {
|
|
|
818
818
|
});
|
|
819
819
|
return;
|
|
820
820
|
}
|
|
821
|
-
const
|
|
822
|
-
xe.init(f), (l === E.enum.confirmDraft || l === E.enum.submitRequest) &&
|
|
821
|
+
const X = [], xe = ns();
|
|
822
|
+
xe.init(f), (l === E.enum.confirmDraft || l === E.enum.submitRequest) && X.push({
|
|
823
823
|
action: "confirmDraft",
|
|
824
824
|
payload: xe.controller.value.toConfirmDraftData(De())
|
|
825
825
|
}), o.open({
|
|
@@ -827,7 +827,7 @@ function zl(b, s) {
|
|
|
827
827
|
message: le.message,
|
|
828
828
|
primaryActions: le.primaryActions
|
|
829
829
|
}).onPrimary(() => {
|
|
830
|
-
_e(f, l, H, k,
|
|
830
|
+
_e(f, l, H, k, X);
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
833
|
async function ve() {
|
|
@@ -859,7 +859,7 @@ function zl(b, s) {
|
|
|
859
859
|
fetchData: N,
|
|
860
860
|
loading: d,
|
|
861
861
|
transferDialogProps: Ze,
|
|
862
|
-
promptCreateTransferDialog:
|
|
862
|
+
promptCreateTransferDialog: re,
|
|
863
863
|
promptUpdateTransferDialog: j,
|
|
864
864
|
transferDetailsProps: K,
|
|
865
865
|
promptShowTransferDetails: Ce,
|
|
@@ -945,8 +945,8 @@ function cr(b) {
|
|
|
945
945
|
deliveryOrders: R
|
|
946
946
|
}, z = new URL(window.location.href), ue = p && (s.deliveryFullfillment || []).length > 0 ? "receive-request/delivery-print-preview" : "receive-request/print-preview";
|
|
947
947
|
z.pathname = z.hostname.includes("portal.feedme") ? `/inventory/${ue}` : `/${ue}`;
|
|
948
|
-
const
|
|
949
|
-
z.searchParams.append("data",
|
|
948
|
+
const re = Es.compressToEncodedURIComponent(JSON.stringify(Z));
|
|
949
|
+
z.searchParams.append("data", re), window.open(z.href, "_blank", "noreferrer");
|
|
950
950
|
}
|
|
951
951
|
const je = {
|
|
952
952
|
submitRequest: {
|
|
@@ -1121,7 +1121,7 @@ function Kl(b, s, o) {
|
|
|
1121
1121
|
};
|
|
1122
1122
|
if (D === he.PrintCustom) {
|
|
1123
1123
|
const k = ts(l);
|
|
1124
|
-
k && (ue.value = k.html,
|
|
1124
|
+
k && (ue.value = k.html, re.value = k.templateName, j.value = k.isDefault, z.value = !0);
|
|
1125
1125
|
} else
|
|
1126
1126
|
cr(l);
|
|
1127
1127
|
return;
|
|
@@ -1475,12 +1475,12 @@ function Kl(b, s, o) {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
return D;
|
|
1477
1477
|
}
|
|
1478
|
-
const Z = M(() => b === "receive/request" ? U() : P()), z = J(!1), ue = J(""),
|
|
1478
|
+
const Z = M(() => b === "receive/request" ? U() : P()), z = J(!1), ue = J(""), re = J(""), j = J(!1);
|
|
1479
1479
|
return {
|
|
1480
1480
|
columnDefs: Z,
|
|
1481
1481
|
showCustomPrintDialog: z,
|
|
1482
1482
|
customPrintHtml: ue,
|
|
1483
|
-
customPrintTemplateName:
|
|
1483
|
+
customPrintTemplateName: re,
|
|
1484
1484
|
customPrintIsDefault: j
|
|
1485
1485
|
};
|
|
1486
1486
|
}
|
|
@@ -1507,7 +1507,7 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1507
1507
|
});
|
|
1508
1508
|
const v = M(() => i.items.length <= 10);
|
|
1509
1509
|
return (t, c) => {
|
|
1510
|
-
const d =
|
|
1510
|
+
const d = se("FmTable"), S = se("FmButton"), $ = se("FmForm");
|
|
1511
1511
|
return a(), pe($, {
|
|
1512
1512
|
ref_key: "formRef",
|
|
1513
1513
|
ref: p,
|
|
@@ -1748,7 +1748,7 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1748
1748
|
});
|
|
1749
1749
|
}
|
|
1750
1750
|
return (t, c) => {
|
|
1751
|
-
const d =
|
|
1751
|
+
const d = se("FmButton");
|
|
1752
1752
|
return a(), h("div", fr, [
|
|
1753
1753
|
q(d, {
|
|
1754
1754
|
"prepend-icon": "sync",
|
|
@@ -1815,7 +1815,7 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1815
1815
|
}).join(", ") : "N/A";
|
|
1816
1816
|
});
|
|
1817
1817
|
return (c, d) => {
|
|
1818
|
-
var S, $, C, R, w, U, P, Z, z, ue,
|
|
1818
|
+
var S, $, C, R, w, U, P, Z, z, ue, re, j, D, ne, I, N;
|
|
1819
1819
|
return _(o).isEnabled ? (a(), h("div", yr, [
|
|
1820
1820
|
e("div", br, [
|
|
1821
1821
|
d[0] || (d[0] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, "NetSuite subsidiary", -1)),
|
|
@@ -1830,7 +1830,7 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1830
1830
|
!c.isTransferBetweenOutlets && p.value || c.scope === _(xt).APPROVAL ? (a(), h("div", Or, [
|
|
1831
1831
|
e("div", wr, " (Request) NetSuite " + x(c.transferType === _(et).enum.purchase ? "Purchase Order" : "Transfer Order") + " (ID) ", 1),
|
|
1832
1832
|
e("div", $r, [
|
|
1833
|
-
(j = (
|
|
1833
|
+
(j = (re = p.value) == null ? void 0 : re.netSuite) != null && j.id ? (a(), h("span", Cr, x((ne = (D = p.value) == null ? void 0 : D.netSuite) == null ? void 0 : ne.refNo) + " (" + x((N = (I = p.value) == null ? void 0 : I.netSuite) == null ? void 0 : N.id) + ") ", 1)) : (a(), h("span", Dr, "N/A"))
|
|
1834
1834
|
])
|
|
1835
1835
|
])) : T("", !0),
|
|
1836
1836
|
v.value ? (a(), h("div", Rr, [
|
|
@@ -1875,7 +1875,7 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1875
1875
|
), await new Promise((S) => setTimeout(S, 800)), window.open(d, "_blank");
|
|
1876
1876
|
}
|
|
1877
1877
|
return (p, u) => {
|
|
1878
|
-
const v =
|
|
1878
|
+
const v = se("FmButton");
|
|
1879
1879
|
return a(), h("div", Ir, [
|
|
1880
1880
|
q(v, {
|
|
1881
1881
|
"prepend-icon": "history",
|
|
@@ -1960,7 +1960,7 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
1960
1960
|
});
|
|
1961
1961
|
}
|
|
1962
1962
|
return (U, P) => {
|
|
1963
|
-
const Z =
|
|
1963
|
+
const Z = se("FmButton"), z = se("FmLabel"), ue = se("FmCircularProgress"), re = se("FmIcon"), j = se("FmDialog");
|
|
1964
1964
|
return a(), h("div", Er, [
|
|
1965
1965
|
q(j, {
|
|
1966
1966
|
modelValue: i.value,
|
|
@@ -2007,7 +2007,7 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2007
2007
|
])) : T("", !0),
|
|
2008
2008
|
!t.value && S.value.length > 0 ? (a(), h("div", zr, [
|
|
2009
2009
|
e("h3", Kr, [
|
|
2010
|
-
q(
|
|
2010
|
+
q(re, {
|
|
2011
2011
|
name: "error",
|
|
2012
2012
|
color: "#ff9500",
|
|
2013
2013
|
size: "sm"
|
|
@@ -2088,7 +2088,7 @@ const ur = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg
|
|
|
2088
2088
|
const s = b, o = Hs(), i = M(() => o.isNetSuiteEnabled);
|
|
2089
2089
|
return (p, u) => {
|
|
2090
2090
|
var t, c;
|
|
2091
|
-
const v =
|
|
2091
|
+
const v = se("FmMenuDivider");
|
|
2092
2092
|
return i.value ? (a(), h("div", no, [
|
|
2093
2093
|
e("div", ao, [
|
|
2094
2094
|
u[0] || (u[0] = e("span", { class: "flex-1 fm-typo-en-body-lg-600" }, "NetSuite Info", -1)),
|
|
@@ -2270,7 +2270,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2270
2270
|
})
|
|
2271
2271
|
)
|
|
2272
2272
|
);
|
|
2273
|
-
function
|
|
2273
|
+
function re(f) {
|
|
2274
2274
|
var k;
|
|
2275
2275
|
const l = !w.value[f];
|
|
2276
2276
|
if (w.value[f] = l, l) {
|
|
@@ -2298,16 +2298,16 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2298
2298
|
d.received[U.value + f].sku = k;
|
|
2299
2299
|
}
|
|
2300
2300
|
function W(f, l) {
|
|
2301
|
-
var le,
|
|
2301
|
+
var le, X;
|
|
2302
2302
|
const k = (le = t.receivedInfoMap) == null ? void 0 : le[l.sku._id], L = k ? `${o("inventory.transfer.receiveRequest.details.received")} ${Ae.toFormatString({ value: k.received })} / ${it(l.quantity, l.sku.unit, l.measurement)}` : void 0;
|
|
2303
|
-
return (((
|
|
2303
|
+
return (((X = z.value[f]) == null ? void 0 : X.value) ?? 0) > 0 ? L : L ? `${L} · ${nt}` : nt;
|
|
2304
2304
|
}
|
|
2305
2305
|
function K(f, l) {
|
|
2306
2306
|
var le;
|
|
2307
2307
|
const L = (((le = ce.value[l]) == null ? void 0 : le.value) ?? 0) <= 0;
|
|
2308
2308
|
let H;
|
|
2309
2309
|
if (f.skuId && Z.value[f.skuId]) {
|
|
2310
|
-
const
|
|
2310
|
+
const X = Z.value[f.skuId], xe = Ae.toFormatString({ value: X.received });
|
|
2311
2311
|
H = `${o("inventory.transfer.receiveRequest.details.received")} ${xe}`;
|
|
2312
2312
|
}
|
|
2313
2313
|
return L ? H ? `${H} · ${nt}` : nt : H;
|
|
@@ -2373,9 +2373,9 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2373
2373
|
for (let n = 0; n < l.length; n++)
|
|
2374
2374
|
(ae = L[l[n].sku._id]) != null && ae.cost && (le[n] = !0);
|
|
2375
2375
|
w.value = le, j.value = [];
|
|
2376
|
-
const
|
|
2376
|
+
const X = P.value;
|
|
2377
2377
|
for (const n of H) {
|
|
2378
|
-
const O =
|
|
2378
|
+
const O = X.find((F) => {
|
|
2379
2379
|
var G;
|
|
2380
2380
|
return F.sku._id === ((G = n.sku) == null ? void 0 : G._id);
|
|
2381
2381
|
});
|
|
@@ -2387,12 +2387,12 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2387
2387
|
historyItem: O
|
|
2388
2388
|
}), d.received.push({ ...n });
|
|
2389
2389
|
}
|
|
2390
|
-
if (
|
|
2390
|
+
if (X.length) {
|
|
2391
2391
|
const n = new Set(H.map((O) => {
|
|
2392
2392
|
var F;
|
|
2393
2393
|
return (F = O.sku) == null ? void 0 : F._id;
|
|
2394
2394
|
}));
|
|
2395
|
-
for (const O of
|
|
2395
|
+
for (const O of X)
|
|
2396
2396
|
n.has(O.sku._id) || (j.value.push({
|
|
2397
2397
|
skuId: O.sku._id,
|
|
2398
2398
|
costEnabled: !1,
|
|
@@ -2429,7 +2429,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2429
2429
|
});
|
|
2430
2430
|
}
|
|
2431
2431
|
return (f, l) => {
|
|
2432
|
-
const k =
|
|
2432
|
+
const k = se("FmButton"), L = se("FmStepperField"), H = se("FmSwitch"), le = se("FmSelect"), X = se("FmTextField"), xe = se("FmDialog");
|
|
2433
2433
|
return a(), pe(xe, {
|
|
2434
2434
|
modelValue: u.value,
|
|
2435
2435
|
"onUpdate:modelValue": l[1] || (l[1] = (ae) => u.value = ae),
|
|
@@ -2486,7 +2486,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2486
2486
|
_(C) ? (a(), h("div", xo, [
|
|
2487
2487
|
q(H, {
|
|
2488
2488
|
"model-value": w.value[r],
|
|
2489
|
-
"onUpdate:modelValue": (O) =>
|
|
2489
|
+
"onUpdate:modelValue": (O) => re(r),
|
|
2490
2490
|
size: "sm"
|
|
2491
2491
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
2492
2492
|
l[3] || (l[3] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Override cost ", -1))
|
|
@@ -2581,7 +2581,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2581
2581
|
e("div", To, [
|
|
2582
2582
|
l[7] || (l[7] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Delivery order no.", -1)),
|
|
2583
2583
|
e("div", Po, [
|
|
2584
|
-
q(
|
|
2584
|
+
q(X, {
|
|
2585
2585
|
modelValue: _(d).deliveryOrderNumber,
|
|
2586
2586
|
"onUpdate:modelValue": l[0] || (l[0] = (ae) => _(d).deliveryOrderNumber = ae),
|
|
2587
2587
|
size: "md",
|
|
@@ -2660,7 +2660,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2660
2660
|
}
|
|
2661
2661
|
}), c = Ye(), d = ft(), S = He(), $ = kt(), C = ((de = u.purchaseOrder) == null ? void 0 : de.supplier.internal) != null, R = C && S.enablePOSTransferRequireFulfillment, w = S.enablePortalDeliveryOrderWrite && (u.purchaseOrder.status === fe.Enum.RECEIVING || u.purchaseOrder.status === fe.Enum.COMPLETE) && (C ? !R : !0), U = S.enablePurchaseOrderReceiveWithCustomCost, P = S.enableBackdateReceive, Z = J({}), z = M(
|
|
2662
2662
|
() => u.purchaseOrder.itemsAtSubmission ?? u.purchaseOrder.items
|
|
2663
|
-
), ue = M(() => is(u.purchaseOrder)),
|
|
2663
|
+
), ue = M(() => is(u.purchaseOrder)), re = M(
|
|
2664
2664
|
() => cs(u.purchaseOrder, ue.value)
|
|
2665
2665
|
), j = M(
|
|
2666
2666
|
() => {
|
|
@@ -2771,7 +2771,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2771
2771
|
measurement: null
|
|
2772
2772
|
});
|
|
2773
2773
|
}
|
|
2774
|
-
function
|
|
2774
|
+
function X(y) {
|
|
2775
2775
|
k.value.splice(y, 1), t.received.splice(H.value + y, 1);
|
|
2776
2776
|
}
|
|
2777
2777
|
function xe(y, m) {
|
|
@@ -2781,8 +2781,8 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2781
2781
|
}
|
|
2782
2782
|
function ae(y) {
|
|
2783
2783
|
const m = y.stableKey;
|
|
2784
|
-
if (m &&
|
|
2785
|
-
const g =
|
|
2784
|
+
if (m && re.value[m]) {
|
|
2785
|
+
const g = re.value[m], V = Ae.toFormatString({ value: g.received });
|
|
2786
2786
|
return `${o("inventory.transfer.receiveRequest.details.received")} ${V}`;
|
|
2787
2787
|
}
|
|
2788
2788
|
}
|
|
@@ -2871,7 +2871,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2871
2871
|
}
|
|
2872
2872
|
const m = z.value;
|
|
2873
2873
|
for (let B = 0; B < m.length; B++) {
|
|
2874
|
-
const be = m[B],
|
|
2874
|
+
const be = m[B], ee = (((V = u.purchaseOrder) == null ? void 0 : V.version) ?? Fe.enum[1]) === Fe.enum[2] ? be.id : be.sku._id, ye = u.receivedMap[ee], Oe = +ge(be.quantity), Re = ye ? +ge(ye.received) : 0;
|
|
2875
2875
|
ve.value[B].value = Math.max(0, Oe - Re);
|
|
2876
2876
|
}
|
|
2877
2877
|
const g = ue.value;
|
|
@@ -2892,16 +2892,16 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2892
2892
|
});
|
|
2893
2893
|
}
|
|
2894
2894
|
for (let B = 0; B < g.length; B++) {
|
|
2895
|
-
const be = D(g[B]), we = be ?
|
|
2895
|
+
const be = D(g[B]), we = be ? re.value[be] : void 0;
|
|
2896
2896
|
if (we) {
|
|
2897
|
-
const
|
|
2898
|
-
r.value[B].value = Math.max(0, we.remaining.amount /
|
|
2897
|
+
const ee = Math.pow(10, we.remaining.precision ?? 2);
|
|
2898
|
+
r.value[B].value = Math.max(0, we.remaining.amount / ee);
|
|
2899
2899
|
}
|
|
2900
2900
|
}
|
|
2901
2901
|
}
|
|
2902
2902
|
}
|
|
2903
2903
|
), (y, m) => {
|
|
2904
|
-
const g =
|
|
2904
|
+
const g = se("FmButton"), V = se("FmDatePicker"), B = se("FmTimePicker"), be = se("FmIcon"), we = se("FmStepperField"), ee = se("FmSwitch"), ye = se("FmSelect"), Oe = se("FmTextField"), Re = se("FmDialog");
|
|
2905
2905
|
return a(), pe(Re, {
|
|
2906
2906
|
modelValue: i.value,
|
|
2907
2907
|
"onUpdate:modelValue": m[4] || (m[4] = (Ne) => i.value = Ne),
|
|
@@ -2979,9 +2979,9 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2979
2979
|
])) : T("", !0),
|
|
2980
2980
|
e("div", Jo, [
|
|
2981
2981
|
m[8] || (m[8] = e("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Items going to receive ", -1)),
|
|
2982
|
-
(a(!0), h($e, null, Ee(z.value, (me,
|
|
2982
|
+
(a(!0), h($e, null, Ee(z.value, (me, te) => {
|
|
2983
2983
|
var ke;
|
|
2984
|
-
return a(), h("div", { key:
|
|
2984
|
+
return a(), h("div", { key: te }, [
|
|
2985
2985
|
e("div", Zo, [
|
|
2986
2986
|
e("div", Xo, [
|
|
2987
2987
|
e("span", en, x(me.sku.name), 1),
|
|
@@ -2990,24 +2990,24 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
2990
2990
|
e("div", sn, [
|
|
2991
2991
|
q(we, {
|
|
2992
2992
|
label: "Receive Quantity",
|
|
2993
|
-
modelValue: ve.value[
|
|
2994
|
-
"onUpdate:modelValue": (Te) => ve.value[
|
|
2993
|
+
modelValue: ve.value[te].value,
|
|
2994
|
+
"onUpdate:modelValue": (Te) => ve.value[te].value = Te,
|
|
2995
2995
|
"helper-text": _e(me),
|
|
2996
2996
|
"append-text": ((ke = me.measurement) == null ? void 0 : ke.abbrev) ?? me.sku.unit.abbrev
|
|
2997
2997
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "helper-text", "append-text"]),
|
|
2998
|
-
ve.value[
|
|
2998
|
+
ve.value[te].value <= 0 ? (a(), h("div", rn, x(Gt))) : T("", !0),
|
|
2999
2999
|
_(U) ? (a(), h("div", on, [
|
|
3000
|
-
q(
|
|
3001
|
-
"model-value": Z.value[
|
|
3002
|
-
"onUpdate:modelValue": (Te) => f(
|
|
3000
|
+
q(ee, {
|
|
3001
|
+
"model-value": Z.value[te],
|
|
3002
|
+
"onUpdate:modelValue": (Te) => f(te),
|
|
3003
3003
|
size: "sm"
|
|
3004
3004
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
3005
3005
|
m[7] || (m[7] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Override cost ", -1))
|
|
3006
3006
|
])) : T("", !0),
|
|
3007
|
-
_(U) && Z.value[
|
|
3007
|
+
_(U) && Z.value[te] ? (a(), pe(we, {
|
|
3008
3008
|
key: 2,
|
|
3009
|
-
modelValue: l.value[
|
|
3010
|
-
"onUpdate:modelValue": (Te) => l.value[
|
|
3009
|
+
modelValue: l.value[te].value,
|
|
3010
|
+
"onUpdate:modelValue": (Te) => l.value[te].value = Te,
|
|
3011
3011
|
label: "Total Cost",
|
|
3012
3012
|
step: 1e-4,
|
|
3013
3013
|
min: 0,
|
|
@@ -3017,7 +3017,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3017
3017
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "append-text"])) : T("", !0)
|
|
3018
3018
|
])
|
|
3019
3019
|
]),
|
|
3020
|
-
|
|
3020
|
+
te < z.value.length - 1 ? (a(), h("div", nn)) : T("", !0)
|
|
3021
3021
|
]);
|
|
3022
3022
|
}), 128))
|
|
3023
3023
|
]),
|
|
@@ -3033,14 +3033,14 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3033
3033
|
})
|
|
3034
3034
|
]),
|
|
3035
3035
|
k.value.length === 0 ? (a(), h("div", cn, " No extra items added ")) : T("", !0),
|
|
3036
|
-
(a(!0), h($e, null, Ee(k.value, (me,
|
|
3036
|
+
(a(!0), h($e, null, Ee(k.value, (me, te) => {
|
|
3037
3037
|
var ke, Te;
|
|
3038
|
-
return a(), h("div", { key:
|
|
3038
|
+
return a(), h("div", { key: te }, [
|
|
3039
3039
|
e("div", un, [
|
|
3040
3040
|
e("div", dn, [
|
|
3041
3041
|
q(ye, {
|
|
3042
3042
|
"model-value": me.skuId,
|
|
3043
|
-
"onUpdate:modelValue": (Ie) => xe(
|
|
3043
|
+
"onUpdate:modelValue": (Ie) => xe(te, Ie),
|
|
3044
3044
|
label: "Ingredient",
|
|
3045
3045
|
items: L.value,
|
|
3046
3046
|
searchable: "",
|
|
@@ -3052,24 +3052,24 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3052
3052
|
e("div", mn, [
|
|
3053
3053
|
q(we, {
|
|
3054
3054
|
label: "Receive Quantity",
|
|
3055
|
-
modelValue: r.value[
|
|
3056
|
-
"onUpdate:modelValue": (Ie) => r.value[
|
|
3055
|
+
modelValue: r.value[te].value,
|
|
3056
|
+
"onUpdate:modelValue": (Ie) => r.value[te].value = Ie,
|
|
3057
3057
|
"append-text": me.skuId ? ((Te = (ke = _($).skuById[me.skuId]) == null ? void 0 : ke.unit) == null ? void 0 : Te.abbrev) ?? "" : "",
|
|
3058
3058
|
"helper-text": ae(me)
|
|
3059
3059
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "append-text", "helper-text"]),
|
|
3060
|
-
r.value[
|
|
3060
|
+
r.value[te].value <= 0 ? (a(), h("div", pn, x(Gt))) : T("", !0),
|
|
3061
3061
|
_(U) ? (a(), h("div", fn, [
|
|
3062
|
-
q(
|
|
3062
|
+
q(ee, {
|
|
3063
3063
|
"model-value": me.costEnabled,
|
|
3064
|
-
"onUpdate:modelValue": (Ie) => O(
|
|
3064
|
+
"onUpdate:modelValue": (Ie) => O(te),
|
|
3065
3065
|
size: "sm"
|
|
3066
3066
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
3067
3067
|
m[10] || (m[10] = e("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Override cost ", -1))
|
|
3068
3068
|
])) : T("", !0),
|
|
3069
3069
|
_(U) && me.costEnabled ? (a(), pe(we, {
|
|
3070
3070
|
key: 2,
|
|
3071
|
-
modelValue: n.value[
|
|
3072
|
-
"onUpdate:modelValue": (Ie) => n.value[
|
|
3071
|
+
modelValue: n.value[te].value,
|
|
3072
|
+
"onUpdate:modelValue": (Ie) => n.value[te].value = Ie,
|
|
3073
3073
|
label: "Total Cost",
|
|
3074
3074
|
step: 1e-4,
|
|
3075
3075
|
min: 0,
|
|
@@ -3084,10 +3084,10 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3084
3084
|
"prepend-icon": "delete",
|
|
3085
3085
|
size: "md",
|
|
3086
3086
|
class: "mt-6",
|
|
3087
|
-
onClick: (Ie) =>
|
|
3087
|
+
onClick: (Ie) => X(te)
|
|
3088
3088
|
}, null, 8, ["onClick"]))
|
|
3089
3089
|
]),
|
|
3090
|
-
|
|
3090
|
+
te < k.value.length - 1 ? (a(), h("div", vn)) : T("", !0)
|
|
3091
3091
|
]);
|
|
3092
3092
|
}), 128))
|
|
3093
3093
|
]),
|
|
@@ -3170,7 +3170,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3170
3170
|
});
|
|
3171
3171
|
}
|
|
3172
3172
|
return (S, $) => {
|
|
3173
|
-
const C =
|
|
3173
|
+
const C = se("FmButton"), R = se("FmCircularProgress"), w = se("FmIcon"), U = se("FmDialog");
|
|
3174
3174
|
return a(), h("div", Sn, [
|
|
3175
3175
|
q(U, {
|
|
3176
3176
|
modelValue: i.value,
|
|
@@ -3378,7 +3378,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3378
3378
|
}
|
|
3379
3379
|
}
|
|
3380
3380
|
return n;
|
|
3381
|
-
}), Z = J(!1), z = J(""), ue = J(!0),
|
|
3381
|
+
}), Z = J(!1), z = J(""), ue = J(!0), re = Ye(), j = Ks(re.getWorkflowConfig), D = os(), ne = [
|
|
3382
3382
|
E.enum.receiveStock,
|
|
3383
3383
|
E.enum.processRequest,
|
|
3384
3384
|
E.enum.closeRequest
|
|
@@ -3577,7 +3577,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3577
3577
|
} catch (m) {
|
|
3578
3578
|
u.open({
|
|
3579
3579
|
title: "Something went wrong",
|
|
3580
|
-
message: "Please try again.",
|
|
3580
|
+
message: m instanceof Error ? m.message : "Please try again.",
|
|
3581
3581
|
type: "error"
|
|
3582
3582
|
}), console.error("Error when submitting PO operation", r, o.purchaseOrder, m);
|
|
3583
3583
|
} finally {
|
|
@@ -3613,15 +3613,15 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3613
3613
|
];
|
|
3614
3614
|
O.reverse().sort((A, de) => A.createdAt.localeCompare(de.createdAt));
|
|
3615
3615
|
function F(A) {
|
|
3616
|
-
var m, g, V, B, be, we,
|
|
3617
|
-
const de = n.findIndex((
|
|
3616
|
+
var m, g, V, B, be, we, ee, ye, Oe, Re, Ne, me;
|
|
3617
|
+
const de = n.findIndex((te) => te.id === A.fullfillmentId), y = [
|
|
3618
3618
|
(g = (m = n[de]) == null ? void 0 : m.netSuite) != null && g.id ? {
|
|
3619
3619
|
label: "Fulfillment's ref no. (Netsuite)",
|
|
3620
3620
|
values: [
|
|
3621
3621
|
`${((B = (V = n[de]) == null ? void 0 : V.netSuite) == null ? void 0 : B.refNo) ?? "N/A"} (${((we = (be = n[de]) == null ? void 0 : be.netSuite) == null ? void 0 : we.id) ?? "-"})`
|
|
3622
3622
|
]
|
|
3623
3623
|
} : null,
|
|
3624
|
-
(
|
|
3624
|
+
(ee = A == null ? void 0 : A.netSuite) != null && ee.id ? {
|
|
3625
3625
|
label: "Netsuite ref no.",
|
|
3626
3626
|
values: [`${((ye = A == null ? void 0 : A.netSuite) == null ? void 0 : ye.refNo) ?? "N/A"} (${((Oe = A == null ? void 0 : A.netSuite) == null ? void 0 : Oe.id) ?? "-"})`]
|
|
3627
3627
|
} : null,
|
|
@@ -3647,7 +3647,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3647
3647
|
},
|
|
3648
3648
|
{
|
|
3649
3649
|
label: "Received items",
|
|
3650
|
-
values: A.received.map((
|
|
3650
|
+
values: A.received.map((te) => {
|
|
3651
3651
|
var ke;
|
|
3652
3652
|
return Y("div", [
|
|
3653
3653
|
Y(
|
|
@@ -3667,14 +3667,14 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3667
3667
|
{
|
|
3668
3668
|
class: "fm-typo-en-body-lg-800 basis-1/2 shrink-0 grow"
|
|
3669
3669
|
},
|
|
3670
|
-
`${
|
|
3670
|
+
`${te.sku.name}`
|
|
3671
3671
|
),
|
|
3672
3672
|
Y(
|
|
3673
3673
|
"span",
|
|
3674
3674
|
{
|
|
3675
3675
|
class: "fm-typo-en-body-md-400"
|
|
3676
3676
|
},
|
|
3677
|
-
`${
|
|
3677
|
+
`${te.sku.code} `
|
|
3678
3678
|
)
|
|
3679
3679
|
]
|
|
3680
3680
|
),
|
|
@@ -3695,14 +3695,14 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3695
3695
|
{
|
|
3696
3696
|
class: "fm-typo-en-body-lg-600 self-end"
|
|
3697
3697
|
},
|
|
3698
|
-
ge(
|
|
3698
|
+
ge(te.amount, !1)
|
|
3699
3699
|
),
|
|
3700
3700
|
Y(
|
|
3701
3701
|
"span",
|
|
3702
3702
|
{
|
|
3703
3703
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
3704
3704
|
},
|
|
3705
|
-
((ke =
|
|
3705
|
+
((ke = te.measurement) == null ? void 0 : ke.abbrev) ?? te.sku.unit.abbrev
|
|
3706
3706
|
)
|
|
3707
3707
|
]
|
|
3708
3708
|
),
|
|
@@ -3711,7 +3711,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3711
3711
|
{
|
|
3712
3712
|
class: "flex self-end fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
3713
3713
|
},
|
|
3714
|
-
`${
|
|
3714
|
+
`${te.cost ? `(${ot(te.cost)})` : ""}`
|
|
3715
3715
|
)
|
|
3716
3716
|
]
|
|
3717
3717
|
)
|
|
@@ -3733,7 +3733,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3733
3733
|
values: [`${de + 1}`]
|
|
3734
3734
|
} : null,
|
|
3735
3735
|
...y
|
|
3736
|
-
].filter((
|
|
3736
|
+
].filter((te) => !!te)
|
|
3737
3737
|
};
|
|
3738
3738
|
}
|
|
3739
3739
|
function G(A) {
|
|
@@ -3870,7 +3870,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3870
3870
|
newAmount: A
|
|
3871
3871
|
}), F;
|
|
3872
3872
|
}, /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
3873
|
-
}),
|
|
3873
|
+
}), X = (r) => {
|
|
3874
3874
|
var O, F;
|
|
3875
3875
|
const n = le.value;
|
|
3876
3876
|
return ((O = o.purchaseOrder) == null ? void 0 : O.version) === Fe.enum[2] ? n.has(r.id) : n.has((F = r.sku) == null ? void 0 : F.code);
|
|
@@ -3889,7 +3889,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3889
3889
|
return "";
|
|
3890
3890
|
});
|
|
3891
3891
|
return (r, n) => {
|
|
3892
|
-
const O =
|
|
3892
|
+
const O = se("FmButton"), F = se("FmButtonGroup"), G = se("FmChip"), Q = se("FmIcon"), oe = se("FmMenuDivider"), A = se("FmCard"), de = se("FmTooltip"), y = se("FmSpacer"), m = se("FmSideSheet");
|
|
3893
3893
|
return a(), pe(m, {
|
|
3894
3894
|
modelValue: _(N),
|
|
3895
3895
|
"onUpdate:modelValue": n[8] || (n[8] = (g) => Ss(N) ? N.value = g : null),
|
|
@@ -3938,7 +3938,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3938
3938
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
3939
3939
|
}, {
|
|
3940
3940
|
default: ie(() => {
|
|
3941
|
-
var
|
|
3941
|
+
var ee, ye, Oe, Re, Ne, me, te, ke, Te, Ie;
|
|
3942
3942
|
return [
|
|
3943
3943
|
e("div", Mn, [
|
|
3944
3944
|
e("div", jn, x(_(w)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
|
|
@@ -3987,7 +3987,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
3987
3987
|
e("div", sa, [
|
|
3988
3988
|
e("div", ra, x(_(w)("inventory.transfer.receiveRequest.details.createdAt")), 1)
|
|
3989
3989
|
]),
|
|
3990
|
-
e("div", oa, x(_(st)(((
|
|
3990
|
+
e("div", oa, x(_(st)(((ee = r.purchaseOrder) == null ? void 0 : ee._id) ?? "")), 1)
|
|
3991
3991
|
]),
|
|
3992
3992
|
(ye = r.purchaseOrder) != null && ye.effectiveAt ? (a(), h("div", na, [
|
|
3993
3993
|
e("div", aa, x(_(w)("inventory.transfer.receiveRequest.details.date")), 1),
|
|
@@ -4001,7 +4001,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4001
4001
|
]),
|
|
4002
4002
|
(Ne = (Re = r.purchaseOrder) == null ? void 0 : Re.supplier) != null && Ne.name ? (a(), h("div", da, [
|
|
4003
4003
|
e("div", ma, x(_(w)("inventory.transfer.receiveRequest.details.from")), 1),
|
|
4004
|
-
e("div", pa, x((
|
|
4004
|
+
e("div", pa, x((te = (me = r.purchaseOrder) == null ? void 0 : me.supplier) == null ? void 0 : te.name), 1)
|
|
4005
4005
|
])) : T("", !0),
|
|
4006
4006
|
r.transferTo ? (a(), h("div", fa, [
|
|
4007
4007
|
e("div", va, x(_(w)("inventory.transfer.receiveRequest.details.to")), 1),
|
|
@@ -4044,10 +4044,10 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4044
4044
|
"z-index": 51
|
|
4045
4045
|
}, {
|
|
4046
4046
|
content: ie(() => {
|
|
4047
|
-
var
|
|
4047
|
+
var ee, ye;
|
|
4048
4048
|
return [
|
|
4049
4049
|
e("div", Na, [
|
|
4050
|
-
(a(!0), h($e, null, Ee((ye = (
|
|
4050
|
+
(a(!0), h($e, null, Ee((ye = (ee = r.purchaseOrder) == null ? void 0 : ee.netSuite) == null ? void 0 : ye.missingItems, (Oe, Re) => (a(), h("div", {
|
|
4051
4051
|
class: "flex justify-center align-middle",
|
|
4052
4052
|
key: Re
|
|
4053
4053
|
}, [
|
|
@@ -4072,7 +4072,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4072
4072
|
])
|
|
4073
4073
|
]),
|
|
4074
4074
|
q(oe),
|
|
4075
|
-
(a(!0), h($e, null, Ee(((we = r.purchaseOrder) == null ? void 0 : we.items) ?? [], (
|
|
4075
|
+
(a(!0), h($e, null, Ee(((we = r.purchaseOrder) == null ? void 0 : we.items) ?? [], (ee, ye) => {
|
|
4076
4076
|
var Oe;
|
|
4077
4077
|
return a(), h("div", {
|
|
4078
4078
|
key: ye,
|
|
@@ -4080,8 +4080,8 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4080
4080
|
}, [
|
|
4081
4081
|
e("div", Aa, [
|
|
4082
4082
|
e("div", Ta, [
|
|
4083
|
-
ze(x(
|
|
4084
|
-
L(
|
|
4083
|
+
ze(x(ee.name) + " ", 1),
|
|
4084
|
+
L(ee) ? (a(), pe(de, {
|
|
4085
4085
|
key: 0,
|
|
4086
4086
|
variant: "rich",
|
|
4087
4087
|
placement: "top",
|
|
@@ -4099,7 +4099,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4099
4099
|
]),
|
|
4100
4100
|
_: 1
|
|
4101
4101
|
})) : T("", !0),
|
|
4102
|
-
|
|
4102
|
+
X(ee) ? (a(), pe(de, {
|
|
4103
4103
|
key: 1,
|
|
4104
4104
|
variant: "rich",
|
|
4105
4105
|
placement: "top",
|
|
@@ -4110,8 +4110,8 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4110
4110
|
return [
|
|
4111
4111
|
e("div", Pa, [
|
|
4112
4112
|
n[14] || (n[14] = e("div", { class: "font-semibold" }, "Submission changes", -1)),
|
|
4113
|
-
e("div", null, "Original Amount: " + x((Re = xe(
|
|
4114
|
-
e("div", null, " New Amount: " + x((Ne = xe(
|
|
4113
|
+
e("div", null, "Original Amount: " + x((Re = xe(ee)) == null ? void 0 : Re.originalAmount), 1),
|
|
4114
|
+
e("div", null, " New Amount: " + x((Ne = xe(ee)) == null ? void 0 : Ne.newAmount), 1)
|
|
4115
4115
|
])
|
|
4116
4116
|
];
|
|
4117
4117
|
}),
|
|
@@ -4127,17 +4127,17 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4127
4127
|
]),
|
|
4128
4128
|
e("div", Ia, [
|
|
4129
4129
|
e("span", {
|
|
4130
|
-
innerHTML: k(
|
|
4130
|
+
innerHTML: k(ee)
|
|
4131
4131
|
}, null, 8, Fa)
|
|
4132
4132
|
])
|
|
4133
4133
|
]),
|
|
4134
4134
|
e("div", Ea, [
|
|
4135
|
-
e("div", qa, x(
|
|
4135
|
+
e("div", qa, x(ee.code), 1),
|
|
4136
4136
|
_(v).enableTotalCost ? (a(), h("div", Va, [
|
|
4137
4137
|
e("span", La, x(_(ot)(
|
|
4138
|
-
(Oe =
|
|
4138
|
+
(Oe = ee.totalCost) != null && Oe.amount ? ee.totalCost : _(S).controller.value.getItemCost(ee, _(De)()).cost
|
|
4139
4139
|
)), 1),
|
|
4140
|
-
$(
|
|
4140
|
+
$(ee) ? T("", !0) : (a(), h("span", Ua, [
|
|
4141
4141
|
n[15] || (n[15] = e("span", { class: "w-1.5 h-1.5 rounded-full bg-gray-400" }, null, -1)),
|
|
4142
4142
|
ze(" " + x(_(w)("inventory.transfer.form.items.autoCalculated")), 1)
|
|
4143
4143
|
]))
|
|
@@ -4161,8 +4161,8 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4161
4161
|
])
|
|
4162
4162
|
], 64)) : K.value.value === "deliveryHistory" ? (a(), h("div", za, [
|
|
4163
4163
|
l.value.length ? (a(), h("div", Qa, [
|
|
4164
|
-
(a(!0), h($e, null, Ee(l.value, (
|
|
4165
|
-
var Oe, Re, Ne, me,
|
|
4164
|
+
(a(!0), h($e, null, Ee(l.value, (ee, ye) => {
|
|
4165
|
+
var Oe, Re, Ne, me, te;
|
|
4166
4166
|
return a(), h($e, { key: ye }, [
|
|
4167
4167
|
e("div", Ya, [
|
|
4168
4168
|
e("div", Ja, [
|
|
@@ -4178,7 +4178,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4178
4178
|
}, null, 2)
|
|
4179
4179
|
]),
|
|
4180
4180
|
e("div", Xa, [
|
|
4181
|
-
|
|
4181
|
+
ee.header === "Received" ? (a(), pe(Q, {
|
|
4182
4182
|
key: 0,
|
|
4183
4183
|
name: "local_shipping",
|
|
4184
4184
|
outline: "",
|
|
@@ -4199,20 +4199,20 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4199
4199
|
]),
|
|
4200
4200
|
e("div", tl, [
|
|
4201
4201
|
e("div", sl, [
|
|
4202
|
-
e("div", rl, x(
|
|
4203
|
-
e("div", ol, x(
|
|
4202
|
+
e("div", rl, x(ee.header), 1),
|
|
4203
|
+
e("div", ol, x(ee.date), 1)
|
|
4204
4204
|
]),
|
|
4205
4205
|
e("div", nl, [
|
|
4206
|
-
|
|
4206
|
+
ee.header === "Received" && ee.deliveryOrder && r.purchaseOrder ? (a(), pe(Vo, {
|
|
4207
4207
|
key: 0,
|
|
4208
|
-
deliveryOrder:
|
|
4208
|
+
deliveryOrder: ee.deliveryOrder,
|
|
4209
4209
|
purchaseOrder: r.purchaseOrder,
|
|
4210
4210
|
"received-info-map": ve.value,
|
|
4211
4211
|
onSubmitted: n[3] || (n[3] = () => {
|
|
4212
4212
|
i("update:show", !1), i("submitted");
|
|
4213
4213
|
})
|
|
4214
4214
|
}, null, 8, ["deliveryOrder", "purchaseOrder", "received-info-map"])) : T("", !0),
|
|
4215
|
-
(Re = (Oe =
|
|
4215
|
+
(Re = (Oe = ee.deliveryOrder) == null ? void 0 : Oe.netSuite) != null && Re.id ? (a(), pe(Ht, {
|
|
4216
4216
|
key: 1,
|
|
4217
4217
|
title: "Admin",
|
|
4218
4218
|
class: "min-w-[140px]"
|
|
@@ -4221,16 +4221,16 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4221
4221
|
var ke, Te;
|
|
4222
4222
|
return [
|
|
4223
4223
|
q(En, {
|
|
4224
|
-
"netsuite-id": (Te = (ke =
|
|
4224
|
+
"netsuite-id": (Te = (ke = ee.deliveryOrder) == null ? void 0 : ke.netSuite) == null ? void 0 : Te.id
|
|
4225
4225
|
}, null, 8, ["netsuite-id"])
|
|
4226
4226
|
];
|
|
4227
4227
|
}),
|
|
4228
4228
|
_: 2
|
|
4229
4229
|
}, 1024)) : T("", !0),
|
|
4230
|
-
r.purchaseOrder && ((Ne =
|
|
4230
|
+
r.purchaseOrder && ((Ne = ee.deliveryOrder) != null && Ne.id) ? (a(), pe(Ms, {
|
|
4231
4231
|
key: 2,
|
|
4232
4232
|
"purchase-order-id": (me = r.purchaseOrder) == null ? void 0 : me._id,
|
|
4233
|
-
"delivery-order-id": (
|
|
4233
|
+
"delivery-order-id": (te = ee.deliveryOrder) == null ? void 0 : te.id
|
|
4234
4234
|
}, null, 8, ["purchase-order-id", "delivery-order-id"])) : T("", !0)
|
|
4235
4235
|
])
|
|
4236
4236
|
])
|
|
@@ -4256,7 +4256,7 @@ const po = { class: "flex flex-col gap-3" }, fo = { class: "flex flex-col gap-4"
|
|
|
4256
4256
|
}, {
|
|
4257
4257
|
default: ie(() => [
|
|
4258
4258
|
e("div", ul, [
|
|
4259
|
-
(a(!0), h($e, null, Ee(
|
|
4259
|
+
(a(!0), h($e, null, Ee(ee.info, (ke, Te) => (a(), h("div", {
|
|
4260
4260
|
key: Te,
|
|
4261
4261
|
class: "flex flex-col gap-4"
|
|
4262
4262
|
}, [
|