@feedmepos/mf-inventory-portal 1.1.2 → 1.1.3-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-BhEtjLqO.js → App-Y70p19Gp.js} +1 -1
- package/dist/ApprovalView-BVyt_mNb.js +219 -0
- package/dist/{BindingsDialog-CX3Hu_r6.js → BindingsDialog-BULs3OTl.js} +4 -4
- package/dist/{BindingsPicker-BbinQ8Hl.js → BindingsPicker-DpAk5M6U.js} +1 -1
- package/dist/{BindingsTable-DxlSz6Ev.js → BindingsTable-DzQzbNFw.js} +4 -4
- package/dist/ClosingDraftView-BpRIs-2B.js +1676 -0
- package/dist/{ClosingTemplateView-CB9_JOl4.js → ClosingTemplateView-B-kRLpTZ.js} +487 -473
- package/dist/{DeliveryOrderPrintPreview-BlE3fIAT.js → DeliveryOrderPrintPreview-CSZndykZ.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DxKFFyWs.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CDvzOUsD.js} +3 -3
- package/dist/{FmMultiselectDialog-DcviKwNR.js → FmMultiselectDialog-DSJ2MFmR.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CepHeClt.js → FmUnitInput.vue_vue_type_script_setup_true_lang-XUPKPUMs.js} +1 -1
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Dg8VdQzg.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-c0_HwN-t.js} +1 -1
- package/dist/{IngredientGroupView-EE8lN8JL.js → IngredientGroupView-DQ-EBjd-.js} +2 -2
- package/dist/{IngredientsView-BkDpHVvn.js → IngredientsView-CQgltl5_.js} +4 -4
- package/dist/{IntegrationView-Bj7sb1gO.js → IntegrationView-CNcVeIFO.js} +1170 -1141
- package/dist/{InventoryBindingForm-BkazprFH.js → InventoryBindingForm-BuKXc_Sa.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BbQqYyzL.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DQaufX7H.js} +3 -3
- package/dist/{InventoryBindingSummary-D0XiOdR4.js → InventoryBindingSummary-D68_zXou.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Pf8BPDZw.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-d2nPZ3lt.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D2Tx3xSj.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DkRWn5u5.js} +1 -1
- package/dist/{PublishView-BUIcrw8m.js → PublishView-CpQ71JIU.js} +18 -18
- package/dist/{PurchaseOrderPrintPreview-lO7Bilm5.js → PurchaseOrderPrintPreview-DZo7aY7C.js} +1 -1
- package/dist/{ReceiveRequestView-BZV-8Ib3.js → ReceiveRequestView-C4546P-_.js} +697 -694
- package/dist/{RecipeView-2Tm12Zuk.js → RecipeView-BRwqCYV9.js} +3 -3
- package/dist/{StockView-DaWS_HQl.js → StockView-cvnJr_oX.js} +6 -6
- package/dist/{SupplierView-nfxqynuY.js → SupplierView-DwS-SiXQ.js} +648 -646
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-B2NLmIxb.js +2280 -0
- package/dist/{TransferTemplateView-CGjfCELA.js → TransferTemplateView-CGKjXln1.js} +6 -6
- package/dist/{UnitView-Cm5WuuEN.js → UnitView-BabatKhp.js} +3 -3
- package/dist/{WarehouseView-BSLX0g3B.js → WarehouseView-BtEuG-Iw.js} +1 -1
- package/dist/api/duplicate-template.d.ts +3 -3
- package/dist/api/netsuite.d.ts +1 -0
- package/dist/{app-CnDLBWW7.js → app-cN81pzZd.js} +23769 -23459
- package/dist/app.d.ts +9 -0
- package/dist/app.js +5 -5
- package/dist/{decimal-DmezA5YT.js → decimal-CC3JyA3f.js} +1 -1
- package/dist/{format-unit-display-Bcq6wldv.js → format-unit-display-B7SHcLn9.js} +216 -202
- package/dist/{index-C476dvi7.js → index-D-5LSVee.js} +2686 -2650
- package/dist/{index-R97nRHsF.js → index-DldWujwI.js} +1 -1
- package/dist/{stock-Dd0YSjSF.js → stock-DBkA5bTB.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-C4s3SHui.js → supplier-C_xP9tgW.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-DaXBOLhz.js → use-ingredient-select-dialog-mXti22kH.js} +1 -1
- package/dist/{use-inventory-binding-dialog-CsFwoUbg.js → use-inventory-binding-dialog-0b-ngROc.js} +1 -1
- package/dist/views/closing-draft/components/closing-draft-action/RefreshBalanceAction.vue.d.ts +19 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +8 -0
- package/dist/views/receive-request/composables/fn.d.ts +32 -0
- package/dist/{vue-i18n-CdkMdZ30.js → vue-i18n-DB3u4gQS.js} +492 -492
- package/package.json +4 -4
- package/dist/ApprovalView-BHIVSsbz.js +0 -213
- package/dist/ClosingDraftView-B5gQ2k-T.js +0 -1520
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-g74nRiM0.js +0 -2213
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import { defineComponent as Y, mergeModels as je, useModel as xe, onMounted as me, ref as j, computed as z, resolveComponent as E, openBlock as
|
|
1
|
+
import { defineComponent as Y, mergeModels as je, useModel as xe, onMounted as me, ref as j, computed as z, resolveComponent as E, openBlock as w, createElementBlock as R, createElementVNode as a, toDisplayString as T, unref as x, createVNode as I, createBlock as X, withCtx as D, Fragment as J, renderList as te, normalizeClass as q, normalizeStyle as Oe, createSlots as oe, createCommentVNode as _, withModifiers as Te, reactive as fe, watch as pe, isRef as se, Teleport as ue, h as N, createTextVNode as Z, watchEffect as ze } from "vue";
|
|
2
2
|
import { E as He } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import {
|
|
4
|
-
import { useDialogChild as Ze, useDialog as
|
|
3
|
+
import { aZ as _e, aN as Xe, f as $, u as W, a_ as Ue, b as le, j as Qe, aW as Se, al as ve, ay as ge, a as ye, a2 as Ye, Q as P, $ as we, a$ as ke, aE as Be, aR as Ce, s as Ee, y as Fe, a0 as re, c as Le, _ as Je, C as Ke } from "./app-cN81pzZd.js";
|
|
4
|
+
import { useDialogChild as Ze, useDialog as Ae, useProxiedModel as ae, useSnackbar as ne, useBreakpoints as Ve, components as ee } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as G, useCoreStore as ie } from "@feedmepos/mf-common";
|
|
6
|
-
import { a as qe, b as Ge, c as Pe, u as We } from "./index-
|
|
7
|
-
import { u as de } from "./vue-i18n-
|
|
8
|
-
import { _ as $e, F as et } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { a as qe, b as Ge, c as Pe, u as We } from "./index-DldWujwI.js";
|
|
7
|
+
import { u as de } from "./vue-i18n-DB3u4gQS.js";
|
|
8
|
+
import { _ as $e, F as et } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-XUPKPUMs.js";
|
|
9
9
|
const tt = "data:image/svg+xml,%3csvg%20width='200'%20height='101'%20viewBox='0%200%20200%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M98.9161%2038.4456V24.1772H108.527V27.1988H102.12V30.2202H107.347V32.7382H102.12V38.4456H98.9161Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.382%2031.2276C110.382%2027.5345%20113.249%2024.1772%20117.127%2024.1772C121.174%2024.1772%20123.872%2027.7024%20123.872%2031.3953C123.872%2035.0884%20121.005%2038.6133%20117.127%2038.6133C113.08%2038.4456%20110.382%2034.9204%20110.382%2031.2276ZM117.127%2035.5919C119.487%2035.5919%20120.499%2033.4096%20120.499%2031.2276C120.499%2029.0452%20119.319%2027.0309%20117.127%2027.0309C114.935%2027.0309%20113.754%2029.213%20113.754%2031.2276C113.754%2033.5776%20114.935%2035.5919%20117.127%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M126.232%2031.2276C126.232%2027.5345%20129.099%2024.1772%20132.977%2024.1772C137.024%2024.1772%20139.722%2027.7024%20139.722%2031.3953C139.722%2035.0884%20136.855%2038.6133%20132.977%2038.6133C128.93%2038.4456%20126.232%2034.9204%20126.232%2031.2276ZM132.977%2035.5919C135.337%2035.5919%20136.349%2033.4096%20136.349%2031.2276C136.349%2029.0452%20135.169%2027.0309%20132.977%2027.0309C130.785%2027.0309%20129.604%2029.213%20129.604%2031.2276C129.604%2033.5776%20130.785%2035.5919%20132.977%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M142.926%2038.4455V24.345H148.153C152.874%2024.345%20155.235%2027.5343%20155.235%2031.3952C155.235%2035.5918%20152.368%2038.4455%20148.153%2038.4455H142.926ZM148.153%2027.0308H146.129V35.4238H148.153C150.513%2035.4238%20151.862%2033.5775%20151.862%2031.2272C151.862%2028.8773%20150.513%2027.0308%20148.153%2027.0308Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.045%2057.5607V49.1676L107.009%2055.2107H105.324L102.12%2049.1676V57.5607H98.9161V43.4604H102.457L106.167%2050.8465L109.876%2043.4604H113.417V57.5607H110.045Z'%20fill='%235D5359'/%3e%3cpath%20d='M115.947%2057.5607L121.342%2043.4604H124.04L129.436%2057.5607H125.895L124.715%2054.3716H120.331L119.319%2057.5607H115.947ZM122.691%2046.9856L121.005%2052.1893H124.378L122.691%2046.9856Z'%20fill='%235D5359'/%3e%3cpath%20d='M131.965%2057.5607V43.4604H138.373C141.07%2043.4604%20142.925%2045.8105%20142.925%2048.1605C142.925%2049.8393%20142.082%2051.5179%20140.565%2052.1893L143.768%2057.393H140.059L137.192%2052.8607H135V57.393H131.965V57.5607ZM135.169%2050.175H138.204C139.047%2050.175%20139.553%2049.3356%20139.553%2048.1605C139.553%2046.9856%20138.71%2046.3142%20138.035%2046.3142H135.169V50.175Z'%20fill='%235D5359'/%3e%3cpath%20d='M146.635%2057.5607V43.4604H150.007V49.8393L155.403%2043.4604H158.776L153.548%2049.6713L159.281%2057.5607H155.74L151.693%2051.5179L150.007%2053.3642V57.5607H146.635Z'%20fill='%235D5359'/%3e%3cpath%20d='M171.422%2054.7073V57.5607H161.474V43.4604H171.253V46.3142H164.677V48.9999H170.242V51.6856H164.677V54.7073H171.422Z'%20fill='%235D5359'/%3e%3cpath%20d='M185.417%2046.3142H181.202V57.5607H177.829V46.3142H173.614V43.4604H185.417V46.3142Z'%20fill='%235D5359'/%3e%3cpath%20d='M111.057%2062.5967V76.6973H107.853V70.9898H102.12V76.6973H98.9161V62.5967H102.12V68.1361H107.853V62.5967H111.057Z'%20fill='%235D5359'/%3e%3cpath%20d='M124.04%2069.815V62.5967H127.244V69.815C127.244%2073.6758%20125.389%2076.865%20121.005%2076.865C116.453%2076.865%20114.766%2073.5078%20114.766%2069.815V62.5967H117.97V69.815C117.97%2071.997%20118.813%2074.0115%20121.005%2074.0115C123.366%2074.0115%20124.04%2071.997%20124.04%2069.815Z'%20fill='%235D5359'/%3e%3cpath%20d='M138.036%2076.6973H131.122V62.5967H139.047C141.071%2062.5967%20142.251%2064.4433%20142.251%2066.2898C142.251%2067.6327%20141.576%2068.9755%20140.228%2069.4793C141.914%2069.9827%20142.926%2071.1578%20142.926%2073.1721C142.757%2075.5221%20140.733%2076.6973%20138.036%2076.6973ZM134.326%2065.4504V68.3041H137.53C138.204%2068.3041%20138.879%2067.8004%20138.879%2066.7933C138.879%2065.7861%20138.373%2065.2827%20137.698%2065.2827H134.326V65.4504ZM138.204%2070.8221H134.494V73.8435H138.204C139.047%2073.8435%20139.722%2073.1721%20139.722%2072.3327C139.553%2071.6613%20138.879%2070.8221%20138.204%2070.8221Z'%20fill='%235D5359'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M73.4753%2051.4994C78.7281%2050.5396%2082.8911%2046.4891%2083.9954%2041.3137L84.1232%2040.7134L83.9445%2040.1256C80.5804%2029.066%2071.9945%2020.2704%2061.0373%2016.5726C57.4%2015.3451%2053.5046%2014.6804%2049.458%2014.6804C45.4112%2014.6804%2041.5158%2015.3451%2037.8784%2016.5726C26.9214%2020.2704%2018.3354%2029.066%2014.9712%2040.1256L14.7924%2040.7134L14.9206%2041.3137C16.0247%2046.4891%2020.1875%2050.5396%2025.4405%2051.4994V58.8839H14.4183C14.6758%2059.9557%2014.9818%2061.0088%2015.3337%2062.0411C20.1553%2076.1811%2033.6083%2086.3619%2049.458%2086.3619C65.3074%2086.3619%2078.7606%2076.1811%2083.5822%2062.0411C83.9342%2061.0088%2084.2399%2059.9557%2084.4974%2058.8839H73.4753V51.4994ZM41.0517%2020.5973V38.5742C41.0517%2043.1931%2044.8155%2046.9371%2049.458%2046.9371C54.1005%2046.9371%2057.8641%2043.1931%2057.8641%2038.5742V20.5973C55.1919%2019.856%2052.3732%2019.4592%2049.458%2019.4592C46.5428%2019.4592%2043.7241%2019.856%2041.0517%2020.5973ZM62.6675%2022.3673V38.5742C62.6675%2043.1931%2066.431%2046.9371%2071.0735%2046.9371C74.9051%2046.9371%2078.1425%2044.3848%2079.1528%2040.8942C76.4672%2032.6902%2070.4379%2025.9824%2062.6675%2022.3673ZM60.2658%2046.1322C57.8753%2049.5094%2053.9255%2051.7159%2049.458%2051.7159C44.9902%2051.7159%2041.0408%2049.5094%2038.65%2046.1322C36.6982%2048.8894%2033.7074%2050.8662%2030.2439%2051.4994V58.8839H68.6718V51.4994C65.2083%2050.8662%2062.2175%2048.8894%2060.2658%2046.1322ZM21.1583%2063.6628C26.1349%2074.2514%2036.9382%2081.5834%2049.458%2081.5834C61.9776%2081.5834%2072.781%2074.2514%2077.7574%2063.6628H21.1583ZM36.2482%2038.5742V22.3673C28.4779%2025.9824%2022.4486%2032.6902%2019.7631%2040.8942C20.7733%2044.3848%2024.0106%2046.9371%2027.8422%2046.9371C32.4847%2046.9371%2036.2482%2043.1931%2036.2482%2038.5742Z'%20fill='%23FFC35D'/%3e%3c/svg%3e";
|
|
10
10
|
var Ne = { exports: {} };
|
|
11
|
-
(function(F,
|
|
11
|
+
(function(F, v) {
|
|
12
12
|
(function() {
|
|
13
13
|
var s = {};
|
|
14
|
-
F.exports = s, s.simpleFilter = function(
|
|
14
|
+
F.exports = s, s.simpleFilter = function(d, n) {
|
|
15
15
|
return n.filter(function(t) {
|
|
16
|
-
return s.test(
|
|
16
|
+
return s.test(d, t);
|
|
17
17
|
});
|
|
18
|
-
}, s.test = function(
|
|
19
|
-
return s.match(
|
|
20
|
-
}, s.match = function(
|
|
18
|
+
}, s.test = function(d, n) {
|
|
19
|
+
return s.match(d, n) !== null;
|
|
20
|
+
}, s.match = function(d, n, t) {
|
|
21
21
|
t = t || {};
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
for (var
|
|
25
|
-
C = n[
|
|
26
|
-
return
|
|
27
|
-
}, s.filter = function(
|
|
28
|
-
return !n || n.length === 0 ? [] : typeof
|
|
29
|
-
var
|
|
30
|
-
t.extract && (
|
|
31
|
-
var
|
|
32
|
-
return
|
|
33
|
-
string:
|
|
34
|
-
score:
|
|
35
|
-
index:
|
|
36
|
-
original:
|
|
37
|
-
}),
|
|
38
|
-
}, []).sort(function(
|
|
39
|
-
var
|
|
40
|
-
return
|
|
22
|
+
var r = 0, h = [], k = n.length, A = 0, g = 0, l = t.pre || "", i = t.post || "", b = t.caseSensitive && n || n.toLowerCase(), C;
|
|
23
|
+
d = t.caseSensitive && d || d.toLowerCase();
|
|
24
|
+
for (var S = 0; S < k; S++)
|
|
25
|
+
C = n[S], b[S] === d[r] ? (C = l + C + i, r += 1, g += 1 + g) : g = 0, A += g, h[h.length] = C;
|
|
26
|
+
return r === d.length ? (A = b === d ? 1 / 0 : A, { rendered: h.join(""), score: A }) : null;
|
|
27
|
+
}, s.filter = function(d, n, t) {
|
|
28
|
+
return !n || n.length === 0 ? [] : typeof d != "string" ? n : (t = t || {}, n.reduce(function(r, h, k, A) {
|
|
29
|
+
var g = h;
|
|
30
|
+
t.extract && (g = t.extract(h));
|
|
31
|
+
var l = s.match(d, g, t);
|
|
32
|
+
return l != null && (r[r.length] = {
|
|
33
|
+
string: l.rendered,
|
|
34
|
+
score: l.score,
|
|
35
|
+
index: k,
|
|
36
|
+
original: h
|
|
37
|
+
}), r;
|
|
38
|
+
}, []).sort(function(r, h) {
|
|
39
|
+
var k = h.score - r.score;
|
|
40
|
+
return k || r.index - h.index;
|
|
41
41
|
}));
|
|
42
42
|
};
|
|
43
43
|
})();
|
|
44
44
|
})(Ne);
|
|
45
45
|
var nt = Ne.exports;
|
|
46
|
-
const Re = /* @__PURE__ */
|
|
47
|
-
function be(F,
|
|
48
|
-
return Re.filter(F,
|
|
46
|
+
const Re = /* @__PURE__ */ _e(nt);
|
|
47
|
+
function be(F, v) {
|
|
48
|
+
return Re.filter(F, v).length > 0;
|
|
49
49
|
}
|
|
50
|
-
function ot(F,
|
|
50
|
+
function ot(F, v) {
|
|
51
51
|
if (!F)
|
|
52
52
|
return {
|
|
53
|
-
label:
|
|
53
|
+
label: v,
|
|
54
54
|
segments: [
|
|
55
55
|
{
|
|
56
56
|
isMatch: !1,
|
|
57
|
-
segment:
|
|
57
|
+
segment: v
|
|
58
58
|
}
|
|
59
59
|
],
|
|
60
60
|
matched: !1
|
|
61
61
|
};
|
|
62
|
-
const [s] = Re.filter(F.toLocaleLowerCase(), [
|
|
62
|
+
const [s] = Re.filter(F.toLocaleLowerCase(), [v], {
|
|
63
63
|
pre: "|",
|
|
64
64
|
post: "|"
|
|
65
65
|
});
|
|
66
66
|
if (!s)
|
|
67
67
|
return {
|
|
68
|
-
label:
|
|
69
|
-
segments: [{ segment:
|
|
68
|
+
label: v,
|
|
69
|
+
segments: [{ segment: v, isMatch: !1 }],
|
|
70
70
|
matched: !1
|
|
71
71
|
};
|
|
72
|
-
const
|
|
72
|
+
const d = s.string.toString().replace(/\|\|/g, "").split("|").reduce((n, t, r) => (n.push({
|
|
73
73
|
segment: t,
|
|
74
|
-
isMatch:
|
|
74
|
+
isMatch: r % 2 !== 0
|
|
75
75
|
//e.g. index 1, 3, 5, ...
|
|
76
76
|
}), n), new Array());
|
|
77
77
|
return {
|
|
78
|
-
label:
|
|
79
|
-
segments:
|
|
78
|
+
label: v,
|
|
79
|
+
segments: d,
|
|
80
80
|
matched: !0
|
|
81
81
|
};
|
|
82
82
|
}
|
|
@@ -102,36 +102,36 @@ const st = { class: "flex flex-col gap-12 h-[350px]" }, at = { class: "flex item
|
|
|
102
102
|
}),
|
|
103
103
|
emits: ["update:modelValue"],
|
|
104
104
|
setup(F) {
|
|
105
|
-
const
|
|
105
|
+
const v = xe(F, "modelValue"), s = Ze();
|
|
106
106
|
me(() => {
|
|
107
|
-
s.emitData(
|
|
107
|
+
s.emitData(v.value);
|
|
108
108
|
});
|
|
109
|
-
const
|
|
109
|
+
const d = j(""), { t: n } = G();
|
|
110
110
|
function t(e) {
|
|
111
111
|
return be(
|
|
112
|
-
|
|
112
|
+
d.value,
|
|
113
113
|
e.sublabel ? [e.label, e.sublabel] : [e.label]
|
|
114
114
|
);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
return t(e) ? !0 : K(e) ? e.children.some(
|
|
116
|
+
function r(e) {
|
|
117
|
+
return t(e) ? !0 : K(e) ? e.children.some(r) : !1;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
if (!
|
|
119
|
+
function h(e, o) {
|
|
120
|
+
if (!d.value)
|
|
121
121
|
return !0;
|
|
122
122
|
const [B, ...L] = e;
|
|
123
123
|
if (typeof B != "number")
|
|
124
124
|
return !1;
|
|
125
125
|
const V = o[B];
|
|
126
126
|
return be(
|
|
127
|
-
|
|
127
|
+
d.value,
|
|
128
128
|
V.sublabel ? [V.label, V.sublabel] : [V.label]
|
|
129
|
-
) ? !0 : L.length === 0 ?
|
|
129
|
+
) ? !0 : L.length === 0 ? r(V) : K(V) ? h(L, V.children) : !1;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function k(e, o, B = 0, L = !1) {
|
|
132
132
|
if (K(e) && e.children.length) {
|
|
133
133
|
const { children: V, ...H } = e, U = V.flatMap(
|
|
134
|
-
(M, O) =>
|
|
134
|
+
(M, O) => k(M, [...o, O], B + 1, L || e.disabled)
|
|
135
135
|
);
|
|
136
136
|
return [
|
|
137
137
|
{
|
|
@@ -154,52 +154,52 @@ const st = { class: "flex flex-col gap-12 h-[350px]" }, at = { class: "flex item
|
|
|
154
154
|
}
|
|
155
155
|
];
|
|
156
156
|
}
|
|
157
|
-
const A = z(() =>
|
|
158
|
-
(e, o) =>
|
|
157
|
+
const A = z(() => v.value.flatMap(
|
|
158
|
+
(e, o) => k(e, [o]).filter((B) => h(B.keys, v.value))
|
|
159
159
|
));
|
|
160
|
-
function
|
|
160
|
+
function g(e) {
|
|
161
161
|
if (K(e)) {
|
|
162
|
-
if (
|
|
163
|
-
const o = t(e) ? e.children : e.children.filter(
|
|
164
|
-
return o.length === 0 ? !1 : o.every(
|
|
162
|
+
if (r(e)) {
|
|
163
|
+
const o = t(e) ? e.children : e.children.filter(r);
|
|
164
|
+
return o.length === 0 ? !1 : o.every(g);
|
|
165
165
|
}
|
|
166
|
-
return e.children.every(
|
|
166
|
+
return e.children.every(g);
|
|
167
167
|
}
|
|
168
168
|
return e.active ?? !1;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function l(e, o) {
|
|
171
171
|
const [B, ...L] = e;
|
|
172
172
|
if (typeof B != "number")
|
|
173
173
|
return !1;
|
|
174
174
|
const V = o[B];
|
|
175
|
-
return L.length === 0 ?
|
|
175
|
+
return L.length === 0 ? g(V ?? []) : K(V) ? l(L, V.children ?? []) : !1;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function i(e) {
|
|
178
178
|
if (K(e)) {
|
|
179
|
-
if (
|
|
180
|
-
const o = t(e) ? e.children : e.children.filter(
|
|
181
|
-
return o.length === 0 ? !1 : o.some(
|
|
179
|
+
if (r(e)) {
|
|
180
|
+
const o = t(e) ? e.children : e.children.filter(r);
|
|
181
|
+
return o.length === 0 ? !1 : o.some(g) && !o.every(g);
|
|
182
182
|
}
|
|
183
183
|
return !1;
|
|
184
184
|
}
|
|
185
185
|
return !1;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function b(e, o) {
|
|
188
188
|
const [B, ...L] = e;
|
|
189
189
|
if (typeof B != "number")
|
|
190
190
|
return !1;
|
|
191
191
|
const V = o[B];
|
|
192
|
-
return L.length === 0 ?
|
|
192
|
+
return L.length === 0 ? i(V ?? []) : K(V) ? b(L, (V == null ? void 0 : V.children) ?? []) : !1;
|
|
193
193
|
}
|
|
194
194
|
function C(e, o) {
|
|
195
195
|
if (e.disabled)
|
|
196
196
|
return e;
|
|
197
197
|
if (K(e)) {
|
|
198
|
-
if (
|
|
199
|
-
const B = t(e) ? e.children : e.children.filter(
|
|
198
|
+
if (r(e)) {
|
|
199
|
+
const B = t(e) ? e.children : e.children.filter(r);
|
|
200
200
|
return {
|
|
201
201
|
...e,
|
|
202
|
-
children: e.children.map((L) => B.find((H) =>
|
|
202
|
+
children: e.children.map((L) => B.find((H) => Xe(H.value, L.value)) ? C(L, o) : L)
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
205
|
return {
|
|
@@ -212,87 +212,87 @@ const st = { class: "flex flex-col gap-12 h-[350px]" }, at = { class: "flex item
|
|
|
212
212
|
active: o
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function S(e, o, B) {
|
|
216
216
|
const [L, ...V] = e;
|
|
217
217
|
return typeof L != "number" ? o : V.length === 0 ? o.map((H, U) => L !== U ? H : C(H, B)) : o.map(
|
|
218
218
|
(H, U) => L === U && K(H) ? {
|
|
219
219
|
...H,
|
|
220
|
-
children:
|
|
220
|
+
children: S(V, H.children, B)
|
|
221
221
|
} : H
|
|
222
222
|
);
|
|
223
223
|
}
|
|
224
|
-
const
|
|
225
|
-
function
|
|
224
|
+
const p = j(new Array());
|
|
225
|
+
function m(e) {
|
|
226
226
|
const o = e.join();
|
|
227
|
-
return
|
|
227
|
+
return p.value.find((B) => o === B);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function c(e) {
|
|
230
230
|
const o = e.join();
|
|
231
|
-
|
|
231
|
+
m(e) ? p.value = p.value.filter((B) => B !== o) : p.value = [...p.value, o];
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function u(e) {
|
|
234
234
|
const o = e.join();
|
|
235
|
-
return
|
|
235
|
+
return p.value.find((B) => o.startsWith(B) && o !== B);
|
|
236
236
|
}
|
|
237
237
|
const y = z(
|
|
238
|
-
() => A.value.filter((e) =>
|
|
238
|
+
() => A.value.filter((e) => h(e.keys, v.value) && e.active).length
|
|
239
239
|
);
|
|
240
|
-
function
|
|
241
|
-
|
|
240
|
+
function f(e, o, B) {
|
|
241
|
+
v.value = S(e, o, B), s.emitData(v.value);
|
|
242
242
|
}
|
|
243
243
|
return (e, o) => {
|
|
244
244
|
const B = E("FmSearch"), L = E("FmCheckbox"), V = E("FmButton"), H = E("FmListItem"), U = E("FmList");
|
|
245
|
-
return
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
245
|
+
return w(), R("div", st, [
|
|
246
|
+
a("div", at, [
|
|
247
|
+
a("div", lt, T(x(n)("inventory.formField.itemsSelected", { count: y.value })), 1),
|
|
248
|
+
a("div", it, [
|
|
249
249
|
I(B, {
|
|
250
|
-
modelValue:
|
|
251
|
-
"onUpdate:modelValue": o[0] || (o[0] = (M) =>
|
|
250
|
+
modelValue: d.value,
|
|
251
|
+
"onUpdate:modelValue": o[0] || (o[0] = (M) => d.value = M),
|
|
252
252
|
placeholder: x(n)("inventory.formField.filterItems")
|
|
253
253
|
}, null, 8, ["modelValue", "placeholder"])
|
|
254
254
|
])
|
|
255
255
|
]),
|
|
256
|
-
A.value.length ? (
|
|
256
|
+
A.value.length ? (w(), X(U, {
|
|
257
257
|
key: 0,
|
|
258
258
|
class: "flex-1 overflow-y-auto"
|
|
259
259
|
}, {
|
|
260
260
|
default: D(() => [
|
|
261
|
-
(
|
|
261
|
+
(w(!0), R(J, null, te(A.value, (M) => (w(), R("div", {
|
|
262
262
|
key: M.keys.join(),
|
|
263
263
|
class: q([
|
|
264
264
|
"transition-all overflow-y-clip",
|
|
265
|
-
|
|
265
|
+
u(M.keys) ? "max-h-0 opacity-0" : "max-h-[50px] opacity-100"
|
|
266
266
|
]),
|
|
267
267
|
"data-cy": `nested-${M.keys.join("-")}-${M.label}`
|
|
268
268
|
}, [
|
|
269
269
|
I(H, {
|
|
270
270
|
clickable: M.selectable !== !1,
|
|
271
|
-
onClick: () => M.selectable === !1 || M.disabled ||
|
|
271
|
+
onClick: () => M.selectable === !1 || M.disabled || f(M.keys, v.value, !l(M.keys, v.value)),
|
|
272
272
|
style: Oe({
|
|
273
273
|
paddingLeft: `${16 + M.indent * 16}px`,
|
|
274
274
|
paddingTop: "4px",
|
|
275
275
|
paddingBottom: "4px"
|
|
276
276
|
}),
|
|
277
277
|
disabled: M.selectable !== !1 && M.disabled
|
|
278
|
-
},
|
|
278
|
+
}, oe({
|
|
279
279
|
default: D(() => [
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
(
|
|
280
|
+
a("div", ut, [
|
|
281
|
+
a("div", dt, [
|
|
282
|
+
(w(!0), R(J, null, te(x(ot)(d.value, M.label).segments, (O, Q) => (w(), R("span", {
|
|
283
283
|
key: Q,
|
|
284
284
|
class: q({
|
|
285
285
|
"font-bold": O.isMatch
|
|
286
286
|
})
|
|
287
287
|
}, T(O.segment), 3))), 128))
|
|
288
288
|
]),
|
|
289
|
-
M.sublabel ? (
|
|
289
|
+
M.sublabel ? (w(), R("div", {
|
|
290
290
|
key: 0,
|
|
291
291
|
class: q([
|
|
292
292
|
"fm-typo-en-body-sm-400",
|
|
293
293
|
M.disabled ? "" : "text-fm-color-typo-secondary"
|
|
294
294
|
])
|
|
295
|
-
}, T(M.sublabel), 3)) :
|
|
295
|
+
}, T(M.sublabel), 3)) : _("", !0)
|
|
296
296
|
])
|
|
297
297
|
]),
|
|
298
298
|
_: 2
|
|
@@ -302,9 +302,9 @@ const st = { class: "flex flex-col gap-12 h-[350px]" }, at = { class: "flex item
|
|
|
302
302
|
fn: D(() => [
|
|
303
303
|
I(L, {
|
|
304
304
|
disabled: M.disabled,
|
|
305
|
-
"model-value":
|
|
305
|
+
"model-value": l(M.keys, v.value),
|
|
306
306
|
value: M.keys,
|
|
307
|
-
indeterminate:
|
|
307
|
+
indeterminate: b(M.keys, v.value)
|
|
308
308
|
}, null, 8, ["disabled", "model-value", "value", "indeterminate"])
|
|
309
309
|
]),
|
|
310
310
|
key: "0"
|
|
@@ -313,10 +313,10 @@ const st = { class: "flex flex-col gap-12 h-[350px]" }, at = { class: "flex item
|
|
|
313
313
|
name: "append",
|
|
314
314
|
fn: D(() => [
|
|
315
315
|
I(V, {
|
|
316
|
-
"prepend-icon":
|
|
316
|
+
"prepend-icon": m(M.keys) ? "expand_less" : "expand_more",
|
|
317
317
|
size: "md",
|
|
318
318
|
variant: "tertiary",
|
|
319
|
-
onClick: Te(() =>
|
|
319
|
+
onClick: Te(() => c(M.keys), ["stop"])
|
|
320
320
|
}, null, 8, ["prepend-icon", "onClick"])
|
|
321
321
|
]),
|
|
322
322
|
key: "1"
|
|
@@ -325,14 +325,14 @@ const st = { class: "flex flex-col gap-12 h-[350px]" }, at = { class: "flex item
|
|
|
325
325
|
], 10, rt))), 128))
|
|
326
326
|
]),
|
|
327
327
|
_: 1
|
|
328
|
-
})) : (
|
|
328
|
+
})) : (w(), R("div", ct, T(x(n)("inventory.formField.noItemsFound")), 1))
|
|
329
329
|
]);
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
332
|
}), mt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-100 px-5 py-5 gap-5" }, ft = { class: "flex items-center" }, pt = { class: "text-lg font-bold flex-grow" }, vt = {
|
|
333
333
|
key: 0,
|
|
334
334
|
class: "table-auto w-full"
|
|
335
|
-
}, gt = { class: "text-left" },
|
|
335
|
+
}, gt = { class: "text-left" }, yt = { class: "min-w-64" }, At = { class: "flex flex-col" }, bt = { class: "fm-typo-en-body-md-400" }, ht = {
|
|
336
336
|
key: 0,
|
|
337
337
|
class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400"
|
|
338
338
|
}, It = { class: "w-1" }, xt = /* @__PURE__ */ Y({
|
|
@@ -355,214 +355,214 @@ const st = { class: "flex flex-col gap-12 h-[350px]" }, at = { class: "flex item
|
|
|
355
355
|
}
|
|
356
356
|
},
|
|
357
357
|
emits: ["update:modifiers"],
|
|
358
|
-
setup(F, { emit:
|
|
359
|
-
const s = F,
|
|
360
|
-
const
|
|
361
|
-
const C = s.items.find((
|
|
358
|
+
setup(F, { emit: v }) {
|
|
359
|
+
const s = F, d = v, n = Ae(), t = z(() => {
|
|
360
|
+
const l = s.groups.flatMap((i) => i.items.map((b) => {
|
|
361
|
+
const C = s.items.find((S) => S._id === b._id);
|
|
362
362
|
return {
|
|
363
|
-
...
|
|
364
|
-
groupName:
|
|
365
|
-
name:
|
|
363
|
+
...b,
|
|
364
|
+
groupName: i.name,
|
|
365
|
+
name: b.name ?? (C == null ? void 0 : C.name) ?? "-"
|
|
366
366
|
};
|
|
367
367
|
}));
|
|
368
|
-
return s.modifiers.map((
|
|
369
|
-
const
|
|
368
|
+
return s.modifiers.map((i) => {
|
|
369
|
+
const b = l.find((p) => p.selection === i.selection), C = (b == null ? void 0 : b.name) ?? "-", S = (b == null ? void 0 : b.groupName) ?? "";
|
|
370
370
|
return {
|
|
371
|
-
...
|
|
371
|
+
...i,
|
|
372
372
|
name: C,
|
|
373
|
-
groupName:
|
|
373
|
+
groupName: S
|
|
374
374
|
};
|
|
375
375
|
});
|
|
376
|
-
}),
|
|
377
|
-
function
|
|
378
|
-
|
|
376
|
+
}), r = z(() => s.groups.flatMap((l) => l.items.map((i) => ({ ...i, groupId: l._id }))));
|
|
377
|
+
function h({ selection: l }) {
|
|
378
|
+
d(
|
|
379
379
|
"update:modifiers",
|
|
380
|
-
s.modifiers.filter((
|
|
380
|
+
s.modifiers.filter((i) => i.selection !== l)
|
|
381
381
|
);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
const
|
|
385
|
-
|
|
383
|
+
function k({ selection: l }, i) {
|
|
384
|
+
const b = s.modifiers.find((C) => C.selection === l);
|
|
385
|
+
b && (b.code = i);
|
|
386
386
|
}
|
|
387
387
|
function A() {
|
|
388
|
-
let
|
|
389
|
-
s.groups.forEach((
|
|
388
|
+
let l = [];
|
|
389
|
+
s.groups.forEach((b) => {
|
|
390
390
|
let C = !1;
|
|
391
|
-
|
|
392
|
-
label:
|
|
391
|
+
b.items.every((S) => S._id.startsWith("item")) && (C = !0), l.push({
|
|
392
|
+
label: b.name,
|
|
393
393
|
sublabel: "Group",
|
|
394
|
-
value:
|
|
394
|
+
value: b._id,
|
|
395
395
|
disabled: C,
|
|
396
|
-
children:
|
|
397
|
-
var
|
|
398
|
-
const
|
|
399
|
-
(y) => y.combinationKey === (
|
|
396
|
+
children: b.items.reduce((S, p) => {
|
|
397
|
+
var u;
|
|
398
|
+
const m = s.items.find((y) => y._id === p._id), c = (u = m == null ? void 0 : m.variant) == null ? void 0 : u.variantCombinations.find(
|
|
399
|
+
(y) => y.combinationKey === (p == null ? void 0 : p.combinationKey)
|
|
400
400
|
);
|
|
401
401
|
return [
|
|
402
|
-
...
|
|
402
|
+
...S,
|
|
403
403
|
{
|
|
404
|
-
label: `${
|
|
405
|
-
value: `${
|
|
404
|
+
label: `${p.name ?? (m == null ? void 0 : m.name)} ${c ? `(${c.name})` : ""}`,
|
|
405
|
+
value: `${p.selection}${c ? `/${c == null ? void 0 : c.combinationKey}` : ""}`,
|
|
406
406
|
disabled: C,
|
|
407
|
-
active: !!s.modifiers.find(({ selection: y }) => y ===
|
|
407
|
+
active: !!s.modifiers.find(({ selection: y }) => y === p.selection)
|
|
408
408
|
}
|
|
409
409
|
];
|
|
410
410
|
}, [])
|
|
411
411
|
});
|
|
412
412
|
});
|
|
413
|
-
const
|
|
414
|
-
modelValue:
|
|
413
|
+
const i = {
|
|
414
|
+
modelValue: l
|
|
415
415
|
};
|
|
416
416
|
n.open({
|
|
417
417
|
title: "Select Addons",
|
|
418
418
|
contentComponent: De,
|
|
419
|
-
contentComponentProps:
|
|
419
|
+
contentComponentProps: i,
|
|
420
420
|
primaryActions: {
|
|
421
421
|
text: "Confirm",
|
|
422
422
|
close: !0
|
|
423
423
|
}
|
|
424
|
-
}).onPrimary((
|
|
424
|
+
}).onPrimary((b) => {
|
|
425
425
|
const C = $(s.modifiers);
|
|
426
|
-
let
|
|
427
|
-
function
|
|
428
|
-
if (
|
|
429
|
-
for (let
|
|
430
|
-
|
|
426
|
+
let S = [];
|
|
427
|
+
function p(m, c) {
|
|
428
|
+
if (c(m), K(m))
|
|
429
|
+
for (let u of m.children)
|
|
430
|
+
p(u, c);
|
|
431
431
|
}
|
|
432
|
-
|
|
433
|
-
|
|
432
|
+
b.forEach((m) => {
|
|
433
|
+
p(m, (c) => {
|
|
434
434
|
var e;
|
|
435
|
-
if (s.groups.find(({ _id: o }) => o ===
|
|
436
|
-
const y =
|
|
437
|
-
!K(
|
|
435
|
+
if (s.groups.find(({ _id: o }) => o === c.value)) return;
|
|
436
|
+
const y = r.value.find(({ selection: o }) => o === c.value), f = S.find(({ selection: o }) => c.value === o);
|
|
437
|
+
!K(c) && c.active && f === void 0 && S.push({
|
|
438
438
|
addonGroupId: (y == null ? void 0 : y.groupId) ?? "",
|
|
439
|
-
selection:
|
|
440
|
-
code: ((e = C.find(({ selection: o }) =>
|
|
439
|
+
selection: c.value,
|
|
440
|
+
code: ((e = C.find(({ selection: o }) => c.value === o)) == null ? void 0 : e.code) ?? ""
|
|
441
441
|
});
|
|
442
442
|
});
|
|
443
|
-
}),
|
|
443
|
+
}), d("update:modifiers", S);
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
|
-
const { t:
|
|
447
|
-
return (
|
|
448
|
-
const
|
|
449
|
-
return
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
I(
|
|
446
|
+
const { t: g } = G();
|
|
447
|
+
return (l, i) => {
|
|
448
|
+
const b = E("FmButton"), C = E("FmTextField");
|
|
449
|
+
return w(), R("div", mt, [
|
|
450
|
+
a("div", ft, [
|
|
451
|
+
a("div", pt, T(x(g)("inventory.integration.apply.addons")), 1),
|
|
452
|
+
I(b, {
|
|
453
453
|
type: "button",
|
|
454
454
|
variant: "plain",
|
|
455
455
|
size: "md",
|
|
456
456
|
icon: "link",
|
|
457
|
-
label: x(
|
|
458
|
-
onClick:
|
|
457
|
+
label: x(g)("inventory.integration.apply.applyAddon"),
|
|
458
|
+
onClick: i[0] || (i[0] = (S) => A())
|
|
459
459
|
}, null, 8, ["label"])
|
|
460
460
|
]),
|
|
461
|
-
|
|
462
|
-
t.value.length > 0 ? (
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
461
|
+
a("div", null, [
|
|
462
|
+
t.value.length > 0 ? (w(), R("table", vt, [
|
|
463
|
+
a("tr", gt, [
|
|
464
|
+
a("th", yt, T(x(g)("inventory.integration.apply.name")), 1),
|
|
465
|
+
a("th", null, T(x(g)("inventory.integration.apply.code")), 1),
|
|
466
|
+
i[1] || (i[1] = a("th", { class: "w-1" }, " ", -1))
|
|
467
467
|
]),
|
|
468
|
-
(
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
468
|
+
(w(!0), R(J, null, te(t.value, (S, p) => (w(), R(J, { key: p }, [
|
|
469
|
+
i[2] || (i[2] = a("tr", { class: "block h-8" }, null, -1)),
|
|
470
|
+
a("tr", null, [
|
|
471
|
+
a("td", null, [
|
|
472
|
+
a("div", At, [
|
|
473
|
+
a("div", bt, T(S.name), 1),
|
|
474
|
+
S.groupName ? (w(), R("div", ht, T(S.groupName), 1)) : _("", !0)
|
|
475
475
|
])
|
|
476
476
|
]),
|
|
477
|
-
|
|
477
|
+
a("td", null, [
|
|
478
478
|
I(C, {
|
|
479
479
|
disabled: F.loading,
|
|
480
|
-
"model-value":
|
|
481
|
-
"onUpdate:modelValue": [(
|
|
480
|
+
"model-value": S.code,
|
|
481
|
+
"onUpdate:modelValue": [(m) => S.code = m, (m) => k(S, m)],
|
|
482
482
|
rules: [
|
|
483
|
-
function(
|
|
484
|
-
return !!
|
|
483
|
+
function(c) {
|
|
484
|
+
return !!c || "Required";
|
|
485
485
|
}
|
|
486
486
|
]
|
|
487
487
|
}, null, 8, ["disabled", "model-value", "onUpdate:modelValue", "rules"])
|
|
488
488
|
]),
|
|
489
|
-
|
|
490
|
-
I(
|
|
489
|
+
a("td", It, [
|
|
490
|
+
I(b, {
|
|
491
491
|
disabled: F.loading,
|
|
492
492
|
type: "button",
|
|
493
493
|
variant: "tertiary",
|
|
494
494
|
icon: "delete",
|
|
495
495
|
"icon-color": "#000000",
|
|
496
496
|
size: "md",
|
|
497
|
-
onClick: (
|
|
497
|
+
onClick: (m) => h(S)
|
|
498
498
|
}, null, 8, ["disabled", "onClick"])
|
|
499
499
|
])
|
|
500
500
|
])
|
|
501
501
|
], 64))), 128))
|
|
502
|
-
])) :
|
|
502
|
+
])) : _("", !0)
|
|
503
503
|
])
|
|
504
504
|
]);
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
|
-
function St(F,
|
|
509
|
-
const s =
|
|
508
|
+
function St(F, v = []) {
|
|
509
|
+
const s = v.map((n) => F.find((t) => t._id === n)).filter((n) => !!n);
|
|
510
510
|
return kt(s).reduce((n, t) => (n[t.combinationKey] = t.selectionName.join(" / "), n), {});
|
|
511
511
|
}
|
|
512
|
-
function wt(F,
|
|
513
|
-
const
|
|
514
|
-
var
|
|
515
|
-
const
|
|
516
|
-
...
|
|
517
|
-
codeName: [
|
|
512
|
+
function wt(F, v, s) {
|
|
513
|
+
const d = s.reduce((t, r) => {
|
|
514
|
+
var g, l, i;
|
|
515
|
+
const h = r.category || "", k = St(v, (g = r.variant) == null ? void 0 : g.variantGroupIds), A = {
|
|
516
|
+
...r,
|
|
517
|
+
codeName: [r.code, r.name].filter((b) => !!b).join(" "),
|
|
518
518
|
variant: {
|
|
519
|
-
variantGroupIds: ((
|
|
520
|
-
variantCombinations: (((
|
|
521
|
-
const C =
|
|
519
|
+
variantGroupIds: ((l = r.variant) == null ? void 0 : l.variantGroupIds) || [],
|
|
520
|
+
variantCombinations: (((i = r.variant) == null ? void 0 : i.variantCombinations) || []).map((b) => {
|
|
521
|
+
const C = b.code, S = b.name || k[b.combinationKey || ""];
|
|
522
522
|
return {
|
|
523
|
-
...
|
|
524
|
-
codeName: [C,
|
|
523
|
+
...b,
|
|
524
|
+
codeName: [C, S].filter((p) => !!p).join(" ").trim() || "-"
|
|
525
525
|
};
|
|
526
526
|
})
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
|
-
return t[
|
|
530
|
-
}, {}), n = Object.values(
|
|
529
|
+
return t[h] = t[h] ? [...t[h], A] : [A], t;
|
|
530
|
+
}, {}), n = Object.values(d)[0];
|
|
531
531
|
return F.length === 0 && n ? n.map((t) => ({
|
|
532
532
|
id: t._id,
|
|
533
533
|
name: t.name ?? "",
|
|
534
|
-
items:
|
|
534
|
+
items: d[t._id || ""] || []
|
|
535
535
|
})) || [] : F.map((t) => ({
|
|
536
536
|
id: t._id,
|
|
537
537
|
name: t.name ?? "",
|
|
538
|
-
items:
|
|
538
|
+
items: d[t._id || ""] || []
|
|
539
539
|
}));
|
|
540
540
|
}
|
|
541
|
-
function Me(F,
|
|
541
|
+
function Me(F, v) {
|
|
542
542
|
if (F.length == 1)
|
|
543
543
|
return F[0];
|
|
544
|
-
const s = F[0],
|
|
545
|
-
return s.reduce((
|
|
544
|
+
const s = F[0], d = F.slice(1, F.length), n = Me(d, v);
|
|
545
|
+
return s.reduce((r, h) => [...r, ...n.map((k) => v(h, k))], new Array());
|
|
546
546
|
}
|
|
547
547
|
function kt(F) {
|
|
548
548
|
if (F.length === 0) return [];
|
|
549
|
-
const
|
|
550
|
-
(
|
|
549
|
+
const v = F.map(
|
|
550
|
+
(d) => (d.options ?? []).map(
|
|
551
551
|
(n) => ({
|
|
552
|
-
combinationKey: [`${
|
|
552
|
+
combinationKey: [`${d._id}/${n._id}`],
|
|
553
553
|
selectionName: [n.name ?? ""]
|
|
554
554
|
})
|
|
555
555
|
)
|
|
556
556
|
);
|
|
557
|
-
return Me(
|
|
558
|
-
combinationKey: [...
|
|
559
|
-
selectionName: [...
|
|
560
|
-
})).map((
|
|
561
|
-
const n = [...
|
|
557
|
+
return Me(v, (d, n) => ({
|
|
558
|
+
combinationKey: [...d.combinationKey, ...n.combinationKey],
|
|
559
|
+
selectionName: [...d.selectionName, ...n.selectionName]
|
|
560
|
+
})).map((d) => {
|
|
561
|
+
const n = [...d.combinationKey];
|
|
562
562
|
return n.sort(), {
|
|
563
563
|
combinationKey: n.join("/"),
|
|
564
564
|
active: !0,
|
|
565
|
-
selectionName:
|
|
565
|
+
selectionName: d.selectionName
|
|
566
566
|
};
|
|
567
567
|
});
|
|
568
568
|
}
|
|
@@ -597,111 +597,111 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
597
597
|
}
|
|
598
598
|
},
|
|
599
599
|
emits: ["update:bindings"],
|
|
600
|
-
setup(F, { emit:
|
|
601
|
-
const s = F,
|
|
602
|
-
() => wt(
|
|
603
|
-
),
|
|
600
|
+
setup(F, { emit: v }) {
|
|
601
|
+
const s = F, d = v, n = Ae(), t = z(() => s.isAddon ? "Addons" : "Products"), r = z(() => s.isAddon ? [] : s.categories), h = z(
|
|
602
|
+
() => wt(r.value, s.variants, s.menus)
|
|
603
|
+
), k = z(() => {
|
|
604
604
|
if (s.isAddon)
|
|
605
|
-
return s.bindings.map((
|
|
606
|
-
const
|
|
605
|
+
return s.bindings.map((c) => {
|
|
606
|
+
const u = s.menus.find((f) => f._id === c.productId), y = (u == null ? void 0 : u.name) ?? "-";
|
|
607
607
|
return {
|
|
608
|
-
...
|
|
608
|
+
...c,
|
|
609
609
|
name: y,
|
|
610
|
-
itemCode: (
|
|
610
|
+
itemCode: (u == null ? void 0 : u.code) ?? "-"
|
|
611
611
|
};
|
|
612
612
|
});
|
|
613
|
-
const
|
|
614
|
-
return s.bindings.map((
|
|
613
|
+
const m = h.value.flatMap((c) => c.items);
|
|
614
|
+
return s.bindings.map((c) => {
|
|
615
615
|
var o;
|
|
616
|
-
const
|
|
617
|
-
let
|
|
618
|
-
if (
|
|
619
|
-
const B = (((o =
|
|
620
|
-
(L) => L.combinationKey ===
|
|
616
|
+
const u = m.find((B) => B._id === c.productId), y = (u == null ? void 0 : u.name) ?? "-";
|
|
617
|
+
let f = (u == null ? void 0 : u.code) ?? "-", e;
|
|
618
|
+
if (c.combinationKey) {
|
|
619
|
+
const B = (((o = u == null ? void 0 : u.variant) == null ? void 0 : o.variantCombinations) || []).find(
|
|
620
|
+
(L) => L.combinationKey === c.combinationKey
|
|
621
621
|
);
|
|
622
|
-
e = (B == null ? void 0 : B.name) ?? (B == null ? void 0 : B.codeName) ?? "",
|
|
622
|
+
e = (B == null ? void 0 : B.name) ?? (B == null ? void 0 : B.codeName) ?? "", f = (B == null ? void 0 : B.code) ?? f;
|
|
623
623
|
}
|
|
624
624
|
return {
|
|
625
|
-
...
|
|
625
|
+
...c,
|
|
626
626
|
name: y,
|
|
627
|
-
itemCode:
|
|
627
|
+
itemCode: f,
|
|
628
628
|
variantName: e
|
|
629
629
|
};
|
|
630
630
|
});
|
|
631
631
|
});
|
|
632
|
-
function A(
|
|
633
|
-
|
|
632
|
+
function A(m) {
|
|
633
|
+
d(
|
|
634
634
|
"update:bindings",
|
|
635
635
|
s.bindings.filter(
|
|
636
|
-
(
|
|
636
|
+
(c) => c.productId !== m.productId || c.combinationKey !== m.combinationKey
|
|
637
637
|
)
|
|
638
638
|
);
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function g({ productId: m, combinationKey: c }, u) {
|
|
641
641
|
const y = s.bindings.find(
|
|
642
|
-
(
|
|
642
|
+
(f) => f.productId === m && f.combinationKey === c
|
|
643
643
|
);
|
|
644
|
-
y && (y.code =
|
|
644
|
+
y && (y.code = u);
|
|
645
645
|
}
|
|
646
|
-
function
|
|
647
|
-
return
|
|
648
|
-
label:
|
|
646
|
+
function l() {
|
|
647
|
+
return h.value.map((m) => ({
|
|
648
|
+
label: m.name,
|
|
649
649
|
sublabel: "Category",
|
|
650
|
-
value:
|
|
650
|
+
value: m.name,
|
|
651
651
|
disabled: !1,
|
|
652
|
-
children:
|
|
652
|
+
children: m.items.map((c) => {
|
|
653
653
|
var y;
|
|
654
|
-
const
|
|
655
|
-
return
|
|
656
|
-
label:
|
|
657
|
-
value:
|
|
654
|
+
const u = (y = c.variant) == null ? void 0 : y.variantCombinations;
|
|
655
|
+
return u != null && u.length ? {
|
|
656
|
+
label: c.name ?? "",
|
|
657
|
+
value: c._id,
|
|
658
658
|
sublabel: "Product",
|
|
659
659
|
children: [
|
|
660
660
|
{
|
|
661
|
-
label:
|
|
661
|
+
label: c.codeName ?? "",
|
|
662
662
|
value: {
|
|
663
|
-
productId:
|
|
663
|
+
productId: c._id
|
|
664
664
|
},
|
|
665
665
|
active: !!s.bindings.find(
|
|
666
|
-
({ productId:
|
|
666
|
+
({ productId: f, combinationKey: e }) => c._id === f && !e
|
|
667
667
|
)
|
|
668
668
|
},
|
|
669
|
-
...
|
|
670
|
-
label:
|
|
669
|
+
...u.map((f) => ({
|
|
670
|
+
label: f.codeName ?? "",
|
|
671
671
|
value: {
|
|
672
|
-
productId:
|
|
673
|
-
combinationKey:
|
|
672
|
+
productId: c._id,
|
|
673
|
+
combinationKey: f.combinationKey
|
|
674
674
|
},
|
|
675
675
|
sublabel: "Variant",
|
|
676
676
|
active: !!s.bindings.find(
|
|
677
|
-
({ productId: e, combinationKey: o }) =>
|
|
677
|
+
({ productId: e, combinationKey: o }) => c._id === e && f.combinationKey === o
|
|
678
678
|
)
|
|
679
679
|
}))
|
|
680
680
|
]
|
|
681
681
|
} : {
|
|
682
|
-
label:
|
|
682
|
+
label: c.codeName ?? "",
|
|
683
683
|
value: {
|
|
684
|
-
productId:
|
|
684
|
+
productId: c._id
|
|
685
685
|
},
|
|
686
686
|
active: !!s.bindings.find(
|
|
687
|
-
({ productId:
|
|
687
|
+
({ productId: f, combinationKey: e }) => c._id === f && !e
|
|
688
688
|
)
|
|
689
689
|
};
|
|
690
690
|
})
|
|
691
691
|
}));
|
|
692
692
|
}
|
|
693
|
-
function
|
|
694
|
-
return s.menus.map((
|
|
695
|
-
label:
|
|
696
|
-
value: { productId:
|
|
693
|
+
function i() {
|
|
694
|
+
return s.menus.map((m) => ({
|
|
695
|
+
label: m.name,
|
|
696
|
+
value: { productId: m._id },
|
|
697
697
|
active: !!s.bindings.find(
|
|
698
|
-
({ productId:
|
|
698
|
+
({ productId: c, combinationKey: u }) => m._id === c && !u
|
|
699
699
|
)
|
|
700
700
|
}));
|
|
701
701
|
}
|
|
702
|
-
function
|
|
703
|
-
const
|
|
704
|
-
return
|
|
702
|
+
function b(m) {
|
|
703
|
+
const c = $(s.bindings);
|
|
704
|
+
return m.flatMap((u) => u.children.flatMap((y) => {
|
|
705
705
|
var e;
|
|
706
706
|
if (K(y))
|
|
707
707
|
return y.children.filter((o) => o.active).map((o) => {
|
|
@@ -710,94 +710,94 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
710
710
|
return L ? {
|
|
711
711
|
productId: B,
|
|
712
712
|
combinationKey: L,
|
|
713
|
-
code: ((V =
|
|
713
|
+
code: ((V = c.find(
|
|
714
714
|
({ productId: U, combinationKey: M }) => B === U && L === M
|
|
715
715
|
)) == null ? void 0 : V.code) ?? ""
|
|
716
716
|
} : {
|
|
717
717
|
productId: B,
|
|
718
|
-
code: ((H =
|
|
718
|
+
code: ((H = c.find(({ productId: U, combinationKey: M }) => B === U && !M)) == null ? void 0 : H.code) ?? ""
|
|
719
719
|
};
|
|
720
720
|
});
|
|
721
721
|
if (!y.active)
|
|
722
722
|
return [];
|
|
723
|
-
const { productId:
|
|
723
|
+
const { productId: f } = y.value;
|
|
724
724
|
return [
|
|
725
725
|
{
|
|
726
|
-
productId:
|
|
727
|
-
code: ((e =
|
|
726
|
+
productId: f,
|
|
727
|
+
code: ((e = c.find(({ productId: o, combinationKey: B }) => f === o && !B)) == null ? void 0 : e.code) ?? ""
|
|
728
728
|
}
|
|
729
729
|
];
|
|
730
730
|
}));
|
|
731
731
|
}
|
|
732
|
-
function C(
|
|
733
|
-
const
|
|
734
|
-
return
|
|
735
|
-
(
|
|
732
|
+
function C(m) {
|
|
733
|
+
const c = $(s.bindings);
|
|
734
|
+
return m.filter((u) => u.active).map(
|
|
735
|
+
(u) => {
|
|
736
736
|
var y;
|
|
737
737
|
return {
|
|
738
|
-
productId:
|
|
739
|
-
code: ((y =
|
|
738
|
+
productId: u.value.productId,
|
|
739
|
+
code: ((y = c.find(({ productId: f }) => f === u.value.productId)) == null ? void 0 : y.code) ?? ""
|
|
740
740
|
};
|
|
741
741
|
}
|
|
742
742
|
);
|
|
743
743
|
}
|
|
744
|
-
function
|
|
745
|
-
let
|
|
746
|
-
s.isAddon ?
|
|
747
|
-
const
|
|
748
|
-
modelValue:
|
|
744
|
+
function S() {
|
|
745
|
+
let m;
|
|
746
|
+
s.isAddon ? m = i() : m = l();
|
|
747
|
+
const c = {
|
|
748
|
+
modelValue: m
|
|
749
749
|
};
|
|
750
750
|
n.open({
|
|
751
751
|
title: `Select ${t.value}`,
|
|
752
752
|
contentComponent: De,
|
|
753
|
-
contentComponentProps:
|
|
753
|
+
contentComponentProps: c,
|
|
754
754
|
primaryActions: {
|
|
755
755
|
text: "Confirm",
|
|
756
756
|
close: !0
|
|
757
757
|
}
|
|
758
|
-
}).onPrimary((
|
|
758
|
+
}).onPrimary((u) => {
|
|
759
759
|
let y;
|
|
760
|
-
s.isAddon ? y = C(
|
|
760
|
+
s.isAddon ? y = C(u) : y = b(u), d("update:bindings", y);
|
|
761
761
|
});
|
|
762
762
|
}
|
|
763
|
-
const { t:
|
|
764
|
-
return (
|
|
765
|
-
const
|
|
766
|
-
return
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
I(
|
|
763
|
+
const { t: p } = G();
|
|
764
|
+
return (m, c) => {
|
|
765
|
+
const u = E("FmButton"), y = E("FmTextField");
|
|
766
|
+
return w(), R("div", Bt, [
|
|
767
|
+
a("div", Ct, [
|
|
768
|
+
a("div", Et, T(F.isAddon ? x(p)("inventory.integration.apply.addons") : x(p)("inventory.integration.apply.products")), 1),
|
|
769
|
+
I(u, {
|
|
770
770
|
type: "button",
|
|
771
771
|
variant: "plain",
|
|
772
772
|
size: "md",
|
|
773
773
|
icon: "link",
|
|
774
|
-
label: F.isAddon ? x(
|
|
775
|
-
onClick:
|
|
774
|
+
label: F.isAddon ? x(p)("inventory.integration.apply.applyAddon") : x(p)("inventory.integration.apply.applyProduct"),
|
|
775
|
+
onClick: c[0] || (c[0] = (f) => S())
|
|
776
776
|
}, null, 8, ["label"])
|
|
777
777
|
]),
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
778
|
+
a("div", null, [
|
|
779
|
+
k.value.length > 0 ? (w(), R("table", Ft, [
|
|
780
|
+
a("thead", null, [
|
|
781
|
+
a("tr", Lt, [
|
|
782
|
+
a("th", Vt, T(x(p)("inventory.integration.apply.name")), 1),
|
|
783
|
+
a("th", null, T(x(p)("inventory.integration.apply.code")), 1),
|
|
784
|
+
c[1] || (c[1] = a("th", { class: "w-1" }, " ", -1))
|
|
785
785
|
])
|
|
786
786
|
]),
|
|
787
|
-
|
|
788
|
-
(
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
787
|
+
a("tbody", null, [
|
|
788
|
+
(w(!0), R(J, null, te(k.value, (f, e) => (w(), R(J, { key: e }, [
|
|
789
|
+
c[2] || (c[2] = a("tr", { class: "block h-8" }, null, -1)),
|
|
790
|
+
a("tr", null, [
|
|
791
|
+
a("td", null, [
|
|
792
|
+
a("div", Nt, [
|
|
793
|
+
a("div", Rt, T(f.itemCode) + " " + T(f.name), 1),
|
|
794
|
+
f.variantName ? (w(), R("div", Dt, T(f.variantName), 1)) : _("", !0)
|
|
795
795
|
])
|
|
796
796
|
]),
|
|
797
|
-
|
|
797
|
+
a("td", null, [
|
|
798
798
|
I(y, {
|
|
799
|
-
"model-value":
|
|
800
|
-
"onUpdate:modelValue": [(o) =>
|
|
799
|
+
"model-value": f.code,
|
|
800
|
+
"onUpdate:modelValue": [(o) => f.code = o, (o) => g(f, o)],
|
|
801
801
|
rules: [
|
|
802
802
|
function(B) {
|
|
803
803
|
return !!B || "Required";
|
|
@@ -805,20 +805,20 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
805
805
|
]
|
|
806
806
|
}, null, 8, ["model-value", "onUpdate:modelValue", "rules"])
|
|
807
807
|
]),
|
|
808
|
-
|
|
809
|
-
I(
|
|
808
|
+
a("td", Mt, [
|
|
809
|
+
I(u, {
|
|
810
810
|
type: "button",
|
|
811
811
|
variant: "tertiary",
|
|
812
812
|
icon: "delete",
|
|
813
813
|
"icon-color": "#000000",
|
|
814
814
|
size: "md",
|
|
815
|
-
onClick: (o) => A(
|
|
815
|
+
onClick: (o) => A(f)
|
|
816
816
|
}, null, 8, ["onClick"])
|
|
817
817
|
])
|
|
818
818
|
])
|
|
819
819
|
], 64))), 128))
|
|
820
820
|
])
|
|
821
|
-
])) :
|
|
821
|
+
])) : _("", !0)
|
|
822
822
|
])
|
|
823
823
|
]);
|
|
824
824
|
};
|
|
@@ -835,56 +835,56 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
835
835
|
loading: { type: Boolean }
|
|
836
836
|
},
|
|
837
837
|
emits: ["update:setting", "update:show", "submit"],
|
|
838
|
-
setup(F, { emit:
|
|
839
|
-
const s = F,
|
|
840
|
-
pe([() => s.show], ([
|
|
841
|
-
if (
|
|
842
|
-
for (const
|
|
843
|
-
n[
|
|
838
|
+
setup(F, { emit: v }) {
|
|
839
|
+
const s = F, d = v, n = fe($(s.setting));
|
|
840
|
+
pe([() => s.show], ([g]) => {
|
|
841
|
+
if (g)
|
|
842
|
+
for (const l of Object.keys(s.setting))
|
|
843
|
+
n[l] = s.setting[l];
|
|
844
844
|
});
|
|
845
|
-
const t = j(),
|
|
846
|
-
function
|
|
847
|
-
var
|
|
848
|
-
(
|
|
845
|
+
const t = j(), r = ae(s, "show");
|
|
846
|
+
function h() {
|
|
847
|
+
var g, l;
|
|
848
|
+
(l = (g = t.value) == null ? void 0 : g.validateInputs) == null || l.call(g);
|
|
849
849
|
}
|
|
850
|
-
function
|
|
851
|
-
|
|
850
|
+
function k() {
|
|
851
|
+
d("update:setting", $(n)), d("submit");
|
|
852
852
|
}
|
|
853
853
|
const { t: A } = G();
|
|
854
|
-
return (
|
|
855
|
-
const
|
|
856
|
-
return
|
|
857
|
-
modelValue: x(
|
|
858
|
-
"onUpdate:modelValue":
|
|
854
|
+
return (g, l) => {
|
|
855
|
+
const i = E("FmChip"), b = E("FmForm"), C = E("FmButton"), S = E("FmSideSheet");
|
|
856
|
+
return w(), X(S, {
|
|
857
|
+
modelValue: x(r),
|
|
858
|
+
"onUpdate:modelValue": l[4] || (l[4] = (p) => se(r) ? r.value = p : null),
|
|
859
859
|
header: x(A)("inventory.integration.apply.title"),
|
|
860
860
|
"dismiss-away": "",
|
|
861
861
|
"close-button": "",
|
|
862
862
|
"max-width": 500
|
|
863
863
|
}, {
|
|
864
864
|
default: D(() => [
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
I(
|
|
865
|
+
a("div", jt, [
|
|
866
|
+
a("div", null, [
|
|
867
|
+
I(i, { label: "Menu v3" })
|
|
868
868
|
]),
|
|
869
|
-
I(
|
|
869
|
+
I(b, {
|
|
870
870
|
ref_key: "formRef",
|
|
871
871
|
ref: t,
|
|
872
|
-
onValidationSuccess:
|
|
872
|
+
onValidationSuccess: l[2] || (l[2] = (p) => k())
|
|
873
873
|
}, {
|
|
874
874
|
default: D(() => [
|
|
875
875
|
I(ce, {
|
|
876
876
|
bindings: n.bindings,
|
|
877
|
-
categories:
|
|
878
|
-
variants:
|
|
879
|
-
menus:
|
|
880
|
-
"onUpdate:bindings":
|
|
877
|
+
categories: g.categories,
|
|
878
|
+
variants: g.variants,
|
|
879
|
+
menus: g.menus,
|
|
880
|
+
"onUpdate:bindings": l[0] || (l[0] = (p) => n.bindings = p)
|
|
881
881
|
}, null, 8, ["bindings", "categories", "variants", "menus"]),
|
|
882
882
|
I(xt, {
|
|
883
883
|
form: t.value,
|
|
884
884
|
modifiers: n.modifiers ?? [],
|
|
885
|
-
groups:
|
|
886
|
-
items:
|
|
887
|
-
"onUpdate:modifiers":
|
|
885
|
+
groups: g.groups ?? [],
|
|
886
|
+
items: g.menus ?? [],
|
|
887
|
+
"onUpdate:modifiers": l[1] || (l[1] = (p) => n.modifiers = p)
|
|
888
888
|
}, null, 8, ["form", "modifiers", "groups", "items"])
|
|
889
889
|
]),
|
|
890
890
|
_: 1
|
|
@@ -893,10 +893,10 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
893
893
|
]),
|
|
894
894
|
"side-sheet-footer": D(() => [
|
|
895
895
|
I(C, {
|
|
896
|
-
loading:
|
|
896
|
+
loading: g.loading,
|
|
897
897
|
type: "submit",
|
|
898
898
|
label: x(A)("common.confirm"),
|
|
899
|
-
onClick:
|
|
899
|
+
onClick: l[3] || (l[3] = (p) => h())
|
|
900
900
|
}, null, 8, ["loading", "label"])
|
|
901
901
|
]),
|
|
902
902
|
_: 1
|
|
@@ -915,70 +915,70 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
915
915
|
loading: { type: Boolean }
|
|
916
916
|
},
|
|
917
917
|
emits: ["update:setting", "update:show", "submit"],
|
|
918
|
-
setup(F, { emit:
|
|
919
|
-
const s = F,
|
|
920
|
-
pe([() => s.show], ([
|
|
921
|
-
if (
|
|
922
|
-
for (const
|
|
923
|
-
n[
|
|
918
|
+
setup(F, { emit: v }) {
|
|
919
|
+
const s = F, d = v, n = fe($(s.setting));
|
|
920
|
+
pe([() => s.show], ([p]) => {
|
|
921
|
+
if (p)
|
|
922
|
+
for (const m of Object.keys(s.setting))
|
|
923
|
+
n[m] = s.setting[m];
|
|
924
924
|
});
|
|
925
|
-
const t = z(() => s.menus.filter((
|
|
926
|
-
const
|
|
927
|
-
return
|
|
928
|
-
})),
|
|
929
|
-
const
|
|
930
|
-
return
|
|
925
|
+
const t = z(() => s.menus.filter((p) => (p == null ? void 0 : p.category) === null)), r = z(() => n.bindings.filter((p) => {
|
|
926
|
+
const m = s.menus.find((c) => c._id === p.productId);
|
|
927
|
+
return m ? (m == null ? void 0 : m.category) === null : !1;
|
|
928
|
+
})), h = z(() => s.menus.filter((p) => (p == null ? void 0 : p.category) !== null)), k = z(() => n.bindings.filter((p) => {
|
|
929
|
+
const m = s.menus.find((c) => c._id === p.productId);
|
|
930
|
+
return m ? (m == null ? void 0 : m.category) !== null : !1;
|
|
931
931
|
}));
|
|
932
|
-
function A(
|
|
933
|
-
n.bindings = [...
|
|
932
|
+
function A(p) {
|
|
933
|
+
n.bindings = [...r.value, ...p];
|
|
934
934
|
}
|
|
935
|
-
function
|
|
936
|
-
n.bindings = [...
|
|
935
|
+
function g(p) {
|
|
936
|
+
n.bindings = [...k.value, ...p];
|
|
937
937
|
}
|
|
938
|
-
const
|
|
939
|
-
function
|
|
940
|
-
var
|
|
941
|
-
(
|
|
938
|
+
const l = j(), i = ae(s, "show");
|
|
939
|
+
function b() {
|
|
940
|
+
var p, m;
|
|
941
|
+
(m = (p = l.value) == null ? void 0 : p.validateInputs) == null || m.call(p);
|
|
942
942
|
}
|
|
943
943
|
function C() {
|
|
944
|
-
|
|
944
|
+
d("update:setting", $(n)), d("submit");
|
|
945
945
|
}
|
|
946
|
-
const { t:
|
|
947
|
-
return (
|
|
948
|
-
const
|
|
949
|
-
return
|
|
950
|
-
modelValue: x(
|
|
951
|
-
"onUpdate:modelValue":
|
|
952
|
-
header: x(
|
|
946
|
+
const { t: S } = G();
|
|
947
|
+
return (p, m) => {
|
|
948
|
+
const c = E("FmChip"), u = E("FmForm"), y = E("FmButton"), f = E("FmSideSheet");
|
|
949
|
+
return w(), X(f, {
|
|
950
|
+
modelValue: x(i),
|
|
951
|
+
"onUpdate:modelValue": m[4] || (m[4] = (e) => se(i) ? i.value = e : null),
|
|
952
|
+
header: x(S)("inventory.integration.apply.title"),
|
|
953
953
|
"dismiss-away": "",
|
|
954
954
|
"close-button": "",
|
|
955
955
|
"max-width": 500
|
|
956
956
|
}, {
|
|
957
957
|
default: D(() => [
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
I(
|
|
958
|
+
a("div", Tt, [
|
|
959
|
+
a("div", null, [
|
|
960
|
+
I(c, { label: "Menu v4" })
|
|
961
961
|
]),
|
|
962
|
-
I(
|
|
962
|
+
I(u, {
|
|
963
963
|
ref_key: "formRef",
|
|
964
|
-
ref:
|
|
965
|
-
onValidationSuccess:
|
|
964
|
+
ref: l,
|
|
965
|
+
onValidationSuccess: m[2] || (m[2] = (e) => C())
|
|
966
966
|
}, {
|
|
967
967
|
default: D(() => [
|
|
968
968
|
I(ce, {
|
|
969
|
-
categories:
|
|
970
|
-
variants:
|
|
971
|
-
bindings:
|
|
972
|
-
menus:
|
|
973
|
-
"onUpdate:bindings":
|
|
969
|
+
categories: p.categories,
|
|
970
|
+
variants: p.variants,
|
|
971
|
+
bindings: k.value,
|
|
972
|
+
menus: h.value,
|
|
973
|
+
"onUpdate:bindings": m[0] || (m[0] = (e) => A(e))
|
|
974
974
|
}, null, 8, ["categories", "variants", "bindings", "menus"]),
|
|
975
975
|
I(ce, {
|
|
976
976
|
"is-addon": !0,
|
|
977
977
|
categories: [],
|
|
978
|
-
variants:
|
|
979
|
-
bindings:
|
|
978
|
+
variants: p.variants,
|
|
979
|
+
bindings: r.value,
|
|
980
980
|
menus: t.value,
|
|
981
|
-
"onUpdate:bindings":
|
|
981
|
+
"onUpdate:bindings": m[1] || (m[1] = (e) => g(e))
|
|
982
982
|
}, null, 8, ["variants", "bindings", "menus"])
|
|
983
983
|
]),
|
|
984
984
|
_: 1
|
|
@@ -987,39 +987,39 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
987
987
|
]),
|
|
988
988
|
"side-sheet-footer": D(() => [
|
|
989
989
|
I(y, {
|
|
990
|
-
loading:
|
|
990
|
+
loading: p.loading,
|
|
991
991
|
type: "submit",
|
|
992
|
-
label: x(
|
|
993
|
-
onClick:
|
|
992
|
+
label: x(S)("common.confirm"),
|
|
993
|
+
onClick: m[3] || (m[3] = (e) => b())
|
|
994
994
|
}, null, 8, ["loading", "label"])
|
|
995
995
|
]),
|
|
996
996
|
_: 1
|
|
997
997
|
}, 8, ["modelValue", "header"]);
|
|
998
998
|
};
|
|
999
999
|
}
|
|
1000
|
-
}), Ht = { key: 0 },
|
|
1000
|
+
}), Ht = { key: 0 }, _t = { class: "flex justify-center" }, Xt = ["src"], Ut = { class: "flex flex-col items-center gap-2" }, Qt = { class: "text-lg font-bold" }, Yt = { class: "text-fm-color-neutral-gray-300" }, Jt = { key: 0 }, Kt = /* @__PURE__ */ Y({
|
|
1001
1001
|
__name: "FoodMarketHub",
|
|
1002
1002
|
setup(F) {
|
|
1003
|
-
const
|
|
1004
|
-
var
|
|
1005
|
-
return (
|
|
1003
|
+
const v = ie(), s = ne(), d = W(), n = j(!1), t = qe(), r = z(() => t.state.menu ?? []), h = z(() => t.state.group ?? []), k = z(() => t.state.variants ?? []), A = z(() => t.state.categories ?? []), g = Ue(), l = z(() => {
|
|
1004
|
+
var u;
|
|
1005
|
+
return (u = v.currentBusiness.value) == null ? void 0 : u.menuVersion;
|
|
1006
1006
|
});
|
|
1007
|
-
|
|
1008
|
-
const
|
|
1009
|
-
async function
|
|
1010
|
-
|
|
1007
|
+
d.watchLocation(t.init);
|
|
1008
|
+
const i = j(!1);
|
|
1009
|
+
async function b() {
|
|
1010
|
+
i.value = !0;
|
|
1011
1011
|
}
|
|
1012
|
-
const { breakpoints: C } = Ve(),
|
|
1013
|
-
async function
|
|
1014
|
-
const
|
|
1015
|
-
if (
|
|
1012
|
+
const { breakpoints: C } = Ve(), S = z(() => C.value.xs || C.value.sm), p = z(() => S.value);
|
|
1013
|
+
async function m() {
|
|
1014
|
+
const u = t.state.setting;
|
|
1015
|
+
if (u) {
|
|
1016
1016
|
n.value = !0;
|
|
1017
1017
|
try {
|
|
1018
|
-
await
|
|
1018
|
+
await g.updateSetting(u), s.open({
|
|
1019
1019
|
title: "Success",
|
|
1020
1020
|
message: "Your changes has been saved",
|
|
1021
1021
|
type: "success"
|
|
1022
|
-
}),
|
|
1022
|
+
}), i.value = !1, await t.init();
|
|
1023
1023
|
return;
|
|
1024
1024
|
} catch (y) {
|
|
1025
1025
|
s.open({
|
|
@@ -1032,33 +1032,33 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
|
-
const { t:
|
|
1036
|
-
return (
|
|
1037
|
-
const
|
|
1038
|
-
return x(t).isEnabled && !x(t).isBusinessLocation ? (
|
|
1035
|
+
const { t: c } = G();
|
|
1036
|
+
return (u, y) => {
|
|
1037
|
+
const f = E("FmCardSection"), e = E("FmCard");
|
|
1038
|
+
return x(t).isEnabled && !x(t).isBusinessLocation ? (w(), R("div", Ht, [
|
|
1039
1039
|
I(e, {
|
|
1040
1040
|
class: q({
|
|
1041
|
-
"w-full":
|
|
1042
|
-
"w-1/2": !
|
|
1041
|
+
"w-full": p.value,
|
|
1042
|
+
"w-1/2": !p.value,
|
|
1043
1043
|
border: !0,
|
|
1044
1044
|
"border-fm-color-neutral-gray-100": !0,
|
|
1045
1045
|
"cursor-pointer": !0,
|
|
1046
1046
|
"hover:border-fm-color-primary": !0
|
|
1047
1047
|
}),
|
|
1048
|
-
onClick: y[0] || (y[0] = (o) =>
|
|
1048
|
+
onClick: y[0] || (y[0] = (o) => b())
|
|
1049
1049
|
}, {
|
|
1050
1050
|
default: D(() => [
|
|
1051
|
-
I(
|
|
1051
|
+
I(f, null, {
|
|
1052
1052
|
default: D(() => [
|
|
1053
|
-
|
|
1054
|
-
|
|
1053
|
+
a("div", _t, [
|
|
1054
|
+
a("img", {
|
|
1055
1055
|
src: x(tt),
|
|
1056
1056
|
alt: "Food Market Hub"
|
|
1057
|
-
}, null, 8,
|
|
1057
|
+
}, null, 8, Xt)
|
|
1058
1058
|
]),
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1059
|
+
a("div", Ut, [
|
|
1060
|
+
a("div", Qt, T(x(c)("inventory.integration.fmh.title")), 1),
|
|
1061
|
+
a("div", Yt, T(x(c)("inventory.integration.fmh.description")), 1)
|
|
1062
1062
|
])
|
|
1063
1063
|
]),
|
|
1064
1064
|
_: 1
|
|
@@ -1066,36 +1066,36 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1066
1066
|
]),
|
|
1067
1067
|
_: 1
|
|
1068
1068
|
}, 8, ["class"]),
|
|
1069
|
-
x(t).state.setting ? (
|
|
1070
|
-
(
|
|
1071
|
-
|
|
1069
|
+
x(t).state.setting ? (w(), R("div", Jt, [
|
|
1070
|
+
(w(), X(ue, { to: "body" }, [
|
|
1071
|
+
l.value === "v3" ? (w(), X(Ot, {
|
|
1072
1072
|
key: 0,
|
|
1073
|
-
menus:
|
|
1074
|
-
variants:
|
|
1073
|
+
menus: r.value,
|
|
1074
|
+
variants: k.value,
|
|
1075
1075
|
categories: A.value,
|
|
1076
1076
|
setting: x(t).state.setting,
|
|
1077
1077
|
"onUpdate:setting": y[1] || (y[1] = (o) => x(t).state.setting = o),
|
|
1078
|
-
show:
|
|
1079
|
-
"onUpdate:show": y[2] || (y[2] = (o) =>
|
|
1080
|
-
groups:
|
|
1078
|
+
show: i.value,
|
|
1079
|
+
"onUpdate:show": y[2] || (y[2] = (o) => i.value = o),
|
|
1080
|
+
groups: h.value,
|
|
1081
1081
|
loading: n.value,
|
|
1082
|
-
onSubmit: y[3] || (y[3] = (o) =>
|
|
1083
|
-
}, null, 8, ["menus", "variants", "categories", "setting", "show", "groups", "loading"])) : (
|
|
1082
|
+
onSubmit: y[3] || (y[3] = (o) => m())
|
|
1083
|
+
}, null, 8, ["menus", "variants", "categories", "setting", "show", "groups", "loading"])) : (w(), X(zt, {
|
|
1084
1084
|
key: 1,
|
|
1085
|
-
menus:
|
|
1086
|
-
variants:
|
|
1085
|
+
menus: r.value,
|
|
1086
|
+
variants: k.value,
|
|
1087
1087
|
categories: A.value,
|
|
1088
1088
|
setting: x(t).state.setting,
|
|
1089
1089
|
"onUpdate:setting": y[4] || (y[4] = (o) => x(t).state.setting = o),
|
|
1090
|
-
show:
|
|
1091
|
-
"onUpdate:show": y[5] || (y[5] = (o) =>
|
|
1092
|
-
groups:
|
|
1090
|
+
show: i.value,
|
|
1091
|
+
"onUpdate:show": y[5] || (y[5] = (o) => i.value = o),
|
|
1092
|
+
groups: h.value,
|
|
1093
1093
|
loading: n.value,
|
|
1094
|
-
onSubmit: y[6] || (y[6] = (o) =>
|
|
1094
|
+
onSubmit: y[6] || (y[6] = (o) => m())
|
|
1095
1095
|
}, null, 8, ["menus", "variants", "categories", "setting", "show", "groups", "loading"]))
|
|
1096
1096
|
]))
|
|
1097
|
-
])) :
|
|
1098
|
-
])) :
|
|
1097
|
+
])) : _("", !0)
|
|
1098
|
+
])) : _("", !0);
|
|
1099
1099
|
};
|
|
1100
1100
|
}
|
|
1101
1101
|
}), Zt = "data:image/svg+xml,%3csvg%20width='200'%20height='100'%20viewBox='0%200%20200%20100'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='200'%20height='100'%20fill='url(%23pattern0_1500_58879)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_1500_58879'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_1500_58879'%20transform='matrix(0.002%200%200%200.004%200%200.046)'/%3e%3c/pattern%3e%3cimage%20id='image0_1500_58879'%20width='500'%20height='227'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAADjCAYAAABzcuYdAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAB9KADAAQAAAABAAAA4wAAAABu8la3AABAAElEQVR4Ae2dCYAcVZnH61V191w5yDU5CDAkIXN0z0wC7C4uAorKpeyysugiuLqKooKIBwsCcguCFwoogqwrIHhzLIKigDeIQDLT3XMlmYSQBHKQhITM1V319v+6p/qorup+1VPd0z3zFXSm6r3vvfe9X1W9792lKHQQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARI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MXoAlat9E3K63kkSB9ULc4B9OfMkPEeAZaUPX6Z/xQsyR1RUG/TNowXxbVr7S5TDP4GxUgKUnVaJqe4Ar+gn4VkveYQxLvjVsZdyCdE5F9+nxeL5DYH4oZErauDCXoeU+3xbtUpd8Gx/T34oleRtTTnlOOlasWKrUBr6HZXunCTEzPWsQa/pW/3JfO+mJaQHnYZXJPV7qEwqtWK5y/8koh09AGSyGRZcjflfvrtf8rPnHOz2Gvrt3dvf0/MnLvJcrrmlh0DNhihnMjI0uVBTfIZxpR6iGMQfLQ5eIBwvd2BLNb6uILEIznL08vg+O59zYjw2ZtkPiNV2JrddGjVexM9Or0E3PzEMpzlGYY0c09SRmxBOrBaz78wizjvkGGh7212L4MMf4uulSqOIqTuzkdjrGdE/DfizSjARrJFKjcCOC3c/uwHksFGp9N3YcPwP3YLSQAhwPDioEO9iu12+ppmVqhfIFfw29FNg4hC2V4QmONYaiPxGJ9P1SIm5bkdDhhy/019fPQ0F6BN6QQ/EWzMFfvJ8y76JtlK4crc95IjBnPsNQngj39DziKjKUIVjueCyeoxPAEPv55uYhVT92GXGpxK35F8823vQtMOZfQZrS75Rb/VpaWuZhB7ZGZvibUCk/DK3ieRhzX2LHLDNur/ll55/58Rw+73VFJlN/OicCRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQAS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ACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiIBHBP4fA65iItIh5WIAAAAASUVORK5CYII='/%3e%3c/defs%3e%3c/svg%3e", qt = { class: "flex-col items-center" }, Gt = { class: "flex gap-2" }, Pt = {
|
|
@@ -1118,34 +1118,34 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1118
1118
|
}) }
|
|
1119
1119
|
},
|
|
1120
1120
|
emits: ["update:modelValue"],
|
|
1121
|
-
setup(F, { emit:
|
|
1122
|
-
const s = F,
|
|
1123
|
-
return (t,
|
|
1124
|
-
const
|
|
1125
|
-
return
|
|
1126
|
-
|
|
1127
|
-
I(
|
|
1121
|
+
setup(F, { emit: v }) {
|
|
1122
|
+
const s = F, d = z(() => s.modelValue), n = v;
|
|
1123
|
+
return (t, r) => {
|
|
1124
|
+
const h = E("FmSelect"), k = E("FmButton"), A = E("FmIcon");
|
|
1125
|
+
return w(), R("div", qt, [
|
|
1126
|
+
a("div", Gt, [
|
|
1127
|
+
I(h, {
|
|
1128
1128
|
placeholder: "Select NetSuite Location",
|
|
1129
1129
|
items: t.nsLocationOptions,
|
|
1130
1130
|
searchable: "",
|
|
1131
1131
|
searchTarget: "label",
|
|
1132
|
-
"model-value":
|
|
1133
|
-
"onUpdate:modelValue":
|
|
1132
|
+
"model-value": d.value,
|
|
1133
|
+
"onUpdate:modelValue": r[0] || (r[0] = (g) => n("update:modelValue", g))
|
|
1134
1134
|
}, null, 8, ["items", "model-value"]),
|
|
1135
|
-
|
|
1135
|
+
d.value.netsuiteId ? (w(), X(k, {
|
|
1136
1136
|
key: 0,
|
|
1137
1137
|
variant: "secondary",
|
|
1138
1138
|
label: "Clear",
|
|
1139
|
-
onClick:
|
|
1139
|
+
onClick: r[1] || (r[1] = (g) => n("update:modelValue", {
|
|
1140
1140
|
netsuiteId: "",
|
|
1141
1141
|
name: "",
|
|
1142
1142
|
subsidiaryName: "",
|
|
1143
1143
|
subsidiaryId: ""
|
|
1144
1144
|
}))
|
|
1145
|
-
})) :
|
|
1145
|
+
})) : _("", !0)
|
|
1146
1146
|
]),
|
|
1147
|
-
t.isDuplicate ? (
|
|
1148
|
-
|
|
1147
|
+
t.isDuplicate ? (w(), R("div", Pt, " NetSuite location being used by another FeedMe location. ")) : _("", !0),
|
|
1148
|
+
d.value.netsuiteId ? (w(), R("div", Wt, [
|
|
1149
1149
|
I(A, {
|
|
1150
1150
|
name: "cloud",
|
|
1151
1151
|
color: "neutral-gray-400",
|
|
@@ -1153,12 +1153,12 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1153
1153
|
class: "mr-2",
|
|
1154
1154
|
outline: ""
|
|
1155
1155
|
}),
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1156
|
+
a("div", $t, [
|
|
1157
|
+
a("span", en, T(d.value.name), 1),
|
|
1158
|
+
a("span", tn, "ID: " + T(d.value.netsuiteId), 1),
|
|
1159
|
+
a("span", nn, "Subsidiary: " + T(d.value.subsidiaryName), 1)
|
|
1160
1160
|
])
|
|
1161
|
-
])) :
|
|
1161
|
+
])) : _("", !0)
|
|
1162
1162
|
]);
|
|
1163
1163
|
};
|
|
1164
1164
|
}
|
|
@@ -1183,13 +1183,13 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1183
1183
|
}
|
|
1184
1184
|
},
|
|
1185
1185
|
emits: ["update:loading", "update:showDialog"],
|
|
1186
|
-
setup(F, { emit:
|
|
1187
|
-
const s = le(),
|
|
1186
|
+
setup(F, { emit: v }) {
|
|
1187
|
+
const s = le(), d = ne(), n = [
|
|
1188
1188
|
{
|
|
1189
1189
|
id: "fmLocation",
|
|
1190
1190
|
header: "FeedMe Location",
|
|
1191
|
-
cell(
|
|
1192
|
-
const C =
|
|
1191
|
+
cell(b) {
|
|
1192
|
+
const C = b.row.original, S = N(ee.FmIcon, {
|
|
1193
1193
|
name: C.type,
|
|
1194
1194
|
color: "neutral-gray-400",
|
|
1195
1195
|
size: "md",
|
|
@@ -1197,7 +1197,7 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1197
1197
|
outline: !0
|
|
1198
1198
|
});
|
|
1199
1199
|
return N("div", { class: "flex items-center" }, [
|
|
1200
|
-
|
|
1200
|
+
S,
|
|
1201
1201
|
N("div", { class: "flex flex-col" }, [
|
|
1202
1202
|
N("span", { class: "font-medium" }, C.name),
|
|
1203
1203
|
N("span", { class: "text-xs text-gray-400" }, C.doc._id)
|
|
@@ -1208,82 +1208,82 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1208
1208
|
{
|
|
1209
1209
|
id: "nsLocation",
|
|
1210
1210
|
header: "NetSuite Location",
|
|
1211
|
-
cell(
|
|
1212
|
-
const C =
|
|
1213
|
-
([
|
|
1211
|
+
cell(b) {
|
|
1212
|
+
const C = b.row.original, S = h.value[C.dbName], p = Object.entries(h.value).some(
|
|
1213
|
+
([m, c]) => m !== C.dbName && c.netsuiteId === (S == null ? void 0 : S.netsuiteId)
|
|
1214
1214
|
);
|
|
1215
1215
|
return N(on, {
|
|
1216
|
-
isDuplicate:
|
|
1217
|
-
nsLocationOptions:
|
|
1218
|
-
modelValue:
|
|
1216
|
+
isDuplicate: p,
|
|
1217
|
+
nsLocationOptions: g.value,
|
|
1218
|
+
modelValue: S,
|
|
1219
1219
|
fmLocation: C,
|
|
1220
|
-
"onUpdate:modelValue": (
|
|
1221
|
-
|
|
1222
|
-
...
|
|
1220
|
+
"onUpdate:modelValue": (m) => {
|
|
1221
|
+
m.netsuiteId ? h.value = {
|
|
1222
|
+
...h.value,
|
|
1223
1223
|
[C.dbName]: {
|
|
1224
|
-
netsuiteId:
|
|
1225
|
-
name:
|
|
1226
|
-
subsidiaryName:
|
|
1227
|
-
subsidiaryId:
|
|
1224
|
+
netsuiteId: m.netsuiteId,
|
|
1225
|
+
name: m.name,
|
|
1226
|
+
subsidiaryName: m.subsidiaryName,
|
|
1227
|
+
subsidiaryId: m.subsidiaryId
|
|
1228
1228
|
}
|
|
1229
|
-
} : delete
|
|
1229
|
+
} : delete h.value[C.dbName];
|
|
1230
1230
|
}
|
|
1231
1231
|
});
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
|
-
], t = F,
|
|
1235
|
-
label:
|
|
1236
|
-
value:
|
|
1237
|
-
}))),
|
|
1238
|
-
(
|
|
1234
|
+
], t = F, r = v, h = j({}), k = j(), A = j(""), g = z(() => t.nsLocationsNotBeingUsed.map((b) => ({
|
|
1235
|
+
label: b.name,
|
|
1236
|
+
value: b
|
|
1237
|
+
}))), l = z(() => Object.values(h.value).length === 0 || Object.values(h.value).some(
|
|
1238
|
+
(b) => Object.values(h.value).filter((C) => C.netsuiteId === b.netsuiteId).length > 1
|
|
1239
1239
|
));
|
|
1240
|
-
async function
|
|
1240
|
+
async function i() {
|
|
1241
1241
|
try {
|
|
1242
|
-
|
|
1242
|
+
r("update:loading", !0), await s.updateLocationConfigs(h.value), d.open({
|
|
1243
1243
|
message: "Locations updated successfully",
|
|
1244
1244
|
type: "success"
|
|
1245
|
-
}),
|
|
1245
|
+
}), r("update:showDialog", !1);
|
|
1246
1246
|
} catch {
|
|
1247
|
-
|
|
1247
|
+
d.open({
|
|
1248
1248
|
message: "Failed to update locations. Please try again.",
|
|
1249
1249
|
type: "error"
|
|
1250
1250
|
});
|
|
1251
1251
|
} finally {
|
|
1252
|
-
|
|
1252
|
+
r("update:loading", !1);
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
|
-
return (
|
|
1256
|
-
const
|
|
1257
|
-
return
|
|
1255
|
+
return (b, C) => {
|
|
1256
|
+
const S = E("FmTable"), p = E("FmForm"), m = E("FmSpacer"), c = E("FmButton"), u = E("FmDialog");
|
|
1257
|
+
return w(), X(u, {
|
|
1258
1258
|
modelValue: F.showDialog,
|
|
1259
|
-
"onUpdate:modelValue": C[2] || (C[2] = (y) =>
|
|
1259
|
+
"onUpdate:modelValue": C[2] || (C[2] = (y) => b.$emit("update:showDialog", y)),
|
|
1260
1260
|
overlay: !0,
|
|
1261
1261
|
"max-width": "900px"
|
|
1262
1262
|
}, {
|
|
1263
1263
|
"dialog-header": D(() => C[3] || (C[3] = [
|
|
1264
|
-
|
|
1264
|
+
a("div", null, "Add locations", -1)
|
|
1265
1265
|
])),
|
|
1266
1266
|
"dialog-footer": D(() => [
|
|
1267
|
-
I(
|
|
1268
|
-
I(
|
|
1267
|
+
I(m, { class: "sm:hidden xs:hidden" }),
|
|
1268
|
+
I(c, {
|
|
1269
1269
|
class: "sm:w-full xs:w-full",
|
|
1270
1270
|
label: "Submit",
|
|
1271
1271
|
size: "md",
|
|
1272
|
-
disabled:
|
|
1273
|
-
onClick:
|
|
1272
|
+
disabled: l.value,
|
|
1273
|
+
onClick: i
|
|
1274
1274
|
}, null, 8, ["disabled"])
|
|
1275
1275
|
]),
|
|
1276
1276
|
default: D(() => [
|
|
1277
|
-
I(
|
|
1277
|
+
I(p, {
|
|
1278
1278
|
ref: "formRef",
|
|
1279
1279
|
class: "mb-4",
|
|
1280
|
-
"model-value":
|
|
1281
|
-
"onUpdate:modelValue": C[1] || (C[1] = (y) =>
|
|
1280
|
+
"model-value": k.value,
|
|
1281
|
+
"onUpdate:modelValue": C[1] || (C[1] = (y) => k.value = y)
|
|
1282
1282
|
}, {
|
|
1283
1283
|
default: D(() => [
|
|
1284
|
-
I(
|
|
1285
|
-
modelValue:
|
|
1286
|
-
"onUpdate:modelValue": C[0] || (C[0] = (y) =>
|
|
1284
|
+
I(S, {
|
|
1285
|
+
modelValue: k.value,
|
|
1286
|
+
"onUpdate:modelValue": C[0] || (C[0] = (y) => k.value = y),
|
|
1287
1287
|
"row-data": t.fmLocationNotYetConfigured,
|
|
1288
1288
|
"column-defs": n,
|
|
1289
1289
|
"search-value": A.value,
|
|
@@ -1309,26 +1309,26 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1309
1309
|
loading: { type: Boolean }
|
|
1310
1310
|
},
|
|
1311
1311
|
emits: ["update:setting", "update:show", "update:loading", "submit"],
|
|
1312
|
-
setup(F, { emit:
|
|
1313
|
-
const s = ie(),
|
|
1314
|
-
pe([() => t.show], ([
|
|
1315
|
-
if (
|
|
1316
|
-
for (const
|
|
1317
|
-
|
|
1312
|
+
setup(F, { emit: v }) {
|
|
1313
|
+
const s = ie(), d = W(), n = j(!1), t = F, r = v, h = fe($(t.setting));
|
|
1314
|
+
pe([() => t.show], ([c]) => {
|
|
1315
|
+
if (c)
|
|
1316
|
+
for (const u of Object.keys(t.setting))
|
|
1317
|
+
h[u] = t.setting[u];
|
|
1318
1318
|
});
|
|
1319
|
-
const
|
|
1320
|
-
(
|
|
1321
|
-
)),
|
|
1319
|
+
const k = j(), A = ae(t, "show"), g = j(), l = j(""), i = z(() => t.setting.locations.filter(
|
|
1320
|
+
(c) => c.name.toLowerCase().includes(l.value.toLowerCase()) || c.netSuiteId.toLowerCase().includes(l.value.toLowerCase())
|
|
1321
|
+
)), b = [
|
|
1322
1322
|
{
|
|
1323
1323
|
id: "location",
|
|
1324
1324
|
header: () => "FeedMe Location",
|
|
1325
|
-
cell(
|
|
1326
|
-
const
|
|
1327
|
-
(e) => e.type ===
|
|
1325
|
+
cell(c) {
|
|
1326
|
+
const u = c.row.original, y = d.locations.find(
|
|
1327
|
+
(e) => e.type === u.type && e.doc._id === u.id
|
|
1328
1328
|
);
|
|
1329
1329
|
if (!y)
|
|
1330
1330
|
return N("div", "Unknown Location");
|
|
1331
|
-
const
|
|
1331
|
+
const f = N(ee.FmIcon, {
|
|
1332
1332
|
name: y.type,
|
|
1333
1333
|
color: "neutral-gray-400",
|
|
1334
1334
|
size: "md",
|
|
@@ -1336,7 +1336,7 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1336
1336
|
outline: !0
|
|
1337
1337
|
});
|
|
1338
1338
|
return N("div", { class: "flex items-center" }, [
|
|
1339
|
-
|
|
1339
|
+
f,
|
|
1340
1340
|
N("div", { class: "flex flex-col" }, [
|
|
1341
1341
|
N("span", { class: "font-medium" }, y.name),
|
|
1342
1342
|
N("span", { class: "text-xs text-gray-400" }, y.doc._id)
|
|
@@ -1347,11 +1347,11 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1347
1347
|
{
|
|
1348
1348
|
id: "netsuite",
|
|
1349
1349
|
header: () => "NetSuite Location",
|
|
1350
|
-
cell(
|
|
1350
|
+
cell(c) {
|
|
1351
1351
|
var e;
|
|
1352
|
-
const
|
|
1353
|
-
(o) => o.netsuiteId ===
|
|
1354
|
-
)) == null ? void 0 : e.subsidiaryName,
|
|
1352
|
+
const u = c.row.original, y = (e = t.nsLocations.find(
|
|
1353
|
+
(o) => o.netsuiteId === u.netSuiteId
|
|
1354
|
+
)) == null ? void 0 : e.subsidiaryName, f = N(ee.FmIcon, {
|
|
1355
1355
|
name: "cloud",
|
|
1356
1356
|
color: "neutral-gray-400",
|
|
1357
1357
|
size: "md",
|
|
@@ -1359,16 +1359,16 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1359
1359
|
outline: !0
|
|
1360
1360
|
});
|
|
1361
1361
|
return N("div", { class: "flex items-center" }, [
|
|
1362
|
-
|
|
1362
|
+
f,
|
|
1363
1363
|
N("div", { class: "flex flex-col" }, [
|
|
1364
|
-
N("span", { class: "font-medium" },
|
|
1365
|
-
N("span", { class: "text-xs text-gray-400" }, `ID: ${
|
|
1364
|
+
N("span", { class: "font-medium" }, u.name),
|
|
1365
|
+
N("span", { class: "text-xs text-gray-400" }, `ID: ${u.netSuiteId}`),
|
|
1366
1366
|
N("span", { class: "text-xs text-gray-400" }, `Subsidiary: ${y}`)
|
|
1367
1367
|
])
|
|
1368
1368
|
]);
|
|
1369
1369
|
}
|
|
1370
1370
|
}
|
|
1371
|
-
], { t: C } = G(),
|
|
1371
|
+
], { t: C } = G(), S = [
|
|
1372
1372
|
"Unit Type",
|
|
1373
1373
|
"Inventory Item",
|
|
1374
1374
|
"Location",
|
|
@@ -1377,18 +1377,18 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1377
1377
|
"Purchase Order",
|
|
1378
1378
|
"Transfer Order",
|
|
1379
1379
|
"Inventory Transfer"
|
|
1380
|
-
],
|
|
1381
|
-
(
|
|
1382
|
-
(
|
|
1380
|
+
], p = z(() => d.locations.filter(
|
|
1381
|
+
(c) => !t.setting.locations.some(
|
|
1382
|
+
(u) => u.id === c.doc._id && u.type === c.type
|
|
1383
1383
|
)
|
|
1384
|
-
)),
|
|
1385
|
-
(
|
|
1384
|
+
)), m = z(() => t.nsLocations.filter(
|
|
1385
|
+
(c) => !t.setting.locations.some((u) => u.netSuiteId === c.netsuiteId)
|
|
1386
1386
|
));
|
|
1387
|
-
return (
|
|
1388
|
-
const y = E("FmChip"),
|
|
1389
|
-
return
|
|
1387
|
+
return (c, u) => {
|
|
1388
|
+
const y = E("FmChip"), f = E("FmSearch"), e = E("FmTable"), o = E("FmButton"), B = E("FmSideSheet");
|
|
1389
|
+
return w(), X(B, {
|
|
1390
1390
|
modelValue: x(A),
|
|
1391
|
-
"onUpdate:modelValue":
|
|
1391
|
+
"onUpdate:modelValue": u[6] || (u[6] = (L) => se(A) ? A.value = L : null),
|
|
1392
1392
|
header: x(C)("inventory.integration.netsuite.title"),
|
|
1393
1393
|
"dismiss-away": "",
|
|
1394
1394
|
"close-button": "",
|
|
@@ -1397,58 +1397,58 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1397
1397
|
default: D(() => {
|
|
1398
1398
|
var L;
|
|
1399
1399
|
return [
|
|
1400
|
-
(L = x(s).sessionUser.value) != null && L.role.isAdmin ? (
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
(
|
|
1400
|
+
(L = x(s).sessionUser.value) != null && L.role.isAdmin ? (w(), R("div", ln, [
|
|
1401
|
+
u[7] || (u[7] = a("div", { class: "text-sm" }, " This integration keeps your FeedMe system and NetSuite in sync for the following modules: ", -1)),
|
|
1402
|
+
a("div", rn, [
|
|
1403
|
+
(w(), R(J, null, te(S, (V) => I(y, {
|
|
1404
1404
|
key: V,
|
|
1405
1405
|
label: V,
|
|
1406
1406
|
compact: ""
|
|
1407
1407
|
}, null, 8, ["label"])), 64))
|
|
1408
1408
|
]),
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
I(
|
|
1409
|
+
u[8] || (u[8] = a("div", { class: "text-xs mt-2" }, " Changes made in FeedMe or NetSuite will be reflected in both systems, ensuring data consistency and streamlined operations. ", -1)),
|
|
1410
|
+
u[9] || (u[9] = a("hr", { class: "my-3" }, null, -1)),
|
|
1411
|
+
a("div", un, [
|
|
1412
|
+
I(f, {
|
|
1413
1413
|
placeholder: "Search by [NetSuite Location]",
|
|
1414
1414
|
class: "w-[300px]",
|
|
1415
|
-
modelValue:
|
|
1416
|
-
"onUpdate:modelValue":
|
|
1415
|
+
modelValue: l.value,
|
|
1416
|
+
"onUpdate:modelValue": u[0] || (u[0] = (V) => l.value = V)
|
|
1417
1417
|
}, null, 8, ["modelValue"])
|
|
1418
1418
|
]),
|
|
1419
1419
|
I(e, {
|
|
1420
|
-
modelValue:
|
|
1421
|
-
"onUpdate:modelValue":
|
|
1422
|
-
"row-data":
|
|
1423
|
-
"column-defs":
|
|
1420
|
+
modelValue: g.value,
|
|
1421
|
+
"onUpdate:modelValue": u[1] || (u[1] = (V) => g.value = V),
|
|
1422
|
+
"row-data": i.value,
|
|
1423
|
+
"column-defs": b,
|
|
1424
1424
|
"shrink-at": !1,
|
|
1425
|
-
"search-value":
|
|
1425
|
+
"search-value": l.value
|
|
1426
1426
|
}, null, 8, ["modelValue", "row-data", "search-value"])
|
|
1427
|
-
])) : (
|
|
1427
|
+
])) : (w(), R("div", an, " Please contact your administrator to apply the changes. ")),
|
|
1428
1428
|
I(sn, {
|
|
1429
1429
|
"show-dialog": n.value,
|
|
1430
1430
|
"onUpdate:showDialog": [
|
|
1431
|
-
|
|
1432
|
-
|
|
1431
|
+
u[2] || (u[2] = (V) => n.value = V),
|
|
1432
|
+
u[3] || (u[3] = (V) => n.value = V)
|
|
1433
1433
|
],
|
|
1434
|
-
formRef:
|
|
1435
|
-
fmLocationNotYetConfigured:
|
|
1436
|
-
nsLocationsNotBeingUsed:
|
|
1434
|
+
formRef: k.value,
|
|
1435
|
+
fmLocationNotYetConfigured: p.value,
|
|
1436
|
+
nsLocationsNotBeingUsed: m.value
|
|
1437
1437
|
}, null, 8, ["show-dialog", "formRef", "fmLocationNotYetConfigured", "nsLocationsNotBeingUsed"])
|
|
1438
1438
|
];
|
|
1439
1439
|
}),
|
|
1440
1440
|
"side-sheet-footer": D(() => [
|
|
1441
|
-
|
|
1441
|
+
a("div", dn, [
|
|
1442
1442
|
I(o, {
|
|
1443
1443
|
label: "Add location",
|
|
1444
|
-
onClick:
|
|
1445
|
-
loading:
|
|
1446
|
-
disabled:
|
|
1444
|
+
onClick: u[4] || (u[4] = (L) => n.value = !0),
|
|
1445
|
+
loading: c.loading,
|
|
1446
|
+
disabled: c.loading
|
|
1447
1447
|
}, null, 8, ["loading", "disabled"]),
|
|
1448
1448
|
I(o, {
|
|
1449
1449
|
variant: "tertiary",
|
|
1450
1450
|
label: x(C)("common.close"),
|
|
1451
|
-
onClick:
|
|
1451
|
+
onClick: u[5] || (u[5] = (L) => r("update:show", !1))
|
|
1452
1452
|
}, null, 8, ["label"])
|
|
1453
1453
|
])
|
|
1454
1454
|
]),
|
|
@@ -1464,10 +1464,10 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1464
1464
|
},
|
|
1465
1465
|
emits: ["update:modelValue"],
|
|
1466
1466
|
setup(F) {
|
|
1467
|
-
const { t:
|
|
1467
|
+
const { t: v } = de(), s = xe(F, "modelValue"), d = [
|
|
1468
1468
|
{
|
|
1469
1469
|
id: "Code",
|
|
1470
|
-
header: () =>
|
|
1470
|
+
header: () => v("inventory.transfer.form.items.table.Code"),
|
|
1471
1471
|
accessorKey: "code",
|
|
1472
1472
|
size: 200,
|
|
1473
1473
|
cell(n) {
|
|
@@ -1493,7 +1493,7 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1493
1493
|
},
|
|
1494
1494
|
{
|
|
1495
1495
|
id: "Name",
|
|
1496
|
-
header: () =>
|
|
1496
|
+
header: () => v("inventory.transfer.form.items.table.Name"),
|
|
1497
1497
|
minSize: 300,
|
|
1498
1498
|
cell(n) {
|
|
1499
1499
|
const t = n.row.original;
|
|
@@ -1518,10 +1518,10 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1518
1518
|
},
|
|
1519
1519
|
{
|
|
1520
1520
|
id: "Amount",
|
|
1521
|
-
header: () =>
|
|
1521
|
+
header: () => v("inventory.transfer.form.items.table.Amount"),
|
|
1522
1522
|
minSize: 200,
|
|
1523
1523
|
cell(n) {
|
|
1524
|
-
const t = n.row.original,
|
|
1524
|
+
const t = n.row.original, r = n.row.index;
|
|
1525
1525
|
return N($e, {
|
|
1526
1526
|
style: {
|
|
1527
1527
|
flex: "1 1 0%"
|
|
@@ -1532,17 +1532,17 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1532
1532
|
},
|
|
1533
1533
|
key: t.sku._id,
|
|
1534
1534
|
unit: t.sku.unit,
|
|
1535
|
-
"onUpdate:modelValue": (
|
|
1536
|
-
if (!
|
|
1537
|
-
const
|
|
1535
|
+
"onUpdate:modelValue": (h) => {
|
|
1536
|
+
if (!h) return;
|
|
1537
|
+
const k = {
|
|
1538
1538
|
...t,
|
|
1539
|
-
quantity:
|
|
1540
|
-
measurement:
|
|
1539
|
+
quantity: h.amount,
|
|
1540
|
+
measurement: h.measurement
|
|
1541
1541
|
};
|
|
1542
1542
|
s.value = [
|
|
1543
|
-
...s.value.slice(0,
|
|
1544
|
-
|
|
1545
|
-
...s.value.slice(
|
|
1543
|
+
...s.value.slice(0, r),
|
|
1544
|
+
k,
|
|
1545
|
+
...s.value.slice(r + 1)
|
|
1546
1546
|
];
|
|
1547
1547
|
},
|
|
1548
1548
|
rules: [et(+Qe({ amount: 1, precision: 0 }))],
|
|
@@ -1555,7 +1555,7 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1555
1555
|
id: "Delete",
|
|
1556
1556
|
header: "",
|
|
1557
1557
|
cell(n) {
|
|
1558
|
-
const t = n.row.original,
|
|
1558
|
+
const t = n.row.original, r = n.row.index;
|
|
1559
1559
|
return N("div", { class: "flex justify-end" }, [
|
|
1560
1560
|
N(ee.FmButton, {
|
|
1561
1561
|
key: t.sku._id,
|
|
@@ -1565,7 +1565,7 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1565
1565
|
variant: "tertiary",
|
|
1566
1566
|
size: "md",
|
|
1567
1567
|
onClick: () => {
|
|
1568
|
-
s.value = [...s.value.slice(0,
|
|
1568
|
+
s.value = [...s.value.slice(0, r), ...s.value.slice(r + 1)];
|
|
1569
1569
|
}
|
|
1570
1570
|
})
|
|
1571
1571
|
]);
|
|
@@ -1579,38 +1579,55 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1579
1579
|
}
|
|
1580
1580
|
];
|
|
1581
1581
|
return (n, t) => {
|
|
1582
|
-
const
|
|
1583
|
-
return
|
|
1584
|
-
"column-defs":
|
|
1582
|
+
const r = E("FmTable");
|
|
1583
|
+
return w(), X(r, {
|
|
1584
|
+
"column-defs": d,
|
|
1585
1585
|
"row-data": s.value,
|
|
1586
|
-
"row-key": (
|
|
1587
|
-
"empty-text": x(
|
|
1586
|
+
"row-key": (h) => h.sku._id,
|
|
1587
|
+
"empty-text": x(v)("inventory.transfer.form.items.table.empty"),
|
|
1588
1588
|
pagination: !1,
|
|
1589
1589
|
"virtual-scroll": { enabled: !0, itemSize: 48 }
|
|
1590
1590
|
}, null, 8, ["row-data", "row-key", "empty-text"]);
|
|
1591
1591
|
};
|
|
1592
1592
|
}
|
|
1593
|
-
}), fn = /* @__PURE__ */ Y({
|
|
1593
|
+
}), fn = { class: "flex items-center gap-8 mb-8" }, pn = /* @__PURE__ */ Y({
|
|
1594
1594
|
__name: "InventoryTransferOutTable",
|
|
1595
1595
|
setup(F) {
|
|
1596
|
-
const
|
|
1596
|
+
const v = j([]), s = Se(), d = j(!1), n = j(!1), t = ne(), r = W();
|
|
1597
1597
|
me(async () => {
|
|
1598
|
-
const
|
|
1599
|
-
|
|
1598
|
+
const g = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
|
|
1599
|
+
l.setDate(l.getDate() - 30), d.value = !0;
|
|
1600
1600
|
try {
|
|
1601
|
-
const
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1601
|
+
const i = await s.getInventoryTransferHistory(
|
|
1602
|
+
r.currentLocationDBName,
|
|
1603
|
+
l,
|
|
1604
|
+
g
|
|
1605
1605
|
);
|
|
1606
|
-
|
|
1607
|
-
} catch (
|
|
1608
|
-
console.error("Error fetching inventory transfer history:",
|
|
1606
|
+
v.value = i;
|
|
1607
|
+
} catch (i) {
|
|
1608
|
+
console.error("Error fetching inventory transfer history:", i);
|
|
1609
1609
|
} finally {
|
|
1610
|
-
|
|
1610
|
+
d.value = !1;
|
|
1611
1611
|
}
|
|
1612
1612
|
});
|
|
1613
|
-
|
|
1613
|
+
async function h() {
|
|
1614
|
+
try {
|
|
1615
|
+
n.value = !0, await s.manualSyncInventoryTransfer(r.currentLocationDBName), t == null || t.open({
|
|
1616
|
+
title: "Sync Started",
|
|
1617
|
+
message: "Inventory transfers sync queued successfully.",
|
|
1618
|
+
type: "success"
|
|
1619
|
+
});
|
|
1620
|
+
} catch (g) {
|
|
1621
|
+
t == null || t.open({
|
|
1622
|
+
title: "Sync Failed",
|
|
1623
|
+
message: `Failed to queue inventory transfers sync. ${g == null ? void 0 : g.message}`,
|
|
1624
|
+
type: "error"
|
|
1625
|
+
});
|
|
1626
|
+
} finally {
|
|
1627
|
+
n.value = !1;
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
const k = [
|
|
1614
1631
|
// {
|
|
1615
1632
|
// id: 'type',
|
|
1616
1633
|
// header: 'Type',
|
|
@@ -1621,17 +1638,17 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1621
1638
|
{
|
|
1622
1639
|
id: "destinationLocation",
|
|
1623
1640
|
header: "Destination Location",
|
|
1624
|
-
cell: (
|
|
1625
|
-
const
|
|
1626
|
-
return
|
|
1641
|
+
cell: (g) => {
|
|
1642
|
+
const l = g.row.original.destinationLocation.netSuiteName;
|
|
1643
|
+
return l ? N(
|
|
1627
1644
|
ee.FmTooltip,
|
|
1628
1645
|
{ zIndex: 51 },
|
|
1629
1646
|
{
|
|
1630
1647
|
content() {
|
|
1631
|
-
return
|
|
1648
|
+
return l;
|
|
1632
1649
|
},
|
|
1633
1650
|
default() {
|
|
1634
|
-
return N("div", { class: "line-clamp-2 fm-typo-en-body-sm-400" },
|
|
1651
|
+
return N("div", { class: "line-clamp-2 fm-typo-en-body-sm-400" }, l);
|
|
1635
1652
|
}
|
|
1636
1653
|
}
|
|
1637
1654
|
) : "N/A";
|
|
@@ -1640,22 +1657,22 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1640
1657
|
{
|
|
1641
1658
|
id: "netsuite",
|
|
1642
1659
|
header: () => "NetSuite",
|
|
1643
|
-
cell(
|
|
1660
|
+
cell(g) {
|
|
1644
1661
|
return N("div", { class: "flex flex-col" }, [
|
|
1645
1662
|
N(
|
|
1646
1663
|
"span",
|
|
1647
1664
|
{ class: "fm-typo-en-body-sm-400" },
|
|
1648
|
-
`ID: ${
|
|
1665
|
+
`ID: ${g.row.original.netsuiteId ?? "N/A"}`
|
|
1649
1666
|
),
|
|
1650
1667
|
N(
|
|
1651
1668
|
"span",
|
|
1652
1669
|
{ class: "fm-typo-en-body-sm-400" },
|
|
1653
|
-
`Transaction ID: ${
|
|
1670
|
+
`Transaction ID: ${g.row.original.netsuiteTranId ?? "N/A"}`
|
|
1654
1671
|
),
|
|
1655
1672
|
N(
|
|
1656
1673
|
"span",
|
|
1657
1674
|
{ class: "fm-typo-en-body-sm-400" },
|
|
1658
|
-
`Transaction Date: ${
|
|
1675
|
+
`Transaction Date: ${g.row.original.netsuiteTranDate ?? "N/A"}`
|
|
1659
1676
|
)
|
|
1660
1677
|
]);
|
|
1661
1678
|
}
|
|
@@ -1663,14 +1680,14 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1663
1680
|
{
|
|
1664
1681
|
id: "adjustment",
|
|
1665
1682
|
header: () => "Adjustment (FeedMe)",
|
|
1666
|
-
cell(
|
|
1667
|
-
const
|
|
1683
|
+
cell(g) {
|
|
1684
|
+
const l = g.row.original.adjustmentId;
|
|
1668
1685
|
return N("div", { class: "flex flex-col" }, [
|
|
1669
|
-
N("span", { class: "fm-typo-en-body-sm-400" }, `ID: ${
|
|
1686
|
+
N("span", { class: "fm-typo-en-body-sm-400" }, `ID: ${l ?? "N/A"}`),
|
|
1670
1687
|
N(
|
|
1671
1688
|
"span",
|
|
1672
1689
|
{ class: "fm-typo-en-body-sm-400" },
|
|
1673
|
-
`Date: ${
|
|
1690
|
+
`Date: ${l ? ve(ge(l)) : "N/A"}`
|
|
1674
1691
|
)
|
|
1675
1692
|
]);
|
|
1676
1693
|
}
|
|
@@ -1678,17 +1695,17 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1678
1695
|
{
|
|
1679
1696
|
id: "items",
|
|
1680
1697
|
header: () => "Items",
|
|
1681
|
-
cell(
|
|
1682
|
-
const
|
|
1698
|
+
cell(g) {
|
|
1699
|
+
const l = g.row.original.items;
|
|
1683
1700
|
return N(
|
|
1684
1701
|
"div",
|
|
1685
1702
|
{ class: "overflow-auto" },
|
|
1686
1703
|
N("ul", { class: "list-disc pl-5" }, [
|
|
1687
|
-
|
|
1688
|
-
(
|
|
1704
|
+
l == null ? void 0 : l.map(
|
|
1705
|
+
(i) => N(
|
|
1689
1706
|
"li",
|
|
1690
1707
|
{ class: "fm-typo-en-body-sm-400" },
|
|
1691
|
-
`[${
|
|
1708
|
+
`[${i == null ? void 0 : i.itemId}] ${i == null ? void 0 : i.itemName}: ${i == null ? void 0 : i.quantity} ${(i == null ? void 0 : i.uomName) ?? "N/A"}`
|
|
1692
1709
|
)
|
|
1693
1710
|
)
|
|
1694
1711
|
])
|
|
@@ -1696,34 +1713,46 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1696
1713
|
},
|
|
1697
1714
|
size: 150
|
|
1698
1715
|
}
|
|
1699
|
-
],
|
|
1700
|
-
return (
|
|
1701
|
-
const b = E("FmTable");
|
|
1702
|
-
return
|
|
1703
|
-
|
|
1716
|
+
], A = j();
|
|
1717
|
+
return (g, l) => {
|
|
1718
|
+
const i = E("FmButton"), b = E("FmTable");
|
|
1719
|
+
return w(), R(J, null, [
|
|
1720
|
+
a("div", fn, [
|
|
1721
|
+
l[1] || (l[1] = a("span", null, "Last 30 Days:", -1)),
|
|
1722
|
+
I(i, {
|
|
1723
|
+
"prepend-icon": "sync",
|
|
1724
|
+
variant: "secondary",
|
|
1725
|
+
label: "Sync",
|
|
1726
|
+
loading: n.value,
|
|
1727
|
+
"text-color": "primary",
|
|
1728
|
+
"bg-color": "transparent",
|
|
1729
|
+
"border-color": "primary",
|
|
1730
|
+
onClick: h
|
|
1731
|
+
}, null, 8, ["loading"])
|
|
1732
|
+
]),
|
|
1704
1733
|
I(b, {
|
|
1705
|
-
modelValue:
|
|
1706
|
-
"onUpdate:modelValue":
|
|
1707
|
-
"row-data":
|
|
1708
|
-
"column-defs":
|
|
1709
|
-
loading:
|
|
1734
|
+
modelValue: A.value,
|
|
1735
|
+
"onUpdate:modelValue": l[0] || (l[0] = (C) => A.value = C),
|
|
1736
|
+
"row-data": v.value,
|
|
1737
|
+
"column-defs": k,
|
|
1738
|
+
loading: d.value
|
|
1710
1739
|
}, null, 8, ["modelValue", "row-data", "loading"])
|
|
1711
1740
|
], 64);
|
|
1712
1741
|
};
|
|
1713
1742
|
}
|
|
1714
|
-
}),
|
|
1743
|
+
}), vn = { class: "flex flex-col gap-8" }, gn = {
|
|
1715
1744
|
key: 0,
|
|
1716
1745
|
class: "flex flex-col gap-4"
|
|
1717
|
-
},
|
|
1746
|
+
}, yn = { class: "flex gap-2" }, An = {
|
|
1718
1747
|
key: 1,
|
|
1719
1748
|
class: "flex items-center my-2 border rounded-lg p-2"
|
|
1720
|
-
},
|
|
1749
|
+
}, bn = { class: "flex flex-col" }, hn = { class: "font-medium" }, In = { class: "text-xs text-gray-400" }, xn = { class: "text-xs text-gray-400" }, Sn = { class: "flex my-4" }, wn = { class: "flex" }, kn = {
|
|
1721
1750
|
key: 1,
|
|
1722
1751
|
class: "flex flex-col"
|
|
1723
|
-
},
|
|
1752
|
+
}, Bn = {
|
|
1724
1753
|
key: 1,
|
|
1725
1754
|
class: "flex flex-col"
|
|
1726
|
-
},
|
|
1755
|
+
}, Cn = /* @__PURE__ */ Y({
|
|
1727
1756
|
__name: "InventoryTransfer",
|
|
1728
1757
|
props: {
|
|
1729
1758
|
nsLocations: {},
|
|
@@ -1731,55 +1760,55 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1731
1760
|
currentLocationSubsidiary: {}
|
|
1732
1761
|
},
|
|
1733
1762
|
setup(F) {
|
|
1734
|
-
const
|
|
1735
|
-
const y = s.currentLocationSetting,
|
|
1736
|
-
return
|
|
1763
|
+
const v = Ae(), s = le(), d = ye(), n = Se(), t = ne(), { t: r } = de(), h = j([]), k = [{ label: "Transfer Out" }, { label: "History" }], A = j(k[0]), g = j(!1), l = j(null), i = j(null), b = F, C = z(() => {
|
|
1764
|
+
const y = s.currentLocationSetting, f = s.configuredLocations;
|
|
1765
|
+
return b.nsLocations.map((e) => ({
|
|
1737
1766
|
label: e.name,
|
|
1738
1767
|
value: e,
|
|
1739
|
-
disabled:
|
|
1768
|
+
disabled: f.some((o) => o.netSuiteId === e.netsuiteId) || e.subsidiaryId !== (y == null ? void 0 : y.subsidiaryId)
|
|
1740
1769
|
}));
|
|
1741
|
-
}),
|
|
1770
|
+
}), S = z({
|
|
1742
1771
|
get() {
|
|
1743
|
-
return
|
|
1772
|
+
return l.value ? l.value.toISOString().slice(0, 10) : "";
|
|
1744
1773
|
},
|
|
1745
1774
|
set(y) {
|
|
1746
1775
|
if (!y) {
|
|
1747
|
-
|
|
1776
|
+
l.value = null;
|
|
1748
1777
|
return;
|
|
1749
1778
|
}
|
|
1750
|
-
const
|
|
1751
|
-
|
|
1779
|
+
const f = l.value ?? /* @__PURE__ */ new Date(), e = new Date(y);
|
|
1780
|
+
f.setFullYear(e.getFullYear(), e.getMonth(), e.getDate()), l.value = new Date(f);
|
|
1752
1781
|
}
|
|
1753
|
-
}),
|
|
1782
|
+
}), p = z({
|
|
1754
1783
|
get() {
|
|
1755
|
-
if (!
|
|
1756
|
-
const y = String(
|
|
1757
|
-
return `${y}:${
|
|
1784
|
+
if (!l.value) return null;
|
|
1785
|
+
const y = String(l.value.getHours()).padStart(2, "0"), f = String(l.value.getMinutes()).padStart(2, "0");
|
|
1786
|
+
return `${y}:${f}`;
|
|
1758
1787
|
},
|
|
1759
1788
|
set(y) {
|
|
1760
1789
|
if (!y) return;
|
|
1761
|
-
const [
|
|
1762
|
-
o.setHours(
|
|
1790
|
+
const [f, e] = y.split(":").map(Number), o = l.value ?? /* @__PURE__ */ new Date();
|
|
1791
|
+
o.setHours(f, e), l.value = new Date(o);
|
|
1763
1792
|
}
|
|
1764
|
-
}),
|
|
1765
|
-
async function
|
|
1766
|
-
if (
|
|
1767
|
-
if (!
|
|
1793
|
+
}), m = z(() => S.value && p.value && i.value && h.value.length > 0 && !g.value);
|
|
1794
|
+
async function c() {
|
|
1795
|
+
if (m.value) {
|
|
1796
|
+
if (!b.currentLocationSetting) {
|
|
1768
1797
|
t.open({
|
|
1769
1798
|
message: "Current location setting is not available",
|
|
1770
1799
|
type: "error"
|
|
1771
1800
|
});
|
|
1772
1801
|
return;
|
|
1773
1802
|
}
|
|
1774
|
-
|
|
1803
|
+
g.value = !0;
|
|
1775
1804
|
try {
|
|
1776
1805
|
const y = {
|
|
1777
|
-
items:
|
|
1778
|
-
date:
|
|
1779
|
-
netsuiteLocationId:
|
|
1780
|
-
netsuiteLocationName:
|
|
1781
|
-
},
|
|
1782
|
-
await n.createInventoryTransfer(
|
|
1806
|
+
items: h.value,
|
|
1807
|
+
date: l.value.toISOString(),
|
|
1808
|
+
netsuiteLocationId: i.value.netsuiteId,
|
|
1809
|
+
netsuiteLocationName: i.value.name
|
|
1810
|
+
}, f = `${b.currentLocationSetting.type}_${b.currentLocationSetting.id}`;
|
|
1811
|
+
await n.createInventoryTransfer(f, y), h.value = [], l.value = null, i.value = null, t.open({
|
|
1783
1812
|
message: "Inventort transfer created successfully",
|
|
1784
1813
|
type: "success"
|
|
1785
1814
|
});
|
|
@@ -1789,12 +1818,12 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1789
1818
|
type: "error"
|
|
1790
1819
|
});
|
|
1791
1820
|
} finally {
|
|
1792
|
-
|
|
1821
|
+
g.value = !1;
|
|
1793
1822
|
}
|
|
1794
1823
|
}
|
|
1795
1824
|
}
|
|
1796
|
-
function
|
|
1797
|
-
const y = s.currentLocationSubsidiary(),
|
|
1825
|
+
function u() {
|
|
1826
|
+
const y = s.currentLocationSubsidiary(), f = s.getAvailableItems(y.id), e = d.skus.filter((L) => f.includes(L._id)).map((L) => L._id), o = d.skus.map(
|
|
1798
1827
|
(L) => ({
|
|
1799
1828
|
label: L.name,
|
|
1800
1829
|
sublabel: L.code,
|
|
@@ -1803,10 +1832,10 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1803
1832
|
})
|
|
1804
1833
|
), B = o.filter((L) => {
|
|
1805
1834
|
var V;
|
|
1806
|
-
return (V =
|
|
1835
|
+
return (V = h.value) == null ? void 0 : V.find((H) => H.sku._id === L.value._id);
|
|
1807
1836
|
}).map((L) => L.value);
|
|
1808
|
-
|
|
1809
|
-
title:
|
|
1837
|
+
v.open({
|
|
1838
|
+
title: r("inventory.transfer.form.items.selectItem"),
|
|
1810
1839
|
closeButton: !0,
|
|
1811
1840
|
contentComponent: Ye,
|
|
1812
1841
|
contentComponentProps: {
|
|
@@ -1815,16 +1844,16 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1815
1844
|
virtualScroll: !0
|
|
1816
1845
|
},
|
|
1817
1846
|
primaryActions: {
|
|
1818
|
-
text:
|
|
1847
|
+
text: r("common.confirm"),
|
|
1819
1848
|
close: !0
|
|
1820
1849
|
},
|
|
1821
1850
|
secondaryActions: {
|
|
1822
|
-
text:
|
|
1851
|
+
text: r("common.close"),
|
|
1823
1852
|
close: !0,
|
|
1824
1853
|
variant: "tertiary"
|
|
1825
1854
|
}
|
|
1826
1855
|
}).onPrimary((L) => {
|
|
1827
|
-
const V =
|
|
1856
|
+
const V = h.value, H = L.map((U) => {
|
|
1828
1857
|
const M = V.find((Q) => Q.sku._id === U._id);
|
|
1829
1858
|
return M || {
|
|
1830
1859
|
sku: U,
|
|
@@ -1836,21 +1865,21 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1836
1865
|
}
|
|
1837
1866
|
};
|
|
1838
1867
|
});
|
|
1839
|
-
H.sort((U, M) => U.sku.code.localeCompare(M.sku.code)),
|
|
1868
|
+
H.sort((U, M) => U.sku.code.localeCompare(M.sku.code)), h.value = H;
|
|
1840
1869
|
});
|
|
1841
1870
|
}
|
|
1842
|
-
return (y,
|
|
1871
|
+
return (y, f) => {
|
|
1843
1872
|
const e = E("FmButtonGroup"), o = E("FmLabel"), B = E("FmField"), L = E("FmSimpleDatePicker"), V = E("FmTimePicker"), H = E("FmSelect"), U = E("FmIcon"), M = E("FmButton");
|
|
1844
|
-
return
|
|
1873
|
+
return w(), R("div", vn, [
|
|
1845
1874
|
I(e, {
|
|
1846
1875
|
modelValue: A.value,
|
|
1847
|
-
"onUpdate:modelValue":
|
|
1848
|
-
items:
|
|
1876
|
+
"onUpdate:modelValue": f[0] || (f[0] = (O) => A.value = O),
|
|
1877
|
+
items: k
|
|
1849
1878
|
}, null, 8, ["modelValue"]),
|
|
1850
|
-
A.value.label === "Transfer Out" ? (
|
|
1851
|
-
x(s).inventoryTransferOutEnabled ? (
|
|
1879
|
+
A.value.label === "Transfer Out" ? (w(), R(J, { key: 0 }, [
|
|
1880
|
+
x(s).inventoryTransferOutEnabled ? (w(), R("div", gn, [
|
|
1852
1881
|
I(o, { class: "fm-typo-en-body-md-600" }, {
|
|
1853
|
-
default: D(() =>
|
|
1882
|
+
default: D(() => f[6] || (f[6] = [
|
|
1854
1883
|
Z("Type")
|
|
1855
1884
|
])),
|
|
1856
1885
|
_: 1
|
|
@@ -1860,13 +1889,13 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1860
1889
|
disabled: "",
|
|
1861
1890
|
"prepend-icon": "lock"
|
|
1862
1891
|
}, {
|
|
1863
|
-
default: D(() =>
|
|
1892
|
+
default: D(() => f[7] || (f[7] = [
|
|
1864
1893
|
Z("Transfer out")
|
|
1865
1894
|
])),
|
|
1866
1895
|
_: 1
|
|
1867
1896
|
}),
|
|
1868
1897
|
I(o, { class: "fm-typo-en-body-md-600" }, {
|
|
1869
|
-
default: D(() =>
|
|
1898
|
+
default: D(() => f[8] || (f[8] = [
|
|
1870
1899
|
Z("Subsidiary")
|
|
1871
1900
|
])),
|
|
1872
1901
|
_: 1
|
|
@@ -1882,42 +1911,42 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1882
1911
|
_: 1
|
|
1883
1912
|
}),
|
|
1884
1913
|
I(o, { class: "fm-typo-en-body-md-600" }, {
|
|
1885
|
-
default: D(() =>
|
|
1914
|
+
default: D(() => f[9] || (f[9] = [
|
|
1886
1915
|
Z("Transaction date")
|
|
1887
1916
|
])),
|
|
1888
1917
|
_: 1
|
|
1889
1918
|
}),
|
|
1890
1919
|
I(L, {
|
|
1891
|
-
modelValue:
|
|
1892
|
-
"onUpdate:modelValue":
|
|
1920
|
+
modelValue: S.value,
|
|
1921
|
+
"onUpdate:modelValue": f[1] || (f[1] = (O) => S.value = O)
|
|
1893
1922
|
}, null, 8, ["modelValue"]),
|
|
1894
1923
|
I(o, { class: "fm-typo-en-body-md-600" }, {
|
|
1895
|
-
default: D(() =>
|
|
1924
|
+
default: D(() => f[10] || (f[10] = [
|
|
1896
1925
|
Z("Transaction time")
|
|
1897
1926
|
])),
|
|
1898
1927
|
_: 1
|
|
1899
1928
|
}),
|
|
1900
1929
|
I(V, {
|
|
1901
|
-
modelValue:
|
|
1902
|
-
"onUpdate:modelValue":
|
|
1930
|
+
modelValue: p.value,
|
|
1931
|
+
"onUpdate:modelValue": f[2] || (f[2] = (O) => p.value = O)
|
|
1903
1932
|
}, null, 8, ["modelValue"]),
|
|
1904
1933
|
I(o, { class: "fm-typo-en-body-md-600" }, {
|
|
1905
|
-
default: D(() =>
|
|
1934
|
+
default: D(() => f[11] || (f[11] = [
|
|
1906
1935
|
Z("NetSuite Location")
|
|
1907
1936
|
])),
|
|
1908
1937
|
_: 1
|
|
1909
1938
|
}),
|
|
1910
|
-
|
|
1911
|
-
|
|
1939
|
+
a("div", yn, [
|
|
1940
|
+
i.value ? _("", !0) : (w(), X(H, {
|
|
1912
1941
|
key: 0,
|
|
1913
1942
|
class: "my-4 w-full",
|
|
1914
|
-
modelValue:
|
|
1915
|
-
"onUpdate:modelValue":
|
|
1943
|
+
modelValue: i.value,
|
|
1944
|
+
"onUpdate:modelValue": f[3] || (f[3] = (O) => i.value = O),
|
|
1916
1945
|
searchable: "",
|
|
1917
1946
|
searchTarget: "label",
|
|
1918
1947
|
items: C.value
|
|
1919
1948
|
}, null, 8, ["modelValue", "items"])),
|
|
1920
|
-
|
|
1949
|
+
i.value ? (w(), R("div", An, [
|
|
1921
1950
|
I(U, {
|
|
1922
1951
|
name: "cloud",
|
|
1923
1952
|
color: "neutral-gray-400",
|
|
@@ -1925,59 +1954,59 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1925
1954
|
class: "mr-2",
|
|
1926
1955
|
outline: ""
|
|
1927
1956
|
}),
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1957
|
+
a("div", bn, [
|
|
1958
|
+
a("span", hn, T(i.value.name), 1),
|
|
1959
|
+
a("span", In, "ID: " + T(i.value.netsuiteId), 1),
|
|
1960
|
+
a("span", xn, "Subsidiary: " + T(i.value.subsidiaryName), 1)
|
|
1932
1961
|
]),
|
|
1933
1962
|
I(M, {
|
|
1934
1963
|
class: "ml-2",
|
|
1935
1964
|
variant: "secondary",
|
|
1936
1965
|
label: "Clear",
|
|
1937
|
-
onClick:
|
|
1966
|
+
onClick: f[4] || (f[4] = (O) => i.value = null)
|
|
1938
1967
|
})
|
|
1939
|
-
])) :
|
|
1968
|
+
])) : _("", !0)
|
|
1940
1969
|
]),
|
|
1941
|
-
|
|
1970
|
+
a("div", Sn, [
|
|
1942
1971
|
I(M, {
|
|
1943
1972
|
class: "ml-auto",
|
|
1944
1973
|
variant: "secondary",
|
|
1945
1974
|
"prepend-icon": "add",
|
|
1946
1975
|
label: "Ingredients",
|
|
1947
|
-
onClick:
|
|
1976
|
+
onClick: u
|
|
1948
1977
|
})
|
|
1949
1978
|
]),
|
|
1950
1979
|
I(mn, {
|
|
1951
|
-
modelValue:
|
|
1952
|
-
"onUpdate:modelValue":
|
|
1980
|
+
modelValue: h.value,
|
|
1981
|
+
"onUpdate:modelValue": f[5] || (f[5] = (O) => h.value = O)
|
|
1953
1982
|
}, null, 8, ["modelValue"]),
|
|
1954
|
-
|
|
1983
|
+
a("div", wn, [
|
|
1955
1984
|
I(M, {
|
|
1956
1985
|
class: "ml-auto mt-4",
|
|
1957
1986
|
variant: "primary",
|
|
1958
1987
|
"prepend-icon": "add",
|
|
1959
1988
|
label: "Create",
|
|
1960
|
-
disabled: !
|
|
1961
|
-
loading:
|
|
1962
|
-
onClick:
|
|
1989
|
+
disabled: !m.value,
|
|
1990
|
+
loading: g.value,
|
|
1991
|
+
onClick: c
|
|
1963
1992
|
}, null, 8, ["disabled", "loading"])
|
|
1964
1993
|
])
|
|
1965
|
-
])) : (
|
|
1994
|
+
])) : (w(), R("div", kn, [
|
|
1966
1995
|
I(o, { class: "fm-typo-en-body-md-600" }, {
|
|
1967
|
-
default: D(() =>
|
|
1996
|
+
default: D(() => f[12] || (f[12] = [
|
|
1968
1997
|
Z(" Feature is not enabled. Please contact your administrator. ")
|
|
1969
1998
|
])),
|
|
1970
1999
|
_: 1
|
|
1971
2000
|
})
|
|
1972
2001
|
]))
|
|
1973
|
-
], 64)) :
|
|
1974
|
-
A.value.label === "History" ? (
|
|
1975
|
-
I(
|
|
1976
|
-
])) :
|
|
2002
|
+
], 64)) : _("", !0),
|
|
2003
|
+
A.value.label === "History" ? (w(), R("div", Bn, [
|
|
2004
|
+
I(pn)
|
|
2005
|
+
])) : _("", !0)
|
|
1977
2006
|
]);
|
|
1978
2007
|
};
|
|
1979
2008
|
}
|
|
1980
|
-
}),
|
|
2009
|
+
}), En = { class: "flex flex-col gap-8 w-full" }, Fn = { class: "flex gap-4 justify-between" }, Ln = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400" }, Vn = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, Nn = { key: 0 }, Rn = { class: "flex gap-8 items-center justify-start" }, Dn = /* @__PURE__ */ Y({
|
|
1981
2010
|
__name: "NetSuiteSideSheet",
|
|
1982
2011
|
props: {
|
|
1983
2012
|
nsLocations: {},
|
|
@@ -1985,44 +2014,44 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1985
2014
|
loading: { type: Boolean }
|
|
1986
2015
|
},
|
|
1987
2016
|
emits: ["update:show"],
|
|
1988
|
-
setup(F, { emit:
|
|
1989
|
-
var
|
|
1990
|
-
const s = ie(),
|
|
2017
|
+
setup(F, { emit: v }) {
|
|
2018
|
+
var S;
|
|
2019
|
+
const s = ie(), d = le(), n = F, t = ae(n, "show"), { t: r } = G(), h = v, k = W(), A = ((S = k._currentLocation) == null ? void 0 : S.type) || "", g = [
|
|
1991
2020
|
{
|
|
1992
2021
|
label: "Inventory Transfer (Out)",
|
|
1993
2022
|
value: "inventoryTransfer"
|
|
1994
2023
|
/* INVENTORY_TRANSFER */
|
|
1995
2024
|
}
|
|
1996
|
-
],
|
|
1997
|
-
(
|
|
2025
|
+
], l = j(g[0].value), i = z(() => d.currentLocationSubsidiary()), b = z(() => d.currentLocationSetting), C = z(() => n.nsLocations.filter(
|
|
2026
|
+
(p) => p.subsidiaryId === i.value.id || p.netsuiteId === i.value.id
|
|
1998
2027
|
));
|
|
1999
|
-
return (
|
|
2028
|
+
return (p, m) => {
|
|
2000
2029
|
var e;
|
|
2001
|
-
const
|
|
2002
|
-
return
|
|
2030
|
+
const c = E("FmIcon"), u = E("FmTabs"), y = E("FmButton"), f = E("FmSideSheet");
|
|
2031
|
+
return w(), X(f, {
|
|
2003
2032
|
modelValue: x(t),
|
|
2004
|
-
"onUpdate:modelValue":
|
|
2033
|
+
"onUpdate:modelValue": m[2] || (m[2] = (o) => se(t) ? t.value = o : null),
|
|
2005
2034
|
header: "Data migration (Xilnex)",
|
|
2006
2035
|
"dismiss-away": "",
|
|
2007
2036
|
"close-button": "",
|
|
2008
2037
|
"max-width": 800
|
|
2009
|
-
},
|
|
2038
|
+
}, oe({
|
|
2010
2039
|
default: D(() => [
|
|
2011
|
-
x(
|
|
2012
|
-
|
|
2040
|
+
x(d).isCurrentLocationBindedToNetSuite ? (w(), R(J, { key: 1 }, [
|
|
2041
|
+
l.value === "inventoryTransfer" ? (w(), X(Cn, {
|
|
2013
2042
|
key: 0,
|
|
2014
|
-
currentLocationSetting:
|
|
2043
|
+
currentLocationSetting: b.value,
|
|
2015
2044
|
nsLocations: C.value,
|
|
2016
|
-
currentLocationSubsidiary:
|
|
2017
|
-
}, null, 8, ["currentLocationSetting", "nsLocations", "currentLocationSubsidiary"])) :
|
|
2018
|
-
], 64)) : (
|
|
2045
|
+
currentLocationSubsidiary: i.value
|
|
2046
|
+
}, null, 8, ["currentLocationSetting", "nsLocations", "currentLocationSubsidiary"])) : _("", !0)
|
|
2047
|
+
], 64)) : (w(), R("div", Nn, " Netsuite is not configured for this location. Please contact your administrator. "))
|
|
2019
2048
|
]),
|
|
2020
2049
|
"side-sheet-footer": D(() => [
|
|
2021
|
-
|
|
2050
|
+
a("div", Rn, [
|
|
2022
2051
|
I(y, {
|
|
2023
2052
|
variant: "tertiary",
|
|
2024
|
-
label: x(
|
|
2025
|
-
onClick:
|
|
2053
|
+
label: x(r)("common.close"),
|
|
2054
|
+
onClick: m[1] || (m[1] = (o) => h("update:show", !1))
|
|
2026
2055
|
}, null, 8, ["label"])
|
|
2027
2056
|
])
|
|
2028
2057
|
]),
|
|
@@ -2033,21 +2062,21 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2033
2062
|
fn: D(() => {
|
|
2034
2063
|
var o;
|
|
2035
2064
|
return [
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
I(
|
|
2065
|
+
a("div", En, [
|
|
2066
|
+
a("div", Fn, [
|
|
2067
|
+
m[3] || (m[3] = a("div", { class: "fm-typo-en-title-md-600" }, "NetSuite Integration", -1)),
|
|
2068
|
+
a("div", Ln, [
|
|
2069
|
+
I(c, {
|
|
2041
2070
|
name: x(A),
|
|
2042
2071
|
size: "sm"
|
|
2043
2072
|
}, null, 8, ["name"]),
|
|
2044
|
-
|
|
2073
|
+
a("div", Vn, T((o = x(k)._currentLocation) == null ? void 0 : o.name), 1)
|
|
2045
2074
|
])
|
|
2046
2075
|
]),
|
|
2047
|
-
I(
|
|
2048
|
-
"model-value":
|
|
2049
|
-
"onUpdate:modelValue":
|
|
2050
|
-
items:
|
|
2076
|
+
I(u, {
|
|
2077
|
+
"model-value": l.value,
|
|
2078
|
+
"onUpdate:modelValue": m[0] || (m[0] = (B) => l.value = B),
|
|
2079
|
+
items: g
|
|
2051
2080
|
}, null, 8, ["model-value"])
|
|
2052
2081
|
])
|
|
2053
2082
|
];
|
|
@@ -2057,35 +2086,35 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2057
2086
|
]), 1032, ["modelValue"]);
|
|
2058
2087
|
};
|
|
2059
2088
|
}
|
|
2060
|
-
}),
|
|
2089
|
+
}), Mn = { class: "flex justify-center" }, jn = ["src"], On = { class: "flex flex-col items-center gap-2" }, Tn = { class: "text-lg font-bold" }, zn = { class: "text-fm-color-neutral-gray-300" }, Hn = /* @__PURE__ */ Y({
|
|
2061
2090
|
__name: "NetSuite",
|
|
2062
2091
|
setup(F) {
|
|
2063
|
-
const
|
|
2092
|
+
const v = le(), s = ne(), d = j(!1), n = j(!1);
|
|
2064
2093
|
async function t() {
|
|
2065
2094
|
n.value = !0;
|
|
2066
2095
|
}
|
|
2067
|
-
const
|
|
2096
|
+
const r = j([]);
|
|
2068
2097
|
ze(async () => {
|
|
2069
|
-
if (
|
|
2070
|
-
|
|
2098
|
+
if (v.isReady && v.isEnabled) {
|
|
2099
|
+
d.value = !0;
|
|
2071
2100
|
try {
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2101
|
+
const k = await v.getNetSuiteLocationOptions();
|
|
2102
|
+
r.value = k;
|
|
2074
2103
|
} catch {
|
|
2075
2104
|
s.open({
|
|
2076
2105
|
message: "Failed to fetch NetSuite locations",
|
|
2077
2106
|
type: "error"
|
|
2078
2107
|
});
|
|
2079
2108
|
} finally {
|
|
2080
|
-
|
|
2109
|
+
d.value = !1;
|
|
2081
2110
|
}
|
|
2082
2111
|
}
|
|
2083
2112
|
});
|
|
2084
|
-
const { t:
|
|
2085
|
-
return (
|
|
2086
|
-
const
|
|
2087
|
-
return x(
|
|
2088
|
-
I(
|
|
2113
|
+
const { t: h } = G();
|
|
2114
|
+
return (k, A) => {
|
|
2115
|
+
const g = E("FmCardSection"), l = E("FmCard");
|
|
2116
|
+
return x(v).isEnabled ? (w(), R(J, { key: 0 }, [
|
|
2117
|
+
I(l, {
|
|
2089
2118
|
class: q({
|
|
2090
2119
|
"w-full": !0,
|
|
2091
2120
|
border: !0,
|
|
@@ -2093,20 +2122,20 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2093
2122
|
"cursor-pointer": !0,
|
|
2094
2123
|
"hover:border-fm-color-primary": !0
|
|
2095
2124
|
}),
|
|
2096
|
-
onClick: A[0] || (A[0] = (
|
|
2125
|
+
onClick: A[0] || (A[0] = (i) => t())
|
|
2097
2126
|
}, {
|
|
2098
2127
|
default: D(() => [
|
|
2099
|
-
I(
|
|
2128
|
+
I(g, null, {
|
|
2100
2129
|
default: D(() => [
|
|
2101
|
-
|
|
2102
|
-
|
|
2130
|
+
a("div", Mn, [
|
|
2131
|
+
a("img", {
|
|
2103
2132
|
src: x(Zt),
|
|
2104
2133
|
alt: "NetSuite"
|
|
2105
|
-
}, null, 8,
|
|
2134
|
+
}, null, 8, jn)
|
|
2106
2135
|
]),
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2136
|
+
a("div", On, [
|
|
2137
|
+
a("div", Tn, T(x(h)("inventory.integration.netsuite.title")), 1),
|
|
2138
|
+
a("div", zn, T(x(h)("inventory.integration.netsuite.description")), 1)
|
|
2110
2139
|
])
|
|
2111
2140
|
]),
|
|
2112
2141
|
_: 1
|
|
@@ -2114,39 +2143,39 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2114
2143
|
]),
|
|
2115
2144
|
_: 1
|
|
2116
2145
|
}),
|
|
2117
|
-
x(
|
|
2146
|
+
x(v).state.setting ? (w(), X(ue, {
|
|
2118
2147
|
key: 0,
|
|
2119
2148
|
to: "body"
|
|
2120
2149
|
}, [
|
|
2121
|
-
x(
|
|
2150
|
+
x(v).isBusinessLocation ? (w(), X(cn, {
|
|
2122
2151
|
key: 0,
|
|
2123
|
-
setting: x(
|
|
2124
|
-
"onUpdate:setting": A[1] || (A[1] = (
|
|
2125
|
-
nsLocations:
|
|
2126
|
-
"onUpdate:nsLocations": A[2] || (A[2] = (
|
|
2152
|
+
setting: x(v).state.setting,
|
|
2153
|
+
"onUpdate:setting": A[1] || (A[1] = (i) => x(v).state.setting = i),
|
|
2154
|
+
nsLocations: r.value,
|
|
2155
|
+
"onUpdate:nsLocations": A[2] || (A[2] = (i) => r.value = i),
|
|
2127
2156
|
show: n.value,
|
|
2128
2157
|
"onUpdate:show": [
|
|
2129
|
-
A[3] || (A[3] = (
|
|
2130
|
-
A[4] || (A[4] = (
|
|
2158
|
+
A[3] || (A[3] = (i) => n.value = i),
|
|
2159
|
+
A[4] || (A[4] = (i) => n.value = i)
|
|
2131
2160
|
],
|
|
2132
|
-
loading:
|
|
2133
|
-
"onUpdate:loading": A[5] || (A[5] = (
|
|
2134
|
-
}, null, 8, ["setting", "nsLocations", "show", "loading"])) : (
|
|
2161
|
+
loading: d.value,
|
|
2162
|
+
"onUpdate:loading": A[5] || (A[5] = (i) => d.value = i)
|
|
2163
|
+
}, null, 8, ["setting", "nsLocations", "show", "loading"])) : (w(), X(Dn, {
|
|
2135
2164
|
key: 1,
|
|
2136
|
-
setting: x(
|
|
2137
|
-
"onUpdate:setting": A[6] || (A[6] = (
|
|
2138
|
-
nsLocations:
|
|
2139
|
-
"onUpdate:nsLocations": A[7] || (A[7] = (
|
|
2165
|
+
setting: x(v).state.setting,
|
|
2166
|
+
"onUpdate:setting": A[6] || (A[6] = (i) => x(v).state.setting = i),
|
|
2167
|
+
nsLocations: r.value,
|
|
2168
|
+
"onUpdate:nsLocations": A[7] || (A[7] = (i) => r.value = i),
|
|
2140
2169
|
show: n.value,
|
|
2141
2170
|
"onUpdate:show": [
|
|
2142
|
-
A[8] || (A[8] = (
|
|
2143
|
-
A[9] || (A[9] = (
|
|
2171
|
+
A[8] || (A[8] = (i) => n.value = i),
|
|
2172
|
+
A[9] || (A[9] = (i) => n.value = i)
|
|
2144
2173
|
],
|
|
2145
|
-
loading:
|
|
2146
|
-
"onUpdate:loading": A[10] || (A[10] = (
|
|
2174
|
+
loading: d.value,
|
|
2175
|
+
"onUpdate:loading": A[10] || (A[10] = (i) => d.value = i)
|
|
2147
2176
|
}, null, 8, ["setting", "nsLocations", "show", "loading"]))
|
|
2148
|
-
])) :
|
|
2149
|
-
], 64)) :
|
|
2177
|
+
])) : _("", !0)
|
|
2178
|
+
], 64)) : _("", !0);
|
|
2150
2179
|
};
|
|
2151
2180
|
}
|
|
2152
2181
|
}), he = [
|
|
@@ -2166,65 +2195,65 @@ const Bt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2166
2195
|
"schemeFranchiseePrice",
|
|
2167
2196
|
"physicalSchemeTotalFranchiseePrice"
|
|
2168
2197
|
];
|
|
2169
|
-
async function
|
|
2170
|
-
var
|
|
2171
|
-
const
|
|
2172
|
-
for (const
|
|
2173
|
-
const
|
|
2174
|
-
for (let A = 0; A <
|
|
2175
|
-
const
|
|
2176
|
-
if (
|
|
2198
|
+
async function _n(F, v, s) {
|
|
2199
|
+
var r;
|
|
2200
|
+
const d = await Xn(s), n = [], t = {};
|
|
2201
|
+
for (const h in d) {
|
|
2202
|
+
const k = d[h];
|
|
2203
|
+
for (let A = 0; A < k.length; A++) {
|
|
2204
|
+
const g = k[A], l = g.itemCode, i = g.itemName, b = g.physicalQty, C = g.customCost;
|
|
2205
|
+
if (l === "" || l === "undefined") {
|
|
2177
2206
|
n.push({
|
|
2178
|
-
row:
|
|
2179
|
-
itemCode:
|
|
2180
|
-
itemName:
|
|
2207
|
+
row: g.excelRow,
|
|
2208
|
+
itemCode: l,
|
|
2209
|
+
itemName: i,
|
|
2181
2210
|
message: "Item code is empty or undefined"
|
|
2182
2211
|
});
|
|
2183
2212
|
continue;
|
|
2184
2213
|
}
|
|
2185
|
-
const
|
|
2186
|
-
if (!
|
|
2214
|
+
const S = v.find((y) => y.code === l);
|
|
2215
|
+
if (!S) {
|
|
2187
2216
|
n.push({
|
|
2188
|
-
row:
|
|
2189
|
-
itemCode:
|
|
2190
|
-
itemName:
|
|
2191
|
-
qty:
|
|
2217
|
+
row: g.excelRow,
|
|
2218
|
+
itemCode: l,
|
|
2219
|
+
itemName: i,
|
|
2220
|
+
qty: b,
|
|
2192
2221
|
message: "Item not found in inventory"
|
|
2193
|
-
}), console.error(`${
|
|
2222
|
+
}), console.error(`${g.excelRow} Item not found: ${l} ${i} ${b}`);
|
|
2194
2223
|
continue;
|
|
2195
2224
|
}
|
|
2196
|
-
let
|
|
2197
|
-
const
|
|
2198
|
-
|
|
2199
|
-
const
|
|
2200
|
-
amount:
|
|
2225
|
+
let p = Number(g.totalPhysicalCustomCost);
|
|
2226
|
+
const m = F[S._id];
|
|
2227
|
+
m && (p = m * Number(b));
|
|
2228
|
+
const c = P.fromNumber(Number(b)), u = {
|
|
2229
|
+
amount: c,
|
|
2201
2230
|
cost: {
|
|
2202
|
-
...P.fromNumber(Number(
|
|
2231
|
+
...P.fromNumber(Number(p)),
|
|
2203
2232
|
currency: "MYR"
|
|
2204
2233
|
}
|
|
2205
2234
|
};
|
|
2206
|
-
|
|
2235
|
+
b != "0" && C == "0" && console.warn(`Item ${l} ${i} has 0 cost.`), t[r = S._id] ?? (t[r] = {
|
|
2207
2236
|
skuAdjustment: {
|
|
2208
|
-
sku:
|
|
2237
|
+
sku: S,
|
|
2209
2238
|
fromBalance: P.fromNumber(0),
|
|
2210
2239
|
amounts: [
|
|
2211
2240
|
{
|
|
2212
2241
|
_id: null,
|
|
2213
2242
|
type: we.Enum.CLOSING,
|
|
2214
2243
|
remark: "Opening Balance",
|
|
2215
|
-
amount:
|
|
2244
|
+
amount: c,
|
|
2216
2245
|
measurement: null,
|
|
2217
2246
|
// always the smallest unit
|
|
2218
|
-
cost:
|
|
2247
|
+
cost: u.cost
|
|
2219
2248
|
}
|
|
2220
2249
|
],
|
|
2221
|
-
toBalance:
|
|
2222
|
-
toCostBalances: [
|
|
2250
|
+
toBalance: c,
|
|
2251
|
+
toCostBalances: [u]
|
|
2223
2252
|
},
|
|
2224
2253
|
skuBalance: {
|
|
2225
|
-
id:
|
|
2226
|
-
balance:
|
|
2227
|
-
costs: [
|
|
2254
|
+
id: S._id,
|
|
2255
|
+
balance: c,
|
|
2256
|
+
costs: [u]
|
|
2228
2257
|
}
|
|
2229
2258
|
});
|
|
2230
2259
|
}
|
|
@@ -2235,44 +2264,44 @@ async function Hn(F, g, s) {
|
|
|
2235
2264
|
};
|
|
2236
2265
|
}
|
|
2237
2266
|
async function Xn(F) {
|
|
2238
|
-
const
|
|
2239
|
-
const
|
|
2240
|
-
|
|
2241
|
-
}), s = ke(
|
|
2242
|
-
for (const t of
|
|
2243
|
-
const
|
|
2244
|
-
n[t] =
|
|
2267
|
+
const v = await new Promise((t, r) => {
|
|
2268
|
+
const h = new FileReader();
|
|
2269
|
+
h.onload = (k) => t(k.target.result), h.onerror = r, h.readAsArrayBuffer(F);
|
|
2270
|
+
}), s = ke(v, { type: "array" }), d = s.SheetNames, n = {};
|
|
2271
|
+
for (const t of d) {
|
|
2272
|
+
const r = await Un(s.Sheets[t]);
|
|
2273
|
+
n[t] = r;
|
|
2245
2274
|
}
|
|
2246
2275
|
return n;
|
|
2247
2276
|
}
|
|
2248
|
-
async function
|
|
2249
|
-
const
|
|
2277
|
+
async function Un(F) {
|
|
2278
|
+
const v = Be.sheet_to_json(F, {
|
|
2250
2279
|
header: he,
|
|
2251
2280
|
range: 12
|
|
2252
2281
|
}), s = [];
|
|
2253
|
-
for (let
|
|
2254
|
-
const n =
|
|
2255
|
-
for (const
|
|
2256
|
-
t[
|
|
2282
|
+
for (let d = 0; d < v.length; d++) {
|
|
2283
|
+
const n = v[d], t = {};
|
|
2284
|
+
for (const r of he)
|
|
2285
|
+
t[r] = String(n[r]).trim();
|
|
2257
2286
|
s.push({
|
|
2258
2287
|
...t,
|
|
2259
|
-
excelRow:
|
|
2288
|
+
excelRow: d + 13
|
|
2260
2289
|
// Excel rows start from 1, and we skip the first 12 rows
|
|
2261
2290
|
});
|
|
2262
2291
|
}
|
|
2263
2292
|
return s;
|
|
2264
2293
|
}
|
|
2265
|
-
const
|
|
2294
|
+
const Qn = { class: "flex flex-col gap-4" }, Yn = { class: "flex flex-col" }, Jn = {
|
|
2266
2295
|
key: 0,
|
|
2267
2296
|
class: "flex flex-col gap-4 my-5"
|
|
2268
|
-
},
|
|
2297
|
+
}, Kn = { class: "flex flex-col gap-8" }, Zn = { class: "flex flex-col gap-8" }, qn = {
|
|
2269
2298
|
class: /* @__PURE__ */ q(["fm-corner-radius-md p-16 flex items-center gap-16"])
|
|
2270
|
-
},
|
|
2299
|
+
}, Gn = {
|
|
2271
2300
|
class: /* @__PURE__ */ q(["fm-typo-en-body-md-400 flex-1 h-[36px] flex items-center gap-3"])
|
|
2272
|
-
},
|
|
2301
|
+
}, Pn = { class: "line-clamp-2 text-ellipsis break-all" }, Wn = { class: "flex flex-col" }, $n = { class: "font-medium" }, eo = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, to = { class: "flex" }, no = { class: "flex" }, oo = { key: 1 }, so = /* @__PURE__ */ Y({
|
|
2273
2302
|
__name: "XilnexOpeningImport",
|
|
2274
2303
|
setup(F) {
|
|
2275
|
-
const
|
|
2304
|
+
const v = Ge(), s = le(), d = ye(), n = Ce(), t = ne(), r = z(() => [
|
|
2276
2305
|
{
|
|
2277
2306
|
value: "xilnex",
|
|
2278
2307
|
label: "Xilnex",
|
|
@@ -2287,7 +2316,7 @@ const Un = { class: "flex flex-col gap-4" }, Qn = { class: "flex flex-col" }, Yn
|
|
|
2287
2316
|
disabledReason: "Current location is not binded to NetSuite"
|
|
2288
2317
|
}
|
|
2289
2318
|
] : []
|
|
2290
|
-
]),
|
|
2319
|
+
]), h = j(r.value[0].value), { t: k } = de(), A = j(null), g = j(), l = j(""), i = j([]), b = j([]), C = [
|
|
2291
2320
|
{
|
|
2292
2321
|
id: "ingredient",
|
|
2293
2322
|
header: () => "Ingredient",
|
|
@@ -2357,7 +2386,7 @@ const Un = { class: "flex flex-col gap-4" }, Qn = { class: "flex flex-col" }, Yn
|
|
|
2357
2386
|
]);
|
|
2358
2387
|
}
|
|
2359
2388
|
}
|
|
2360
|
-
],
|
|
2389
|
+
], S = [
|
|
2361
2390
|
{
|
|
2362
2391
|
accessorKey: "row",
|
|
2363
2392
|
header: "Row"
|
|
@@ -2378,32 +2407,32 @@ const Un = { class: "flex flex-col gap-4" }, Qn = { class: "flex flex-col" }, Yn
|
|
|
2378
2407
|
accessorKey: "message",
|
|
2379
2408
|
header: "Error Message"
|
|
2380
2409
|
}
|
|
2381
|
-
],
|
|
2382
|
-
async function
|
|
2410
|
+
], p = j(!1);
|
|
2411
|
+
async function m() {
|
|
2383
2412
|
if (A.value) {
|
|
2384
|
-
|
|
2413
|
+
p.value = !0;
|
|
2385
2414
|
try {
|
|
2386
2415
|
let e = {};
|
|
2387
|
-
|
|
2388
|
-
const { errors: o, rows: B } = await
|
|
2416
|
+
h.value === "netsuite" && (e = await s.getItemAverageCosts());
|
|
2417
|
+
const { errors: o, rows: B } = await _n(
|
|
2389
2418
|
e,
|
|
2390
|
-
|
|
2419
|
+
d.skus,
|
|
2391
2420
|
A.value
|
|
2392
2421
|
);
|
|
2393
|
-
|
|
2422
|
+
i.value = o, b.value = Object.values(B);
|
|
2394
2423
|
} catch {
|
|
2395
2424
|
t.open({
|
|
2396
2425
|
message: "Error verifying file",
|
|
2397
2426
|
type: "error"
|
|
2398
2427
|
});
|
|
2399
2428
|
} finally {
|
|
2400
|
-
|
|
2429
|
+
p.value = !1;
|
|
2401
2430
|
}
|
|
2402
2431
|
}
|
|
2403
2432
|
}
|
|
2404
|
-
async function
|
|
2433
|
+
async function c() {
|
|
2405
2434
|
if (A.value) {
|
|
2406
|
-
|
|
2435
|
+
p.value = !0;
|
|
2407
2436
|
try {
|
|
2408
2437
|
if (!y.value) {
|
|
2409
2438
|
t.open({
|
|
@@ -2414,38 +2443,38 @@ const Un = { class: "flex flex-col gap-4" }, Qn = { class: "flex flex-col" }, Yn
|
|
|
2414
2443
|
}
|
|
2415
2444
|
await n.setOpeningBalance({
|
|
2416
2445
|
effectiveAt: y.value,
|
|
2417
|
-
skuAdjustments:
|
|
2418
|
-
skuBalances:
|
|
2446
|
+
skuAdjustments: b.value.map((e) => e.skuAdjustment),
|
|
2447
|
+
skuBalances: b.value.map((e) => e.skuBalance)
|
|
2419
2448
|
}), t.open({
|
|
2420
2449
|
message: "Opening balance imported successfully",
|
|
2421
2450
|
type: "success"
|
|
2422
|
-
}), await
|
|
2451
|
+
}), await v.fetchClosingDocumentId();
|
|
2423
2452
|
} catch {
|
|
2424
2453
|
t.open({
|
|
2425
2454
|
message: "Error importing opening balance",
|
|
2426
2455
|
type: "error"
|
|
2427
2456
|
});
|
|
2428
2457
|
} finally {
|
|
2429
|
-
|
|
2458
|
+
p.value = !1;
|
|
2430
2459
|
}
|
|
2431
2460
|
}
|
|
2432
2461
|
}
|
|
2433
|
-
const
|
|
2462
|
+
const u = j(""), y = z({
|
|
2434
2463
|
get() {
|
|
2435
|
-
return
|
|
2464
|
+
return u.value;
|
|
2436
2465
|
},
|
|
2437
2466
|
set(e) {
|
|
2438
|
-
|
|
2467
|
+
u.value = `${e}T15:59:59.999Z`;
|
|
2439
2468
|
}
|
|
2440
|
-
}),
|
|
2441
|
-
if (!
|
|
2442
|
-
const e = new Date(
|
|
2469
|
+
}), f = z(() => {
|
|
2470
|
+
if (!u.value) return null;
|
|
2471
|
+
const e = new Date(u.value);
|
|
2443
2472
|
return isNaN(e.getTime()) ? null : ve(e);
|
|
2444
2473
|
});
|
|
2445
2474
|
return (e, o) => {
|
|
2446
2475
|
const B = E("FmLabel"), L = E("FmField"), V = E("FmSimpleDatePicker"), H = E("FmButton"), U = E("FmRadio"), M = E("FmRadioGroup"), O = E("FmTable");
|
|
2447
|
-
return
|
|
2448
|
-
|
|
2476
|
+
return w(), R("div", Qn, [
|
|
2477
|
+
a("div", Yn, [
|
|
2449
2478
|
I(B, { label: "Latest closing" })
|
|
2450
2479
|
]),
|
|
2451
2480
|
I(L, {
|
|
@@ -2453,13 +2482,13 @@ const Un = { class: "flex flex-col gap-4" }, Qn = { class: "flex flex-col" }, Yn
|
|
|
2453
2482
|
disabled: ""
|
|
2454
2483
|
}, {
|
|
2455
2484
|
default: D(() => [
|
|
2456
|
-
Z(T(x(
|
|
2485
|
+
Z(T(x(v).state.closingDocumentId ? `${x(Ee)(new Date(x(ge)(x(v).state.closingDocumentId)))}` : "No closing found"), 1)
|
|
2457
2486
|
]),
|
|
2458
2487
|
_: 1
|
|
2459
2488
|
}),
|
|
2460
|
-
x(
|
|
2461
|
-
|
|
2462
|
-
]))) : (
|
|
2489
|
+
x(v).state.closingDocumentId ? (w(), R("div", oo, o[6] || (o[6] = [
|
|
2490
|
+
a("span", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, " Not able to import opening balance as closing document already exists. ", -1)
|
|
2491
|
+
]))) : (w(), R("div", Jn, [
|
|
2463
2492
|
I(V, {
|
|
2464
2493
|
modelValue: y.value,
|
|
2465
2494
|
"onUpdate:modelValue": o[0] || (o[0] = (Q) => y.value = Q),
|
|
@@ -2472,14 +2501,14 @@ const Un = { class: "flex flex-col gap-4" }, Qn = { class: "flex flex-col" }, Yn
|
|
|
2472
2501
|
label: "Last closing time"
|
|
2473
2502
|
}, {
|
|
2474
2503
|
default: D(() => [
|
|
2475
|
-
Z(T(
|
|
2504
|
+
Z(T(f.value), 1)
|
|
2476
2505
|
]),
|
|
2477
2506
|
_: 1
|
|
2478
2507
|
})
|
|
2479
2508
|
]),
|
|
2480
2509
|
_: 1
|
|
2481
2510
|
}, 8, ["modelValue"]),
|
|
2482
|
-
|
|
2511
|
+
a("div", Kn, [
|
|
2483
2512
|
I(B, { label: "Stock take file" })
|
|
2484
2513
|
]),
|
|
2485
2514
|
I(Fe, {
|
|
@@ -2487,16 +2516,16 @@ const Un = { class: "flex flex-col gap-4" }, Qn = { class: "flex flex-col" }, Yn
|
|
|
2487
2516
|
Q && (A.value = Q);
|
|
2488
2517
|
}),
|
|
2489
2518
|
accept: ".xlsx, .xls, .csv"
|
|
2490
|
-
},
|
|
2519
|
+
}, oe({ _: 2 }, [
|
|
2491
2520
|
A.value ? {
|
|
2492
2521
|
name: "default",
|
|
2493
2522
|
fn: D(({ openFileDialog: Q }) => [
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2523
|
+
a("div", Zn, [
|
|
2524
|
+
a("div", qn, [
|
|
2525
|
+
a("div", Gn, [
|
|
2526
|
+
a("div", Pn, T(A.value.name), 1),
|
|
2498
2527
|
I(H, {
|
|
2499
|
-
label: x(
|
|
2528
|
+
label: x(k)("inventory.ingredient.import.replaceFile"),
|
|
2500
2529
|
variant: "secondary",
|
|
2501
2530
|
"prepend-icon": "autorenew",
|
|
2502
2531
|
onClick: Q
|
|
@@ -2509,13 +2538,13 @@ const Un = { class: "flex flex-col gap-4" }, Qn = { class: "flex flex-col" }, Yn
|
|
|
2509
2538
|
} : void 0
|
|
2510
2539
|
]), 1024),
|
|
2511
2540
|
I(M, {
|
|
2512
|
-
modelValue:
|
|
2513
|
-
"onUpdate:modelValue": o[2] || (o[2] = (Q) =>
|
|
2541
|
+
modelValue: h.value,
|
|
2542
|
+
"onUpdate:modelValue": o[2] || (o[2] = (Q) => h.value = Q),
|
|
2514
2543
|
label: "Retrieve cost from",
|
|
2515
2544
|
class: "my-5"
|
|
2516
2545
|
}, {
|
|
2517
2546
|
default: D(() => [
|
|
2518
|
-
(
|
|
2547
|
+
(w(!0), R(J, null, te(r.value, (Q) => (w(), X(U, {
|
|
2519
2548
|
key: Q.value,
|
|
2520
2549
|
value: Q.value,
|
|
2521
2550
|
label: Q.label,
|
|
@@ -2523,9 +2552,9 @@ const Un = { class: "flex flex-col gap-4" }, Qn = { class: "flex flex-col" }, Yn
|
|
|
2523
2552
|
disabled: Q.disabled
|
|
2524
2553
|
}, {
|
|
2525
2554
|
label: D(() => [
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2555
|
+
a("div", Wn, [
|
|
2556
|
+
a("span", $n, T(Q.label), 1),
|
|
2557
|
+
a("span", eo, T(Q.disabled ? Q.disabledReason : Q.subLabel), 1)
|
|
2529
2558
|
])
|
|
2530
2559
|
]),
|
|
2531
2560
|
_: 2
|
|
@@ -2533,63 +2562,63 @@ const Un = { class: "flex flex-col gap-4" }, Qn = { class: "flex flex-col" }, Yn
|
|
|
2533
2562
|
]),
|
|
2534
2563
|
_: 1
|
|
2535
2564
|
}, 8, ["modelValue"]),
|
|
2536
|
-
|
|
2565
|
+
a("div", to, [
|
|
2537
2566
|
I(H, {
|
|
2538
2567
|
class: "ml-auto mt-4",
|
|
2539
2568
|
variant: "secondary",
|
|
2540
2569
|
"prepend-icon": "troubleshoot",
|
|
2541
2570
|
label: "Verify",
|
|
2542
|
-
disabled: !A.value && !
|
|
2543
|
-
loading:
|
|
2544
|
-
onClick:
|
|
2571
|
+
disabled: !A.value && !p.value,
|
|
2572
|
+
loading: p.value,
|
|
2573
|
+
onClick: m
|
|
2545
2574
|
}, null, 8, ["disabled", "loading"])
|
|
2546
2575
|
]),
|
|
2547
|
-
A.value &&
|
|
2548
|
-
o[4] || (o[4] =
|
|
2576
|
+
A.value && b.value.length > 0 ? (w(), R(J, { key: 0 }, [
|
|
2577
|
+
o[4] || (o[4] = a("h2", { class: "fm-typo-en-title-md-800 mt-8 mb-4" }, "Results", -1)),
|
|
2549
2578
|
I(O, {
|
|
2550
|
-
modelValue:
|
|
2551
|
-
"onUpdate:modelValue": o[3] || (o[3] = (Q) =>
|
|
2552
|
-
"row-data":
|
|
2579
|
+
modelValue: g.value,
|
|
2580
|
+
"onUpdate:modelValue": o[3] || (o[3] = (Q) => g.value = Q),
|
|
2581
|
+
"row-data": b.value,
|
|
2553
2582
|
"column-defs": C,
|
|
2554
2583
|
"shrink-at": !1,
|
|
2555
|
-
"search-value":
|
|
2584
|
+
"search-value": l.value
|
|
2556
2585
|
}, null, 8, ["modelValue", "row-data", "search-value"])
|
|
2557
|
-
], 64)) :
|
|
2558
|
-
|
|
2559
|
-
o[5] || (o[5] =
|
|
2586
|
+
], 64)) : _("", !0),
|
|
2587
|
+
i.value.length > 0 ? (w(), R(J, { key: 1 }, [
|
|
2588
|
+
o[5] || (o[5] = a("h2", { class: "fm-typo-en-title-md-800 mt-8 mb-4 text-red-600" }, "Errors", -1)),
|
|
2560
2589
|
I(O, {
|
|
2561
|
-
"row-data":
|
|
2562
|
-
"column-defs":
|
|
2590
|
+
"row-data": i.value,
|
|
2591
|
+
"column-defs": S
|
|
2563
2592
|
}, null, 8, ["row-data"])
|
|
2564
|
-
], 64)) :
|
|
2565
|
-
|
|
2566
|
-
|
|
2593
|
+
], 64)) : _("", !0),
|
|
2594
|
+
a("div", no, [
|
|
2595
|
+
b.value.length > 0 && !x(v).state.closingDocumentId ? (w(), X(H, {
|
|
2567
2596
|
key: 0,
|
|
2568
2597
|
class: "ml-auto mt-4",
|
|
2569
2598
|
"prepend-icon": "file_upload",
|
|
2570
2599
|
variant: "primary",
|
|
2571
2600
|
label: "Import Opening Balance",
|
|
2572
|
-
disabled: !A.value ||
|
|
2573
|
-
onClick:
|
|
2574
|
-
}, null, 8, ["disabled"])) :
|
|
2601
|
+
disabled: !A.value || p.value,
|
|
2602
|
+
onClick: c
|
|
2603
|
+
}, null, 8, ["disabled"])) : _("", !0)
|
|
2575
2604
|
])
|
|
2576
2605
|
]))
|
|
2577
2606
|
]);
|
|
2578
2607
|
};
|
|
2579
2608
|
}
|
|
2580
|
-
}),
|
|
2609
|
+
}), ao = { class: "flex flex-col gap-8 w-full" }, lo = { class: "flex gap-4 justify-between" }, io = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400" }, ro = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, uo = { key: 0 }, co = {
|
|
2581
2610
|
key: 1,
|
|
2582
2611
|
class: "flex flex-col gap-8 w-full"
|
|
2583
|
-
},
|
|
2612
|
+
}, mo = { key: 1 }, fo = { class: "flex gap-8 items-center justify-start" }, po = /* @__PURE__ */ Y({
|
|
2584
2613
|
__name: "XilnexSideSheet",
|
|
2585
2614
|
props: {
|
|
2586
2615
|
show: { type: Boolean },
|
|
2587
2616
|
loading: { type: Boolean }
|
|
2588
2617
|
},
|
|
2589
2618
|
emits: ["update:show"],
|
|
2590
|
-
setup(F, { emit:
|
|
2591
|
-
var
|
|
2592
|
-
const s = ie(), n =
|
|
2619
|
+
setup(F, { emit: v }) {
|
|
2620
|
+
var l;
|
|
2621
|
+
const s = ie(), n = ae(F, "show"), { t } = G(), r = v, h = W(), k = ((l = h._currentLocation) == null ? void 0 : l.type) || "", A = [
|
|
2593
2622
|
{ label: re(
|
|
2594
2623
|
"openingBalance"
|
|
2595
2624
|
/* OPENING_BALANCE */
|
|
@@ -2598,63 +2627,63 @@ const Un = { class: "flex flex-col gap-4" }, Qn = { class: "flex flex-col" }, Yn
|
|
|
2598
2627
|
"transferNote"
|
|
2599
2628
|
/* TRANSFER_NOTE */
|
|
2600
2629
|
) }
|
|
2601
|
-
],
|
|
2602
|
-
return (
|
|
2603
|
-
var
|
|
2604
|
-
const C = E("FmIcon"),
|
|
2605
|
-
return
|
|
2630
|
+
], g = j(A[0]);
|
|
2631
|
+
return (i, b) => {
|
|
2632
|
+
var c;
|
|
2633
|
+
const C = E("FmIcon"), S = E("FmButtonGroup"), p = E("FmButton"), m = E("FmSideSheet");
|
|
2634
|
+
return w(), X(m, {
|
|
2606
2635
|
modelValue: x(n),
|
|
2607
|
-
"onUpdate:modelValue":
|
|
2636
|
+
"onUpdate:modelValue": b[2] || (b[2] = (u) => se(n) ? n.value = u : null),
|
|
2608
2637
|
header: "Data migration (Xilnex)",
|
|
2609
2638
|
"dismiss-away": "",
|
|
2610
2639
|
"close-button": "",
|
|
2611
2640
|
"max-width": 800
|
|
2612
|
-
},
|
|
2641
|
+
}, oe({
|
|
2613
2642
|
default: D(() => {
|
|
2614
|
-
var
|
|
2643
|
+
var u;
|
|
2615
2644
|
return [
|
|
2616
|
-
(
|
|
2617
|
-
|
|
2645
|
+
(u = x(s).sessionUser.value) != null && u.role.isAdmin ? (w(), R("div", co, [
|
|
2646
|
+
g.value.label === x(re)(
|
|
2618
2647
|
"openingBalance"
|
|
2619
2648
|
/* OPENING_BALANCE */
|
|
2620
|
-
) ? (
|
|
2621
|
-
|
|
2649
|
+
) ? (w(), X(so, { key: 0 })) : _("", !0),
|
|
2650
|
+
g.value.label === x(re)(
|
|
2622
2651
|
"transferNote"
|
|
2623
2652
|
/* TRANSFER_NOTE */
|
|
2624
|
-
) ? (
|
|
2625
|
-
])) : (
|
|
2653
|
+
) ? (w(), R("div", mo, " Not available yet. ")) : _("", !0)
|
|
2654
|
+
])) : (w(), R("div", uo, " Please contact your administrator to apply the changes. "))
|
|
2626
2655
|
];
|
|
2627
2656
|
}),
|
|
2628
2657
|
"side-sheet-footer": D(() => [
|
|
2629
|
-
|
|
2630
|
-
I(
|
|
2658
|
+
a("div", fo, [
|
|
2659
|
+
I(p, {
|
|
2631
2660
|
variant: "tertiary",
|
|
2632
2661
|
label: x(t)("common.close"),
|
|
2633
|
-
onClick:
|
|
2662
|
+
onClick: b[1] || (b[1] = (u) => r("update:show", !1))
|
|
2634
2663
|
}, null, 8, ["label"])
|
|
2635
2664
|
])
|
|
2636
2665
|
]),
|
|
2637
2666
|
_: 2
|
|
2638
2667
|
}, [
|
|
2639
|
-
(
|
|
2668
|
+
(c = x(s).sessionUser.value) != null && c.role.isAdmin ? {
|
|
2640
2669
|
name: "side-sheet-header",
|
|
2641
2670
|
fn: D(() => {
|
|
2642
|
-
var
|
|
2671
|
+
var u;
|
|
2643
2672
|
return [
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2673
|
+
a("div", ao, [
|
|
2674
|
+
a("div", lo, [
|
|
2675
|
+
b[3] || (b[3] = a("div", { class: "fm-typo-en-title-md-600" }, "Data migration (Xilnex)", -1)),
|
|
2676
|
+
a("div", io, [
|
|
2648
2677
|
I(C, {
|
|
2649
|
-
name: x(
|
|
2678
|
+
name: x(k),
|
|
2650
2679
|
size: "sm"
|
|
2651
2680
|
}, null, 8, ["name"]),
|
|
2652
|
-
|
|
2681
|
+
a("div", ro, T((u = x(h)._currentLocation) == null ? void 0 : u.name), 1)
|
|
2653
2682
|
])
|
|
2654
2683
|
]),
|
|
2655
|
-
I(
|
|
2656
|
-
modelValue:
|
|
2657
|
-
"onUpdate:modelValue":
|
|
2684
|
+
I(S, {
|
|
2685
|
+
modelValue: g.value,
|
|
2686
|
+
"onUpdate:modelValue": b[0] || (b[0] = (y) => g.value = y),
|
|
2658
2687
|
items: A
|
|
2659
2688
|
}, null, 8, ["modelValue"])
|
|
2660
2689
|
])
|
|
@@ -2665,17 +2694,17 @@ const Un = { class: "flex flex-col gap-4" }, Qn = { class: "flex flex-col" }, Yn
|
|
|
2665
2694
|
]), 1032, ["modelValue"]);
|
|
2666
2695
|
};
|
|
2667
2696
|
}
|
|
2668
|
-
}),
|
|
2697
|
+
}), vo = /* @__PURE__ */ Y({
|
|
2669
2698
|
__name: "XilnexView",
|
|
2670
2699
|
setup(F) {
|
|
2671
|
-
const
|
|
2700
|
+
const v = Le(), s = W(), d = j(!1);
|
|
2672
2701
|
async function n() {
|
|
2673
|
-
|
|
2702
|
+
d.value = !0, console.log("Opening Xilnex migration dialog");
|
|
2674
2703
|
}
|
|
2675
|
-
return (t,
|
|
2676
|
-
const
|
|
2677
|
-
return x(
|
|
2678
|
-
I(
|
|
2704
|
+
return (t, r) => {
|
|
2705
|
+
const h = E("FmCardSection"), k = E("FmCard");
|
|
2706
|
+
return x(v).enabledXilnexOpeningMigration && !x(s).businessLevel ? (w(), R(J, { key: 0 }, [
|
|
2707
|
+
I(k, {
|
|
2679
2708
|
class: q({
|
|
2680
2709
|
"w-full": !0,
|
|
2681
2710
|
border: !0,
|
|
@@ -2683,19 +2712,19 @@ const Un = { class: "flex flex-col gap-4" }, Qn = { class: "flex flex-col" }, Yn
|
|
|
2683
2712
|
"cursor-pointer": !0,
|
|
2684
2713
|
"hover:border-fm-color-primary": !0
|
|
2685
2714
|
}),
|
|
2686
|
-
onClick:
|
|
2715
|
+
onClick: r[0] || (r[0] = (A) => n())
|
|
2687
2716
|
}, {
|
|
2688
2717
|
default: D(() => [
|
|
2689
|
-
I(
|
|
2690
|
-
default: D(() =>
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2718
|
+
I(h, null, {
|
|
2719
|
+
default: D(() => r[2] || (r[2] = [
|
|
2720
|
+
a("div", { class: "flex justify-center" }, [
|
|
2721
|
+
a("div", { class: "size-[100px] bg-gray-200 rounded-lg flex items-center justify-center" }, [
|
|
2722
|
+
a("span", { class: "text-lg font-bold text-gray-600" }, "Xilnex")
|
|
2694
2723
|
])
|
|
2695
2724
|
], -1),
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2725
|
+
a("div", { class: "flex flex-col items-center gap-2" }, [
|
|
2726
|
+
a("div", { class: "text-lg font-bold" }, "Xilnex"),
|
|
2727
|
+
a("div", { class: "text-fm-color-neutral-gray-300" }, "Data migration from Xilnex")
|
|
2699
2728
|
], -1)
|
|
2700
2729
|
])),
|
|
2701
2730
|
_: 1
|
|
@@ -2703,13 +2732,13 @@ const Un = { class: "flex flex-col gap-4" }, Qn = { class: "flex flex-col" }, Yn
|
|
|
2703
2732
|
]),
|
|
2704
2733
|
_: 1
|
|
2705
2734
|
}),
|
|
2706
|
-
(
|
|
2707
|
-
I(
|
|
2708
|
-
show:
|
|
2709
|
-
"onUpdate:show":
|
|
2735
|
+
(w(), X(ue, { to: "body" }, [
|
|
2736
|
+
I(po, {
|
|
2737
|
+
show: d.value,
|
|
2738
|
+
"onUpdate:show": r[1] || (r[1] = (A) => d.value = A)
|
|
2710
2739
|
}, null, 8, ["show"])
|
|
2711
2740
|
]))
|
|
2712
|
-
], 64)) :
|
|
2741
|
+
], 64)) : _("", !0);
|
|
2713
2742
|
};
|
|
2714
2743
|
}
|
|
2715
2744
|
}), Ie = [
|
|
@@ -2722,63 +2751,63 @@ const Un = { class: "flex flex-col gap-4" }, Qn = { class: "flex flex-col" }, Yn
|
|
|
2722
2751
|
"quantity",
|
|
2723
2752
|
"total"
|
|
2724
2753
|
];
|
|
2725
|
-
async function
|
|
2726
|
-
var
|
|
2727
|
-
const
|
|
2728
|
-
for (let A = 0; A <
|
|
2729
|
-
const
|
|
2730
|
-
if (
|
|
2754
|
+
async function go(F, v, s) {
|
|
2755
|
+
var k;
|
|
2756
|
+
const d = await yo(s), n = [], t = {}, r = Object.keys(d)[0], h = d[r];
|
|
2757
|
+
for (let A = 0; A < h.length; A++) {
|
|
2758
|
+
const g = h[A], l = g.code, i = g.description, b = g.quantity, C = g.unitcost;
|
|
2759
|
+
if (l === "" || l === "undefined") {
|
|
2731
2760
|
n.push({
|
|
2732
|
-
row:
|
|
2733
|
-
itemCode:
|
|
2734
|
-
itemName:
|
|
2761
|
+
row: g.excelRow,
|
|
2762
|
+
itemCode: l,
|
|
2763
|
+
itemName: i,
|
|
2735
2764
|
message: "Item code is empty or undefined"
|
|
2736
2765
|
});
|
|
2737
2766
|
continue;
|
|
2738
2767
|
}
|
|
2739
|
-
const
|
|
2740
|
-
if (!
|
|
2768
|
+
const S = v.find((y) => y.code === l);
|
|
2769
|
+
if (!S) {
|
|
2741
2770
|
n.push({
|
|
2742
|
-
row:
|
|
2743
|
-
itemCode:
|
|
2744
|
-
itemName:
|
|
2745
|
-
qty:
|
|
2771
|
+
row: g.excelRow,
|
|
2772
|
+
itemCode: l,
|
|
2773
|
+
itemName: i,
|
|
2774
|
+
qty: b,
|
|
2746
2775
|
message: "Item not found in inventory"
|
|
2747
|
-
}), console.error(`${
|
|
2776
|
+
}), console.error(`${g.excelRow} Item not found: ${l} ${i} ${b}`);
|
|
2748
2777
|
continue;
|
|
2749
2778
|
}
|
|
2750
|
-
let
|
|
2751
|
-
const
|
|
2752
|
-
|
|
2753
|
-
const
|
|
2754
|
-
amount:
|
|
2779
|
+
let p = Number(g.total);
|
|
2780
|
+
const m = F[S._id];
|
|
2781
|
+
m && (p = m * Number(b));
|
|
2782
|
+
const c = P.fromNumber(Number(b)), u = {
|
|
2783
|
+
amount: c,
|
|
2755
2784
|
cost: {
|
|
2756
|
-
...P.fromNumber(Number(
|
|
2785
|
+
...P.fromNumber(Number(p)),
|
|
2757
2786
|
currency: "MYR"
|
|
2758
2787
|
}
|
|
2759
2788
|
};
|
|
2760
|
-
|
|
2789
|
+
b != "0" && C == "0" && console.warn(`Item ${l} ${i} has 0 cost.`), t[k = S._id] ?? (t[k] = {
|
|
2761
2790
|
skuAdjustment: {
|
|
2762
|
-
sku:
|
|
2791
|
+
sku: S,
|
|
2763
2792
|
fromBalance: P.fromNumber(0),
|
|
2764
2793
|
amounts: [
|
|
2765
2794
|
{
|
|
2766
2795
|
_id: null,
|
|
2767
2796
|
type: we.Enum.CLOSING,
|
|
2768
2797
|
remark: "Opening Balance",
|
|
2769
|
-
amount:
|
|
2798
|
+
amount: c,
|
|
2770
2799
|
measurement: null,
|
|
2771
2800
|
// always the smallest unit
|
|
2772
|
-
cost:
|
|
2801
|
+
cost: u.cost
|
|
2773
2802
|
}
|
|
2774
2803
|
],
|
|
2775
|
-
toBalance:
|
|
2776
|
-
toCostBalances: [
|
|
2804
|
+
toBalance: c,
|
|
2805
|
+
toCostBalances: [u]
|
|
2777
2806
|
},
|
|
2778
2807
|
skuBalance: {
|
|
2779
|
-
id:
|
|
2780
|
-
balance:
|
|
2781
|
-
costs: [
|
|
2808
|
+
id: S._id,
|
|
2809
|
+
balance: c,
|
|
2810
|
+
costs: [u]
|
|
2782
2811
|
}
|
|
2783
2812
|
});
|
|
2784
2813
|
}
|
|
@@ -2787,56 +2816,56 @@ async function vo(F, g, s) {
|
|
|
2787
2816
|
rows: t
|
|
2788
2817
|
};
|
|
2789
2818
|
}
|
|
2790
|
-
async function
|
|
2791
|
-
const
|
|
2792
|
-
const
|
|
2793
|
-
|
|
2794
|
-
}), s = ke(
|
|
2795
|
-
for (const t of
|
|
2796
|
-
const
|
|
2797
|
-
n[t] =
|
|
2819
|
+
async function yo(F) {
|
|
2820
|
+
const v = await new Promise((t, r) => {
|
|
2821
|
+
const h = new FileReader();
|
|
2822
|
+
h.onload = (k) => t(k.target.result), h.onerror = r, h.readAsArrayBuffer(F);
|
|
2823
|
+
}), s = ke(v, { type: "array" }), d = s.SheetNames, n = {};
|
|
2824
|
+
for (const t of d) {
|
|
2825
|
+
const r = await Ao(s.Sheets[t]);
|
|
2826
|
+
n[t] = r;
|
|
2798
2827
|
}
|
|
2799
2828
|
return n;
|
|
2800
2829
|
}
|
|
2801
2830
|
async function Ao(F) {
|
|
2802
|
-
const
|
|
2831
|
+
const v = Be.sheet_to_json(F, {
|
|
2803
2832
|
header: Ie,
|
|
2804
2833
|
range: 1
|
|
2805
2834
|
}), s = [];
|
|
2806
|
-
for (let
|
|
2807
|
-
const n =
|
|
2808
|
-
for (const
|
|
2809
|
-
t[
|
|
2835
|
+
for (let d = 0; d < v.length; d++) {
|
|
2836
|
+
const n = v[d], t = {};
|
|
2837
|
+
for (const r of Ie)
|
|
2838
|
+
t[r] = String(n[r]).trim();
|
|
2810
2839
|
s.push({
|
|
2811
2840
|
...t,
|
|
2812
|
-
excelRow:
|
|
2841
|
+
excelRow: d + 2
|
|
2813
2842
|
// Excel rows start from 1, and we skip the first row
|
|
2814
2843
|
});
|
|
2815
2844
|
}
|
|
2816
2845
|
return s;
|
|
2817
2846
|
}
|
|
2818
|
-
const
|
|
2847
|
+
const bo = { class: "flex flex-col gap-4" }, ho = { class: "flex flex-col" }, Io = {
|
|
2819
2848
|
key: 0,
|
|
2820
2849
|
class: "flex flex-col gap-4 my-5"
|
|
2821
|
-
},
|
|
2850
|
+
}, xo = { class: "flex flex-col gap-8" }, So = { class: "flex flex-col gap-8" }, wo = {
|
|
2822
2851
|
class: /* @__PURE__ */ q(["fm-corner-radius-md p-16 flex items-center gap-16"])
|
|
2823
|
-
},
|
|
2852
|
+
}, ko = {
|
|
2824
2853
|
class: /* @__PURE__ */ q(["fm-typo-en-body-md-400 flex-1 h-[36px] flex items-center gap-3"])
|
|
2825
|
-
},
|
|
2854
|
+
}, Bo = { class: "line-clamp-2 text-ellipsis break-all" }, Co = { class: "flex flex-col" }, Eo = { class: "font-medium" }, Fo = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, Lo = { class: "flex" }, Vo = { class: "flex" }, No = { key: 1 }, Ro = /* @__PURE__ */ Y({
|
|
2826
2855
|
__name: "SynergyOpeningImport",
|
|
2827
2856
|
setup(F) {
|
|
2828
|
-
const
|
|
2857
|
+
const v = Pe(), s = ye(), d = Ce(), n = ne(), t = z(() => [
|
|
2829
2858
|
{
|
|
2830
2859
|
value: "synergy",
|
|
2831
2860
|
label: "Synergy",
|
|
2832
2861
|
subLabel: "Based on Synergy's item cost from excel file"
|
|
2833
2862
|
}
|
|
2834
|
-
]),
|
|
2863
|
+
]), r = j(t.value[0].value), { t: h } = de(), k = j(null), A = j(), g = j(""), l = j([]), i = j([]), b = [
|
|
2835
2864
|
{
|
|
2836
2865
|
id: "ingredient",
|
|
2837
2866
|
header: () => "Ingredient",
|
|
2838
|
-
cell(
|
|
2839
|
-
const e =
|
|
2867
|
+
cell(f) {
|
|
2868
|
+
const e = f.row.original;
|
|
2840
2869
|
return N("div", { class: "flex flex-col" }, [
|
|
2841
2870
|
N("span", { class: "font-medium" }, e.skuAdjustment.sku.name),
|
|
2842
2871
|
N("span", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, [
|
|
@@ -2848,8 +2877,8 @@ const yo = { class: "flex flex-col gap-4" }, bo = { class: "flex flex-col" }, ho
|
|
|
2848
2877
|
{
|
|
2849
2878
|
id: "openingBalance",
|
|
2850
2879
|
header: () => "Opening Balance",
|
|
2851
|
-
cell(
|
|
2852
|
-
const e =
|
|
2880
|
+
cell(f) {
|
|
2881
|
+
const e = f.row.original;
|
|
2853
2882
|
return N("div", { class: "flex flex-col" }, [
|
|
2854
2883
|
N(
|
|
2855
2884
|
"span",
|
|
@@ -2864,8 +2893,8 @@ const yo = { class: "flex flex-col gap-4" }, bo = { class: "flex flex-col" }, ho
|
|
|
2864
2893
|
{
|
|
2865
2894
|
id: "unit",
|
|
2866
2895
|
header: () => "Unit",
|
|
2867
|
-
cell(
|
|
2868
|
-
const e =
|
|
2896
|
+
cell(f) {
|
|
2897
|
+
const e = f.row.original, o = !e.skuAdjustment.amounts[0].measurement;
|
|
2869
2898
|
let B = e.skuAdjustment.sku.unit.name;
|
|
2870
2899
|
if (!o) {
|
|
2871
2900
|
const L = e.skuAdjustment.sku.unit.measurements.find(
|
|
@@ -2884,8 +2913,8 @@ const yo = { class: "flex flex-col gap-4" }, bo = { class: "flex flex-col" }, ho
|
|
|
2884
2913
|
{
|
|
2885
2914
|
id: "totalCost",
|
|
2886
2915
|
header: () => "Total Cost",
|
|
2887
|
-
cell(
|
|
2888
|
-
const e =
|
|
2916
|
+
cell(f) {
|
|
2917
|
+
const e = f.row.original, { currency: o, ...B } = e.skuAdjustment.amounts[0].cost ?? {
|
|
2889
2918
|
amount: 0,
|
|
2890
2919
|
precision: 0,
|
|
2891
2920
|
currency: ""
|
|
@@ -2922,73 +2951,73 @@ const yo = { class: "flex flex-col gap-4" }, bo = { class: "flex flex-col" }, ho
|
|
|
2922
2951
|
accessorKey: "message",
|
|
2923
2952
|
header: "Error Message"
|
|
2924
2953
|
}
|
|
2925
|
-
],
|
|
2926
|
-
async function
|
|
2927
|
-
if (
|
|
2928
|
-
|
|
2954
|
+
], S = j(!1);
|
|
2955
|
+
async function p() {
|
|
2956
|
+
if (k.value) {
|
|
2957
|
+
S.value = !0;
|
|
2929
2958
|
try {
|
|
2930
|
-
let
|
|
2931
|
-
const { errors: e, rows: o } = await
|
|
2932
|
-
|
|
2959
|
+
let f = {};
|
|
2960
|
+
const { errors: e, rows: o } = await go(
|
|
2961
|
+
f,
|
|
2933
2962
|
s.skus,
|
|
2934
|
-
|
|
2963
|
+
k.value
|
|
2935
2964
|
);
|
|
2936
|
-
|
|
2965
|
+
l.value = e, i.value = Object.values(o);
|
|
2937
2966
|
} catch {
|
|
2938
2967
|
n.open({
|
|
2939
2968
|
message: "Error verifying file",
|
|
2940
2969
|
type: "error"
|
|
2941
2970
|
});
|
|
2942
2971
|
} finally {
|
|
2943
|
-
|
|
2972
|
+
S.value = !1;
|
|
2944
2973
|
}
|
|
2945
2974
|
}
|
|
2946
2975
|
}
|
|
2947
|
-
async function
|
|
2948
|
-
if (
|
|
2949
|
-
|
|
2976
|
+
async function m() {
|
|
2977
|
+
if (k.value) {
|
|
2978
|
+
S.value = !0;
|
|
2950
2979
|
try {
|
|
2951
|
-
if (!
|
|
2980
|
+
if (!u.value) {
|
|
2952
2981
|
n.open({
|
|
2953
2982
|
message: "Please select a date for the opening balance",
|
|
2954
2983
|
type: "error"
|
|
2955
2984
|
});
|
|
2956
2985
|
return;
|
|
2957
2986
|
}
|
|
2958
|
-
await
|
|
2959
|
-
effectiveAt:
|
|
2960
|
-
skuAdjustments:
|
|
2961
|
-
skuBalances:
|
|
2987
|
+
await d.setOpeningBalance({
|
|
2988
|
+
effectiveAt: u.value,
|
|
2989
|
+
skuAdjustments: i.value.map((f) => f.skuAdjustment),
|
|
2990
|
+
skuBalances: i.value.map((f) => f.skuBalance)
|
|
2962
2991
|
}), n.open({
|
|
2963
2992
|
message: "Opening balance imported successfully",
|
|
2964
2993
|
type: "success"
|
|
2965
|
-
}), await
|
|
2994
|
+
}), await v.fetchClosingDocumentId();
|
|
2966
2995
|
} catch {
|
|
2967
2996
|
n.open({
|
|
2968
2997
|
message: "Error importing opening balance",
|
|
2969
2998
|
type: "error"
|
|
2970
2999
|
});
|
|
2971
3000
|
} finally {
|
|
2972
|
-
|
|
3001
|
+
S.value = !1;
|
|
2973
3002
|
}
|
|
2974
3003
|
}
|
|
2975
3004
|
}
|
|
2976
|
-
const
|
|
3005
|
+
const c = j(""), u = z({
|
|
2977
3006
|
get() {
|
|
2978
|
-
return
|
|
3007
|
+
return c.value;
|
|
2979
3008
|
},
|
|
2980
|
-
set(
|
|
2981
|
-
|
|
3009
|
+
set(f) {
|
|
3010
|
+
c.value = `${f}T15:59:59.999Z`;
|
|
2982
3011
|
}
|
|
2983
3012
|
}), y = z(() => {
|
|
2984
|
-
if (!
|
|
2985
|
-
const
|
|
2986
|
-
return isNaN(
|
|
3013
|
+
if (!c.value) return null;
|
|
3014
|
+
const f = new Date(c.value);
|
|
3015
|
+
return isNaN(f.getTime()) ? null : ve(f);
|
|
2987
3016
|
});
|
|
2988
|
-
return (
|
|
3017
|
+
return (f, e) => {
|
|
2989
3018
|
const o = E("FmLabel"), B = E("FmField"), L = E("FmSimpleDatePicker"), V = E("FmButton"), H = E("FmRadio"), U = E("FmRadioGroup"), M = E("FmTable");
|
|
2990
|
-
return
|
|
2991
|
-
|
|
3019
|
+
return w(), R("div", bo, [
|
|
3020
|
+
a("div", ho, [
|
|
2992
3021
|
I(o, { label: "Latest closing" })
|
|
2993
3022
|
]),
|
|
2994
3023
|
I(B, {
|
|
@@ -2996,16 +3025,16 @@ const yo = { class: "flex flex-col gap-4" }, bo = { class: "flex flex-col" }, ho
|
|
|
2996
3025
|
disabled: ""
|
|
2997
3026
|
}, {
|
|
2998
3027
|
default: D(() => [
|
|
2999
|
-
Z(T(x(
|
|
3028
|
+
Z(T(x(v).state.closingDocumentId ? `${x(Ee)(new Date(x(ge)(x(v).state.closingDocumentId)))}` : "No closing found"), 1)
|
|
3000
3029
|
]),
|
|
3001
3030
|
_: 1
|
|
3002
3031
|
}),
|
|
3003
|
-
x(
|
|
3004
|
-
|
|
3005
|
-
]))) : (
|
|
3032
|
+
x(v).state.closingDocumentId ? (w(), R("div", No, e[6] || (e[6] = [
|
|
3033
|
+
a("span", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, " Not able to import opening balance as closing document already exists. ", -1)
|
|
3034
|
+
]))) : (w(), R("div", Io, [
|
|
3006
3035
|
I(L, {
|
|
3007
|
-
modelValue:
|
|
3008
|
-
"onUpdate:modelValue": e[0] || (e[0] = (O) =>
|
|
3036
|
+
modelValue: u.value,
|
|
3037
|
+
"onUpdate:modelValue": e[0] || (e[0] = (O) => u.value = O),
|
|
3009
3038
|
label: "Last closing time"
|
|
3010
3039
|
}, {
|
|
3011
3040
|
"trigger-button": D(() => [
|
|
@@ -3022,24 +3051,24 @@ const yo = { class: "flex flex-col gap-4" }, bo = { class: "flex flex-col" }, ho
|
|
|
3022
3051
|
]),
|
|
3023
3052
|
_: 1
|
|
3024
3053
|
}, 8, ["modelValue"]),
|
|
3025
|
-
|
|
3054
|
+
a("div", xo, [
|
|
3026
3055
|
I(o, { label: "Stock take file" })
|
|
3027
3056
|
]),
|
|
3028
3057
|
I(Fe, {
|
|
3029
3058
|
onFileUpload: e[1] || (e[1] = (O) => {
|
|
3030
|
-
O && (
|
|
3059
|
+
O && (k.value = O);
|
|
3031
3060
|
}),
|
|
3032
3061
|
accept: ".xlsx, .xls, .csv"
|
|
3033
|
-
},
|
|
3034
|
-
|
|
3062
|
+
}, oe({ _: 2 }, [
|
|
3063
|
+
k.value ? {
|
|
3035
3064
|
name: "default",
|
|
3036
3065
|
fn: D(({ openFileDialog: O }) => [
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3066
|
+
a("div", So, [
|
|
3067
|
+
a("div", wo, [
|
|
3068
|
+
a("div", ko, [
|
|
3069
|
+
a("div", Bo, T(k.value.name), 1),
|
|
3041
3070
|
I(V, {
|
|
3042
|
-
label: x(
|
|
3071
|
+
label: x(h)("inventory.ingredient.import.replaceFile"),
|
|
3043
3072
|
variant: "secondary",
|
|
3044
3073
|
"prepend-icon": "autorenew",
|
|
3045
3074
|
onClick: O
|
|
@@ -3052,13 +3081,13 @@ const yo = { class: "flex flex-col gap-4" }, bo = { class: "flex flex-col" }, ho
|
|
|
3052
3081
|
} : void 0
|
|
3053
3082
|
]), 1024),
|
|
3054
3083
|
I(U, {
|
|
3055
|
-
modelValue:
|
|
3056
|
-
"onUpdate:modelValue": e[2] || (e[2] = (O) =>
|
|
3084
|
+
modelValue: r.value,
|
|
3085
|
+
"onUpdate:modelValue": e[2] || (e[2] = (O) => r.value = O),
|
|
3057
3086
|
label: "Retrieve cost from",
|
|
3058
3087
|
class: "my-5"
|
|
3059
3088
|
}, {
|
|
3060
3089
|
default: D(() => [
|
|
3061
|
-
(
|
|
3090
|
+
(w(!0), R(J, null, te(t.value, (O) => (w(), X(H, {
|
|
3062
3091
|
key: O.value,
|
|
3063
3092
|
value: O.value,
|
|
3064
3093
|
label: O.label,
|
|
@@ -3066,9 +3095,9 @@ const yo = { class: "flex flex-col gap-4" }, bo = { class: "flex flex-col" }, ho
|
|
|
3066
3095
|
disabled: O.disabled
|
|
3067
3096
|
}, {
|
|
3068
3097
|
label: D(() => [
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3098
|
+
a("div", Co, [
|
|
3099
|
+
a("span", Eo, T(O.label), 1),
|
|
3100
|
+
a("span", Fo, T(O.disabled ? O.disabledReason : O.subLabel), 1)
|
|
3072
3101
|
])
|
|
3073
3102
|
]),
|
|
3074
3103
|
_: 2
|
|
@@ -3076,107 +3105,107 @@ const yo = { class: "flex flex-col gap-4" }, bo = { class: "flex flex-col" }, ho
|
|
|
3076
3105
|
]),
|
|
3077
3106
|
_: 1
|
|
3078
3107
|
}, 8, ["modelValue"]),
|
|
3079
|
-
|
|
3108
|
+
a("div", Lo, [
|
|
3080
3109
|
I(V, {
|
|
3081
3110
|
class: "ml-auto mt-4",
|
|
3082
3111
|
variant: "secondary",
|
|
3083
3112
|
"prepend-icon": "troubleshoot",
|
|
3084
3113
|
label: "Verify",
|
|
3085
|
-
disabled: !
|
|
3086
|
-
loading:
|
|
3087
|
-
onClick:
|
|
3114
|
+
disabled: !k.value && !S.value,
|
|
3115
|
+
loading: S.value,
|
|
3116
|
+
onClick: p
|
|
3088
3117
|
}, null, 8, ["disabled", "loading"])
|
|
3089
3118
|
]),
|
|
3090
|
-
|
|
3091
|
-
e[4] || (e[4] =
|
|
3119
|
+
k.value && i.value.length > 0 ? (w(), R(J, { key: 0 }, [
|
|
3120
|
+
e[4] || (e[4] = a("h2", { class: "fm-typo-en-title-md-800 mt-8 mb-4" }, "Results", -1)),
|
|
3092
3121
|
I(M, {
|
|
3093
3122
|
modelValue: A.value,
|
|
3094
3123
|
"onUpdate:modelValue": e[3] || (e[3] = (O) => A.value = O),
|
|
3095
|
-
"row-data":
|
|
3096
|
-
"column-defs":
|
|
3124
|
+
"row-data": i.value,
|
|
3125
|
+
"column-defs": b,
|
|
3097
3126
|
"shrink-at": !1,
|
|
3098
|
-
"search-value":
|
|
3127
|
+
"search-value": g.value
|
|
3099
3128
|
}, null, 8, ["modelValue", "row-data", "search-value"])
|
|
3100
|
-
], 64)) :
|
|
3101
|
-
|
|
3102
|
-
e[5] || (e[5] =
|
|
3129
|
+
], 64)) : _("", !0),
|
|
3130
|
+
l.value.length > 0 ? (w(), R(J, { key: 1 }, [
|
|
3131
|
+
e[5] || (e[5] = a("h2", { class: "fm-typo-en-title-md-800 mt-8 mb-4 text-red-600" }, "Errors", -1)),
|
|
3103
3132
|
I(M, {
|
|
3104
|
-
"row-data":
|
|
3133
|
+
"row-data": l.value,
|
|
3105
3134
|
"column-defs": C
|
|
3106
3135
|
}, null, 8, ["row-data"])
|
|
3107
|
-
], 64)) :
|
|
3108
|
-
|
|
3109
|
-
|
|
3136
|
+
], 64)) : _("", !0),
|
|
3137
|
+
a("div", Vo, [
|
|
3138
|
+
i.value.length > 0 && !x(v).state.closingDocumentId ? (w(), X(V, {
|
|
3110
3139
|
key: 0,
|
|
3111
3140
|
class: "ml-auto mt-4",
|
|
3112
3141
|
"prepend-icon": "file_upload",
|
|
3113
3142
|
variant: "primary",
|
|
3114
3143
|
label: "Import Opening Balance",
|
|
3115
|
-
disabled: !
|
|
3116
|
-
onClick:
|
|
3117
|
-
}, null, 8, ["disabled"])) :
|
|
3144
|
+
disabled: !k.value || S.value,
|
|
3145
|
+
onClick: m
|
|
3146
|
+
}, null, 8, ["disabled"])) : _("", !0)
|
|
3118
3147
|
])
|
|
3119
3148
|
]))
|
|
3120
3149
|
]);
|
|
3121
3150
|
};
|
|
3122
3151
|
}
|
|
3123
|
-
}),
|
|
3152
|
+
}), Do = { class: "flex flex-col gap-8 w-full" }, Mo = { class: "flex gap-4 justify-between" }, jo = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400" }, Oo = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, To = { key: 0 }, zo = {
|
|
3124
3153
|
key: 1,
|
|
3125
3154
|
class: "flex flex-col gap-8 w-full"
|
|
3126
|
-
},
|
|
3155
|
+
}, Ho = { class: "flex gap-8 items-center justify-start" }, _o = /* @__PURE__ */ Y({
|
|
3127
3156
|
__name: "SynergySideSheet",
|
|
3128
3157
|
props: {
|
|
3129
3158
|
show: { type: Boolean },
|
|
3130
3159
|
loading: { type: Boolean }
|
|
3131
3160
|
},
|
|
3132
3161
|
emits: ["update:show"],
|
|
3133
|
-
setup(F, { emit:
|
|
3162
|
+
setup(F, { emit: v }) {
|
|
3134
3163
|
var A;
|
|
3135
|
-
const s = ie(), n =
|
|
3136
|
-
return (
|
|
3137
|
-
var
|
|
3138
|
-
const
|
|
3139
|
-
return
|
|
3164
|
+
const s = ie(), n = ae(F, "show"), { t } = G(), r = v, h = W(), k = ((A = h._currentLocation) == null ? void 0 : A.type) || "";
|
|
3165
|
+
return (g, l) => {
|
|
3166
|
+
var S;
|
|
3167
|
+
const i = E("FmIcon"), b = E("FmButton"), C = E("FmSideSheet");
|
|
3168
|
+
return w(), X(C, {
|
|
3140
3169
|
modelValue: x(n),
|
|
3141
|
-
"onUpdate:modelValue":
|
|
3170
|
+
"onUpdate:modelValue": l[1] || (l[1] = (p) => se(n) ? n.value = p : null),
|
|
3142
3171
|
header: "Data migration (Synergy)",
|
|
3143
3172
|
"dismiss-away": "",
|
|
3144
3173
|
"close-button": "",
|
|
3145
3174
|
"max-width": 800
|
|
3146
|
-
},
|
|
3175
|
+
}, oe({
|
|
3147
3176
|
default: D(() => {
|
|
3148
|
-
var
|
|
3177
|
+
var p;
|
|
3149
3178
|
return [
|
|
3150
|
-
(
|
|
3151
|
-
I(
|
|
3152
|
-
])) : (
|
|
3179
|
+
(p = x(s).sessionUser.value) != null && p.role.isAdmin ? (w(), R("div", zo, [
|
|
3180
|
+
I(Ro)
|
|
3181
|
+
])) : (w(), R("div", To, " Please contact your administrator to apply the changes. "))
|
|
3153
3182
|
];
|
|
3154
3183
|
}),
|
|
3155
3184
|
"side-sheet-footer": D(() => [
|
|
3156
|
-
|
|
3157
|
-
I(
|
|
3185
|
+
a("div", Ho, [
|
|
3186
|
+
I(b, {
|
|
3158
3187
|
variant: "tertiary",
|
|
3159
3188
|
label: x(t)("common.close"),
|
|
3160
|
-
onClick:
|
|
3189
|
+
onClick: l[0] || (l[0] = (p) => r("update:show", !1))
|
|
3161
3190
|
}, null, 8, ["label"])
|
|
3162
3191
|
])
|
|
3163
3192
|
]),
|
|
3164
3193
|
_: 2
|
|
3165
3194
|
}, [
|
|
3166
|
-
(
|
|
3195
|
+
(S = x(s).sessionUser.value) != null && S.role.isAdmin ? {
|
|
3167
3196
|
name: "side-sheet-header",
|
|
3168
3197
|
fn: D(() => {
|
|
3169
|
-
var
|
|
3198
|
+
var p;
|
|
3170
3199
|
return [
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
I(
|
|
3176
|
-
name: x(
|
|
3200
|
+
a("div", Do, [
|
|
3201
|
+
a("div", Mo, [
|
|
3202
|
+
l[2] || (l[2] = a("div", { class: "fm-typo-en-title-md-600" }, "Data migration (Synergy)", -1)),
|
|
3203
|
+
a("div", jo, [
|
|
3204
|
+
I(i, {
|
|
3205
|
+
name: x(k),
|
|
3177
3206
|
size: "sm"
|
|
3178
3207
|
}, null, 8, ["name"]),
|
|
3179
|
-
|
|
3208
|
+
a("div", Oo, T((p = x(h)._currentLocation) == null ? void 0 : p.name), 1)
|
|
3180
3209
|
])
|
|
3181
3210
|
])
|
|
3182
3211
|
])
|
|
@@ -3190,14 +3219,14 @@ const yo = { class: "flex flex-col gap-4" }, bo = { class: "flex flex-col" }, ho
|
|
|
3190
3219
|
}), Xo = /* @__PURE__ */ Y({
|
|
3191
3220
|
__name: "SynergyView",
|
|
3192
3221
|
setup(F) {
|
|
3193
|
-
const
|
|
3222
|
+
const v = Le(), s = W(), d = j(!1);
|
|
3194
3223
|
async function n() {
|
|
3195
|
-
|
|
3224
|
+
d.value = !0, console.log("Opening Synergy migration dialog");
|
|
3196
3225
|
}
|
|
3197
|
-
return (t,
|
|
3198
|
-
const
|
|
3199
|
-
return x(
|
|
3200
|
-
I(
|
|
3226
|
+
return (t, r) => {
|
|
3227
|
+
const h = E("FmCardSection"), k = E("FmCard");
|
|
3228
|
+
return x(v).enabledSynergyOpeningMigration && !x(s).businessLevel ? (w(), R(J, { key: 0 }, [
|
|
3229
|
+
I(k, {
|
|
3201
3230
|
class: q({
|
|
3202
3231
|
"w-full": !0,
|
|
3203
3232
|
border: !0,
|
|
@@ -3205,19 +3234,19 @@ const yo = { class: "flex flex-col gap-4" }, bo = { class: "flex flex-col" }, ho
|
|
|
3205
3234
|
"cursor-pointer": !0,
|
|
3206
3235
|
"hover:border-fm-color-primary": !0
|
|
3207
3236
|
}),
|
|
3208
|
-
onClick:
|
|
3237
|
+
onClick: r[0] || (r[0] = (A) => n())
|
|
3209
3238
|
}, {
|
|
3210
3239
|
default: D(() => [
|
|
3211
|
-
I(
|
|
3212
|
-
default: D(() =>
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3240
|
+
I(h, null, {
|
|
3241
|
+
default: D(() => r[2] || (r[2] = [
|
|
3242
|
+
a("div", { class: "flex justify-center" }, [
|
|
3243
|
+
a("div", { class: "size-[100px] bg-gray-200 rounded-lg flex items-center justify-center" }, [
|
|
3244
|
+
a("span", { class: "text-lg font-bold text-gray-600" }, "Synergy")
|
|
3216
3245
|
])
|
|
3217
3246
|
], -1),
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3247
|
+
a("div", { class: "flex flex-col items-center gap-2" }, [
|
|
3248
|
+
a("div", { class: "text-lg font-bold" }, "Synergy"),
|
|
3249
|
+
a("div", { class: "text-fm-color-neutral-gray-300" }, "Data migration from Synergy")
|
|
3221
3250
|
], -1)
|
|
3222
3251
|
])),
|
|
3223
3252
|
_: 1
|
|
@@ -3225,44 +3254,44 @@ const yo = { class: "flex flex-col gap-4" }, bo = { class: "flex flex-col" }, ho
|
|
|
3225
3254
|
]),
|
|
3226
3255
|
_: 1
|
|
3227
3256
|
}),
|
|
3228
|
-
(
|
|
3229
|
-
I(
|
|
3230
|
-
show:
|
|
3231
|
-
"onUpdate:show":
|
|
3257
|
+
(w(), X(ue, { to: "body" }, [
|
|
3258
|
+
I(_o, {
|
|
3259
|
+
show: d.value,
|
|
3260
|
+
"onUpdate:show": r[1] || (r[1] = (A) => d.value = A)
|
|
3232
3261
|
}, null, 8, ["show"])
|
|
3233
3262
|
]))
|
|
3234
|
-
], 64)) :
|
|
3263
|
+
], 64)) : _("", !0);
|
|
3235
3264
|
};
|
|
3236
3265
|
}
|
|
3237
|
-
}),
|
|
3266
|
+
}), Uo = { key: 0 }, Qo = {
|
|
3238
3267
|
key: 1,
|
|
3239
3268
|
class: "flex flex-col items-center my-10 gap-5"
|
|
3240
|
-
},
|
|
3269
|
+
}, Yo = ["src"], Jo = {
|
|
3241
3270
|
class: "text-xs text-neutral-400 text-center",
|
|
3242
3271
|
style: { "max-width": "25rem" }
|
|
3243
|
-
},
|
|
3272
|
+
}, Ko = {
|
|
3244
3273
|
key: 2,
|
|
3245
3274
|
class: "grid grid-cols-2 gap-5"
|
|
3246
|
-
},
|
|
3275
|
+
}, ns = /* @__PURE__ */ Y({
|
|
3247
3276
|
__name: "IntegrationView",
|
|
3248
3277
|
setup(F) {
|
|
3249
|
-
const
|
|
3278
|
+
const v = W(), s = j(!1), d = We(), { breakpoints: n } = Ve(), t = z(() => n.value.xs || n.value.sm), { t: r } = G();
|
|
3250
3279
|
return me(async () => {
|
|
3251
|
-
if (
|
|
3280
|
+
if (v._currentLocation) {
|
|
3252
3281
|
s.value = !0;
|
|
3253
3282
|
try {
|
|
3254
|
-
await
|
|
3283
|
+
await d.fetchFoodMarketHubSetting(), await d.fetchNetSuiteSetting();
|
|
3255
3284
|
} finally {
|
|
3256
3285
|
s.value = !1;
|
|
3257
3286
|
}
|
|
3258
3287
|
}
|
|
3259
|
-
}), (
|
|
3288
|
+
}), (h, k) => {
|
|
3260
3289
|
const A = E("FmCircularProgress");
|
|
3261
|
-
return
|
|
3262
|
-
title: x(
|
|
3290
|
+
return w(), X(Je, {
|
|
3291
|
+
title: x(r)("inventory.integration.title")
|
|
3263
3292
|
}, {
|
|
3264
3293
|
default: D(() => [
|
|
3265
|
-
|
|
3294
|
+
a("div", {
|
|
3266
3295
|
class: q([
|
|
3267
3296
|
"flex flex-col gap-8 max-h-full",
|
|
3268
3297
|
{
|
|
@@ -3275,21 +3304,21 @@ const yo = { class: "flex flex-col gap-4" }, bo = { class: "flex flex-col" }, ho
|
|
|
3275
3304
|
"change-location": "",
|
|
3276
3305
|
showBusiness: ""
|
|
3277
3306
|
}),
|
|
3278
|
-
!x(
|
|
3307
|
+
!x(v)._currentLocation || s.value ? (w(), R("div", Uo, [
|
|
3279
3308
|
I(A, { size: "lg" })
|
|
3280
|
-
])) : x(
|
|
3281
|
-
|
|
3282
|
-
|
|
3309
|
+
])) : x(d).enabledIntegrations == 0 ? (w(), R("div", Qo, [
|
|
3310
|
+
a("div", null, [
|
|
3311
|
+
a("img", {
|
|
3283
3312
|
src: x(He),
|
|
3284
3313
|
alt: "List is empty"
|
|
3285
|
-
}, null, 8,
|
|
3314
|
+
}, null, 8, Yo)
|
|
3286
3315
|
]),
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
])) : (
|
|
3290
|
-
I(
|
|
3316
|
+
k[0] || (k[0] = a("div", { class: "font-bold text-lg" }, "Integration", -1)),
|
|
3317
|
+
a("div", Jo, T(x(r)("inventory.integration.description")), 1)
|
|
3318
|
+
])) : (w(), R("div", Ko, [
|
|
3319
|
+
I(Hn),
|
|
3291
3320
|
I(Kt),
|
|
3292
|
-
I(
|
|
3321
|
+
I(vo),
|
|
3293
3322
|
I(Xo)
|
|
3294
3323
|
]))
|
|
3295
3324
|
], 2)
|
|
@@ -3300,5 +3329,5 @@ const yo = { class: "flex flex-col gap-4" }, bo = { class: "flex flex-col" }, ho
|
|
|
3300
3329
|
}
|
|
3301
3330
|
});
|
|
3302
3331
|
export {
|
|
3303
|
-
|
|
3332
|
+
ns as default
|
|
3304
3333
|
};
|