@feedmepos/mf-inventory-portal 1.3.13 → 1.3.14-dev.1
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-Cb6qfRCz.js +445 -0
- package/dist/{ApprovalView-ClQU6bq0.js → ApprovalView-BxioAXpO.js} +7 -7
- package/dist/{BindingsDialog--w8amPhB.js → BindingsDialog-Dn_hP7Ji.js} +13 -13
- package/dist/{BindingsPicker-CLZ2cy95.js → BindingsPicker-BEXOUaoI.js} +2 -2
- package/dist/{BindingsTable-DMKnwFJt.js → BindingsTable-CsRLA5J_.js} +3 -3
- package/dist/{ClosingDraftView-DOSvb2cx.js → ClosingDraftView-DoH9ZcGA.js} +136 -136
- package/dist/{ClosingHistoryView-Dbysx1Ca.js → ClosingHistoryView-BWf_gIrc.js} +32 -32
- package/dist/{ClosingTemplateView-kOWpFBhr.js → ClosingTemplateView-BKRxzvQX.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-CTrf0b97.js → DeliveryOrderPrintPreview-HzspgQXj.js} +11 -11
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-HLHu23Ly.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DstxeP1q.js} +20 -20
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BTwfJTx3.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-E9FFFhwx.js} +2 -2
- package/dist/{FmMultiselectDialog-D8AXgAuO.js → FmMultiselectDialog-3uKA-o0f.js} +1 -1
- package/dist/{FmMultiselectDialog-ByvnmkuF.js → FmMultiselectDialog-uFZKKIiO.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-B8Jp-237.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C1KGaqi7.js} +18 -18
- package/dist/{ImportView-B8jTVkI3.js → ImportView-zrNDzp3k.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D3bMh_iG.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-B2vMgXVZ.js} +1 -1
- package/dist/{IngredientGroupView-DEZHQArP.js → IngredientGroupView-HcAKvPur.js} +5 -5
- package/dist/{IngredientsView-D_0aKc2P.js → IngredientsView-CRB5UN-e.js} +15 -15
- package/dist/{IntegrationExplorerView-RNQ89fRN.js → IntegrationExplorerView-k3IHeiOU.js} +5 -5
- package/dist/{IntegrationView-HyqeX65i.js → IntegrationView-B3WeQTDB.js} +13 -13
- package/dist/{InventoryBindingForm-GXWU6jVC.js → InventoryBindingForm-B-7SQKl2.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BSWEOGs7.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DhPu_GyE.js} +15 -15
- package/dist/{InventoryBindingSummary-Dcsun-ae.js → InventoryBindingSummary-Swi6A3W2.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BPHzJFkv.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Duv0At06.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-eaX2F6rA.js → PremiumBadge.vue_vue_type_script_setup_true_lang--gt60IlU.js} +9 -9
- package/dist/{PublishView-BzaSX1CF.js → PublishView-B9HJT61I.js} +11 -11
- package/dist/{PurchaseOrderPrintPreview-Dq9RVILX.js → PurchaseOrderPrintPreview-sClUXkgt.js} +9 -9
- package/dist/{ReceiveRequestView-CUR65B8h.js → ReceiveRequestView-BbS55juS.js} +23 -23
- package/dist/{RecipeView-DA1exNa3.js → RecipeView-BH3asOD4.js} +50 -50
- package/dist/{SettingsView-G9VVMREu.js → SettingsView-BJAMNNhr.js} +30 -30
- package/dist/StockView-DMLFY7d1.js +2439 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DflfaS_i.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DeiLMVin.js} +1 -1
- package/dist/{SupplierView-Br3PxWl6.js → SupplierView-C3uBrEcc.js} +12 -12
- package/dist/{SurchargeView-DnC875ic.js → SurchargeView-S9ByD9Nd.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DxElZDE3.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-ha60Wy7z.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DncbuAH1.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CfyCEElN.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-R0DRQHII.js → TransferDetails.vue_vue_type_script_setup_true_lang-CKfs-ns0.js} +790 -806
- package/dist/{TransferTemplateView-CN-1iASP.js → TransferTemplateView-zbn5CGiZ.js} +17 -17
- package/dist/{UnitCostHistoryView-HMfTl2Rl.js → UnitCostHistoryView-LhvAybS8.js} +246 -243
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BQSRm_uN.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-E2QCl521.js} +4 -4
- package/dist/{UnitView-2J7SxbnX.js → UnitView-6oUdlUVo.js} +24 -24
- package/dist/{WarehouseView-EIXt8wd0.js → WarehouseView-DQFe99KT.js} +5 -5
- package/dist/{WastageTemplateView-B8yQevPX.js → WastageTemplateView-BiYZqiT2.js} +14 -14
- package/dist/{app-DZ_O5S5y.js → app-SnX9gL_k.js} +23514 -22309
- package/dist/app.d.ts +6 -6
- package/dist/app.js +2 -2
- package/dist/{closing-template-C3F4uA55.js → closing-template-Ch--jBk-.js} +1 -1
- package/dist/components/HrmPermissionGuard.vue.d.ts +54 -0
- package/dist/composable/useHrmPermission.d.ts +17 -0
- package/dist/{date2-DoKx3vEH.js → date2-CGqqJOqr.js} +1 -1
- package/dist/{dayjs.min-BzKmIVU5.js → dayjs.min-JnfBpNSN.js} +1 -1
- package/dist/{decimal-CHryhQrv.js → decimal-C-2MQYNP.js} +2 -2
- package/dist/{defineDeepModel-Dt72PPYN.js → defineDeepModel-CUJCBuvw.js} +1 -1
- package/dist/{duplicate-template-k0PYkiot.js → duplicate-template-BXg5EQRC.js} +1 -1
- package/dist/{export-D0nU9NCc.js → export-DUsFBcmf.js} +1 -1
- package/dist/{feature-DTXvUM9q.js → feature-gkhmly57.js} +28 -28
- package/dist/{format-time-from-id-CjML4YH3.js → format-time-from-id-D1RhcKfL.js} +1 -1
- package/dist/{format-unit-display-BASnDwRJ.js → format-unit-display-DXs_-yEW.js} +11 -11
- package/dist/{import-export.helper-BGRAKGXv.js → import-export.helper-B84wW0eo.js} +6 -6
- package/dist/{index-FhahM2dg.js → index-D3XgyMwL.js} +1 -1
- package/dist/{index-Db7jD-CU.js → index-Dp1GAjHf.js} +3 -3
- package/dist/{index-D5qTaOFp.js → index-artVJVqL.js} +1 -1
- package/dist/{inventory-core-dart.default-Cvvr8rpN.js → inventory-core-dart.default-Bu1oVkLC.js} +10 -10
- package/dist/{lodash-B4Uj749H.js → lodash-DZbYS5Vn.js} +1 -1
- package/dist/{lz-string-Ckbaw1Bu.js → lz-string-nX96TtT6.js} +17 -17
- package/dist/{netsuite-B4O7LRpC.js → netsuite-DQkJKCH9.js} +109 -109
- package/dist/{number-9PlMlR2G.js → number-gRrApZRj.js} +7 -7
- package/dist/{predefined-templates-BqAy88Rp.js → predefined-templates-D9bzSOz_.js} +1 -1
- package/dist/{purchase-order-template-KkhC0FCL.js → purchase-order-template-BiE_We2X.js} +1 -1
- package/dist/{recalculationUtils-Rj0SZQO3.js → recalculationUtils-zNt-EW5S.js} +1 -1
- package/dist/router/route-permission.d.ts +10 -0
- package/dist/{rules-BvLBkdfK.js → rules-CWFFr_mA.js} +2 -2
- package/dist/{stock-CoG3l91v.js → stock-C-34Vuxz.js} +3 -3
- package/dist/{stock-yUbmIey0.js → stock-V4Oy4QHQ.js} +28 -27
- package/dist/{supplier-Qlox4B8s.js → supplier-DbYagMhS.js} +16 -16
- package/dist/{surcharge-CsAxFX-L.js → surcharge-CcvvfLHB.js} +5 -5
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BOtDFKQO.js → use-ingredient-select-dialog-B4jFgJ5b.js} +2 -2
- package/dist/{use-inventory-binding-dialog-Dz5NbeEn.js → use-inventory-binding-dialog-20flYyGE.js} +2 -2
- package/dist/{use-template-enabled-locations-MNNKqChl.js → use-template-enabled-locations-CpDMbAGF.js} +2 -2
- package/dist/useHrmPermission-CZW6u2TS.js +16 -0
- package/dist/views/receive-request/composables/use-order-draft-permission.d.ts +2 -5
- package/dist/{vue-i18n-BqX2td3b.js → vue-i18n-CUrz9OVK.js} +389 -389
- package/dist/{xlsx-CtRIIkxr.js → xlsx-DBsOBE1z.js} +1 -1
- package/dist/{xlsx.util-Bd4_86rn.js → xlsx.util-xziohm10.js} +1 -1
- package/package.json +5 -4
- package/dist/App-Dm-YoD_v.js +0 -411
- package/dist/StockView-3J7Gkskb.js +0 -2406
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { m as e,
|
|
1
|
+
import { m as e, a4 as Kt, a5 as Gt, a6 as zt, a7 as Yt, a8 as Fe, a9 as Jt, aa as ke, X as He, ab as Ze, ac as Ct, ad as O, ae as x, f as Te, N as R, A as M, af as $e, H as ne, G as se, ag as Ke, V as B, ah as Nt, ai as Wt, aj as Qt, ak as Xt, al as et, am as Zt, p as en, k as tn, x as ft, a as nn, u as Me } from "./app-SnX9gL_k.js";
|
|
2
2
|
import { useCoreStore as we } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as rn } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as P } from "./lodash-
|
|
5
|
-
import { defineComponent as sn, ref as
|
|
6
|
-
import { u as dn } from "./feature-
|
|
4
|
+
import { _ as P } from "./lodash-DZbYS5Vn.js";
|
|
5
|
+
import { defineComponent as sn, ref as Ge, computed as Ie, resolveComponent as xe, openBlock as W, createBlock as on, withCtx as oe, createVNode as ae, createElementVNode as w, createElementBlock as ue, Fragment as Le, createCommentVNode as Ue, createTextVNode as Q, toDisplayString as V, renderList as an, unref as It, h as un } from "vue";
|
|
6
|
+
import { u as dn } from "./feature-gkhmly57.js";
|
|
7
7
|
var cn = Object.defineProperty, g = (s, u) => cn(s, "name", { value: u, configurable: !0 }), Ce = "MYR";
|
|
8
8
|
e.enum([
|
|
9
9
|
"custbody_fm_do_id",
|
|
@@ -20,11 +20,11 @@ e.enum([
|
|
|
20
20
|
/// delivery order item id
|
|
21
21
|
"custcol_fm_line_id"
|
|
22
22
|
]);
|
|
23
|
-
var
|
|
23
|
+
var ze;
|
|
24
24
|
(function(s) {
|
|
25
25
|
s[s.Create = 0] = "Create", s[s.Set = 1] = "Set", s[s.Unset = 2] = "Unset", s[s.Change = 3] = "Change";
|
|
26
|
-
})(
|
|
27
|
-
e.nativeEnum(
|
|
26
|
+
})(ze || (ze = {}));
|
|
27
|
+
e.nativeEnum(ze);
|
|
28
28
|
e.enum([
|
|
29
29
|
"TrnfrOrd",
|
|
30
30
|
"PurchOrd"
|
|
@@ -344,7 +344,7 @@ var Ne;
|
|
|
344
344
|
(function(s) {
|
|
345
345
|
s.A = "Pending Supervisor Approval", s.B = "Approved by Supervisor/Pending Receipt", s.C = "Rejected", s.D = "Partially Received", s.E = "Pending Billing/Partially Received", s.F = "Approved by Supervisor/Pending Bill", s.G = "Fully Billed", s.H = "Closed";
|
|
346
346
|
})(Ne || (Ne = {}));
|
|
347
|
-
var
|
|
347
|
+
var Z = e.nativeEnum(Ne), En = e.object({
|
|
348
348
|
amount: e.number().nullish(),
|
|
349
349
|
custcol_fm_line_id: e.string().nullish(),
|
|
350
350
|
item: e.object({
|
|
@@ -487,8 +487,8 @@ e.object({
|
|
|
487
487
|
})
|
|
488
488
|
});
|
|
489
489
|
var At = Kt.extend({
|
|
490
|
-
nsConfig:
|
|
491
|
-
}), Mt =
|
|
490
|
+
nsConfig: Gt
|
|
491
|
+
}), Mt = zt.omit({
|
|
492
492
|
measurements: !0
|
|
493
493
|
}).extend({
|
|
494
494
|
nsConfig: Yt,
|
|
@@ -1781,18 +1781,18 @@ function wt(s) {
|
|
|
1781
1781
|
g(wt, "validateTransferOrderStatusByKey");
|
|
1782
1782
|
function Rt(s) {
|
|
1783
1783
|
switch (Ne[s.id]) {
|
|
1784
|
-
case
|
|
1784
|
+
case Z.enum.A:
|
|
1785
1785
|
return B.Enum.PROCESSING;
|
|
1786
|
-
case
|
|
1786
|
+
case Z.enum.C:
|
|
1787
1787
|
return B.Enum.REJECT;
|
|
1788
|
-
case
|
|
1789
|
-
case
|
|
1790
|
-
case
|
|
1788
|
+
case Z.enum.B:
|
|
1789
|
+
case Z.enum.D:
|
|
1790
|
+
case Z.enum.E:
|
|
1791
1791
|
return B.Enum.RECEIVING;
|
|
1792
|
-
case
|
|
1793
|
-
case
|
|
1792
|
+
case Z.enum.F:
|
|
1793
|
+
case Z.enum.G:
|
|
1794
1794
|
return B.Enum.COMPLETE;
|
|
1795
|
-
case
|
|
1795
|
+
case Z.enum.H:
|
|
1796
1796
|
return B.Enum.CLOSE;
|
|
1797
1797
|
}
|
|
1798
1798
|
throw new Error(`Invalid NetSuite Purchase Order status with ${s.id}`);
|
|
@@ -1805,13 +1805,13 @@ function Ve(s) {
|
|
|
1805
1805
|
return u;
|
|
1806
1806
|
}
|
|
1807
1807
|
g(Ve, "getTransferOrderStatusEnumKeyByValue");
|
|
1808
|
-
function
|
|
1808
|
+
function We(s) {
|
|
1809
1809
|
const u = Object.keys(Ne).find((d) => Ne[d] === s);
|
|
1810
1810
|
if (!u)
|
|
1811
1811
|
throw new Error(`Invalid purchase order status value: ${s}`);
|
|
1812
1812
|
return u;
|
|
1813
1813
|
}
|
|
1814
|
-
g(
|
|
1814
|
+
g(We, "getPurchaseOrderStatusEnumKeyByValue");
|
|
1815
1815
|
function Ft(s, u, d) {
|
|
1816
1816
|
const c = d.filter((a) => a.field === "TRANDOC.KSTATUS"), r = [
|
|
1817
1817
|
F.B,
|
|
@@ -1942,11 +1942,11 @@ var _t;
|
|
|
1942
1942
|
country: ((ut = n.doc.profile.address) == null ? void 0 : ut.country) || "",
|
|
1943
1943
|
postcode: ((dt = n.doc.profile.address) == null ? void 0 : dt.postcode) || ""
|
|
1944
1944
|
}
|
|
1945
|
-
}, E = (mt = (lt = (ct = I.options) == null ? void 0 : ct.netSuite) == null ? void 0 : lt.additionalInfo) == null ? void 0 : mt.reduce((j,
|
|
1946
|
-
const ge =
|
|
1945
|
+
}, E = (mt = (lt = (ct = I.options) == null ? void 0 : ct.netSuite) == null ? void 0 : lt.additionalInfo) == null ? void 0 : mt.reduce((j, z) => {
|
|
1946
|
+
const ge = z.compute(r, z.extraParams);
|
|
1947
1947
|
return {
|
|
1948
1948
|
...j,
|
|
1949
|
-
[
|
|
1949
|
+
[z.fieldId]: ge
|
|
1950
1950
|
};
|
|
1951
1951
|
}, {}), _ = {
|
|
1952
1952
|
id: i.id,
|
|
@@ -1959,17 +1959,17 @@ var _t;
|
|
|
1959
1959
|
...E
|
|
1960
1960
|
}
|
|
1961
1961
|
}, S = m.map((j) => {
|
|
1962
|
-
const
|
|
1963
|
-
return Je.FromNetSuite.transform(I,
|
|
1962
|
+
const z = l[j.id];
|
|
1963
|
+
return Je.FromNetSuite.transform(I, z, j);
|
|
1964
1964
|
}), b = f.map((j) => {
|
|
1965
|
-
const
|
|
1966
|
-
return je.FromNetSuite.transform(I,
|
|
1965
|
+
const z = a[j.id];
|
|
1966
|
+
return je.FromNetSuite.transform(I, z, j);
|
|
1967
1967
|
}), h = i.item.items.map((j) => {
|
|
1968
|
-
const
|
|
1968
|
+
const z = o[j.line].sku, ge = o[j.line].measurement;
|
|
1969
1969
|
return ie.FromNetSuite.toPurchaseOrderItem({
|
|
1970
1970
|
currency: i.currency.refName,
|
|
1971
1971
|
nsOrderItem: j,
|
|
1972
|
-
sku:
|
|
1972
|
+
sku: z,
|
|
1973
1973
|
glImpactCost: [],
|
|
1974
1974
|
measurement: ge,
|
|
1975
1975
|
context: I
|
|
@@ -1993,8 +1993,8 @@ var _t;
|
|
|
1993
1993
|
id: i.custbody_fm_po_request_id,
|
|
1994
1994
|
adjustmentIds: []
|
|
1995
1995
|
} : void 0
|
|
1996
|
-
}, { processedAt: me, rejectedAt: Pe } = Ft(i.createdDate, i.orderStatus.id, p ?? []), ve = S.reduce((j,
|
|
1997
|
-
const ge = new Date(
|
|
1996
|
+
}, { processedAt: me, rejectedAt: Pe } = Ft(i.createdDate, i.orderStatus.id, p ?? []), ve = S.reduce((j, z) => {
|
|
1997
|
+
const ge = new Date(z.createdAt);
|
|
1998
1998
|
return j ? ge.getTime() < j.getTime() ? ge : j : ge;
|
|
1999
1999
|
}, null);
|
|
2000
2000
|
return {
|
|
@@ -2074,8 +2074,8 @@ g(xt, "transformPreparingShipmentMilestoneFromNetSuite");
|
|
|
2074
2074
|
var bt;
|
|
2075
2075
|
(function(s) {
|
|
2076
2076
|
(function(u) {
|
|
2077
|
-
function d({ locationDb: n, setting: t, purchaseOrder: i, status: o =
|
|
2078
|
-
const { netSuiteFromId: a, netSuiteToId: I } =
|
|
2077
|
+
function d({ locationDb: n, setting: t, purchaseOrder: i, status: o = Z.enum.A, overrideItemCost: m = !0, customItemAttributes: l, customFields: f }) {
|
|
2078
|
+
const { netSuiteFromId: a, netSuiteToId: I } = Qe(t.locations, t.vendors, n, i.supplier._id), p = i.items.map((y) => {
|
|
2079
2079
|
const E = t.items.find((_) => _.id === y.sku._id);
|
|
2080
2080
|
return ie.ToNetSuite.toCreateDto({
|
|
2081
2081
|
poItem: y,
|
|
@@ -2112,7 +2112,7 @@ var bt;
|
|
|
2112
2112
|
items: p
|
|
2113
2113
|
},
|
|
2114
2114
|
orderStatus: {
|
|
2115
|
-
id:
|
|
2115
|
+
id: We(o)
|
|
2116
2116
|
},
|
|
2117
2117
|
custbody_fm_po_num: i.seqNumber,
|
|
2118
2118
|
custbody_fm_po_id: i._id
|
|
@@ -2120,7 +2120,7 @@ var bt;
|
|
|
2120
2120
|
}
|
|
2121
2121
|
g(d, "toCreateDto"), u.toCreateDto = d;
|
|
2122
2122
|
function c({ locationDb: n, setting: t, purchaseOrder: i, overrideItemCost: o, customItemAttributes: m, includeItems: l = !1, customFields: f }) {
|
|
2123
|
-
const { netSuiteToId: a } =
|
|
2123
|
+
const { netSuiteToId: a } = Qe(t.locations, t.vendors, n, i.supplier._id);
|
|
2124
2124
|
i != null && i.effectiveAt || se(i._id);
|
|
2125
2125
|
const I = i.items.map((p) => {
|
|
2126
2126
|
const y = t.items.find((E) => E.id === p.sku._id);
|
|
@@ -2147,7 +2147,7 @@ var bt;
|
|
|
2147
2147
|
function r() {
|
|
2148
2148
|
return {
|
|
2149
2149
|
orderStatus: {
|
|
2150
|
-
id:
|
|
2150
|
+
id: We(Z.enum.H)
|
|
2151
2151
|
}
|
|
2152
2152
|
};
|
|
2153
2153
|
}
|
|
@@ -2222,7 +2222,7 @@ var bt;
|
|
|
2222
2222
|
g(d, "transform"), u.transform = d;
|
|
2223
2223
|
}(s.FromNetSuite || (s.FromNetSuite = {}));
|
|
2224
2224
|
})(bt || (bt = {}));
|
|
2225
|
-
function
|
|
2225
|
+
function Qe(s, u, d, c) {
|
|
2226
2226
|
var t, i;
|
|
2227
2227
|
const r = (t = u.find((o) => o.id === c)) == null ? void 0 : t.netSuiteId, n = (i = s.find((o) => {
|
|
2228
2228
|
const [m, l] = d.split("_");
|
|
@@ -2235,8 +2235,8 @@ function We(s, u, d, c) {
|
|
|
2235
2235
|
netSuiteToId: n
|
|
2236
2236
|
};
|
|
2237
2237
|
}
|
|
2238
|
-
g(
|
|
2239
|
-
var
|
|
2238
|
+
g(Qe, "locationMapper");
|
|
2239
|
+
var Xe;
|
|
2240
2240
|
(function(s) {
|
|
2241
2241
|
(function(u) {
|
|
2242
2242
|
function d(c) {
|
|
@@ -2261,7 +2261,7 @@ var Ze;
|
|
|
2261
2261
|
}
|
|
2262
2262
|
g(d, "transform"), u.transform = d;
|
|
2263
2263
|
})(s.FromNetsuite || (s.FromNetsuite = {}));
|
|
2264
|
-
})(
|
|
2264
|
+
})(Xe || (Xe = {}));
|
|
2265
2265
|
var St;
|
|
2266
2266
|
(function(s) {
|
|
2267
2267
|
(function(u) {
|
|
@@ -2283,7 +2283,7 @@ var St;
|
|
|
2283
2283
|
i.name = `${c.name} (${a.unitName})`, i.abbrev = a.abbreviation, o = String(a.internalId);
|
|
2284
2284
|
continue;
|
|
2285
2285
|
}
|
|
2286
|
-
const I =
|
|
2286
|
+
const I = Xe.FromNetsuite.transform(a);
|
|
2287
2287
|
l.push(I), m.push(I.nsConfig);
|
|
2288
2288
|
}
|
|
2289
2289
|
if (i.measurements = l, o === void 0)
|
|
@@ -3327,7 +3327,7 @@ function st(s, u, d, c, r) {
|
|
|
3327
3327
|
});
|
|
3328
3328
|
else {
|
|
3329
3329
|
i.id && i.externalId && (t[i.id] = i.externalId);
|
|
3330
|
-
const m = Object.keys(
|
|
3330
|
+
const m = Object.keys(Wt.shape);
|
|
3331
3331
|
for (const l of m) {
|
|
3332
3332
|
if (l === "id" || l === "externalId" && r === ne.Enum[1])
|
|
3333
3333
|
continue;
|
|
@@ -3442,7 +3442,7 @@ var ee;
|
|
|
3442
3442
|
var $ = /* @__PURE__ */ g((s) => s === "" ? null : s, "normalizeNullOrEmpty"), Vn = 'Record [$] item on line [$], field "$" changed from "$" to "$"';
|
|
3443
3443
|
function Bn(s, u, d) {
|
|
3444
3444
|
var n, t, i, o, m, l;
|
|
3445
|
-
const c = Object.keys(
|
|
3445
|
+
const c = Object.keys(Qt.shape), r = [];
|
|
3446
3446
|
for (const f of u) {
|
|
3447
3447
|
const a = $(f.id), I = $((n = f.netSuite) == null ? void 0 : n.id);
|
|
3448
3448
|
if (!I)
|
|
@@ -3555,7 +3555,7 @@ var Hn = 'Record [$] item on line [$], field "$" changed from "$" to "$"', Dt =
|
|
|
3555
3555
|
};
|
|
3556
3556
|
function jt(s, u, d) {
|
|
3557
3557
|
var i, o, m, l, f, a, I;
|
|
3558
|
-
const c = Object.keys(
|
|
3558
|
+
const c = Object.keys(Xt.shape), r = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
3559
3559
|
for (const p of s) {
|
|
3560
3560
|
const y = $((i = p.netSuite) == null ? void 0 : i.id), E = $(p.id);
|
|
3561
3561
|
if (y) {
|
|
@@ -3708,7 +3708,7 @@ function q(s, u, d, c, r) {
|
|
|
3708
3708
|
return typeof c == "object" && (n = JSON.stringify(c), t = JSON.stringify(r)), `${s} ${u} field ${d} changed from "${n}" to "${t}"`;
|
|
3709
3709
|
}
|
|
3710
3710
|
g(q, "generateLogMessage");
|
|
3711
|
-
function
|
|
3711
|
+
function Gn(s, u, d, c = !1) {
|
|
3712
3712
|
var n, t;
|
|
3713
3713
|
const r = [];
|
|
3714
3714
|
if (u || r.push({
|
|
@@ -3770,7 +3770,7 @@ function zn(s, u, d, c = !1) {
|
|
|
3770
3770
|
}
|
|
3771
3771
|
}
|
|
3772
3772
|
if (d) {
|
|
3773
|
-
const i = Object.keys(
|
|
3773
|
+
const i = Object.keys(Zt.shape);
|
|
3774
3774
|
for (const o of i) {
|
|
3775
3775
|
if (o === "_id")
|
|
3776
3776
|
continue;
|
|
@@ -3794,8 +3794,8 @@ function zn(s, u, d, c = !1) {
|
|
|
3794
3794
|
}
|
|
3795
3795
|
return r;
|
|
3796
3796
|
}
|
|
3797
|
-
g(
|
|
3798
|
-
function
|
|
3797
|
+
g(Gn, "detectTransferOrderConflicts");
|
|
3798
|
+
function zn(s, u, d, c, r) {
|
|
3799
3799
|
if (s.length === 0)
|
|
3800
3800
|
throw new Error("No order lines found");
|
|
3801
3801
|
let n = c || (r == null ? void 0 : r.purchaseOrder), t = r;
|
|
@@ -3876,7 +3876,7 @@ function Gn(s, u, d, c, r) {
|
|
|
3876
3876
|
purchaseOrderRequest: t
|
|
3877
3877
|
};
|
|
3878
3878
|
}
|
|
3879
|
-
g(
|
|
3879
|
+
g(zn, "resolveTransferOrderConflicts");
|
|
3880
3880
|
e.object({
|
|
3881
3881
|
lineItem: He.nullish(),
|
|
3882
3882
|
existinglineItem: He.nullish(),
|
|
@@ -4004,7 +4004,7 @@ var pe;
|
|
|
4004
4004
|
(function(s) {
|
|
4005
4005
|
s.UNIT_OF_MEASUREMENT_CREATED = "UNIT_OF_MEASUREMENT_CREATED", s.UNIT_OF_MEASUREMENT_UPDATED = "UNIT_OF_MEASUREMENT_UPDATED", s.UNIT_OF_MEASUREMENT_DELETED = "UNIT_OF_MEASUREMENT_DELETED", s.UNIT_OF_MEASUREMENT_DUPLICATE = "UNIT_OF_MEASUREMENT_DUPLICATE";
|
|
4006
4006
|
})(pe || (pe = {}));
|
|
4007
|
-
var
|
|
4007
|
+
var Wn = 'Record [$] unif of measure on line [$], field "$" changed from "$" to "$"';
|
|
4008
4008
|
function Bt(s, u) {
|
|
4009
4009
|
const d = Object.keys(At.shape), c = [];
|
|
4010
4010
|
for (const r of u) {
|
|
@@ -4024,7 +4024,7 @@ function Bt(s, u) {
|
|
|
4024
4024
|
let m = o, l = i;
|
|
4025
4025
|
typeof i == "object" && (m = JSON.stringify(o), l = JSON.stringify(i)), c.push({
|
|
4026
4026
|
type: pe.UNIT_OF_MEASUREMENT_UPDATED,
|
|
4027
|
-
message: re(
|
|
4027
|
+
message: re(Wn, [
|
|
4028
4028
|
"Unit Of Measure",
|
|
4029
4029
|
`${r.nsConfig.netSuiteId}`,
|
|
4030
4030
|
t,
|
|
@@ -4050,7 +4050,7 @@ function Bt(s, u) {
|
|
|
4050
4050
|
return c;
|
|
4051
4051
|
}
|
|
4052
4052
|
g(Bt, "detectUnitOfMeasureConflicts");
|
|
4053
|
-
function
|
|
4053
|
+
function Qn(s, u) {
|
|
4054
4054
|
const d = [];
|
|
4055
4055
|
if (!u)
|
|
4056
4056
|
d.push({
|
|
@@ -4084,7 +4084,7 @@ function Wn(s, u) {
|
|
|
4084
4084
|
}
|
|
4085
4085
|
return d;
|
|
4086
4086
|
}
|
|
4087
|
-
g(
|
|
4087
|
+
g(Qn, "detectUnitTypeConflicts");
|
|
4088
4088
|
function qt(s, u) {
|
|
4089
4089
|
if (u.length === 0)
|
|
4090
4090
|
return s;
|
|
@@ -4104,7 +4104,7 @@ function qt(s, u) {
|
|
|
4104
4104
|
return d;
|
|
4105
4105
|
}
|
|
4106
4106
|
g(qt, "resolveUnitOfMeasurementConflicts");
|
|
4107
|
-
function
|
|
4107
|
+
function Xn(s, u, d) {
|
|
4108
4108
|
let c = d;
|
|
4109
4109
|
const r = qt((d == null ? void 0 : d.measurements) || u.measurements, s);
|
|
4110
4110
|
for (const n of s)
|
|
@@ -4132,12 +4132,12 @@ function Zn(s, u, d) {
|
|
|
4132
4132
|
measurements: r
|
|
4133
4133
|
};
|
|
4134
4134
|
}
|
|
4135
|
-
g(
|
|
4135
|
+
g(Xn, "resolveUnitTypeConflicts");
|
|
4136
4136
|
var be;
|
|
4137
4137
|
(function(s) {
|
|
4138
4138
|
s.PURCHASE_ORDER_CREATED = "PURCHASE_ORDER_CREATED", s.PURCHASE_ORDER_UPDATED = "PURCHASE_ORDER_UPDATED";
|
|
4139
4139
|
})(be || (be = {}));
|
|
4140
|
-
function
|
|
4140
|
+
function Zn(s, u) {
|
|
4141
4141
|
var c;
|
|
4142
4142
|
const d = [];
|
|
4143
4143
|
if (u || d.push({
|
|
@@ -4198,7 +4198,7 @@ function Xn(s, u) {
|
|
|
4198
4198
|
}
|
|
4199
4199
|
return d;
|
|
4200
4200
|
}
|
|
4201
|
-
g(
|
|
4201
|
+
g(Zn, "detectInventoryTransferConflicts");
|
|
4202
4202
|
function ei(s, u, d, c) {
|
|
4203
4203
|
if (s.length === 0)
|
|
4204
4204
|
throw new Error("No order lines found");
|
|
@@ -4264,7 +4264,7 @@ var ti = Fe.pick({
|
|
|
4264
4264
|
unit: !0,
|
|
4265
4265
|
valuation: !0,
|
|
4266
4266
|
customAttributes: !0
|
|
4267
|
-
}), ni =
|
|
4267
|
+
}), ni = Ze.omit({
|
|
4268
4268
|
netSuiteId: !0,
|
|
4269
4269
|
businessId: !0,
|
|
4270
4270
|
skuCache: !0,
|
|
@@ -4387,10 +4387,10 @@ function ai(s, u, d) {
|
|
|
4387
4387
|
return r;
|
|
4388
4388
|
}
|
|
4389
4389
|
g(ai, "resolveInventoryChildItemConflicts");
|
|
4390
|
-
var
|
|
4390
|
+
var G;
|
|
4391
4391
|
(function(s) {
|
|
4392
4392
|
s.ASSEMBLY_ITEM_CREATED = "ASSEMBLY_ITEM_CREATED", s.ASSEMBLY_ITEM_UPDATED = "ASSEMBLY_ITEM_UPDATED", s.ASSEMBLY_ITEM_DELETED = "ASSEMBLY_ITEM_DELETED", s.ASSEMBLY_ITEM_SKU_UPDATED = "ASSEMBLY_ITEM_SKU_UPDATED";
|
|
4393
|
-
})(
|
|
4393
|
+
})(G || (G = {}));
|
|
4394
4394
|
var ui = Fe.pick({
|
|
4395
4395
|
code: !0,
|
|
4396
4396
|
name: !0,
|
|
@@ -4400,7 +4400,7 @@ var ui = Fe.pick({
|
|
|
4400
4400
|
unit: !0,
|
|
4401
4401
|
valuation: !0,
|
|
4402
4402
|
customAttributes: !0
|
|
4403
|
-
}), di =
|
|
4403
|
+
}), di = Ze.omit({
|
|
4404
4404
|
netSuiteId: !0,
|
|
4405
4405
|
businessId: !0,
|
|
4406
4406
|
skuCache: !0,
|
|
@@ -4418,7 +4418,7 @@ function li(s) {
|
|
|
4418
4418
|
throw new Error("[detectAssemblyChildItemConflicts] only supports Assembly child items");
|
|
4419
4419
|
if (!c)
|
|
4420
4420
|
return u.push({
|
|
4421
|
-
type:
|
|
4421
|
+
type: G.ASSEMBLY_ITEM_CREATED,
|
|
4422
4422
|
message: `Assembly Child Item [${d.netSuiteId}] config doesn't exist`,
|
|
4423
4423
|
data: d
|
|
4424
4424
|
}), u;
|
|
@@ -4426,7 +4426,7 @@ function li(s) {
|
|
|
4426
4426
|
for (const n of r) {
|
|
4427
4427
|
const t = d[n] ?? null, i = c[n] ?? null;
|
|
4428
4428
|
P.isEqual(t, i) || u.push({
|
|
4429
|
-
type:
|
|
4429
|
+
type: G.ASSEMBLY_ITEM_UPDATED,
|
|
4430
4430
|
message: q("Assembly Child Item", d.netSuiteId, n, i, t),
|
|
4431
4431
|
data: {
|
|
4432
4432
|
field: n,
|
|
@@ -4444,7 +4444,7 @@ function mi(s) {
|
|
|
4444
4444
|
throw new Error("[detectAssemblyParentItemConflicts] only supports Assembly parent items");
|
|
4445
4445
|
if (!c)
|
|
4446
4446
|
return u.push({
|
|
4447
|
-
type:
|
|
4447
|
+
type: G.ASSEMBLY_ITEM_CREATED,
|
|
4448
4448
|
message: `Assembly Parent Item [${d.netSuiteId}] config doesn't exist`,
|
|
4449
4449
|
data: d
|
|
4450
4450
|
}), u;
|
|
@@ -4452,7 +4452,7 @@ function mi(s) {
|
|
|
4452
4452
|
for (const t of r) {
|
|
4453
4453
|
const i = d[t] ?? null, o = c[t] ?? null;
|
|
4454
4454
|
P.isEqual(i, o) || u.push({
|
|
4455
|
-
type:
|
|
4455
|
+
type: G.ASSEMBLY_ITEM_UPDATED,
|
|
4456
4456
|
message: q("Assembly Parent Item", d.netSuiteId, t, o, i),
|
|
4457
4457
|
data: {
|
|
4458
4458
|
field: t,
|
|
@@ -4465,7 +4465,7 @@ function mi(s) {
|
|
|
4465
4465
|
for (const t of n) {
|
|
4466
4466
|
const i = d.skuCache[t] ?? null, o = c.skuCache[t] ?? null;
|
|
4467
4467
|
P.isEqual(i, o) || u.push({
|
|
4468
|
-
type:
|
|
4468
|
+
type: G.ASSEMBLY_ITEM_SKU_UPDATED,
|
|
4469
4469
|
message: q("Assembly Parent Item", d.netSuiteId, t, o, i),
|
|
4470
4470
|
data: {
|
|
4471
4471
|
field: t,
|
|
@@ -4480,17 +4480,17 @@ g(mi, "detectAssemblyParentItemConflicts");
|
|
|
4480
4480
|
function fi(s, u, d) {
|
|
4481
4481
|
if (u.itemType !== R.Enum.Assembly)
|
|
4482
4482
|
throw new Error("[resolveAssemblyParentItemConflicts] only supports Assembly parent items");
|
|
4483
|
-
if (s.some((n) => n.type ===
|
|
4483
|
+
if (s.some((n) => n.type === G.ASSEMBLY_ITEM_CREATED))
|
|
4484
4484
|
return u;
|
|
4485
4485
|
let r = d;
|
|
4486
4486
|
for (const n of s)
|
|
4487
|
-
if (n.type ===
|
|
4487
|
+
if (n.type === G.ASSEMBLY_ITEM_UPDATED) {
|
|
4488
4488
|
const t = n.data.field;
|
|
4489
4489
|
r = {
|
|
4490
4490
|
...r,
|
|
4491
4491
|
[t]: n.data.incomingValue
|
|
4492
4492
|
};
|
|
4493
|
-
} else if (n.type ===
|
|
4493
|
+
} else if (n.type === G.ASSEMBLY_ITEM_SKU_UPDATED) {
|
|
4494
4494
|
const t = n.data.field;
|
|
4495
4495
|
r = {
|
|
4496
4496
|
...r,
|
|
@@ -4509,11 +4509,11 @@ g(fi, "resolveAssemblyParentItemConflicts");
|
|
|
4509
4509
|
function Ii(s, u, d) {
|
|
4510
4510
|
if (u.itemType !== R.Enum.Assembly)
|
|
4511
4511
|
throw new Error("[resolveAssemblyChildItemConflicts] only supports Assembly child items");
|
|
4512
|
-
if (s.some((n) => n.type ===
|
|
4512
|
+
if (s.some((n) => n.type === G.ASSEMBLY_ITEM_CREATED))
|
|
4513
4513
|
return u;
|
|
4514
4514
|
let r = d;
|
|
4515
4515
|
for (const n of s)
|
|
4516
|
-
if (n.type ===
|
|
4516
|
+
if (n.type === G.ASSEMBLY_ITEM_UPDATED) {
|
|
4517
4517
|
const t = n.data.field;
|
|
4518
4518
|
r = {
|
|
4519
4519
|
...r,
|
|
@@ -4536,7 +4536,7 @@ var pi = Fe.pick({
|
|
|
4536
4536
|
unit: !0,
|
|
4537
4537
|
valuation: !0,
|
|
4538
4538
|
customAttributes: !0
|
|
4539
|
-
}), yi =
|
|
4539
|
+
}), yi = Ze.omit({
|
|
4540
4540
|
netSuiteId: !0,
|
|
4541
4541
|
businessId: !0,
|
|
4542
4542
|
skuCache: !0,
|
|
@@ -4900,11 +4900,11 @@ const de = en((s, u) => {
|
|
|
4900
4900
|
},
|
|
4901
4901
|
emits: ["update:modelValue"],
|
|
4902
4902
|
setup(s, { emit: u }) {
|
|
4903
|
-
const d = s, c = u, r =
|
|
4903
|
+
const d = s, c = u, r = Ge(!1), n = Ie(() => d.sku._id ? i.customFieldOptions[d.sku._id] ?? [] : []), t = Ge({
|
|
4904
4904
|
code: "",
|
|
4905
4905
|
name: "",
|
|
4906
4906
|
childName: ""
|
|
4907
|
-
}), i =
|
|
4907
|
+
}), i = zi(), o = we(), m = Ie(() => {
|
|
4908
4908
|
var a;
|
|
4909
4909
|
const f = `business_${((a = o.currentBusiness.value) == null ? void 0 : a._id) ?? ""}`;
|
|
4910
4910
|
return Be[f].code;
|
|
@@ -4914,7 +4914,7 @@ const de = en((s, u) => {
|
|
|
4914
4914
|
}
|
|
4915
4915
|
return (f, a) => {
|
|
4916
4916
|
const I = xe("FmButton"), p = xe("FmLabel"), y = xe("FmSelect"), E = xe("FmDialog");
|
|
4917
|
-
return
|
|
4917
|
+
return W(), on(E, {
|
|
4918
4918
|
modelValue: r.value,
|
|
4919
4919
|
"onUpdate:modelValue": a[4] || (a[4] = (_) => r.value = _),
|
|
4920
4920
|
overlay: !0,
|
|
@@ -4938,7 +4938,7 @@ const de = en((s, u) => {
|
|
|
4938
4938
|
])),
|
|
4939
4939
|
"dialog-footer": oe(() => [
|
|
4940
4940
|
w("div", qi, [
|
|
4941
|
-
f.readonly ? Ue("", !0) : (
|
|
4941
|
+
f.readonly ? Ue("", !0) : (W(), ue(Le, { key: 0 }, [
|
|
4942
4942
|
a[17] || (a[17] = w("span", { class: "text-sm mb-2 font-bold" }, " This will overwrite the code and uom only.", -1)),
|
|
4943
4943
|
w("div", Hi, [
|
|
4944
4944
|
ae(I, {
|
|
@@ -4970,67 +4970,67 @@ const de = en((s, u) => {
|
|
|
4970
4970
|
w("div", Ci, [
|
|
4971
4971
|
ae(p, null, {
|
|
4972
4972
|
default: oe(() => a[6] || (a[6] = [
|
|
4973
|
-
|
|
4973
|
+
Q("Code")
|
|
4974
4974
|
])),
|
|
4975
4975
|
_: 1
|
|
4976
4976
|
}),
|
|
4977
4977
|
w("span", Ni, V(f.sku.code), 1),
|
|
4978
4978
|
ae(p, null, {
|
|
4979
4979
|
default: oe(() => a[7] || (a[7] = [
|
|
4980
|
-
|
|
4980
|
+
Q("Name")
|
|
4981
4981
|
])),
|
|
4982
4982
|
_: 1
|
|
4983
4983
|
}),
|
|
4984
4984
|
w("span", Ai, V(f.sku.name), 1),
|
|
4985
4985
|
ae(p, null, {
|
|
4986
4986
|
default: oe(() => a[8] || (a[8] = [
|
|
4987
|
-
|
|
4987
|
+
Q("Unit")
|
|
4988
4988
|
])),
|
|
4989
4989
|
_: 1
|
|
4990
4990
|
}),
|
|
4991
4991
|
w("span", Mi, V(f.sku.unit.name), 1)
|
|
4992
4992
|
]),
|
|
4993
|
-
f.readonly ? (
|
|
4993
|
+
f.readonly ? (W(), ue(Le, { key: 0 }, [
|
|
4994
4994
|
a[14] || (a[14] = w("hr", { class: "my-2" }, null, -1)),
|
|
4995
4995
|
ae(p, null, {
|
|
4996
4996
|
default: oe(() => a[9] || (a[9] = [
|
|
4997
|
-
|
|
4997
|
+
Q("Custom Codes")
|
|
4998
4998
|
])),
|
|
4999
4999
|
_: 1
|
|
5000
5000
|
}),
|
|
5001
5001
|
w("div", Ui, [
|
|
5002
|
-
(
|
|
5002
|
+
(W(!0), ue(Le, null, an(n.value, (_, S) => (W(), ue("div", {
|
|
5003
5003
|
key: S,
|
|
5004
5004
|
class: "rounded border-1 flex flex-col p-2"
|
|
5005
5005
|
}, [
|
|
5006
5006
|
w("span", ki, [
|
|
5007
5007
|
a[10] || (a[10] = w("b", null, "Child Name:", -1)),
|
|
5008
|
-
|
|
5008
|
+
Q(" " + V(_.value.childName), 1)
|
|
5009
5009
|
]),
|
|
5010
5010
|
w("span", wi, [
|
|
5011
5011
|
w("b", null, "Custom code (" + V(m.value ? It(ft)(m.value) : "N/A") + "):", 1),
|
|
5012
|
-
|
|
5012
|
+
Q(" " + V(_.value.code), 1)
|
|
5013
5013
|
]),
|
|
5014
5014
|
w("span", Ri, [
|
|
5015
5015
|
a[11] || (a[11] = w("b", null, "Custom name:", -1)),
|
|
5016
|
-
|
|
5016
|
+
Q(" " + V(_.value.name), 1)
|
|
5017
5017
|
]),
|
|
5018
5018
|
w("span", Fi, [
|
|
5019
5019
|
a[12] || (a[12] = w("b", null, "UOM:", -1)),
|
|
5020
|
-
|
|
5020
|
+
Q(" " + V(_.value.fmMeasurementAbbrev ?? d.sku.unit.abbrev), 1)
|
|
5021
5021
|
]),
|
|
5022
|
-
_.value.remark ? (
|
|
5022
|
+
_.value.remark ? (W(), ue("span", Pi, [
|
|
5023
5023
|
a[13] || (a[13] = w("b", null, "Remark:", -1)),
|
|
5024
|
-
|
|
5024
|
+
Q(" " + V(_.value.remark), 1)
|
|
5025
5025
|
])) : Ue("", !0)
|
|
5026
5026
|
]))), 128)),
|
|
5027
|
-
n.value.length === 0 ? (
|
|
5027
|
+
n.value.length === 0 ? (W(), ue("span", Oi, "No custom code found.")) : Ue("", !0)
|
|
5028
5028
|
])
|
|
5029
|
-
], 64)) : (
|
|
5029
|
+
], 64)) : (W(), ue(Le, { key: 1 }, [
|
|
5030
5030
|
a[16] || (a[16] = w("hr", { class: "my-2" }, null, -1)),
|
|
5031
5031
|
ae(p, null, {
|
|
5032
5032
|
default: oe(() => a[15] || (a[15] = [
|
|
5033
|
-
|
|
5033
|
+
Q("Custom Code")
|
|
5034
5034
|
])),
|
|
5035
5035
|
_: 1
|
|
5036
5036
|
}),
|
|
@@ -5041,12 +5041,12 @@ const de = en((s, u) => {
|
|
|
5041
5041
|
placeholder: "Select NetSuite Custom Code",
|
|
5042
5042
|
class: "w-full mt-2"
|
|
5043
5043
|
}, null, 8, ["modelValue", "items"]),
|
|
5044
|
-
t.value ? (
|
|
5044
|
+
t.value ? (W(), ue("div", xi, [
|
|
5045
5045
|
w("span", Li, "Child Name: " + V(t.value.childName), 1),
|
|
5046
5046
|
w("span", $i, "Custom code (" + V(m.value ? It(ft)(m.value) : "N/A") + "): " + V(t.value.code), 1),
|
|
5047
5047
|
w("span", ji, "Custom name: " + V(t.value.name), 1),
|
|
5048
5048
|
w("span", Vi, "UOM: " + V(t.value.fmMeasurementAbbrev ?? d.sku.unit.abbrev), 1),
|
|
5049
|
-
t.value.remark ? (
|
|
5049
|
+
t.value.remark ? (W(), ue("span", Bi, "Remark: " + V(t.value.remark), 1)) : Ue("", !0)
|
|
5050
5050
|
])) : Ue("", !0)
|
|
5051
5051
|
], 64))
|
|
5052
5052
|
])
|
|
@@ -5077,7 +5077,7 @@ const de = en((s, u) => {
|
|
|
5077
5077
|
name: "name"
|
|
5078
5078
|
}
|
|
5079
5079
|
};
|
|
5080
|
-
function
|
|
5080
|
+
function Gi() {
|
|
5081
5081
|
return {
|
|
5082
5082
|
setting: {
|
|
5083
5083
|
_id: "",
|
|
@@ -5098,8 +5098,8 @@ function zi() {
|
|
|
5098
5098
|
itemReplicas: []
|
|
5099
5099
|
};
|
|
5100
5100
|
}
|
|
5101
|
-
const T =
|
|
5102
|
-
function
|
|
5101
|
+
const T = Ge(Gi());
|
|
5102
|
+
function zi() {
|
|
5103
5103
|
const s = nn(), u = Ie(() => T.value.setting.items.groupBy("netSuiteId", (i) => i.id)), d = Ie(() => T.value.setting.units.flatMap((i) => i.measurements).groupBy("netSuiteId", (i) => i.id)), c = Ie(() => T.value.setting.items.groupBy((i) => i.id)), r = Ie(
|
|
5104
5104
|
() => T.value.setting.units.groupBy(
|
|
5105
5105
|
(i) => i.netSuiteId,
|
|
@@ -5244,7 +5244,7 @@ function Gi() {
|
|
|
5244
5244
|
name: "",
|
|
5245
5245
|
fullName: ""
|
|
5246
5246
|
};
|
|
5247
|
-
const { flat: o } =
|
|
5247
|
+
const { flat: o } = X(T.value.setting.subsidiaries), m = o.find((l) => l.id === i);
|
|
5248
5248
|
return {
|
|
5249
5249
|
id: m == null ? void 0 : m.id,
|
|
5250
5250
|
name: (m == null ? void 0 : m.name) || "",
|
|
@@ -5259,7 +5259,7 @@ function Gi() {
|
|
|
5259
5259
|
name: "",
|
|
5260
5260
|
fullName: ""
|
|
5261
5261
|
};
|
|
5262
|
-
const o = ((f = T.value.setting.locations.find((a) => a.netSuiteId === i)) == null ? void 0 : f.subsidiaryId) ?? null, { flat: m } =
|
|
5262
|
+
const o = ((f = T.value.setting.locations.find((a) => a.netSuiteId === i)) == null ? void 0 : f.subsidiaryId) ?? null, { flat: m } = X(T.value.setting.subsidiaries), l = m.find((a) => a.id === o);
|
|
5263
5263
|
return {
|
|
5264
5264
|
id: l == null ? void 0 : l.id,
|
|
5265
5265
|
name: (l == null ? void 0 : l.name) || "",
|
|
@@ -5270,7 +5270,7 @@ function Gi() {
|
|
|
5270
5270
|
var I;
|
|
5271
5271
|
const i = Me(), o = i.currentLocation.doc._id, m = i.currentLocation.type, l = ((I = T.value.setting.locations.find(
|
|
5272
5272
|
(p) => p.id === o && p.type == m
|
|
5273
|
-
)) == null ? void 0 : I.subsidiaryId) ?? null, { flat: f } =
|
|
5273
|
+
)) == null ? void 0 : I.subsidiaryId) ?? null, { flat: f } = X(T.value.setting.subsidiaries), a = f.find((p) => p.id === l);
|
|
5274
5274
|
return {
|
|
5275
5275
|
id: a == null ? void 0 : a.id,
|
|
5276
5276
|
name: (a == null ? void 0 : a.name) || "",
|
|
@@ -5279,7 +5279,7 @@ function Gi() {
|
|
|
5279
5279
|
},
|
|
5280
5280
|
currentVendorSubsidiary(i) {
|
|
5281
5281
|
var f;
|
|
5282
|
-
const o = ((f = T.value.setting.vendors.find((a) => a.id === i)) == null ? void 0 : f.subsidiaryId) ?? null, { flat: m } =
|
|
5282
|
+
const o = ((f = T.value.setting.vendors.find((a) => a.id === i)) == null ? void 0 : f.subsidiaryId) ?? null, { flat: m } = X(T.value.setting.subsidiaries), l = m.find((a) => a.id === o);
|
|
5283
5283
|
return {
|
|
5284
5284
|
id: l == null ? void 0 : l.id,
|
|
5285
5285
|
name: (l == null ? void 0 : l.name) || "",
|
|
@@ -5287,7 +5287,7 @@ function Gi() {
|
|
|
5287
5287
|
};
|
|
5288
5288
|
},
|
|
5289
5289
|
get subsidiaryOptions() {
|
|
5290
|
-
const { flat: i } =
|
|
5290
|
+
const { flat: i } = X(T.value.setting.subsidiaries);
|
|
5291
5291
|
return i.map((o) => ({
|
|
5292
5292
|
label: `${" ".repeat(o.depth)}${o.name}`,
|
|
5293
5293
|
value: {
|
|
@@ -5297,7 +5297,7 @@ function Gi() {
|
|
|
5297
5297
|
}));
|
|
5298
5298
|
},
|
|
5299
5299
|
getBusinessSubsidiaryTree() {
|
|
5300
|
-
const { tree: i } =
|
|
5300
|
+
const { tree: i } = X(
|
|
5301
5301
|
T.value.setting.subsidiaries,
|
|
5302
5302
|
T.value.setting.subsidiaryId
|
|
5303
5303
|
);
|
|
@@ -5306,7 +5306,7 @@ function Gi() {
|
|
|
5306
5306
|
getBusinessSubsidiaryPath() {
|
|
5307
5307
|
if (!T.value.setting.subsidiaryId)
|
|
5308
5308
|
return [];
|
|
5309
|
-
const { flat: i } =
|
|
5309
|
+
const { flat: i } = X(T.value.setting.subsidiaries), o = [];
|
|
5310
5310
|
let m = T.value.setting.subsidiaryId;
|
|
5311
5311
|
for (; m; ) {
|
|
5312
5312
|
o.unshift(m);
|
|
@@ -5316,7 +5316,7 @@ function Gi() {
|
|
|
5316
5316
|
return o;
|
|
5317
5317
|
},
|
|
5318
5318
|
getAvailableItems(i) {
|
|
5319
|
-
const { available: o, flatMapping: m } =
|
|
5319
|
+
const { available: o, flatMapping: m } = X(
|
|
5320
5320
|
T.value.setting.subsidiaries,
|
|
5321
5321
|
i
|
|
5322
5322
|
);
|
|
@@ -5328,7 +5328,7 @@ function Gi() {
|
|
|
5328
5328
|
const m = T.value.setting.items.find((a) => a.id === i);
|
|
5329
5329
|
if (!m)
|
|
5330
5330
|
return [];
|
|
5331
|
-
const { available: l, flatMapping: f } =
|
|
5331
|
+
const { available: l, flatMapping: f } = X(
|
|
5332
5332
|
T.value.setting.subsidiaries,
|
|
5333
5333
|
o
|
|
5334
5334
|
);
|
|
@@ -5351,7 +5351,7 @@ function Gi() {
|
|
|
5351
5351
|
const m = await i.readSetting();
|
|
5352
5352
|
if (m) {
|
|
5353
5353
|
if (this.state.setting = m, (o = T.value.setting.subsidiaries) != null && o.length) {
|
|
5354
|
-
const { flat: f, tree: a } =
|
|
5354
|
+
const { flat: f, tree: a } = X(T.value.setting.subsidiaries);
|
|
5355
5355
|
for (const p of m.vendors) {
|
|
5356
5356
|
const y = f.find((E) => E.id === p.subsidiaryId);
|
|
5357
5357
|
this.state.vendorSubsidiary[p.id] = (y == null ? void 0 : y.fullName) || "";
|
|
@@ -5491,7 +5491,7 @@ function Ht(s, u, d) {
|
|
|
5491
5491
|
return { ...c, children: n, isAssigned: r };
|
|
5492
5492
|
}).filter(Boolean);
|
|
5493
5493
|
}
|
|
5494
|
-
function
|
|
5494
|
+
function X(s, u) {
|
|
5495
5495
|
const d = [], c = [];
|
|
5496
5496
|
function r(o, m, l = !1) {
|
|
5497
5497
|
return s.filter((a) => a.parentId === m).map((a) => ((l || a.id === u || !u) && d.push(a.id), {
|
|
@@ -5588,8 +5588,8 @@ const Ji = {
|
|
|
5588
5588
|
}
|
|
5589
5589
|
};
|
|
5590
5590
|
export {
|
|
5591
|
-
|
|
5591
|
+
ze as S,
|
|
5592
5592
|
Ki as _,
|
|
5593
5593
|
de as a,
|
|
5594
|
-
|
|
5594
|
+
zi as u
|
|
5595
5595
|
};
|