@feedmepos/mf-inventory-portal 1.2.65 → 1.2.66-dev.2
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-DEmYZZ1B.js → App-D7YEj-Dq.js} +82 -78
- package/dist/{ApprovalView-BsjUVJws.js → ApprovalView-ColHOrfB.js} +5 -5
- package/dist/{BindingsDialog-D3imHH3Z.js → BindingsDialog-C150vSNc.js} +5 -5
- package/dist/{BindingsPicker-DO4gQPN1.js → BindingsPicker-DzgCqIvK.js} +3 -3
- package/dist/{BindingsTable-D7xNfttj.js → BindingsTable-rCxma9yH.js} +5 -5
- package/dist/{ClosingDraftView-CtnBSmw8.js → ClosingDraftView-Di4SC8Ba.js} +225 -223
- package/dist/ClosingHistoryView-D7U8f0_W.js +1147 -0
- package/dist/{ClosingTemplateView-CMwSS9rh.js → ClosingTemplateView-B74-KHne.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-BjmSS9su.js → DeliveryOrderPrintPreview-CLWrZHRz.js} +7 -7
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-PaJxAwfq.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CsZHmmJk.js} +16 -16
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CiVdVYaT.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B3KzU-nc.js} +2 -2
- package/dist/{FmMultiselectDialog-CbyZNNG-.js → FmMultiselectDialog-CaqfXI51.js} +1 -1
- package/dist/{FmMultiselectDialog-D0nX5qsz.js → FmMultiselectDialog-uzanqsJE.js} +16 -16
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CD_YyePH.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Bvr1CV0g.js} +23 -22
- package/dist/{ImportView-aJ4TFKPM.js → ImportView-CKA8AUFx.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CuR9NfYU.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BRQ82pXx.js} +1 -1
- package/dist/{IngredientGroupView-DUEG260s.js → IngredientGroupView-DGSkK-cR.js} +5 -5
- package/dist/{IngredientsView-DVMyMVrC.js → IngredientsView-BVMx8Cw0.js} +25 -24
- package/dist/{IntegrationView-fPxyilFi.js → IntegrationView-Cag3jdd3.js} +18 -17
- package/dist/{InventoryBindingForm-B3UkZuh1.js → InventoryBindingForm-BtaWRWIr.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BKIPodzM.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DP6TMTY3.js} +17 -16
- package/dist/{InventoryBindingSummary-BouYW6hE.js → InventoryBindingSummary-D03_qf_U.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DNKT61XF.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-LBsuWChb.js} +5 -5
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DoYWx15l.js +93 -0
- package/dist/{PublishView-DOqZQ6EC.js → PublishView-CsxpT2bJ.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-Ce5gAr4m.js → PurchaseOrderPrintPreview-DNMz4ujs.js} +11 -11
- package/dist/{ReceiveRequestView-Cc64UK7B.js → ReceiveRequestView-DgV6D94u.js} +144 -142
- package/dist/RecipeView-CxdmHDdY.js +1690 -0
- package/dist/StockView-a0Gase_O.js +2395 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DET2fkbz.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CWIROMzg.js} +1 -1
- package/dist/{SupplierView-DHN7YeKF.js → SupplierView-DL14m94P.js} +20 -19
- package/dist/{SurchargeView-HP1FTw9C.js → SurchargeView-DZ-4jRuM.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Dmc1JYgH.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-lR0rkDAn.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-B7oS8hTd.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-foY1WHix.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DHV6OqXy.js → TransferDetails.vue_vue_type_script_setup_true_lang-m-YUty01.js} +131 -130
- package/dist/{TransferTemplateView-EXdlE0KB.js → TransferTemplateView-CYNUq8mF.js} +22 -21
- package/dist/UnitCostHistoryView-ui6oT5R8.js +651 -0
- package/dist/UnitDisplayControl.vue_vue_type_script_setup_true_lang-C5ho7UeP.js +137 -0
- package/dist/{UnitView-_-DIG18g.js → UnitView-BpKmGKmt.js} +11 -9
- package/dist/{WarehouseView-WMQ_n-_f.js → WarehouseView-B6R4SQdt.js} +5 -5
- package/dist/{WastageTemplateView-C-wRbiNy.js → WastageTemplateView-Dc8K5oy9.js} +14 -14
- package/dist/api/closing.d.ts +2 -0
- package/dist/api/inventory.d.ts +126 -36
- package/dist/api/netsuite.d.ts +8 -1
- package/dist/api/stock.d.ts +5 -1
- package/dist/api/unit-cost-history.d.ts +28 -0
- package/dist/{app-_wLPJvlC.js → app-ClBmHSAd.js} +8983 -7890
- package/dist/app.d.ts +236 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-B0HNCf_j.js → closing-template-D3ll-DmL.js} +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +37 -1
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +14 -0
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +16 -1
- package/dist/{date2-BmRujNQL.js → date2-B04oAq4m.js} +1 -1
- package/dist/{dayjs.min-CXh48dHa.js → dayjs.min-BK1YULDe.js} +16 -16
- package/dist/decimal-C5uiNe8X.js +99 -0
- package/dist/{defineDeepModel-TkDG2QNy.js → defineDeepModel-BaqD0Vf4.js} +1 -1
- package/dist/{duplicate-template-BzBR_5Cy.js → duplicate-template-CL_VMuy6.js} +1 -1
- package/dist/export-DuYgQUek.js +25 -0
- package/dist/{feature-BAPc_0tE.js → feature-BJaM6Q_V.js} +94 -89
- package/dist/{format-time-from-id-Ch8lz0j3.js → format-time-from-id-Bi1h_3wY.js} +1 -1
- package/dist/{format-unit-display-pxNgyWy1.js → format-unit-display-BWLDa0Nc.js} +16 -15
- package/dist/{import-export.helper-COYebamd.js → import-export.helper-Wpqvmiy3.js} +16 -15
- package/dist/{index-C0t1NFHp.js → index-BNhsGU5L.js} +1 -1
- package/dist/{index-DZJznlrX.js → index-BpfI5lAx.js} +3 -3
- package/dist/{index--_LLyzOc.js → index-CzyVBwGH.js} +1471 -1412
- package/dist/{lodash-AonP5yrI.js → lodash-UDA7PXDd.js} +1 -1
- package/dist/{netsuite-DxqPjEqv.js → netsuite-BGoVaPpB.js} +92 -92
- package/dist/number-BrjYTvCG.js +138 -0
- package/dist/{purchase-order-template-C0aR-o7E.js → purchase-order-template-C4g22Uzt.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/rules-Cls3M_gA.js +98 -0
- package/dist/stock-BouVYqdU.js +75 -0
- package/dist/{stock-ClNth1E-.js → stock-C7tIRrXX.js} +28 -27
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +8 -1
- package/dist/stores/inventory.d.ts +120 -30
- package/dist/{supplier-B8TSd8y3.js → supplier-DczTUpJg.js} +2 -2
- package/dist/{surcharge-CA0pCS0I.js → surcharge-Cn0mnlxa.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Dvcgd9yd.js → use-ingredient-select-dialog-BXcMkvwh.js} +2 -2
- package/dist/{use-inventory-binding-dialog-CzthGApH.js → use-inventory-binding-dialog-xAzicEAt.js} +2 -2
- package/dist/{use-template-enabled-locations-2-DKXN5g18.js → use-template-enabled-locations-2-DfwfBvAI.js} +2 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +68 -12
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +204 -36
- package/dist/views/closing-history/ClosingDetailDialog.vue.d.ts +23 -0
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +8 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +96 -12
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +96 -12
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +18 -18
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +14 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +32 -4
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +28 -0
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +170 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +43 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +25 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +125 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +129 -0
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +30 -0
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +5 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +8 -1
- package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +16 -2
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +33 -5
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +16 -2
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +32 -4
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +41 -6
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +246 -36
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +287 -42
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +16 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +16 -2
- package/dist/views/stock/components/dialog/SnapshotRecalculationDialog.vue.d.ts +11 -0
- package/dist/views/stock/components/dialog/recalculationUtils.d.ts +16 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -1
- package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +24 -3
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -12
- package/dist/views/unit-cost-history/UnitCostHistoryView.vue.d.ts +2 -0
- package/dist/views/unit-cost-history/components/UnitCostDetailsSideSheet.vue.d.ts +19 -0
- package/dist/views/unit-cost-history/components/UnitCostRecalculationDialog.vue.d.ts +11 -0
- package/dist/views/unit-cost-history/composables/use-unit-cost-history.d.ts +65 -0
- package/dist/{vue-i18n-CEulw4I5.js → vue-i18n-B7BiaQqD.js} +404 -404
- package/dist/{xlsx-BtS4E6KT.js → xlsx-JP__vSrM.js} +1 -1
- package/dist/{xlsx.util-DJI2rWqR.js → xlsx.util-CsyLStS7.js} +1 -1
- package/package.json +1 -1
- package/dist/ClosingHistoryView-DYL41vEL.js +0 -447
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BqbGMohU.js +0 -116
- package/dist/RecipeView-BFizdFr2.js +0 -646
- package/dist/StockView-BrUbNS1w.js +0 -2520
- package/dist/rules-RTkxkzJH.js +0 -327
- package/dist/stock-DPU3FeY4.js +0 -75
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { m as e,
|
|
1
|
+
import { m as e, $ as Kt, a0 as zt, a1 as Gt, a2 as Yt, a3 as Fe, a4 as Jt, a5 as ke, Q as He, a6 as Xe, a7 as Ct, a8 as P, a9 as x, e as Te, N as R, y as M, aa as $e, E as ne, D as se, ab as Ke, O as B, ac as Nt, ad as Qt, ae as Wt, af as Zt, ag as et, ah as Xt, o as en, j as tn, v as ft, a as nn, u as Me } from "./app-ClBmHSAd.js";
|
|
2
2
|
import { useCoreStore as we } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as rn } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as
|
|
5
|
-
import { defineComponent as sn, ref as ze, computed as Ie, resolveComponent as xe, openBlock as
|
|
6
|
-
import { u as dn } from "./feature-
|
|
4
|
+
import { _ as O } from "./lodash-UDA7PXDd.js";
|
|
5
|
+
import { defineComponent as sn, ref as ze, computed as Ie, resolveComponent as xe, openBlock as Q, createBlock as on, withCtx as oe, createVNode as ae, createElementVNode as w, createElementBlock as ue, Fragment as Le, createCommentVNode as Ue, createTextVNode as W, toDisplayString as V, renderList as an, unref as It, h as un } from "vue";
|
|
6
|
+
import { u as dn } from "./feature-BJaM6Q_V.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",
|
|
@@ -977,7 +977,7 @@ var pt;
|
|
|
977
977
|
throw new Error(`Missing unit type in NetSuite assembly item ${t.id}`);
|
|
978
978
|
if (o.netSuiteId !== t.unitsType.id)
|
|
979
979
|
throw new Error(`Unit type mismatch for NetSuite assembly item ${t.id}: expected unit type ID ${t.unitsType.id}, got ${o.netSuiteId}`);
|
|
980
|
-
const f = t.subsidiary.items.map((N) => N.id), a =
|
|
980
|
+
const f = t.subsidiary.items.map((N) => N.id), a = P({
|
|
981
981
|
prefix: x.Enum.sku
|
|
982
982
|
}), I = (v = n == null ? void 0 : n.netsuiteCustomAttributes) == null ? void 0 : v.reduce((N, A) => {
|
|
983
983
|
const D = A.compute(r);
|
|
@@ -1104,7 +1104,7 @@ var yt;
|
|
|
1104
1104
|
throw new Error(`Missing unit type in NetSuite service item ${n.id}`);
|
|
1105
1105
|
if (i.netSuiteId !== n.unitsType.id)
|
|
1106
1106
|
throw new Error(`Unit type mismatch for NetSuite service item ${n.id}: expected unit type ID ${n.unitsType.id}, got ${i.netSuiteId}`);
|
|
1107
|
-
const o = n.subsidiary.items.map((S) => S.id), m =
|
|
1107
|
+
const o = n.subsidiary.items.map((S) => S.id), m = P({
|
|
1108
1108
|
prefix: x.Enum.sku
|
|
1109
1109
|
}), l = (E = r == null ? void 0 : r.netsuiteCustomAttributes) == null ? void 0 : E.reduce((S, b) => {
|
|
1110
1110
|
const h = b.compute(c);
|
|
@@ -1176,7 +1176,7 @@ var gt;
|
|
|
1176
1176
|
throw new Error(`Missing unit type in NetSuite inventory item ${t.id}`);
|
|
1177
1177
|
if (o.netSuiteId !== t.unitsType.id)
|
|
1178
1178
|
throw new Error(`Unit type mismatch for NetSuite inventory item ${t.id}: expected unit type ID ${t.unitsType.id}, got ${o.netSuiteId}`);
|
|
1179
|
-
const f = t.subsidiary.items.map((N) => N.id), a =
|
|
1179
|
+
const f = t.subsidiary.items.map((N) => N.id), a = P({
|
|
1180
1180
|
prefix: x.Enum.sku
|
|
1181
1181
|
}), I = (v = n == null ? void 0 : n.netsuiteCustomAttributes) == null ? void 0 : v.reduce((N, A) => {
|
|
1182
1182
|
const D = A.compute(r);
|
|
@@ -1723,13 +1723,13 @@ function Ve(s) {
|
|
|
1723
1723
|
return u;
|
|
1724
1724
|
}
|
|
1725
1725
|
g(Ve, "getTransferOrderStatusEnumKeyByValue");
|
|
1726
|
-
function
|
|
1726
|
+
function Qe(s) {
|
|
1727
1727
|
const u = Object.keys(Ne).find((d) => Ne[d] === s);
|
|
1728
1728
|
if (!u)
|
|
1729
1729
|
throw new Error(`Invalid purchase order status value: ${s}`);
|
|
1730
1730
|
return u;
|
|
1731
1731
|
}
|
|
1732
|
-
g(
|
|
1732
|
+
g(Qe, "getPurchaseOrderStatusEnumKeyByValue");
|
|
1733
1733
|
function Ft(s, u, d) {
|
|
1734
1734
|
const c = d.filter((a) => a.field === "TRANDOC.KSTATUS"), r = [
|
|
1735
1735
|
F.B,
|
|
@@ -1749,7 +1749,7 @@ function Ft(s, u, d) {
|
|
|
1749
1749
|
};
|
|
1750
1750
|
}
|
|
1751
1751
|
g(Ft, "getPurchaseOrderRequestStatusTimestamp");
|
|
1752
|
-
function
|
|
1752
|
+
function Ot(s) {
|
|
1753
1753
|
const u = s.shipDate;
|
|
1754
1754
|
if (!u)
|
|
1755
1755
|
return null;
|
|
@@ -1761,7 +1761,7 @@ function Pt(s) {
|
|
|
1761
1761
|
estimatedTime: new Date(u).toISOString()
|
|
1762
1762
|
};
|
|
1763
1763
|
}
|
|
1764
|
-
g(
|
|
1764
|
+
g(Ot, "transformTransferOrderPreparingShipmentMilestoneFromNetSuite");
|
|
1765
1765
|
var _t;
|
|
1766
1766
|
(function(s) {
|
|
1767
1767
|
(function(u) {
|
|
@@ -1780,7 +1780,7 @@ var _t;
|
|
|
1780
1780
|
overrideCost: o,
|
|
1781
1781
|
customAttributes: m
|
|
1782
1782
|
});
|
|
1783
|
-
}), { netSuiteFromId: I, netSuiteToId: p } =
|
|
1783
|
+
}), { netSuiteFromId: I, netSuiteToId: p } = Pt(n.locations, t);
|
|
1784
1784
|
return {
|
|
1785
1785
|
// spread user-supplied custom fields (typed as CF)
|
|
1786
1786
|
...l,
|
|
@@ -1843,7 +1843,7 @@ var _t;
|
|
|
1843
1843
|
g(r, "toCloseDto"), u.toCloseDto = r;
|
|
1844
1844
|
})(s.ToNetSuite || (s.ToNetSuite = {})), function(u) {
|
|
1845
1845
|
function d(r) {
|
|
1846
|
-
var H, he,
|
|
1846
|
+
var H, he, Pe, at, ut, dt, ct, lt, mt;
|
|
1847
1847
|
const { fromLocation: n, toLocation: t, nsTransferOrder: i, orderItemMapping: o, nsItemFulfillments: m, orderItemMappingByFulfillment: l, nsItemReceipts: f, orderItemMappingByReceipt: a, context: I, nsSystemNotes: p } = r, y = {
|
|
1848
1848
|
_id: n.doc._id,
|
|
1849
1849
|
internal: n.type,
|
|
@@ -1855,7 +1855,7 @@ var _t;
|
|
|
1855
1855
|
address: {
|
|
1856
1856
|
line1: ((H = n.doc.profile.address) == null ? void 0 : H.line1) || "",
|
|
1857
1857
|
line2: (he = n.doc.profile.address) == null ? void 0 : he.line2,
|
|
1858
|
-
state: ((
|
|
1858
|
+
state: ((Pe = n.doc.profile.address) == null ? void 0 : Pe.state) || "",
|
|
1859
1859
|
city: ((at = n.doc.profile.address) == null ? void 0 : at.city) || "",
|
|
1860
1860
|
country: ((ut = n.doc.profile.address) == null ? void 0 : ut.country) || "",
|
|
1861
1861
|
postcode: ((dt = n.doc.profile.address) == null ? void 0 : dt.postcode) || ""
|
|
@@ -1892,8 +1892,8 @@ var _t;
|
|
|
1892
1892
|
measurement: ge,
|
|
1893
1893
|
context: I
|
|
1894
1894
|
});
|
|
1895
|
-
}), k = new Date(i.createdDate), [v, U, N] = i.tranDate.split("-"), A = new Date(Number(v), Number(U) - 1, Number(N)), D =
|
|
1896
|
-
_id:
|
|
1895
|
+
}), k = new Date(i.createdDate), [v, U, N] = i.tranDate.split("-"), A = new Date(Number(v), Number(U) - 1, Number(N)), D = Ot(i), L = {
|
|
1896
|
+
_id: P({
|
|
1897
1897
|
prefix: x.Enum.purchaseOrder,
|
|
1898
1898
|
dateTime: k.toISOString()
|
|
1899
1899
|
}),
|
|
@@ -1911,7 +1911,7 @@ var _t;
|
|
|
1911
1911
|
id: i.custbody_fm_po_request_id,
|
|
1912
1912
|
adjustmentIds: []
|
|
1913
1913
|
} : void 0
|
|
1914
|
-
}, { processedAt: me, rejectedAt:
|
|
1914
|
+
}, { processedAt: me, rejectedAt: Oe } = Ft(i.createdDate, i.orderStatus.id, p ?? []), ve = S.reduce((j, G) => {
|
|
1915
1915
|
const ge = new Date(G.createdAt);
|
|
1916
1916
|
return j ? ge.getTime() < j.getTime() ? ge : j : ge;
|
|
1917
1917
|
}, null);
|
|
@@ -1928,7 +1928,7 @@ var _t;
|
|
|
1928
1928
|
},
|
|
1929
1929
|
purchaseOrderId: L._id,
|
|
1930
1930
|
processedAt: me || (ve == null ? void 0 : ve.toISOString()) || null,
|
|
1931
|
-
rejectedAt:
|
|
1931
|
+
rejectedAt: Oe,
|
|
1932
1932
|
adjustmentIds: [],
|
|
1933
1933
|
purchaseOrder: L,
|
|
1934
1934
|
// NetSuite
|
|
@@ -1944,7 +1944,7 @@ var _t;
|
|
|
1944
1944
|
g(c, "convertToV1"), u.convertToV1 = c;
|
|
1945
1945
|
}(s.FromNetSuite || (s.FromNetSuite = {}));
|
|
1946
1946
|
})(_t || (_t = {}));
|
|
1947
|
-
function
|
|
1947
|
+
function Pt(s, u) {
|
|
1948
1948
|
var r, n;
|
|
1949
1949
|
const d = (r = s.find((t) => {
|
|
1950
1950
|
const [i, o] = u.from.dbName.split("_");
|
|
@@ -1960,7 +1960,7 @@ function Ot(s, u) {
|
|
|
1960
1960
|
netSuiteToId: c
|
|
1961
1961
|
};
|
|
1962
1962
|
}
|
|
1963
|
-
g(
|
|
1963
|
+
g(Pt, "locationMapper");
|
|
1964
1964
|
function xt(s) {
|
|
1965
1965
|
let u = null, d = !1, c = !1;
|
|
1966
1966
|
for (const t of s.item.items) {
|
|
@@ -1993,7 +1993,7 @@ var bt;
|
|
|
1993
1993
|
(function(s) {
|
|
1994
1994
|
(function(u) {
|
|
1995
1995
|
function d({ locationDb: n, setting: t, purchaseOrder: i, status: o = X.enum.A, overrideItemCost: m = !0, customItemAttributes: l, customFields: f }) {
|
|
1996
|
-
const { netSuiteFromId: a, netSuiteToId: I } =
|
|
1996
|
+
const { netSuiteFromId: a, netSuiteToId: I } = We(t.locations, t.vendors, n, i.supplier._id), p = i.items.map((y) => {
|
|
1997
1997
|
const E = t.items.find((_) => _.id === y.sku._id);
|
|
1998
1998
|
return ie.ToNetSuite.toCreateDto({
|
|
1999
1999
|
poItem: y,
|
|
@@ -2030,7 +2030,7 @@ var bt;
|
|
|
2030
2030
|
items: p
|
|
2031
2031
|
},
|
|
2032
2032
|
orderStatus: {
|
|
2033
|
-
id:
|
|
2033
|
+
id: Qe(o)
|
|
2034
2034
|
},
|
|
2035
2035
|
custbody_fm_po_num: i.seqNumber,
|
|
2036
2036
|
custbody_fm_po_id: i._id
|
|
@@ -2038,7 +2038,7 @@ var bt;
|
|
|
2038
2038
|
}
|
|
2039
2039
|
g(d, "toCreateDto"), u.toCreateDto = d;
|
|
2040
2040
|
function c({ locationDb: n, setting: t, purchaseOrder: i, overrideItemCost: o, customItemAttributes: m, includeItems: l = !1, customFields: f }) {
|
|
2041
|
-
const { netSuiteToId: a } =
|
|
2041
|
+
const { netSuiteToId: a } = We(t.locations, t.vendors, n, i.supplier._id);
|
|
2042
2042
|
i != null && i.effectiveAt || se(i._id);
|
|
2043
2043
|
const I = i.items.map((p) => {
|
|
2044
2044
|
const y = t.items.find((E) => E.id === p.sku._id);
|
|
@@ -2065,14 +2065,14 @@ var bt;
|
|
|
2065
2065
|
function r() {
|
|
2066
2066
|
return {
|
|
2067
2067
|
orderStatus: {
|
|
2068
|
-
id:
|
|
2068
|
+
id: Qe(X.enum.H)
|
|
2069
2069
|
}
|
|
2070
2070
|
};
|
|
2071
2071
|
}
|
|
2072
2072
|
g(r, "toCloseDto"), u.toCloseDto = r;
|
|
2073
2073
|
})(s.ToNetSuite || (s.ToNetSuite = {})), function(u) {
|
|
2074
2074
|
function d(c) {
|
|
2075
|
-
var v, U, N, A, D, L, me,
|
|
2075
|
+
var v, U, N, A, D, L, me, Oe, ve;
|
|
2076
2076
|
const { vendor: r, nsPurchaseOrder: n, orderItemMapping: t, nsItemReceipts: i, orderItemMappingByReceipt: o, context: m } = c, l = {
|
|
2077
2077
|
_id: r._id,
|
|
2078
2078
|
contactName: r.contactName,
|
|
@@ -2088,7 +2088,7 @@ var bt;
|
|
|
2088
2088
|
country: ((D = r.address) == null ? void 0 : D.country) || "",
|
|
2089
2089
|
postcode: ((L = r.address) == null ? void 0 : L.postcode) || ""
|
|
2090
2090
|
}
|
|
2091
|
-
}, f = (ve = (
|
|
2091
|
+
}, f = (ve = (Oe = (me = m.options) == null ? void 0 : me.netSuite) == null ? void 0 : Oe.additionalInfo) == null ? void 0 : ve.reduce((fe, H) => {
|
|
2092
2092
|
const he = H.compute(c, H.extraParams);
|
|
2093
2093
|
return {
|
|
2094
2094
|
...fe,
|
|
@@ -2108,19 +2108,19 @@ var bt;
|
|
|
2108
2108
|
const H = o[fe.id];
|
|
2109
2109
|
return je.FromNetSuite.transform(m, H, fe);
|
|
2110
2110
|
}), p = n.item.items.reduce((fe, H) => {
|
|
2111
|
-
const he = t[H.line].sku,
|
|
2111
|
+
const he = t[H.line].sku, Pe = t[H.line].measurement;
|
|
2112
2112
|
return fe.push(ie.FromNetSuite.toPurchaseOrderItem({
|
|
2113
2113
|
currency: n.currency.refName,
|
|
2114
2114
|
nsOrderItem: H,
|
|
2115
2115
|
sku: he,
|
|
2116
2116
|
glImpactCost: [],
|
|
2117
|
-
measurement:
|
|
2117
|
+
measurement: Pe,
|
|
2118
2118
|
context: m
|
|
2119
2119
|
})), fe;
|
|
2120
2120
|
}, []), y = new Date(n.createdDate), [E, _, S] = n.tranDate.split("-"), b = new Date(Number(E), Number(_) - 1, Number(S)), h = xt(n);
|
|
2121
2121
|
return {
|
|
2122
2122
|
purchaseOrder: {
|
|
2123
|
-
_id:
|
|
2123
|
+
_id: P({
|
|
2124
2124
|
prefix: x.Enum.purchaseOrder,
|
|
2125
2125
|
dateTime: y.toISOString()
|
|
2126
2126
|
}),
|
|
@@ -2140,7 +2140,7 @@ var bt;
|
|
|
2140
2140
|
g(d, "transform"), u.transform = d;
|
|
2141
2141
|
}(s.FromNetSuite || (s.FromNetSuite = {}));
|
|
2142
2142
|
})(bt || (bt = {}));
|
|
2143
|
-
function
|
|
2143
|
+
function We(s, u, d, c) {
|
|
2144
2144
|
var t, i;
|
|
2145
2145
|
const r = (t = u.find((o) => o.id === c)) == null ? void 0 : t.netSuiteId, n = (i = s.find((o) => {
|
|
2146
2146
|
const [m, l] = d.split("_");
|
|
@@ -2153,13 +2153,13 @@ function Qe(s, u, d, c) {
|
|
|
2153
2153
|
netSuiteToId: n
|
|
2154
2154
|
};
|
|
2155
2155
|
}
|
|
2156
|
-
g(
|
|
2156
|
+
g(We, "locationMapper");
|
|
2157
2157
|
var Ze;
|
|
2158
2158
|
(function(s) {
|
|
2159
2159
|
(function(u) {
|
|
2160
2160
|
function d(c) {
|
|
2161
2161
|
const n = {
|
|
2162
|
-
id:
|
|
2162
|
+
id: P({
|
|
2163
2163
|
prefix: x.Enum.measurement
|
|
2164
2164
|
}),
|
|
2165
2165
|
name: c.unitName,
|
|
@@ -2184,7 +2184,7 @@ var St;
|
|
|
2184
2184
|
(function(s) {
|
|
2185
2185
|
(function(u) {
|
|
2186
2186
|
function d(c, r) {
|
|
2187
|
-
let n = c.uom.items, t =
|
|
2187
|
+
let n = c.uom.items, t = P({
|
|
2188
2188
|
prefix: x.Enum.unit
|
|
2189
2189
|
});
|
|
2190
2190
|
const i = {
|
|
@@ -2242,7 +2242,7 @@ var vt;
|
|
|
2242
2242
|
(function(s) {
|
|
2243
2243
|
(function(u) {
|
|
2244
2244
|
function d(c) {
|
|
2245
|
-
const r = c.addressBook.items.find((o) => o.defaultBilling), n =
|
|
2245
|
+
const r = c.addressBook.items.find((o) => o.defaultBilling), n = P({
|
|
2246
2246
|
prefix: x.Enum.supplier
|
|
2247
2247
|
}), t = {
|
|
2248
2248
|
_id: n,
|
|
@@ -2598,7 +2598,7 @@ var ht;
|
|
|
2598
2598
|
return le.FromNetSuite.toPurchaseOrderItem(b, h, k);
|
|
2599
2599
|
});
|
|
2600
2600
|
return {
|
|
2601
|
-
_id:
|
|
2601
|
+
_id: P({
|
|
2602
2602
|
prefix: x.Enum.purchaseOrder,
|
|
2603
2603
|
dateTime: o.toISOString()
|
|
2604
2604
|
}),
|
|
@@ -2663,7 +2663,7 @@ var ht;
|
|
|
2663
2663
|
return le.FromNetSuite.toPurchaseOrderItem(D, L, me);
|
|
2664
2664
|
});
|
|
2665
2665
|
return {
|
|
2666
|
-
_id:
|
|
2666
|
+
_id: P({
|
|
2667
2667
|
prefix: x.Enum.purchaseOrder,
|
|
2668
2668
|
dateTime: m.toISOString()
|
|
2669
2669
|
}),
|
|
@@ -2853,7 +2853,7 @@ function Fn(s, u) {
|
|
|
2853
2853
|
return c;
|
|
2854
2854
|
}
|
|
2855
2855
|
g(Fn, "getAvailableItemToBeFulfilled");
|
|
2856
|
-
function
|
|
2856
|
+
function On(s) {
|
|
2857
2857
|
var l, f;
|
|
2858
2858
|
const { inventorySkus: u, legacyParentItemConfigs: d, parentReplicas: c } = s, r = d.reduce((a, I) => (a[I.id] = I, a), {}), n = c.reduce((a, I) => (a[I.netSuiteId] = I, a), {}), t = /* @__PURE__ */ new Set(), i = [];
|
|
2859
2859
|
for (const a of u) {
|
|
@@ -2907,8 +2907,8 @@ function Pn(s) {
|
|
|
2907
2907
|
updatedParentItemConfigs: o
|
|
2908
2908
|
};
|
|
2909
2909
|
}
|
|
2910
|
-
g(
|
|
2911
|
-
function
|
|
2910
|
+
g(On, "syncAssemblyParentItemsWithLegacyConfig");
|
|
2911
|
+
function Pn(s) {
|
|
2912
2912
|
var n, t;
|
|
2913
2913
|
const { legacyChildItemConfigs: u, childReplicas: d } = s, c = [], r = /* @__PURE__ */ new Set();
|
|
2914
2914
|
for (const i of d)
|
|
@@ -2930,7 +2930,7 @@ function On(s) {
|
|
|
2930
2930
|
i.itemType !== R.Enum.Assembly && !r.has(i.netSuiteId) && c.push(i);
|
|
2931
2931
|
return c;
|
|
2932
2932
|
}
|
|
2933
|
-
g(
|
|
2933
|
+
g(Pn, "syncAssemblyChildItemsWithLegacyConfig");
|
|
2934
2934
|
function xn(s) {
|
|
2935
2935
|
var l, f;
|
|
2936
2936
|
const { inventorySkus: u, legacyParentItemConfigs: d, parentReplicas: c } = s, r = d.reduce((a, I) => (a[I.id] = I, a), {}), n = c.reduce((a, I) => (a[I.netSuiteId] = I, a), {}), t = /* @__PURE__ */ new Set(), i = [];
|
|
@@ -3157,7 +3157,7 @@ function Se(s, u, d, c, r = !1) {
|
|
|
3157
3157
|
if (!(m === "quantity" && l && f && M.equals({
|
|
3158
3158
|
a: l,
|
|
3159
3159
|
b: f
|
|
3160
|
-
})) && !
|
|
3160
|
+
})) && !O.isEqual(t[m], i[m])) {
|
|
3161
3161
|
let a = f, I = l;
|
|
3162
3162
|
if (m === "code" && f)
|
|
3163
3163
|
continue;
|
|
@@ -3236,7 +3236,7 @@ function st(s, u, d, c, r) {
|
|
|
3236
3236
|
});
|
|
3237
3237
|
else {
|
|
3238
3238
|
i.id && i.externalId && (t[i.id] = i.externalId);
|
|
3239
|
-
const m = Object.keys(
|
|
3239
|
+
const m = Object.keys(Qt.shape);
|
|
3240
3240
|
for (const l of m) {
|
|
3241
3241
|
if (l === "id" || l === "externalId" && r === ne.Enum[1])
|
|
3242
3242
|
continue;
|
|
@@ -3266,7 +3266,7 @@ function st(s, u, d, c, r) {
|
|
|
3266
3266
|
if (!(l === "amount" && f && a && M.equals({
|
|
3267
3267
|
a: f,
|
|
3268
3268
|
b: a
|
|
3269
|
-
})) && !
|
|
3269
|
+
})) && !O.isEqual(i[l], o[l])) {
|
|
3270
3270
|
let I = a, p = f;
|
|
3271
3271
|
typeof i[l] == "object" && (I = JSON.stringify(a), p = JSON.stringify(f)), n.push({
|
|
3272
3272
|
type: u === "deliveryFulfillment" ? C.ITEM_FULFILLMENT_ITEM_UPDATED : C.ITEM_RECEIPT_ITEM_UPDATED,
|
|
@@ -3348,7 +3348,7 @@ var ee;
|
|
|
3348
3348
|
var $ = /* @__PURE__ */ g((s) => s === "" ? null : s, "normalizeNullOrEmpty"), Vn = 'Record [$] item on line [$], field "$" changed from "$" to "$"';
|
|
3349
3349
|
function Bn(s, u, d) {
|
|
3350
3350
|
var n, t, i, o, m, l;
|
|
3351
|
-
const c = Object.keys(
|
|
3351
|
+
const c = Object.keys(Wt.shape), r = [];
|
|
3352
3352
|
for (const f of u) {
|
|
3353
3353
|
const a = $(f.id), I = $((n = f.netSuite) == null ? void 0 : n.id);
|
|
3354
3354
|
if (!I)
|
|
@@ -3376,7 +3376,7 @@ function Bn(s, u, d) {
|
|
|
3376
3376
|
continue;
|
|
3377
3377
|
}
|
|
3378
3378
|
const h = f[b] ?? null, k = p[b] ?? null;
|
|
3379
|
-
if (!
|
|
3379
|
+
if (!O.isEqual(h, k)) {
|
|
3380
3380
|
let v = k, U = h;
|
|
3381
3381
|
typeof f[b] == "object" && (v = JSON.stringify(k), U = JSON.stringify(h)), b === "createdAt" && (v = new Date(f[b]).toISOString(), U = new Date(p[b]).toISOString()), r.push({
|
|
3382
3382
|
type: ee.ITEM_FULFILLMENT_UPDATED,
|
|
@@ -3437,7 +3437,7 @@ function qn(s, u) {
|
|
|
3437
3437
|
for (const n of d)
|
|
3438
3438
|
n.type === ee.ITEM_FULFILLMENT_CREATED && c.push({
|
|
3439
3439
|
...n.data,
|
|
3440
|
-
id: n.data.id ||
|
|
3440
|
+
id: n.data.id || P({
|
|
3441
3441
|
prefix: x.Enum.deliveryFulfillment
|
|
3442
3442
|
})
|
|
3443
3443
|
});
|
|
@@ -3445,7 +3445,7 @@ function qn(s, u) {
|
|
|
3445
3445
|
for (const n of c)
|
|
3446
3446
|
n.id ? r.push(n) : (console.warn("Missing delivery fulfillment id, generating new id"), r.push({
|
|
3447
3447
|
...n,
|
|
3448
|
-
id:
|
|
3448
|
+
id: P({
|
|
3449
3449
|
prefix: x.Enum.deliveryFulfillment
|
|
3450
3450
|
})
|
|
3451
3451
|
}));
|
|
@@ -3503,7 +3503,7 @@ function jt(s, u, d) {
|
|
|
3503
3503
|
continue;
|
|
3504
3504
|
}
|
|
3505
3505
|
const U = v in Dt, N = U ? p[v] ?? Dt[v] : $(p[v] ?? null), A = U ? _[v] : $(_[v] ?? null);
|
|
3506
|
-
if (!
|
|
3506
|
+
if (!O.isEqual(N, A)) {
|
|
3507
3507
|
if ((v === "createdAt" || v === "createdBy" || v === "remark" || v === "effectiveAt") && A)
|
|
3508
3508
|
continue;
|
|
3509
3509
|
let D = A, L = N;
|
|
@@ -3569,7 +3569,7 @@ function Vt(s, u) {
|
|
|
3569
3569
|
const t = new Date(n.data.createdAt), i = new Date(n.data.effectiveAt);
|
|
3570
3570
|
c.push({
|
|
3571
3571
|
...n.data,
|
|
3572
|
-
id: n.data.id ||
|
|
3572
|
+
id: n.data.id || P({
|
|
3573
3573
|
prefix: x.Enum.deliveryOrder
|
|
3574
3574
|
}),
|
|
3575
3575
|
effectiveAt: J(t, i) ? void 0 : i.toISOString()
|
|
@@ -3579,7 +3579,7 @@ function Vt(s, u) {
|
|
|
3579
3579
|
for (const n of c)
|
|
3580
3580
|
n.id ? r.push(n) : (console.warn("Missing delivery order id, generating new id"), r.push({
|
|
3581
3581
|
...n,
|
|
3582
|
-
id:
|
|
3582
|
+
id: P({
|
|
3583
3583
|
prefix: x.Enum.deliveryOrder
|
|
3584
3584
|
})
|
|
3585
3585
|
}));
|
|
@@ -3653,7 +3653,7 @@ function zn(s, u, d, c = !1) {
|
|
|
3653
3653
|
const a = new Date(se(u._id));
|
|
3654
3654
|
J(a, new Date(l)) && (l = null);
|
|
3655
3655
|
}
|
|
3656
|
-
if (!
|
|
3656
|
+
if (!O.isEqual(l, f)) {
|
|
3657
3657
|
let a = f, I = l;
|
|
3658
3658
|
if (l && f && typeof l == "object" && typeof f == "object" && (a = f ? JSON.stringify(f) : null, I = l ? JSON.stringify(l) : null), o === "effectiveAt") {
|
|
3659
3659
|
if (!f) {
|
|
@@ -3731,7 +3731,7 @@ function Gn(s, u, d, c, r) {
|
|
|
3731
3731
|
const m = new Date(se(d.purchaseOrder._id)), l = new Date(d.purchaseOrder.effectiveAt);
|
|
3732
3732
|
n = {
|
|
3733
3733
|
...d.purchaseOrder,
|
|
3734
|
-
_id: (r == null ? void 0 : r.purchaseOrderId) || d.purchaseOrder._id ||
|
|
3734
|
+
_id: (r == null ? void 0 : r.purchaseOrderId) || d.purchaseOrder._id || P({
|
|
3735
3735
|
prefix: x.Enum.purchaseOrder
|
|
3736
3736
|
}),
|
|
3737
3737
|
effectiveAt: J(m, l) ? void 0 : l.toISOString(),
|
|
@@ -3848,7 +3848,7 @@ function Yn(s, u) {
|
|
|
3848
3848
|
}
|
|
3849
3849
|
g(Yn, "detectPurchaseOrderConflicts");
|
|
3850
3850
|
function Jn(s, u, d, c) {
|
|
3851
|
-
let r = c ?
|
|
3851
|
+
let r = c ? O.cloneDeep(c) : null;
|
|
3852
3852
|
const n = qe((r == null ? void 0 : r.items) || [], u);
|
|
3853
3853
|
if (s.length === 0)
|
|
3854
3854
|
throw new Error("No order lines found");
|
|
@@ -3878,7 +3878,7 @@ function Jn(s, u, d, c) {
|
|
|
3878
3878
|
const i = new Date(se(d._id)), o = new Date(d.effectiveAt);
|
|
3879
3879
|
r = {
|
|
3880
3880
|
...d,
|
|
3881
|
-
_id: d._id ||
|
|
3881
|
+
_id: d._id || P({
|
|
3882
3882
|
prefix: x.Enum.purchaseOrder
|
|
3883
3883
|
}),
|
|
3884
3884
|
effectiveAt: J(i, o) ? void 0 : o.toISOString(),
|
|
@@ -3910,7 +3910,7 @@ var pe;
|
|
|
3910
3910
|
(function(s) {
|
|
3911
3911
|
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";
|
|
3912
3912
|
})(pe || (pe = {}));
|
|
3913
|
-
var
|
|
3913
|
+
var Qn = 'Record [$] unif of measure on line [$], field "$" changed from "$" to "$"';
|
|
3914
3914
|
function Bt(s, u) {
|
|
3915
3915
|
const d = Object.keys(At.shape), c = [];
|
|
3916
3916
|
for (const r of u) {
|
|
@@ -3926,11 +3926,11 @@ function Bt(s, u) {
|
|
|
3926
3926
|
if (t === "nsConfig" || t === "id")
|
|
3927
3927
|
continue;
|
|
3928
3928
|
const i = r[t] ?? null, o = n[t] ?? null;
|
|
3929
|
-
if (!
|
|
3929
|
+
if (!O.isEqual(i, o)) {
|
|
3930
3930
|
let m = o, l = i;
|
|
3931
3931
|
typeof i == "object" && (m = JSON.stringify(o), l = JSON.stringify(i)), c.push({
|
|
3932
3932
|
type: pe.UNIT_OF_MEASUREMENT_UPDATED,
|
|
3933
|
-
message: re(
|
|
3933
|
+
message: re(Qn, [
|
|
3934
3934
|
"Unit Of Measure",
|
|
3935
3935
|
`${r.nsConfig.netSuiteId}`,
|
|
3936
3936
|
t,
|
|
@@ -3956,7 +3956,7 @@ function Bt(s, u) {
|
|
|
3956
3956
|
return c;
|
|
3957
3957
|
}
|
|
3958
3958
|
g(Bt, "detectUnitOfMeasureConflicts");
|
|
3959
|
-
function
|
|
3959
|
+
function Wn(s, u) {
|
|
3960
3960
|
const d = [];
|
|
3961
3961
|
if (!u)
|
|
3962
3962
|
d.push({
|
|
@@ -3974,7 +3974,7 @@ function Qn(s, u) {
|
|
|
3974
3974
|
continue;
|
|
3975
3975
|
}
|
|
3976
3976
|
const n = s[r] ?? null, t = u[r] ?? null;
|
|
3977
|
-
if (!
|
|
3977
|
+
if (!O.isEqual(n, t)) {
|
|
3978
3978
|
let i = t, o = n;
|
|
3979
3979
|
d.push({
|
|
3980
3980
|
type: Ae.UNIT_UPDATED,
|
|
@@ -3990,7 +3990,7 @@ function Qn(s, u) {
|
|
|
3990
3990
|
}
|
|
3991
3991
|
return d;
|
|
3992
3992
|
}
|
|
3993
|
-
g(
|
|
3993
|
+
g(Wn, "detectUnitTypeConflicts");
|
|
3994
3994
|
function qt(s, u) {
|
|
3995
3995
|
if (u.length === 0)
|
|
3996
3996
|
return s;
|
|
@@ -4072,7 +4072,7 @@ function Xn(s, u) {
|
|
|
4072
4072
|
const o = new Date(se(u._id));
|
|
4073
4073
|
J(o, new Date(t)) && (t = null);
|
|
4074
4074
|
}
|
|
4075
|
-
if (!
|
|
4075
|
+
if (!O.isEqual(t, i)) {
|
|
4076
4076
|
let o = i, m = t;
|
|
4077
4077
|
if (t && i && typeof t == "object" && typeof i == "object") {
|
|
4078
4078
|
if (n === "netSuite") {
|
|
@@ -4132,7 +4132,7 @@ function ei(s, u, d, c) {
|
|
|
4132
4132
|
const i = new Date(se(d._id)), o = new Date(d.effectiveAt);
|
|
4133
4133
|
r = {
|
|
4134
4134
|
...d,
|
|
4135
|
-
_id: d._id ||
|
|
4135
|
+
_id: d._id || P({
|
|
4136
4136
|
prefix: x.Enum.purchaseOrder
|
|
4137
4137
|
}),
|
|
4138
4138
|
effectiveAt: J(i, o) ? void 0 : o.toISOString(),
|
|
@@ -4192,7 +4192,7 @@ function ri(s) {
|
|
|
4192
4192
|
const r = Object.keys(ii.shape);
|
|
4193
4193
|
for (const n of r) {
|
|
4194
4194
|
const t = d[n] ?? null, i = c[n] ?? null;
|
|
4195
|
-
|
|
4195
|
+
O.isEqual(t, i) || u.push({
|
|
4196
4196
|
type: K.INVENTORY_ITEM_UPDATED,
|
|
4197
4197
|
message: q("InvtPart Child Item", d.netSuiteId, n, i, t),
|
|
4198
4198
|
data: {
|
|
@@ -4218,7 +4218,7 @@ function si(s) {
|
|
|
4218
4218
|
const r = Object.keys(ni.shape);
|
|
4219
4219
|
for (const t of r) {
|
|
4220
4220
|
const i = d[t] ?? null, o = c[t] ?? null;
|
|
4221
|
-
|
|
4221
|
+
O.isEqual(i, o) || u.push({
|
|
4222
4222
|
type: K.INVENTORY_ITEM_UPDATED,
|
|
4223
4223
|
message: q("Inventory Parent Item", d.netSuiteId, t, o, i),
|
|
4224
4224
|
data: {
|
|
@@ -4231,7 +4231,7 @@ function si(s) {
|
|
|
4231
4231
|
const n = Object.keys(ti.shape);
|
|
4232
4232
|
for (const t of n) {
|
|
4233
4233
|
const i = d.skuCache[t] ?? null, o = c.skuCache[t] ?? null;
|
|
4234
|
-
|
|
4234
|
+
O.isEqual(i, o) || u.push({
|
|
4235
4235
|
type: K.INVENTORY_ITEM_SKU_UPDATED,
|
|
4236
4236
|
message: q("Inventory Parent Item", d.netSuiteId, t, o, i),
|
|
4237
4237
|
data: {
|
|
@@ -4322,7 +4322,7 @@ function li(s) {
|
|
|
4322
4322
|
const r = Object.keys(ci.shape);
|
|
4323
4323
|
for (const n of r) {
|
|
4324
4324
|
const t = d[n] ?? null, i = c[n] ?? null;
|
|
4325
|
-
|
|
4325
|
+
O.isEqual(t, i) || u.push({
|
|
4326
4326
|
type: z.ASSEMBLY_ITEM_UPDATED,
|
|
4327
4327
|
message: q("Assembly Child Item", d.netSuiteId, n, i, t),
|
|
4328
4328
|
data: {
|
|
@@ -4348,7 +4348,7 @@ function mi(s) {
|
|
|
4348
4348
|
const r = Object.keys(di.shape);
|
|
4349
4349
|
for (const t of r) {
|
|
4350
4350
|
const i = d[t] ?? null, o = c[t] ?? null;
|
|
4351
|
-
|
|
4351
|
+
O.isEqual(i, o) || u.push({
|
|
4352
4352
|
type: z.ASSEMBLY_ITEM_UPDATED,
|
|
4353
4353
|
message: q("Assembly Parent Item", d.netSuiteId, t, o, i),
|
|
4354
4354
|
data: {
|
|
@@ -4361,7 +4361,7 @@ function mi(s) {
|
|
|
4361
4361
|
const n = Object.keys(ui.shape);
|
|
4362
4362
|
for (const t of n) {
|
|
4363
4363
|
const i = d.skuCache[t] ?? null, o = c.skuCache[t] ?? null;
|
|
4364
|
-
|
|
4364
|
+
O.isEqual(i, o) || u.push({
|
|
4365
4365
|
type: z.ASSEMBLY_ITEM_SKU_UPDATED,
|
|
4366
4366
|
message: q("Assembly Parent Item", d.netSuiteId, t, o, i),
|
|
4367
4367
|
data: {
|
|
@@ -4449,7 +4449,7 @@ function gi(s) {
|
|
|
4449
4449
|
const r = Object.keys(yi.shape);
|
|
4450
4450
|
for (const t of r) {
|
|
4451
4451
|
const i = d[t] ?? null, o = c[t] ?? null;
|
|
4452
|
-
|
|
4452
|
+
O.isEqual(i, o) || u.push({
|
|
4453
4453
|
type: ye.SERVICE_ITEM_UPDATED,
|
|
4454
4454
|
message: q("Service Parent Item", d.netSuiteId, t, o, i),
|
|
4455
4455
|
data: {
|
|
@@ -4462,7 +4462,7 @@ function gi(s) {
|
|
|
4462
4462
|
const n = Object.keys(pi.shape);
|
|
4463
4463
|
for (const t of n) {
|
|
4464
4464
|
const i = d.skuCache[t] ?? null, o = c.skuCache[t] ?? null;
|
|
4465
|
-
|
|
4465
|
+
O.isEqual(i, o) || u.push({
|
|
4466
4466
|
type: ye.SERVICE_ITEM_SKU_UPDATED,
|
|
4467
4467
|
message: q("Service Parent Item", d.netSuiteId, t, o, i),
|
|
4468
4468
|
data: {
|
|
@@ -4764,10 +4764,10 @@ const de = en((s, u) => {
|
|
|
4764
4764
|
},
|
|
4765
4765
|
urls: s
|
|
4766
4766
|
};
|
|
4767
|
-
}), Ci = { class: "flex flex-col" }, Ni = { class: "text-sm" }, Ai = { class: "text-sm" }, Mi = { class: "text-sm" }, Ui = { class: "flex flex-col gap-2 mt-2" }, ki = { class: "text-xs" }, wi = { class: "text-xs" }, Ri = { class: "text-xs" }, Fi = { class: "text-xs" },
|
|
4767
|
+
}), Ci = { class: "flex flex-col" }, Ni = { class: "text-sm" }, Ai = { class: "text-sm" }, Mi = { class: "text-sm" }, Ui = { class: "flex flex-col gap-2 mt-2" }, ki = { class: "text-xs" }, wi = { class: "text-xs" }, Ri = { class: "text-xs" }, Fi = { class: "text-xs" }, Oi = {
|
|
4768
4768
|
key: 0,
|
|
4769
4769
|
class: "text-xs"
|
|
4770
|
-
},
|
|
4770
|
+
}, Pi = {
|
|
4771
4771
|
key: 0,
|
|
4772
4772
|
class: "text-sm text-gray-400"
|
|
4773
4773
|
}, xi = {
|
|
@@ -4802,7 +4802,7 @@ const de = en((s, u) => {
|
|
|
4802
4802
|
}
|
|
4803
4803
|
return (f, a) => {
|
|
4804
4804
|
const I = xe("FmButton"), p = xe("FmLabel"), y = xe("FmSelect"), E = xe("FmDialog");
|
|
4805
|
-
return
|
|
4805
|
+
return Q(), on(E, {
|
|
4806
4806
|
modelValue: r.value,
|
|
4807
4807
|
"onUpdate:modelValue": a[4] || (a[4] = (_) => r.value = _),
|
|
4808
4808
|
overlay: !0,
|
|
@@ -4826,7 +4826,7 @@ const de = en((s, u) => {
|
|
|
4826
4826
|
])),
|
|
4827
4827
|
"dialog-footer": oe(() => [
|
|
4828
4828
|
w("div", qi, [
|
|
4829
|
-
f.readonly ? Ue("", !0) : (
|
|
4829
|
+
f.readonly ? Ue("", !0) : (Q(), ue(Le, { key: 0 }, [
|
|
4830
4830
|
a[17] || (a[17] = w("span", { class: "text-sm mb-2 font-bold" }, " This will overwrite the code and uom only.", -1)),
|
|
4831
4831
|
w("div", Hi, [
|
|
4832
4832
|
ae(I, {
|
|
@@ -4858,67 +4858,67 @@ const de = en((s, u) => {
|
|
|
4858
4858
|
w("div", Ci, [
|
|
4859
4859
|
ae(p, null, {
|
|
4860
4860
|
default: oe(() => a[6] || (a[6] = [
|
|
4861
|
-
|
|
4861
|
+
W("Code")
|
|
4862
4862
|
])),
|
|
4863
4863
|
_: 1
|
|
4864
4864
|
}),
|
|
4865
4865
|
w("span", Ni, V(f.sku.code), 1),
|
|
4866
4866
|
ae(p, null, {
|
|
4867
4867
|
default: oe(() => a[7] || (a[7] = [
|
|
4868
|
-
|
|
4868
|
+
W("Name")
|
|
4869
4869
|
])),
|
|
4870
4870
|
_: 1
|
|
4871
4871
|
}),
|
|
4872
4872
|
w("span", Ai, V(f.sku.name), 1),
|
|
4873
4873
|
ae(p, null, {
|
|
4874
4874
|
default: oe(() => a[8] || (a[8] = [
|
|
4875
|
-
|
|
4875
|
+
W("Unit")
|
|
4876
4876
|
])),
|
|
4877
4877
|
_: 1
|
|
4878
4878
|
}),
|
|
4879
4879
|
w("span", Mi, V(f.sku.unit.name), 1)
|
|
4880
4880
|
]),
|
|
4881
|
-
f.readonly ? (
|
|
4881
|
+
f.readonly ? (Q(), ue(Le, { key: 0 }, [
|
|
4882
4882
|
a[14] || (a[14] = w("hr", { class: "my-2" }, null, -1)),
|
|
4883
4883
|
ae(p, null, {
|
|
4884
4884
|
default: oe(() => a[9] || (a[9] = [
|
|
4885
|
-
|
|
4885
|
+
W("Custom Codes")
|
|
4886
4886
|
])),
|
|
4887
4887
|
_: 1
|
|
4888
4888
|
}),
|
|
4889
4889
|
w("div", Ui, [
|
|
4890
|
-
(
|
|
4890
|
+
(Q(!0), ue(Le, null, an(n.value, (_, S) => (Q(), ue("div", {
|
|
4891
4891
|
key: S,
|
|
4892
4892
|
class: "rounded border-1 flex flex-col p-2"
|
|
4893
4893
|
}, [
|
|
4894
4894
|
w("span", ki, [
|
|
4895
4895
|
a[10] || (a[10] = w("b", null, "Child Name:", -1)),
|
|
4896
|
-
|
|
4896
|
+
W(" " + V(_.value.childName), 1)
|
|
4897
4897
|
]),
|
|
4898
4898
|
w("span", wi, [
|
|
4899
4899
|
w("b", null, "Custom code (" + V(m.value ? It(ft)(m.value) : "N/A") + "):", 1),
|
|
4900
|
-
|
|
4900
|
+
W(" " + V(_.value.code), 1)
|
|
4901
4901
|
]),
|
|
4902
4902
|
w("span", Ri, [
|
|
4903
4903
|
a[11] || (a[11] = w("b", null, "Custom name:", -1)),
|
|
4904
|
-
|
|
4904
|
+
W(" " + V(_.value.name), 1)
|
|
4905
4905
|
]),
|
|
4906
4906
|
w("span", Fi, [
|
|
4907
4907
|
a[12] || (a[12] = w("b", null, "UOM:", -1)),
|
|
4908
|
-
|
|
4908
|
+
W(" " + V(_.value.fmMeasurementAbbrev ?? d.sku.unit.abbrev), 1)
|
|
4909
4909
|
]),
|
|
4910
|
-
_.value.remark ? (
|
|
4910
|
+
_.value.remark ? (Q(), ue("span", Oi, [
|
|
4911
4911
|
a[13] || (a[13] = w("b", null, "Remark:", -1)),
|
|
4912
|
-
|
|
4912
|
+
W(" " + V(_.value.remark), 1)
|
|
4913
4913
|
])) : Ue("", !0)
|
|
4914
4914
|
]))), 128)),
|
|
4915
|
-
n.value.length === 0 ? (
|
|
4915
|
+
n.value.length === 0 ? (Q(), ue("span", Pi, "No custom code found.")) : Ue("", !0)
|
|
4916
4916
|
])
|
|
4917
|
-
], 64)) : (
|
|
4917
|
+
], 64)) : (Q(), ue(Le, { key: 1 }, [
|
|
4918
4918
|
a[16] || (a[16] = w("hr", { class: "my-2" }, null, -1)),
|
|
4919
4919
|
ae(p, null, {
|
|
4920
4920
|
default: oe(() => a[15] || (a[15] = [
|
|
4921
|
-
|
|
4921
|
+
W("Custom Code")
|
|
4922
4922
|
])),
|
|
4923
4923
|
_: 1
|
|
4924
4924
|
}),
|
|
@@ -4929,12 +4929,12 @@ const de = en((s, u) => {
|
|
|
4929
4929
|
placeholder: "Select NetSuite Custom Code",
|
|
4930
4930
|
class: "w-full mt-2"
|
|
4931
4931
|
}, null, 8, ["modelValue", "items"]),
|
|
4932
|
-
t.value ? (
|
|
4932
|
+
t.value ? (Q(), ue("div", xi, [
|
|
4933
4933
|
w("span", Li, "Child Name: " + V(t.value.childName), 1),
|
|
4934
4934
|
w("span", $i, "Custom code (" + V(m.value ? It(ft)(m.value) : "N/A") + "): " + V(t.value.code), 1),
|
|
4935
4935
|
w("span", ji, "Custom name: " + V(t.value.name), 1),
|
|
4936
4936
|
w("span", Vi, "UOM: " + V(t.value.fmMeasurementAbbrev ?? d.sku.unit.abbrev), 1),
|
|
4937
|
-
t.value.remark ? (
|
|
4937
|
+
t.value.remark ? (Q(), ue("span", Bi, "Remark: " + V(t.value.remark), 1)) : Ue("", !0)
|
|
4938
4938
|
])) : Ue("", !0)
|
|
4939
4939
|
], 64))
|
|
4940
4940
|
])
|
|
@@ -5030,7 +5030,7 @@ function Gi() {
|
|
|
5030
5030
|
o[m] = "Invalid record. Please remove this row.";
|
|
5031
5031
|
continue;
|
|
5032
5032
|
}
|
|
5033
|
-
if (!
|
|
5033
|
+
if (!O.isEqual(f, l.sku)) {
|
|
5034
5034
|
o[m] = "Record is outdated. Please re-apply the item.";
|
|
5035
5035
|
continue;
|
|
5036
5036
|
}
|