@feedmepos/mf-inventory-portal 1.2.2 → 1.2.4-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-CJcHE7SO.js → App-CdweYGJb.js} +1 -1
- package/dist/{ApprovalView-BdZJkIr1.js → ApprovalView-N5aTAawv.js} +8 -8
- package/dist/{BindingsDialog-MWca_bmU.js → BindingsDialog-CF43nBIL.js} +2 -2
- package/dist/{BindingsPicker-BoBmsimf.js → BindingsPicker-UXffTvIT.js} +1 -1
- package/dist/{BindingsTable-QBDWp4j9.js → BindingsTable-bGEdChlq.js} +1 -1
- package/dist/{ClosingDraftView-CyAhtevG.js → ClosingDraftView-CU6ncRGd.js} +93 -93
- package/dist/{ClosingTemplateView-B26aUQk_.js → ClosingTemplateView-B7hlv-ol.js} +17 -17
- package/dist/{DeliveryOrderPrintPreview-CxE7zXQu.js → DeliveryOrderPrintPreview-BHsASpvc.js} +7 -7
- package/dist/{FmAdminBadge-BodsgRyK.js → FmAdminBadge-phxApe08.js} +3 -3
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CsjT5AZ0.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CQi8T-o4.js} +11 -11
- package/dist/{FmMultiselectDialog-sRLyNp7M.js → FmMultiselectDialog-Cw7978N9.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-9s0vqpVr.js → FmUnitInput.vue_vue_type_script_setup_true_lang-m_DVEWZp.js} +24 -24
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DYxW0unH.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CK2uHzWs.js} +1 -1
- package/dist/{IngredientGroupView-Ctk4HYE6.js → IngredientGroupView-BLlM22XE.js} +31 -31
- package/dist/{IngredientsView-dtDwA_D5.js → IngredientsView-D-MLnQUs.js} +689 -671
- package/dist/{IntegrationView-CJK4FoWD.js → IntegrationView-DS8GfDcu.js} +299 -297
- package/dist/{InventoryBindingForm-f4FJY7WU.js → InventoryBindingForm-Cxl3010v.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BCRie802.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DVytESGu.js} +39 -39
- package/dist/{InventoryBindingSummary-C3xrP0g7.js → InventoryBindingSummary-BPLbgkdU.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CegSNvou.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D6G0tvu8.js} +4 -4
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BldOmlfF.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DIgC7Vso.js} +1 -1
- package/dist/{PublishView-bOQCoZjJ.js → PublishView-C7M3-gQh.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-DpSX1kkc.js → PurchaseOrderPrintPreview-ZhFYuurj.js} +6 -6
- package/dist/{ReceiveRequestView-cyfbwDOt.js → ReceiveRequestView-BCdKPhsr.js} +110 -110
- package/dist/{RecipeView-N4FN3GYa.js → RecipeView-DUmXQOxV.js} +19 -19
- package/dist/{StockView-CBF3sxnP.js → StockView-BcxAyI7w.js} +135 -135
- package/dist/{SupplierView-NiBkcSkm.js → SupplierView-q04_80bh.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CetqKDir.js → TransferDetails.vue_vue_type_script_setup_true_lang-CBFgpKee.js} +6 -6
- package/dist/{TransferTemplateView-BvG3PQr1.js → TransferTemplateView-Cfcu-qeJ.js} +57 -57
- package/dist/{UnitView-DNk7uGXP.js → UnitView-BAPZkTQp.js} +27 -27
- package/dist/{WarehouseView-CcP_C-f5.js → WarehouseView-9AkOoqZV.js} +8 -8
- package/dist/{app-D7pUBlkb.js → app-Bcq0U90V.js} +9806 -9756
- package/dist/app.js +1 -1
- package/dist/composable/defineApi.d.ts +1 -1
- package/dist/{decimal-Dt_QQfvw.js → decimal-Dhnp84Mk.js} +1 -1
- package/dist/{format-unit-display-BcBpuzq_.js → format-unit-display-X0is3zJN.js} +57 -57
- package/dist/{index-CNxvakYX.js → index-Bb9d1Qcc.js} +1 -1
- package/dist/{index-Bao9EhFU.js → index-CnqZ1tak.js} +1 -1
- package/dist/{stock-BipLzZlr.js → stock-DcD5Tbqe.js} +1 -1
- package/dist/{supplier-Bi1zyqXc.js → supplier-njZB-A08.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B_an8zOX.js → use-ingredient-select-dialog-CFxbHyQu.js} +1 -1
- package/dist/{use-inventory-binding-dialog-nf05eODU.js → use-inventory-binding-dialog-CtvdrDNH.js} +1 -1
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +157 -12
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as Y, mergeModels as
|
|
1
|
+
import { defineComponent as Y, mergeModels as Te, useModel as Se, onMounted as pe, ref as M, computed as _, resolveComponent as F, openBlock as I, createElementBlock as V, createElementVNode as a, toDisplayString as T, unref as S, createVNode as h, createBlock as U, withCtx as O, Fragment as J, renderList as W, normalizeClass as q, normalizeStyle as je, createSlots as se, createCommentVNode as z, withModifiers as _e, reactive as ve, watch as ge, isRef as ae, Teleport as ce, h as D, createTextVNode as P, watchEffect as ze } from "vue";
|
|
2
2
|
import { E as He } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import { b1 as Ue, aQ as Xe, f as te, u as $, b2 as Qe, b as ie,
|
|
3
|
+
import { b1 as Ue, aQ as Xe, f as te, u as $, b2 as Qe, b as ie, aC as de, j as Ye, aY as me, a5 as ye, a6 as Ae, a as be, a3 as Je, T as G, a0 as we, b3 as ke, aI as Be, aU as Ce, v as Ee, z as Fe, a1 as ue, c as Le, _ as Ke, E as Pe } from "./app-Bcq0U90V.js";
|
|
4
4
|
import { useDialogChild as qe, useDialog as re, useProxiedModel as le, useSnackbar as ee, useBreakpoints as Ve, components as ne } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as Z, useCoreStore as oe } from "@feedmepos/mf-common";
|
|
6
|
-
import { a as Ze, b as Ge, c as We, u as $e } from "./index-
|
|
7
|
-
import { _ as et, F as tt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { F as Ne } from "./FmAdminBadge-
|
|
6
|
+
import { a as Ze, b as Ge, c as We, u as $e } from "./index-Bb9d1Qcc.js";
|
|
7
|
+
import { _ as et, F as tt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-m_DVEWZp.js";
|
|
8
|
+
import { F as Ne } from "./FmAdminBadge-phxApe08.js";
|
|
9
9
|
const nt = "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 De = { exports: {} };
|
|
11
11
|
(function(C, y) {
|
|
@@ -94,7 +94,7 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
94
94
|
class: "w-full py-16 text-fm-color-typo-disabled fm-typo-en-body-md-400 text-center"
|
|
95
95
|
}, Me = /* @__PURE__ */ Y({
|
|
96
96
|
__name: "FmNestedMultiselectDialog",
|
|
97
|
-
props: /* @__PURE__ */
|
|
97
|
+
props: /* @__PURE__ */ Te({
|
|
98
98
|
modelValue: {}
|
|
99
99
|
}, {
|
|
100
100
|
modelValue: {},
|
|
@@ -116,27 +116,27 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
116
116
|
function i(e) {
|
|
117
117
|
return t(e) ? !0 : K(e) ? e.children.some(i) : !1;
|
|
118
118
|
}
|
|
119
|
-
function b(e,
|
|
119
|
+
function b(e, l) {
|
|
120
120
|
if (!r.value)
|
|
121
121
|
return !0;
|
|
122
122
|
const [B, ...L] = e;
|
|
123
123
|
if (typeof B != "number")
|
|
124
124
|
return !1;
|
|
125
|
-
const N =
|
|
125
|
+
const N = l[B];
|
|
126
126
|
return he(
|
|
127
127
|
r.value,
|
|
128
128
|
N.sublabel ? [N.label, N.sublabel] : [N.label]
|
|
129
129
|
) ? !0 : L.length === 0 ? i(N) : K(N) ? b(L, N.children) : !1;
|
|
130
130
|
}
|
|
131
|
-
function w(e,
|
|
131
|
+
function w(e, l, B = 0, L = !1) {
|
|
132
132
|
if (K(e) && e.children.length) {
|
|
133
133
|
const { children: N, ...H } = e, X = N.flatMap(
|
|
134
|
-
(R,
|
|
134
|
+
(R, j) => w(R, [...l, j], B + 1, L || e.disabled)
|
|
135
135
|
);
|
|
136
136
|
return [
|
|
137
137
|
{
|
|
138
138
|
...H,
|
|
139
|
-
keys:
|
|
139
|
+
keys: l,
|
|
140
140
|
indent: B,
|
|
141
141
|
collapsible: !0,
|
|
142
142
|
disabled: L || e.disabled
|
|
@@ -147,7 +147,7 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
147
147
|
return [
|
|
148
148
|
{
|
|
149
149
|
...e,
|
|
150
|
-
keys:
|
|
150
|
+
keys: l,
|
|
151
151
|
indent: B,
|
|
152
152
|
collapsible: !1,
|
|
153
153
|
disabled: L || e.disabled
|
|
@@ -155,43 +155,43 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
155
155
|
];
|
|
156
156
|
}
|
|
157
157
|
const f = _(() => y.value.flatMap(
|
|
158
|
-
(e,
|
|
158
|
+
(e, l) => w(e, [l]).filter((B) => b(B.keys, y.value))
|
|
159
159
|
));
|
|
160
160
|
function m(e) {
|
|
161
161
|
if (K(e)) {
|
|
162
162
|
if (i(e)) {
|
|
163
|
-
const
|
|
164
|
-
return
|
|
163
|
+
const l = t(e) ? e.children : e.children.filter(i);
|
|
164
|
+
return l.length === 0 ? !1 : l.every(m);
|
|
165
165
|
}
|
|
166
166
|
return e.children.every(m);
|
|
167
167
|
}
|
|
168
168
|
return e.active ?? !1;
|
|
169
169
|
}
|
|
170
|
-
function s(e,
|
|
170
|
+
function s(e, l) {
|
|
171
171
|
const [B, ...L] = e;
|
|
172
172
|
if (typeof B != "number")
|
|
173
173
|
return !1;
|
|
174
|
-
const N =
|
|
174
|
+
const N = l[B];
|
|
175
175
|
return L.length === 0 ? m(N ?? []) : K(N) ? s(L, N.children ?? []) : !1;
|
|
176
176
|
}
|
|
177
177
|
function u(e) {
|
|
178
178
|
if (K(e)) {
|
|
179
179
|
if (i(e)) {
|
|
180
|
-
const
|
|
181
|
-
return
|
|
180
|
+
const l = t(e) ? e.children : e.children.filter(i);
|
|
181
|
+
return l.length === 0 ? !1 : l.some(m) && !l.every(m);
|
|
182
182
|
}
|
|
183
183
|
return !1;
|
|
184
184
|
}
|
|
185
185
|
return !1;
|
|
186
186
|
}
|
|
187
|
-
function x(e,
|
|
187
|
+
function x(e, l) {
|
|
188
188
|
const [B, ...L] = e;
|
|
189
189
|
if (typeof B != "number")
|
|
190
190
|
return !1;
|
|
191
|
-
const N =
|
|
191
|
+
const N = l[B];
|
|
192
192
|
return L.length === 0 ? u(N ?? []) : K(N) ? x(L, (N == null ? void 0 : N.children) ?? []) : !1;
|
|
193
193
|
}
|
|
194
|
-
function E(e,
|
|
194
|
+
function E(e, l) {
|
|
195
195
|
if (e.disabled)
|
|
196
196
|
return e;
|
|
197
197
|
if (K(e)) {
|
|
@@ -199,22 +199,22 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
199
199
|
const B = t(e) ? e.children : e.children.filter(i);
|
|
200
200
|
return {
|
|
201
201
|
...e,
|
|
202
|
-
children: e.children.map((L) => B.find((H) => Xe(H.value, L.value)) ? E(L,
|
|
202
|
+
children: e.children.map((L) => B.find((H) => Xe(H.value, L.value)) ? E(L, l) : L)
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
205
|
return {
|
|
206
206
|
...e,
|
|
207
|
-
children: e.children.map((B) => E(B,
|
|
207
|
+
children: e.children.map((B) => E(B, l))
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
210
|
return {
|
|
211
211
|
...e,
|
|
212
|
-
active:
|
|
212
|
+
active: l
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
function k(e,
|
|
215
|
+
function k(e, l, B) {
|
|
216
216
|
const [L, ...N] = e;
|
|
217
|
-
return typeof L != "number" ?
|
|
217
|
+
return typeof L != "number" ? l : N.length === 0 ? l.map((H, X) => L !== X ? H : E(H, B)) : l.map(
|
|
218
218
|
(H, X) => L === X && K(H) ? {
|
|
219
219
|
...H,
|
|
220
220
|
children: k(N, H.children, B)
|
|
@@ -223,32 +223,32 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
223
223
|
}
|
|
224
224
|
const g = M(new Array());
|
|
225
225
|
function p(e) {
|
|
226
|
-
const
|
|
227
|
-
return g.value.find((B) =>
|
|
226
|
+
const l = e.join();
|
|
227
|
+
return g.value.find((B) => l === B);
|
|
228
228
|
}
|
|
229
229
|
function d(e) {
|
|
230
|
-
const
|
|
231
|
-
p(e) ? g.value = g.value.filter((B) => B !==
|
|
230
|
+
const l = e.join();
|
|
231
|
+
p(e) ? g.value = g.value.filter((B) => B !== l) : g.value = [...g.value, l];
|
|
232
232
|
}
|
|
233
233
|
function c(e) {
|
|
234
|
-
const
|
|
235
|
-
return g.value.find((B) =>
|
|
234
|
+
const l = e.join();
|
|
235
|
+
return g.value.find((B) => l.startsWith(B) && l !== B);
|
|
236
236
|
}
|
|
237
237
|
const A = _(
|
|
238
238
|
() => f.value.filter((e) => b(e.keys, y.value) && e.active).length
|
|
239
239
|
);
|
|
240
|
-
function v(e,
|
|
241
|
-
y.value = k(e,
|
|
240
|
+
function v(e, l, B) {
|
|
241
|
+
y.value = k(e, l, B), o.emitData(y.value);
|
|
242
242
|
}
|
|
243
|
-
return (e,
|
|
243
|
+
return (e, l) => {
|
|
244
244
|
const B = F("FmSearch"), L = F("FmCheckbox"), N = F("FmButton"), H = F("FmListItem"), X = F("FmList");
|
|
245
245
|
return I(), V("div", at, [
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
246
|
+
a("div", lt, [
|
|
247
|
+
a("div", it, T(S(n)("inventory.formField.itemsSelected", { count: A.value })), 1),
|
|
248
|
+
a("div", rt, [
|
|
249
249
|
h(B, {
|
|
250
250
|
modelValue: r.value,
|
|
251
|
-
"onUpdate:modelValue":
|
|
251
|
+
"onUpdate:modelValue": l[0] || (l[0] = (R) => r.value = R),
|
|
252
252
|
placeholder: S(n)("inventory.formField.filterItems")
|
|
253
253
|
}, null, 8, ["modelValue", "placeholder"])
|
|
254
254
|
])
|
|
@@ -269,7 +269,7 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
269
269
|
h(H, {
|
|
270
270
|
clickable: R.selectable !== !1,
|
|
271
271
|
onClick: () => R.selectable === !1 || R.disabled || v(R.keys, y.value, !s(R.keys, y.value)),
|
|
272
|
-
style:
|
|
272
|
+
style: je({
|
|
273
273
|
paddingLeft: `${16 + R.indent * 16}px`,
|
|
274
274
|
paddingTop: "4px",
|
|
275
275
|
paddingBottom: "4px"
|
|
@@ -277,14 +277,14 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
277
277
|
disabled: R.selectable !== !1 && R.disabled
|
|
278
278
|
}, se({
|
|
279
279
|
default: O(() => [
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
(I(!0), V(J, null, W(S(st)(r.value, R.label).segments, (
|
|
280
|
+
a("div", ct, [
|
|
281
|
+
a("div", dt, [
|
|
282
|
+
(I(!0), V(J, null, W(S(st)(r.value, R.label).segments, (j, Q) => (I(), V("span", {
|
|
283
283
|
key: Q,
|
|
284
284
|
class: q({
|
|
285
|
-
"font-bold":
|
|
285
|
+
"font-bold": j.isMatch
|
|
286
286
|
})
|
|
287
|
-
}, j
|
|
287
|
+
}, T(j.segment), 3))), 128))
|
|
288
288
|
]),
|
|
289
289
|
R.sublabel ? (I(), V("div", {
|
|
290
290
|
key: 0,
|
|
@@ -292,7 +292,7 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
292
292
|
"fm-typo-en-body-sm-400",
|
|
293
293
|
R.disabled ? "" : "text-fm-color-typo-secondary"
|
|
294
294
|
])
|
|
295
|
-
},
|
|
295
|
+
}, T(R.sublabel), 3)) : z("", !0)
|
|
296
296
|
])
|
|
297
297
|
]),
|
|
298
298
|
_: 2
|
|
@@ -325,7 +325,7 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
325
325
|
], 10, ut))), 128))
|
|
326
326
|
]),
|
|
327
327
|
_: 1
|
|
328
|
-
})) : (I(), V("div", mt,
|
|
328
|
+
})) : (I(), V("div", mt, T(S(n)("inventory.formField.noItemsFound")), 1))
|
|
329
329
|
]);
|
|
330
330
|
};
|
|
331
331
|
}
|
|
@@ -432,12 +432,12 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
432
432
|
x.forEach((p) => {
|
|
433
433
|
g(p, (d) => {
|
|
434
434
|
var e;
|
|
435
|
-
if (o.groups.find(({ _id:
|
|
436
|
-
const A = i.value.find(({ selection:
|
|
435
|
+
if (o.groups.find(({ _id: l }) => l === d.value)) return;
|
|
436
|
+
const A = i.value.find(({ selection: l }) => l === d.value), v = k.find(({ selection: l }) => d.value === l);
|
|
437
437
|
!K(d) && d.active && v === void 0 && k.push({
|
|
438
438
|
addonGroupId: (A == null ? void 0 : A.groupId) ?? "",
|
|
439
439
|
selection: d.value,
|
|
440
|
-
code: ((e = E.find(({ selection:
|
|
440
|
+
code: ((e = E.find(({ selection: l }) => d.value === l)) == null ? void 0 : e.code) ?? ""
|
|
441
441
|
});
|
|
442
442
|
});
|
|
443
443
|
}), r("update:modifiers", k);
|
|
@@ -447,8 +447,8 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
447
447
|
return (s, u) => {
|
|
448
448
|
const x = F("FmButton"), E = F("FmTextField");
|
|
449
449
|
return I(), V("div", ft, [
|
|
450
|
-
|
|
451
|
-
|
|
450
|
+
a("div", pt, [
|
|
451
|
+
a("div", vt, T(S(m)("inventory.integration.apply.addons")), 1),
|
|
452
452
|
h(x, {
|
|
453
453
|
type: "button",
|
|
454
454
|
variant: "plain",
|
|
@@ -458,23 +458,23 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
458
458
|
onClick: u[0] || (u[0] = (k) => f())
|
|
459
459
|
}, null, 8, ["label"])
|
|
460
460
|
]),
|
|
461
|
-
|
|
461
|
+
a("div", null, [
|
|
462
462
|
t.value.length > 0 ? (I(), V("table", gt, [
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
u[1] || (u[1] =
|
|
463
|
+
a("tr", yt, [
|
|
464
|
+
a("th", At, T(S(m)("inventory.integration.apply.name")), 1),
|
|
465
|
+
a("th", null, T(S(m)("inventory.integration.apply.code")), 1),
|
|
466
|
+
u[1] || (u[1] = a("th", { class: "w-1" }, " ", -1))
|
|
467
467
|
]),
|
|
468
468
|
(I(!0), V(J, null, W(t.value, (k, g) => (I(), V(J, { key: g }, [
|
|
469
|
-
u[2] || (u[2] =
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
k.groupName ? (I(), V("div", xt,
|
|
469
|
+
u[2] || (u[2] = a("tr", { class: "block h-8" }, null, -1)),
|
|
470
|
+
a("tr", null, [
|
|
471
|
+
a("td", null, [
|
|
472
|
+
a("div", bt, [
|
|
473
|
+
a("div", ht, T(k.name), 1),
|
|
474
|
+
k.groupName ? (I(), V("div", xt, T(k.groupName), 1)) : z("", !0)
|
|
475
475
|
])
|
|
476
476
|
]),
|
|
477
|
-
|
|
477
|
+
a("td", null, [
|
|
478
478
|
h(E, {
|
|
479
479
|
disabled: C.loading,
|
|
480
480
|
"model-value": k.code,
|
|
@@ -486,7 +486,7 @@ const at = { class: "flex flex-col gap-12 h-[350px]" }, lt = { class: "flex item
|
|
|
486
486
|
]
|
|
487
487
|
}, null, 8, ["disabled", "model-value", "onUpdate:modelValue", "rules"])
|
|
488
488
|
]),
|
|
489
|
-
|
|
489
|
+
a("td", It, [
|
|
490
490
|
h(x, {
|
|
491
491
|
disabled: C.loading,
|
|
492
492
|
type: "button",
|
|
@@ -612,11 +612,11 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
612
612
|
});
|
|
613
613
|
const p = b.value.flatMap((d) => d.items);
|
|
614
614
|
return o.bindings.map((d) => {
|
|
615
|
-
var
|
|
615
|
+
var l;
|
|
616
616
|
const c = p.find((B) => B._id === d.productId), A = (c == null ? void 0 : c.name) ?? "-";
|
|
617
617
|
let v = (c == null ? void 0 : c.code) ?? "-", e;
|
|
618
618
|
if (d.combinationKey) {
|
|
619
|
-
const B = (((
|
|
619
|
+
const B = (((l = c == null ? void 0 : c.variant) == null ? void 0 : l.variantCombinations) || []).find(
|
|
620
620
|
(L) => L.combinationKey === d.combinationKey
|
|
621
621
|
);
|
|
622
622
|
e = (B == null ? void 0 : B.name) ?? (B == null ? void 0 : B.codeName) ?? "", v = (B == null ? void 0 : B.code) ?? v;
|
|
@@ -674,7 +674,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
674
674
|
},
|
|
675
675
|
sublabel: "Variant",
|
|
676
676
|
active: !!o.bindings.find(
|
|
677
|
-
({ productId: e, combinationKey:
|
|
677
|
+
({ productId: e, combinationKey: l }) => d._id === e && v.combinationKey === l
|
|
678
678
|
)
|
|
679
679
|
}))
|
|
680
680
|
]
|
|
@@ -704,9 +704,9 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
704
704
|
return p.flatMap((c) => c.children.flatMap((A) => {
|
|
705
705
|
var e;
|
|
706
706
|
if (K(A))
|
|
707
|
-
return A.children.filter((
|
|
707
|
+
return A.children.filter((l) => l.active).map((l) => {
|
|
708
708
|
var N, H;
|
|
709
|
-
const { productId: B, combinationKey: L } =
|
|
709
|
+
const { productId: B, combinationKey: L } = l.value;
|
|
710
710
|
return L ? {
|
|
711
711
|
productId: B,
|
|
712
712
|
combinationKey: L,
|
|
@@ -724,7 +724,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
724
724
|
return [
|
|
725
725
|
{
|
|
726
726
|
productId: v,
|
|
727
|
-
code: ((e = d.find(({ productId:
|
|
727
|
+
code: ((e = d.find(({ productId: l, combinationKey: B }) => v === l && !B)) == null ? void 0 : e.code) ?? ""
|
|
728
728
|
}
|
|
729
729
|
];
|
|
730
730
|
}));
|
|
@@ -764,8 +764,8 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
764
764
|
return (p, d) => {
|
|
765
765
|
const c = F("FmButton"), A = F("FmTextField");
|
|
766
766
|
return I(), V("div", Ct, [
|
|
767
|
-
|
|
768
|
-
|
|
767
|
+
a("div", Et, [
|
|
768
|
+
a("div", Ft, T(C.isAddon ? S(g)("inventory.integration.apply.addons") : S(g)("inventory.integration.apply.products")), 1),
|
|
769
769
|
h(c, {
|
|
770
770
|
type: "button",
|
|
771
771
|
variant: "plain",
|
|
@@ -775,29 +775,29 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
775
775
|
onClick: d[0] || (d[0] = (v) => k())
|
|
776
776
|
}, null, 8, ["label"])
|
|
777
777
|
]),
|
|
778
|
-
|
|
778
|
+
a("div", null, [
|
|
779
779
|
w.value.length > 0 ? (I(), V("table", Lt, [
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
d[1] || (d[1] =
|
|
780
|
+
a("thead", null, [
|
|
781
|
+
a("tr", Vt, [
|
|
782
|
+
a("th", Nt, T(S(g)("inventory.integration.apply.name")), 1),
|
|
783
|
+
a("th", null, T(S(g)("inventory.integration.apply.code")), 1),
|
|
784
|
+
d[1] || (d[1] = a("th", { class: "w-1" }, " ", -1))
|
|
785
785
|
])
|
|
786
786
|
]),
|
|
787
|
-
|
|
787
|
+
a("tbody", null, [
|
|
788
788
|
(I(!0), V(J, null, W(w.value, (v, e) => (I(), V(J, { key: e }, [
|
|
789
|
-
d[2] || (d[2] =
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
v.variantName ? (I(), V("div", Mt,
|
|
789
|
+
d[2] || (d[2] = a("tr", { class: "block h-8" }, null, -1)),
|
|
790
|
+
a("tr", null, [
|
|
791
|
+
a("td", null, [
|
|
792
|
+
a("div", Dt, [
|
|
793
|
+
a("div", Ot, T(v.itemCode) + " " + T(v.name), 1),
|
|
794
|
+
v.variantName ? (I(), V("div", Mt, T(v.variantName), 1)) : z("", !0)
|
|
795
795
|
])
|
|
796
796
|
]),
|
|
797
|
-
|
|
797
|
+
a("td", null, [
|
|
798
798
|
h(A, {
|
|
799
799
|
"model-value": v.code,
|
|
800
|
-
"onUpdate:modelValue": [(
|
|
800
|
+
"onUpdate:modelValue": [(l) => v.code = l, (l) => m(v, l)],
|
|
801
801
|
rules: [
|
|
802
802
|
function(B) {
|
|
803
803
|
return !!B || "Required";
|
|
@@ -805,14 +805,14 @@ const Ct = { 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
|
-
|
|
808
|
+
a("td", Rt, [
|
|
809
809
|
h(c, {
|
|
810
810
|
type: "button",
|
|
811
811
|
variant: "tertiary",
|
|
812
812
|
icon: "delete",
|
|
813
813
|
"icon-color": "#000000",
|
|
814
814
|
size: "md",
|
|
815
|
-
onClick: (
|
|
815
|
+
onClick: (l) => f(v)
|
|
816
816
|
}, null, 8, ["onClick"])
|
|
817
817
|
])
|
|
818
818
|
])
|
|
@@ -823,7 +823,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
823
823
|
]);
|
|
824
824
|
};
|
|
825
825
|
}
|
|
826
|
-
}),
|
|
826
|
+
}), Tt = { class: "flex flex-col gap-8 w-full" }, jt = /* @__PURE__ */ Y({
|
|
827
827
|
__name: "ApplyProductDialog",
|
|
828
828
|
props: {
|
|
829
829
|
categories: { default: () => [] },
|
|
@@ -862,8 +862,8 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
862
862
|
"max-width": 500
|
|
863
863
|
}, {
|
|
864
864
|
default: O(() => [
|
|
865
|
-
|
|
866
|
-
|
|
865
|
+
a("div", Tt, [
|
|
866
|
+
a("div", null, [
|
|
867
867
|
h(u, { label: "Menu v3" })
|
|
868
868
|
]),
|
|
869
869
|
h(x, {
|
|
@@ -955,8 +955,8 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
955
955
|
"max-width": 500
|
|
956
956
|
}, {
|
|
957
957
|
default: O(() => [
|
|
958
|
-
|
|
959
|
-
|
|
958
|
+
a("div", _t, [
|
|
959
|
+
a("div", null, [
|
|
960
960
|
h(d, { label: "Menu v4" })
|
|
961
961
|
]),
|
|
962
962
|
h(c, {
|
|
@@ -1045,20 +1045,20 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1045
1045
|
"cursor-pointer": !0,
|
|
1046
1046
|
"hover:border-fm-color-primary": !0
|
|
1047
1047
|
}),
|
|
1048
|
-
onClick: A[0] || (A[0] = (
|
|
1048
|
+
onClick: A[0] || (A[0] = (l) => x())
|
|
1049
1049
|
}, {
|
|
1050
1050
|
default: O(() => [
|
|
1051
1051
|
h(v, null, {
|
|
1052
1052
|
default: O(() => [
|
|
1053
|
-
|
|
1054
|
-
|
|
1053
|
+
a("div", Ut, [
|
|
1054
|
+
a("img", {
|
|
1055
1055
|
src: S(nt),
|
|
1056
1056
|
alt: "Food Market Hub"
|
|
1057
1057
|
}, null, 8, Xt)
|
|
1058
1058
|
]),
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1059
|
+
a("div", Qt, [
|
|
1060
|
+
a("div", Yt, T(S(d)("inventory.integration.fmh.title")), 1),
|
|
1061
|
+
a("div", Jt, T(S(d)("inventory.integration.fmh.description")), 1)
|
|
1062
1062
|
])
|
|
1063
1063
|
]),
|
|
1064
1064
|
_: 1
|
|
@@ -1068,30 +1068,30 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1068
1068
|
}, 8, ["class"]),
|
|
1069
1069
|
S(t).state.setting ? (I(), V("div", Kt, [
|
|
1070
1070
|
(I(), U(ce, { to: "body" }, [
|
|
1071
|
-
s.value === "v3" ? (I(), U(
|
|
1071
|
+
s.value === "v3" ? (I(), U(jt, {
|
|
1072
1072
|
key: 0,
|
|
1073
1073
|
menus: i.value,
|
|
1074
1074
|
variants: w.value,
|
|
1075
1075
|
categories: f.value,
|
|
1076
1076
|
setting: S(t).state.setting,
|
|
1077
|
-
"onUpdate:setting": A[1] || (A[1] = (
|
|
1077
|
+
"onUpdate:setting": A[1] || (A[1] = (l) => S(t).state.setting = l),
|
|
1078
1078
|
show: u.value,
|
|
1079
|
-
"onUpdate:show": A[2] || (A[2] = (
|
|
1079
|
+
"onUpdate:show": A[2] || (A[2] = (l) => u.value = l),
|
|
1080
1080
|
groups: b.value,
|
|
1081
1081
|
loading: n.value,
|
|
1082
|
-
onSubmit: A[3] || (A[3] = (
|
|
1082
|
+
onSubmit: A[3] || (A[3] = (l) => p())
|
|
1083
1083
|
}, null, 8, ["menus", "variants", "categories", "setting", "show", "groups", "loading"])) : (I(), U(zt, {
|
|
1084
1084
|
key: 1,
|
|
1085
1085
|
menus: i.value,
|
|
1086
1086
|
variants: w.value,
|
|
1087
1087
|
categories: f.value,
|
|
1088
1088
|
setting: S(t).state.setting,
|
|
1089
|
-
"onUpdate:setting": A[4] || (A[4] = (
|
|
1089
|
+
"onUpdate:setting": A[4] || (A[4] = (l) => S(t).state.setting = l),
|
|
1090
1090
|
show: u.value,
|
|
1091
|
-
"onUpdate:show": A[5] || (A[5] = (
|
|
1091
|
+
"onUpdate:show": A[5] || (A[5] = (l) => u.value = l),
|
|
1092
1092
|
groups: b.value,
|
|
1093
1093
|
loading: n.value,
|
|
1094
|
-
onSubmit: A[6] || (A[6] = (
|
|
1094
|
+
onSubmit: A[6] || (A[6] = (l) => p())
|
|
1095
1095
|
}, null, 8, ["menus", "variants", "categories", "setting", "show", "groups", "loading"]))
|
|
1096
1096
|
]))
|
|
1097
1097
|
])) : z("", !0)
|
|
@@ -1123,7 +1123,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1123
1123
|
return (t, i) => {
|
|
1124
1124
|
const b = F("FmSelect"), w = F("FmButton"), f = F("FmIcon");
|
|
1125
1125
|
return I(), V("div", Zt, [
|
|
1126
|
-
|
|
1126
|
+
a("div", Gt, [
|
|
1127
1127
|
h(b, {
|
|
1128
1128
|
placeholder: "Select NetSuite Location",
|
|
1129
1129
|
items: t.nsLocationOptions,
|
|
@@ -1153,10 +1153,10 @@ const Ct = { 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", en, [
|
|
1157
|
+
a("span", tn, T(r.value.name), 1),
|
|
1158
|
+
a("span", nn, "ID: " + T(r.value.netsuiteId), 1),
|
|
1159
|
+
a("span", on, "Subsidiary: " + T(r.value.subsidiaryName), 1)
|
|
1160
1160
|
])
|
|
1161
1161
|
])) : z("", !0)
|
|
1162
1162
|
]);
|
|
@@ -1261,7 +1261,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1261
1261
|
"max-width": "900px"
|
|
1262
1262
|
}, {
|
|
1263
1263
|
"dialog-header": O(() => E[3] || (E[3] = [
|
|
1264
|
-
|
|
1264
|
+
a("div", null, "Add locations", -1)
|
|
1265
1265
|
])),
|
|
1266
1266
|
"dialog-footer": O(() => [
|
|
1267
1267
|
h(p, { class: "sm:hidden xs:hidden" }),
|
|
@@ -1350,7 +1350,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1350
1350
|
cell(d) {
|
|
1351
1351
|
var e;
|
|
1352
1352
|
const c = d.row.original, A = (e = t.nsLocations.find(
|
|
1353
|
-
(
|
|
1353
|
+
(l) => l.netsuiteId === c.netSuiteId
|
|
1354
1354
|
)) == null ? void 0 : e.subsidiaryName, v = D(ne.FmIcon, {
|
|
1355
1355
|
name: "cloud",
|
|
1356
1356
|
color: "neutral-gray-400",
|
|
@@ -1385,7 +1385,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1385
1385
|
(d) => !t.setting.locations.some((c) => c.netSuiteId === d.netsuiteId)
|
|
1386
1386
|
));
|
|
1387
1387
|
return (d, c) => {
|
|
1388
|
-
const A = F("FmChip"), v = F("FmSearch"), e = F("FmTable"),
|
|
1388
|
+
const A = F("FmChip"), v = F("FmSearch"), e = F("FmTable"), l = F("FmButton"), B = F("FmSideSheet");
|
|
1389
1389
|
return I(), U(B, {
|
|
1390
1390
|
modelValue: S(f),
|
|
1391
1391
|
"onUpdate:modelValue": c[6] || (c[6] = (L) => ae(f) ? f.value = L : null),
|
|
@@ -1398,17 +1398,17 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1398
1398
|
var L;
|
|
1399
1399
|
return [
|
|
1400
1400
|
(L = S(o).sessionUser.value) != null && L.role.isAdmin ? (I(), V("div", rn, [
|
|
1401
|
-
c[7] || (c[7] =
|
|
1402
|
-
|
|
1401
|
+
c[7] || (c[7] = a("div", { class: "text-sm" }, " This integration keeps your FeedMe system and NetSuite in sync for the following modules: ", -1)),
|
|
1402
|
+
a("div", un, [
|
|
1403
1403
|
(I(), V(J, null, W(k, (N) => h(A, {
|
|
1404
1404
|
key: N,
|
|
1405
1405
|
label: N,
|
|
1406
1406
|
compact: ""
|
|
1407
1407
|
}, null, 8, ["label"])), 64))
|
|
1408
1408
|
]),
|
|
1409
|
-
c[8] || (c[8] =
|
|
1410
|
-
c[9] || (c[9] =
|
|
1411
|
-
|
|
1409
|
+
c[8] || (c[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
|
+
c[9] || (c[9] = a("hr", { class: "my-3" }, null, -1)),
|
|
1411
|
+
a("div", cn, [
|
|
1412
1412
|
h(v, {
|
|
1413
1413
|
placeholder: "Search by [NetSuite Location]",
|
|
1414
1414
|
class: "w-[300px]",
|
|
@@ -1438,14 +1438,14 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1438
1438
|
];
|
|
1439
1439
|
}),
|
|
1440
1440
|
"side-sheet-footer": O(() => [
|
|
1441
|
-
|
|
1442
|
-
h(
|
|
1441
|
+
a("div", dn, [
|
|
1442
|
+
h(l, {
|
|
1443
1443
|
label: "Add location",
|
|
1444
1444
|
onClick: c[4] || (c[4] = (L) => n.value = !0),
|
|
1445
1445
|
loading: d.loading,
|
|
1446
1446
|
disabled: d.loading
|
|
1447
1447
|
}, null, 8, ["loading", "disabled"]),
|
|
1448
|
-
h(
|
|
1448
|
+
h(l, {
|
|
1449
1449
|
variant: "tertiary",
|
|
1450
1450
|
label: S(E)("common.close"),
|
|
1451
1451
|
onClick: c[5] || (c[5] = (L) => i("update:show", !1))
|
|
@@ -1717,8 +1717,8 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1717
1717
|
return (m, s) => {
|
|
1718
1718
|
const u = F("FmButton"), x = F("FmTable");
|
|
1719
1719
|
return I(), V(J, null, [
|
|
1720
|
-
|
|
1721
|
-
s[1] || (s[1] =
|
|
1720
|
+
a("div", pn, [
|
|
1721
|
+
s[1] || (s[1] = a("span", null, "Last 30 Days:", -1)),
|
|
1722
1722
|
h(u, {
|
|
1723
1723
|
"prepend-icon": "sync",
|
|
1724
1724
|
variant: "secondary",
|
|
@@ -1765,7 +1765,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1765
1765
|
return x.nsLocations.map((e) => ({
|
|
1766
1766
|
label: e.name,
|
|
1767
1767
|
value: e,
|
|
1768
|
-
disabled: v.some((
|
|
1768
|
+
disabled: v.some((l) => l.netSuiteId === e.netsuiteId) || e.subsidiaryId !== (A == null ? void 0 : A.subsidiaryId)
|
|
1769
1769
|
}));
|
|
1770
1770
|
}), k = _({
|
|
1771
1771
|
get() {
|
|
@@ -1787,8 +1787,8 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1787
1787
|
},
|
|
1788
1788
|
set(A) {
|
|
1789
1789
|
if (!A) return;
|
|
1790
|
-
const [v, e] = A.split(":").map(Number),
|
|
1791
|
-
|
|
1790
|
+
const [v, e] = A.split(":").map(Number), l = s.value ?? /* @__PURE__ */ new Date();
|
|
1791
|
+
l.setHours(v, e), s.value = new Date(l);
|
|
1792
1792
|
}
|
|
1793
1793
|
}), p = _(() => k.value && g.value && u.value && b.value.length > 0 && !m.value);
|
|
1794
1794
|
async function d() {
|
|
@@ -1823,14 +1823,14 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1823
1823
|
}
|
|
1824
1824
|
}
|
|
1825
1825
|
function c() {
|
|
1826
|
-
const A = o.currentLocationSubsidiary(), v = o.getAvailableItems(A.id), e = r.skus.filter((L) => v.includes(L._id)).map((L) => L._id),
|
|
1826
|
+
const A = o.currentLocationSubsidiary(), v = o.getAvailableItems(A.id), e = r.skus.filter((L) => v.includes(L._id)).map((L) => L._id), l = r.skus.map(
|
|
1827
1827
|
(L) => ({
|
|
1828
1828
|
label: L.name,
|
|
1829
1829
|
sublabel: L.code,
|
|
1830
1830
|
value: L,
|
|
1831
1831
|
disabled: !e.includes(L._id)
|
|
1832
1832
|
})
|
|
1833
|
-
), B =
|
|
1833
|
+
), B = l.filter((L) => {
|
|
1834
1834
|
var N;
|
|
1835
1835
|
return (N = b.value) == null ? void 0 : N.find((H) => H.sku._id === L.value._id);
|
|
1836
1836
|
}).map((L) => L.value);
|
|
@@ -1840,7 +1840,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1840
1840
|
contentComponent: Je,
|
|
1841
1841
|
contentComponentProps: {
|
|
1842
1842
|
modelValue: B,
|
|
1843
|
-
items:
|
|
1843
|
+
items: l,
|
|
1844
1844
|
virtualScroll: !0
|
|
1845
1845
|
},
|
|
1846
1846
|
primaryActions: {
|
|
@@ -1869,16 +1869,16 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1869
1869
|
});
|
|
1870
1870
|
}
|
|
1871
1871
|
return (A, v) => {
|
|
1872
|
-
const e = F("FmButtonGroup"),
|
|
1872
|
+
const e = F("FmButtonGroup"), l = F("FmLabel"), B = F("FmField"), L = F("FmSimpleDatePicker"), N = F("FmTimePicker"), H = F("FmSelect"), X = F("FmIcon"), R = F("FmButton");
|
|
1873
1873
|
return I(), V("div", gn, [
|
|
1874
1874
|
h(e, {
|
|
1875
1875
|
modelValue: f.value,
|
|
1876
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
1876
|
+
"onUpdate:modelValue": v[0] || (v[0] = (j) => f.value = j),
|
|
1877
1877
|
items: w
|
|
1878
1878
|
}, null, 8, ["modelValue"]),
|
|
1879
1879
|
f.value.label === "Transfer Out" ? (I(), V(J, { key: 0 }, [
|
|
1880
1880
|
S(o).inventoryTransferOutEnabled ? (I(), V("div", yn, [
|
|
1881
|
-
h(
|
|
1881
|
+
h(l, { class: "fm-typo-en-body-md-600" }, {
|
|
1882
1882
|
default: O(() => v[6] || (v[6] = [
|
|
1883
1883
|
P("Type")
|
|
1884
1884
|
])),
|
|
@@ -1894,7 +1894,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1894
1894
|
])),
|
|
1895
1895
|
_: 1
|
|
1896
1896
|
}),
|
|
1897
|
-
h(
|
|
1897
|
+
h(l, { class: "fm-typo-en-body-md-600" }, {
|
|
1898
1898
|
default: O(() => v[8] || (v[8] = [
|
|
1899
1899
|
P("Subsidiary")
|
|
1900
1900
|
])),
|
|
@@ -1906,11 +1906,11 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1906
1906
|
"prepend-icon": "lock"
|
|
1907
1907
|
}, {
|
|
1908
1908
|
default: O(() => [
|
|
1909
|
-
P(
|
|
1909
|
+
P(T(A.currentLocationSubsidiary.fullName), 1)
|
|
1910
1910
|
]),
|
|
1911
1911
|
_: 1
|
|
1912
1912
|
}),
|
|
1913
|
-
h(
|
|
1913
|
+
h(l, { class: "fm-typo-en-body-md-600" }, {
|
|
1914
1914
|
default: O(() => v[9] || (v[9] = [
|
|
1915
1915
|
P("Transaction date")
|
|
1916
1916
|
])),
|
|
@@ -1918,9 +1918,9 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1918
1918
|
}),
|
|
1919
1919
|
h(L, {
|
|
1920
1920
|
modelValue: k.value,
|
|
1921
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
1921
|
+
"onUpdate:modelValue": v[1] || (v[1] = (j) => k.value = j)
|
|
1922
1922
|
}, null, 8, ["modelValue"]),
|
|
1923
|
-
h(
|
|
1923
|
+
h(l, { class: "fm-typo-en-body-md-600" }, {
|
|
1924
1924
|
default: O(() => v[10] || (v[10] = [
|
|
1925
1925
|
P("Transaction time")
|
|
1926
1926
|
])),
|
|
@@ -1928,20 +1928,20 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1928
1928
|
}),
|
|
1929
1929
|
h(N, {
|
|
1930
1930
|
modelValue: g.value,
|
|
1931
|
-
"onUpdate:modelValue": v[2] || (v[2] = (
|
|
1931
|
+
"onUpdate:modelValue": v[2] || (v[2] = (j) => g.value = j)
|
|
1932
1932
|
}, null, 8, ["modelValue"]),
|
|
1933
|
-
h(
|
|
1933
|
+
h(l, { class: "fm-typo-en-body-md-600" }, {
|
|
1934
1934
|
default: O(() => v[11] || (v[11] = [
|
|
1935
1935
|
P("NetSuite Location")
|
|
1936
1936
|
])),
|
|
1937
1937
|
_: 1
|
|
1938
1938
|
}),
|
|
1939
|
-
|
|
1939
|
+
a("div", An, [
|
|
1940
1940
|
u.value ? z("", !0) : (I(), U(H, {
|
|
1941
1941
|
key: 0,
|
|
1942
1942
|
class: "my-4 w-full",
|
|
1943
1943
|
modelValue: u.value,
|
|
1944
|
-
"onUpdate:modelValue": v[3] || (v[3] = (
|
|
1944
|
+
"onUpdate:modelValue": v[3] || (v[3] = (j) => u.value = j),
|
|
1945
1945
|
searchable: "",
|
|
1946
1946
|
searchTarget: "label",
|
|
1947
1947
|
items: E.value
|
|
@@ -1954,20 +1954,20 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1954
1954
|
class: "mr-2",
|
|
1955
1955
|
outline: ""
|
|
1956
1956
|
}),
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1957
|
+
a("div", hn, [
|
|
1958
|
+
a("span", xn, T(u.value.name), 1),
|
|
1959
|
+
a("span", In, "ID: " + T(u.value.netsuiteId), 1),
|
|
1960
|
+
a("span", Sn, "Subsidiary: " + T(u.value.subsidiaryName), 1)
|
|
1961
1961
|
]),
|
|
1962
1962
|
h(R, {
|
|
1963
1963
|
class: "ml-2",
|
|
1964
1964
|
variant: "secondary",
|
|
1965
1965
|
label: "Clear",
|
|
1966
|
-
onClick: v[4] || (v[4] = (
|
|
1966
|
+
onClick: v[4] || (v[4] = (j) => u.value = null)
|
|
1967
1967
|
})
|
|
1968
1968
|
])) : z("", !0)
|
|
1969
1969
|
]),
|
|
1970
|
-
|
|
1970
|
+
a("div", wn, [
|
|
1971
1971
|
h(R, {
|
|
1972
1972
|
class: "ml-auto",
|
|
1973
1973
|
variant: "secondary",
|
|
@@ -1978,9 +1978,9 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1978
1978
|
]),
|
|
1979
1979
|
h(fn, {
|
|
1980
1980
|
modelValue: b.value,
|
|
1981
|
-
"onUpdate:modelValue": v[5] || (v[5] = (
|
|
1981
|
+
"onUpdate:modelValue": v[5] || (v[5] = (j) => b.value = j)
|
|
1982
1982
|
}, null, 8, ["modelValue"]),
|
|
1983
|
-
|
|
1983
|
+
a("div", kn, [
|
|
1984
1984
|
h(R, {
|
|
1985
1985
|
class: "ml-auto mt-4",
|
|
1986
1986
|
variant: "primary",
|
|
@@ -1992,7 +1992,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1992
1992
|
}, null, 8, ["disabled", "loading"])
|
|
1993
1993
|
])
|
|
1994
1994
|
])) : (I(), V("div", Bn, [
|
|
1995
|
-
h(
|
|
1995
|
+
h(l, { class: "fm-typo-en-body-md-600" }, {
|
|
1996
1996
|
default: O(() => v[12] || (v[12] = [
|
|
1997
1997
|
P(" Feature is not enabled. Please contact your administrator. ")
|
|
1998
1998
|
])),
|
|
@@ -2068,7 +2068,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2068
2068
|
return (f, m) => {
|
|
2069
2069
|
const s = F("FmButton");
|
|
2070
2070
|
return I(), V("div", Fn, [
|
|
2071
|
-
|
|
2071
|
+
a("span", null, "Current date and time: " + T((/* @__PURE__ */ new Date()).toLocaleString()), 1),
|
|
2072
2072
|
h(s, {
|
|
2073
2073
|
label: "Check Unsync Transfer Order (Last 2 months)",
|
|
2074
2074
|
variant: "primary",
|
|
@@ -2077,23 +2077,25 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2077
2077
|
loading: n.value
|
|
2078
2078
|
}, null, 8, ["disabled", "loading"]),
|
|
2079
2079
|
i.value.length > 0 ? (I(), V("div", Ln, [
|
|
2080
|
-
m[0] || (m[0] =
|
|
2081
|
-
|
|
2082
|
-
(I(!0), V(J, null, W(i.value, (u) => (I(), V("li", { key: u },
|
|
2080
|
+
m[0] || (m[0] = a("p", null, "Transfer Order NetSuite ID not match with existing orders", -1)),
|
|
2081
|
+
a("ul", Vn, [
|
|
2082
|
+
(I(!0), V(J, null, W(i.value, (u) => (I(), V("li", { key: u }, T(u), 1))), 128))
|
|
2083
2083
|
]),
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2084
|
+
a("div", null, [
|
|
2085
|
+
h(Ne, null, {
|
|
2086
|
+
default: O(() => [
|
|
2087
|
+
i.value.length > 0 ? (I(), U(s, {
|
|
2088
|
+
key: 0,
|
|
2089
|
+
label: "Sync now",
|
|
2090
|
+
variant: "destructive",
|
|
2091
|
+
onClick: w,
|
|
2092
|
+
disabled: n.value,
|
|
2093
|
+
loading: n.value
|
|
2094
|
+
}, null, 8, ["disabled", "loading"])) : z("", !0)
|
|
2095
|
+
]),
|
|
2096
|
+
_: 1
|
|
2097
|
+
})
|
|
2098
|
+
])
|
|
2097
2099
|
])) : z("", !0)
|
|
2098
2100
|
]);
|
|
2099
2101
|
};
|
|
@@ -2160,7 +2162,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2160
2162
|
return (f, m) => {
|
|
2161
2163
|
const s = F("FmButton");
|
|
2162
2164
|
return I(), V("div", Dn, [
|
|
2163
|
-
|
|
2165
|
+
a("span", null, "Current date and time: " + T((/* @__PURE__ */ new Date()).toLocaleString()), 1),
|
|
2164
2166
|
h(s, {
|
|
2165
2167
|
label: "Check Unsync Purchase Order (Last 2 months)",
|
|
2166
2168
|
variant: "primary",
|
|
@@ -2169,11 +2171,11 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2169
2171
|
loading: n.value
|
|
2170
2172
|
}, null, 8, ["disabled", "loading"]),
|
|
2171
2173
|
i.value.length > 0 ? (I(), V("div", On, [
|
|
2172
|
-
m[0] || (m[0] =
|
|
2173
|
-
|
|
2174
|
-
(I(!0), V(J, null, W(i.value, (u) => (I(), V("li", { key: u },
|
|
2174
|
+
m[0] || (m[0] = a("p", null, "Purchase Order NetSuite ID not match with existing orders", -1)),
|
|
2175
|
+
a("ul", Mn, [
|
|
2176
|
+
(I(!0), V(J, null, W(i.value, (u) => (I(), V("li", { key: u }, T(u), 1))), 128))
|
|
2175
2177
|
]),
|
|
2176
|
-
|
|
2178
|
+
a("div", null, [
|
|
2177
2179
|
h(Ne, null, {
|
|
2178
2180
|
default: O(() => [
|
|
2179
2181
|
i.value.length > 0 ? (I(), U(s, {
|
|
@@ -2192,7 +2194,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2192
2194
|
]);
|
|
2193
2195
|
};
|
|
2194
2196
|
}
|
|
2195
|
-
}),
|
|
2197
|
+
}), Tn = { class: "flex flex-col gap-8 w-full" }, jn = { class: "flex gap-4 justify-between" }, _n = { 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" }, zn = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, Hn = { key: 0 }, Un = { class: "flex gap-8 items-center justify-start" }, Xn = /* @__PURE__ */ Y({
|
|
2196
2198
|
__name: "NetSuiteSideSheet",
|
|
2197
2199
|
props: {
|
|
2198
2200
|
nsLocations: {},
|
|
@@ -2226,7 +2228,7 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2226
2228
|
const d = F("FmIcon"), c = F("FmTabs"), A = F("FmButton"), v = F("FmSideSheet");
|
|
2227
2229
|
return I(), U(v, {
|
|
2228
2230
|
modelValue: S(t),
|
|
2229
|
-
"onUpdate:modelValue": p[2] || (p[2] = (
|
|
2231
|
+
"onUpdate:modelValue": p[2] || (p[2] = (l) => ae(t) ? t.value = l : null),
|
|
2230
2232
|
header: "Data migration (Xilnex)",
|
|
2231
2233
|
"dismiss-away": "",
|
|
2232
2234
|
"close-button": "",
|
|
@@ -2251,11 +2253,11 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2251
2253
|
], 64)) : (I(), V("div", Hn, " Netsuite is not configured for this location. Please contact your administrator. "))
|
|
2252
2254
|
]),
|
|
2253
2255
|
"side-sheet-footer": O(() => [
|
|
2254
|
-
|
|
2256
|
+
a("div", Un, [
|
|
2255
2257
|
h(A, {
|
|
2256
2258
|
variant: "tertiary",
|
|
2257
2259
|
label: S(i)("common.close"),
|
|
2258
|
-
onClick: p[1] || (p[1] = (
|
|
2260
|
+
onClick: p[1] || (p[1] = (l) => b("update:show", !1))
|
|
2259
2261
|
}, null, 8, ["label"])
|
|
2260
2262
|
])
|
|
2261
2263
|
]),
|
|
@@ -2264,17 +2266,17 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2264
2266
|
(e = S(o).sessionUser.value) != null && e.role.isAdmin ? {
|
|
2265
2267
|
name: "side-sheet-header",
|
|
2266
2268
|
fn: O(() => {
|
|
2267
|
-
var
|
|
2269
|
+
var l;
|
|
2268
2270
|
return [
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
p[3] || (p[3] =
|
|
2272
|
-
|
|
2271
|
+
a("div", Tn, [
|
|
2272
|
+
a("div", jn, [
|
|
2273
|
+
p[3] || (p[3] = a("div", { class: "fm-typo-en-title-md-600" }, "NetSuite Integration", -1)),
|
|
2274
|
+
a("div", _n, [
|
|
2273
2275
|
h(d, {
|
|
2274
2276
|
name: S(f),
|
|
2275
2277
|
size: "sm"
|
|
2276
2278
|
}, null, 8, ["name"]),
|
|
2277
|
-
|
|
2279
|
+
a("div", zn, T((l = S(w)._currentLocation) == null ? void 0 : l.name), 1)
|
|
2278
2280
|
])
|
|
2279
2281
|
]),
|
|
2280
2282
|
h(c, {
|
|
@@ -2331,15 +2333,15 @@ const Ct = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2331
2333
|
default: O(() => [
|
|
2332
2334
|
h(m, null, {
|
|
2333
2335
|
default: O(() => [
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
+
a("div", Qn, [
|
|
2337
|
+
a("img", {
|
|
2336
2338
|
src: S(qt),
|
|
2337
2339
|
alt: "NetSuite"
|
|
2338
2340
|
}, null, 8, Yn)
|
|
2339
2341
|
]),
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2342
|
+
a("div", Jn, [
|
|
2343
|
+
a("div", Kn, T(S(b)("inventory.integration.netsuite.title")), 1),
|
|
2344
|
+
a("div", Pn, T(S(b)("inventory.integration.netsuite.description")), 1)
|
|
2343
2345
|
])
|
|
2344
2346
|
]),
|
|
2345
2347
|
_: 1
|
|
@@ -2525,11 +2527,11 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2525
2527
|
id: "ingredient",
|
|
2526
2528
|
header: () => "Ingredient",
|
|
2527
2529
|
cell(e) {
|
|
2528
|
-
const
|
|
2530
|
+
const l = e.row.original;
|
|
2529
2531
|
return D("div", { class: "flex flex-col" }, [
|
|
2530
|
-
D("span", { class: "font-medium" },
|
|
2532
|
+
D("span", { class: "font-medium" }, l.skuAdjustment.sku.name),
|
|
2531
2533
|
D("span", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, [
|
|
2532
|
-
|
|
2534
|
+
l.skuAdjustment.sku.code
|
|
2533
2535
|
])
|
|
2534
2536
|
]);
|
|
2535
2537
|
}
|
|
@@ -2538,13 +2540,13 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2538
2540
|
id: "openingBalance",
|
|
2539
2541
|
header: () => "Opening Balance",
|
|
2540
2542
|
cell(e) {
|
|
2541
|
-
const
|
|
2543
|
+
const l = e.row.original;
|
|
2542
2544
|
return D("div", { class: "flex flex-col" }, [
|
|
2543
2545
|
D(
|
|
2544
2546
|
"span",
|
|
2545
2547
|
{ class: "font-medium" },
|
|
2546
2548
|
G.toFormatString({
|
|
2547
|
-
value:
|
|
2549
|
+
value: l.skuAdjustment.amounts[0].amount
|
|
2548
2550
|
})
|
|
2549
2551
|
)
|
|
2550
2552
|
]);
|
|
@@ -2554,18 +2556,18 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2554
2556
|
id: "unit",
|
|
2555
2557
|
header: () => "Unit",
|
|
2556
2558
|
cell(e) {
|
|
2557
|
-
const
|
|
2558
|
-
let L =
|
|
2559
|
+
const l = e.row.original, B = !l.skuAdjustment.amounts[0].measurement;
|
|
2560
|
+
let L = l.skuAdjustment.sku.unit.name;
|
|
2559
2561
|
if (!B) {
|
|
2560
|
-
const N =
|
|
2561
|
-
(H) => H.id ===
|
|
2562
|
+
const N = l.skuAdjustment.sku.unit.measurements.find(
|
|
2563
|
+
(H) => H.id === l.skuAdjustment.amounts[0].measurement.id
|
|
2562
2564
|
);
|
|
2563
2565
|
L = N ? N.name : "Error: Measurement not found";
|
|
2564
2566
|
}
|
|
2565
2567
|
return D("div", { class: "flex flex-col" }, [
|
|
2566
2568
|
D("span", { class: "font-medium" }, L),
|
|
2567
2569
|
B ? null : D("span", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, [
|
|
2568
|
-
`Base unit: ${
|
|
2570
|
+
`Base unit: ${l.skuAdjustment.sku.unit.name}`
|
|
2569
2571
|
])
|
|
2570
2572
|
]);
|
|
2571
2573
|
}
|
|
@@ -2574,7 +2576,7 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2574
2576
|
id: "totalCost",
|
|
2575
2577
|
header: () => "Total Cost",
|
|
2576
2578
|
cell(e) {
|
|
2577
|
-
const
|
|
2579
|
+
const l = e.row.original, { currency: B, ...L } = l.skuAdjustment.amounts[0].cost ?? {
|
|
2578
2580
|
amount: 0,
|
|
2579
2581
|
precision: 0,
|
|
2580
2582
|
currency: ""
|
|
@@ -2618,12 +2620,12 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2618
2620
|
try {
|
|
2619
2621
|
let e = {};
|
|
2620
2622
|
b.value === "netsuite" && (e = await o.getItemAverageCosts());
|
|
2621
|
-
const { errors:
|
|
2623
|
+
const { errors: l, rows: B } = await Zn(
|
|
2622
2624
|
e,
|
|
2623
2625
|
r.skus,
|
|
2624
2626
|
f.value
|
|
2625
2627
|
);
|
|
2626
|
-
u.value =
|
|
2628
|
+
u.value = l, x.value = Object.values(B);
|
|
2627
2629
|
} catch {
|
|
2628
2630
|
t.open({
|
|
2629
2631
|
message: "Error verifying file",
|
|
@@ -2675,10 +2677,10 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2675
2677
|
const e = new Date(c.value);
|
|
2676
2678
|
return isNaN(e.getTime()) ? null : ye(e);
|
|
2677
2679
|
});
|
|
2678
|
-
return (e,
|
|
2679
|
-
const B = F("FmLabel"), L = F("FmField"), N = F("FmSimpleDatePicker"), H = F("FmButton"), X = F("FmRadio"), R = F("FmRadioGroup"),
|
|
2680
|
+
return (e, l) => {
|
|
2681
|
+
const B = F("FmLabel"), L = F("FmField"), N = F("FmSimpleDatePicker"), H = F("FmButton"), X = F("FmRadio"), R = F("FmRadioGroup"), j = F("FmTable");
|
|
2680
2682
|
return I(), V("div", $n, [
|
|
2681
|
-
|
|
2683
|
+
a("div", eo, [
|
|
2682
2684
|
h(B, { label: "Latest closing" })
|
|
2683
2685
|
]),
|
|
2684
2686
|
h(L, {
|
|
@@ -2686,16 +2688,16 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2686
2688
|
disabled: ""
|
|
2687
2689
|
}, {
|
|
2688
2690
|
default: O(() => [
|
|
2689
|
-
P(
|
|
2691
|
+
P(T(S(y).state.closingDocumentId ? `${S(Ee)(new Date(S(Ae)(S(y).state.closingDocumentId)))}` : "No closing found"), 1)
|
|
2690
2692
|
]),
|
|
2691
2693
|
_: 1
|
|
2692
2694
|
}),
|
|
2693
|
-
S(y).state.closingDocumentId ? (I(), V("div", fo,
|
|
2694
|
-
|
|
2695
|
+
S(y).state.closingDocumentId ? (I(), V("div", fo, l[6] || (l[6] = [
|
|
2696
|
+
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)
|
|
2695
2697
|
]))) : (I(), V("div", to, [
|
|
2696
2698
|
h(N, {
|
|
2697
2699
|
modelValue: A.value,
|
|
2698
|
-
"onUpdate:modelValue":
|
|
2700
|
+
"onUpdate:modelValue": l[0] || (l[0] = (Q) => A.value = Q),
|
|
2699
2701
|
label: "Last closing time"
|
|
2700
2702
|
}, {
|
|
2701
2703
|
"trigger-button": O(() => [
|
|
@@ -2705,18 +2707,18 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2705
2707
|
label: "Last closing time"
|
|
2706
2708
|
}, {
|
|
2707
2709
|
default: O(() => [
|
|
2708
|
-
P(
|
|
2710
|
+
P(T(v.value), 1)
|
|
2709
2711
|
]),
|
|
2710
2712
|
_: 1
|
|
2711
2713
|
})
|
|
2712
2714
|
]),
|
|
2713
2715
|
_: 1
|
|
2714
2716
|
}, 8, ["modelValue"]),
|
|
2715
|
-
|
|
2717
|
+
a("div", no, [
|
|
2716
2718
|
h(B, { label: "Stock take file" })
|
|
2717
2719
|
]),
|
|
2718
2720
|
h(Fe, {
|
|
2719
|
-
onFileUpload:
|
|
2721
|
+
onFileUpload: l[1] || (l[1] = (Q) => {
|
|
2720
2722
|
Q && (f.value = Q);
|
|
2721
2723
|
}),
|
|
2722
2724
|
accept: ".xlsx, .xls, .csv"
|
|
@@ -2724,10 +2726,10 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2724
2726
|
f.value ? {
|
|
2725
2727
|
name: "default",
|
|
2726
2728
|
fn: O(({ openFileDialog: Q }) => [
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2729
|
+
a("div", oo, [
|
|
2730
|
+
a("div", so, [
|
|
2731
|
+
a("div", ao, [
|
|
2732
|
+
a("div", lo, T(f.value.name), 1),
|
|
2731
2733
|
h(H, {
|
|
2732
2734
|
label: S(w)("inventory.ingredient.import.replaceFile"),
|
|
2733
2735
|
variant: "secondary",
|
|
@@ -2743,7 +2745,7 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2743
2745
|
]), 1024),
|
|
2744
2746
|
h(R, {
|
|
2745
2747
|
modelValue: b.value,
|
|
2746
|
-
"onUpdate:modelValue":
|
|
2748
|
+
"onUpdate:modelValue": l[2] || (l[2] = (Q) => b.value = Q),
|
|
2747
2749
|
label: "Retrieve cost from",
|
|
2748
2750
|
class: "my-5"
|
|
2749
2751
|
}, {
|
|
@@ -2756,9 +2758,9 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2756
2758
|
disabled: Q.disabled
|
|
2757
2759
|
}, {
|
|
2758
2760
|
label: O(() => [
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2761
|
+
a("div", io, [
|
|
2762
|
+
a("span", ro, T(Q.label), 1),
|
|
2763
|
+
a("span", uo, T(Q.disabled ? Q.disabledReason : Q.subLabel), 1)
|
|
2762
2764
|
])
|
|
2763
2765
|
]),
|
|
2764
2766
|
_: 2
|
|
@@ -2766,7 +2768,7 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2766
2768
|
]),
|
|
2767
2769
|
_: 1
|
|
2768
2770
|
}, 8, ["modelValue"]),
|
|
2769
|
-
|
|
2771
|
+
a("div", co, [
|
|
2770
2772
|
h(H, {
|
|
2771
2773
|
class: "ml-auto mt-4",
|
|
2772
2774
|
variant: "secondary",
|
|
@@ -2778,10 +2780,10 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2778
2780
|
}, null, 8, ["disabled", "loading"])
|
|
2779
2781
|
]),
|
|
2780
2782
|
f.value && x.value.length > 0 ? (I(), V(J, { key: 0 }, [
|
|
2781
|
-
|
|
2782
|
-
h(
|
|
2783
|
+
l[4] || (l[4] = a("h2", { class: "fm-typo-en-title-md-800 mt-8 mb-4" }, "Results", -1)),
|
|
2784
|
+
h(j, {
|
|
2783
2785
|
modelValue: m.value,
|
|
2784
|
-
"onUpdate:modelValue":
|
|
2786
|
+
"onUpdate:modelValue": l[3] || (l[3] = (Q) => m.value = Q),
|
|
2785
2787
|
"row-data": x.value,
|
|
2786
2788
|
"column-defs": E,
|
|
2787
2789
|
"shrink-at": !1,
|
|
@@ -2789,13 +2791,13 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2789
2791
|
}, null, 8, ["modelValue", "row-data", "search-value"])
|
|
2790
2792
|
], 64)) : z("", !0),
|
|
2791
2793
|
u.value.length > 0 ? (I(), V(J, { key: 1 }, [
|
|
2792
|
-
|
|
2793
|
-
h(
|
|
2794
|
+
l[5] || (l[5] = a("h2", { class: "fm-typo-en-title-md-800 mt-8 mb-4 text-red-600" }, "Errors", -1)),
|
|
2795
|
+
h(j, {
|
|
2794
2796
|
"row-data": u.value,
|
|
2795
2797
|
"column-defs": k
|
|
2796
2798
|
}, null, 8, ["row-data"])
|
|
2797
2799
|
], 64)) : z("", !0),
|
|
2798
|
-
|
|
2800
|
+
a("div", mo, [
|
|
2799
2801
|
x.value.length > 0 && !S(y).state.closingDocumentId ? (I(), U(H, {
|
|
2800
2802
|
key: 0,
|
|
2801
2803
|
class: "ml-auto mt-4",
|
|
@@ -2859,7 +2861,7 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2859
2861
|
];
|
|
2860
2862
|
}),
|
|
2861
2863
|
"side-sheet-footer": O(() => [
|
|
2862
|
-
|
|
2864
|
+
a("div", Io, [
|
|
2863
2865
|
h(g, {
|
|
2864
2866
|
variant: "tertiary",
|
|
2865
2867
|
label: S(t)("common.close"),
|
|
@@ -2874,15 +2876,15 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2874
2876
|
fn: O(() => {
|
|
2875
2877
|
var c;
|
|
2876
2878
|
return [
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
x[3] || (x[3] =
|
|
2880
|
-
|
|
2879
|
+
a("div", vo, [
|
|
2880
|
+
a("div", go, [
|
|
2881
|
+
x[3] || (x[3] = a("div", { class: "fm-typo-en-title-md-600" }, "Data migration (Xilnex)", -1)),
|
|
2882
|
+
a("div", yo, [
|
|
2881
2883
|
h(E, {
|
|
2882
2884
|
name: S(w),
|
|
2883
2885
|
size: "sm"
|
|
2884
2886
|
}, null, 8, ["name"]),
|
|
2885
|
-
|
|
2887
|
+
a("div", Ao, T((c = S(b)._currentLocation) == null ? void 0 : c.name), 1)
|
|
2886
2888
|
])
|
|
2887
2889
|
]),
|
|
2888
2890
|
h(k, {
|
|
@@ -2921,14 +2923,14 @@ const $n = { class: "flex flex-col gap-4" }, eo = { class: "flex flex-col" }, to
|
|
|
2921
2923
|
default: O(() => [
|
|
2922
2924
|
h(b, null, {
|
|
2923
2925
|
default: O(() => i[2] || (i[2] = [
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2926
|
+
a("div", { class: "flex justify-center" }, [
|
|
2927
|
+
a("div", { class: "size-[100px] bg-gray-200 rounded-lg flex items-center justify-center" }, [
|
|
2928
|
+
a("span", { class: "text-lg font-bold text-gray-600" }, "Xilnex")
|
|
2927
2929
|
])
|
|
2928
2930
|
], -1),
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2931
|
+
a("div", { class: "flex flex-col items-center gap-2" }, [
|
|
2932
|
+
a("div", { class: "text-lg font-bold" }, "Xilnex"),
|
|
2933
|
+
a("div", { class: "text-fm-color-neutral-gray-300" }, "Data migration from Xilnex")
|
|
2932
2934
|
], -1)
|
|
2933
2935
|
])),
|
|
2934
2936
|
_: 1
|
|
@@ -3055,7 +3057,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3055
3057
|
class: /* @__PURE__ */ q(["fm-corner-radius-md p-16 flex items-center gap-16"])
|
|
3056
3058
|
}, Oo = {
|
|
3057
3059
|
class: /* @__PURE__ */ q(["fm-typo-en-body-md-400 flex-1 h-[36px] flex items-center gap-3"])
|
|
3058
|
-
}, Mo = { class: "line-clamp-2 text-ellipsis break-all" }, Ro = { class: "flex flex-col" },
|
|
3060
|
+
}, Mo = { class: "line-clamp-2 text-ellipsis break-all" }, Ro = { class: "flex flex-col" }, To = { class: "font-medium" }, jo = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, _o = { class: "flex" }, zo = { class: "flex" }, Ho = { key: 1 }, Uo = /* @__PURE__ */ Y({
|
|
3059
3061
|
__name: "SynergyOpeningImport",
|
|
3060
3062
|
setup(C) {
|
|
3061
3063
|
const y = We(), o = be(), r = Ce(), n = ee(), t = _(() => [
|
|
@@ -3098,9 +3100,9 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3098
3100
|
id: "unit",
|
|
3099
3101
|
header: () => "Unit",
|
|
3100
3102
|
cell(v) {
|
|
3101
|
-
const e = v.row.original,
|
|
3103
|
+
const e = v.row.original, l = !e.skuAdjustment.amounts[0].measurement;
|
|
3102
3104
|
let B = e.skuAdjustment.sku.unit.name;
|
|
3103
|
-
if (!
|
|
3105
|
+
if (!l) {
|
|
3104
3106
|
const L = e.skuAdjustment.sku.unit.measurements.find(
|
|
3105
3107
|
(N) => N.id === e.skuAdjustment.amounts[0].measurement.id
|
|
3106
3108
|
);
|
|
@@ -3108,7 +3110,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3108
3110
|
}
|
|
3109
3111
|
return D("div", { class: "flex flex-col" }, [
|
|
3110
3112
|
D("span", { class: "font-medium" }, B),
|
|
3111
|
-
|
|
3113
|
+
l ? null : D("span", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, [
|
|
3112
3114
|
`Base unit: ${e.skuAdjustment.sku.unit.name}`
|
|
3113
3115
|
])
|
|
3114
3116
|
]);
|
|
@@ -3118,7 +3120,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3118
3120
|
id: "totalCost",
|
|
3119
3121
|
header: () => "Total Cost",
|
|
3120
3122
|
cell(v) {
|
|
3121
|
-
const e = v.row.original, { currency:
|
|
3123
|
+
const e = v.row.original, { currency: l, ...B } = e.skuAdjustment.amounts[0].cost ?? {
|
|
3122
3124
|
amount: 0,
|
|
3123
3125
|
precision: 0,
|
|
3124
3126
|
currency: ""
|
|
@@ -3161,12 +3163,12 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3161
3163
|
k.value = !0;
|
|
3162
3164
|
try {
|
|
3163
3165
|
let v = {};
|
|
3164
|
-
const { errors: e, rows:
|
|
3166
|
+
const { errors: e, rows: l } = await ko(
|
|
3165
3167
|
v,
|
|
3166
3168
|
o.skus,
|
|
3167
3169
|
w.value
|
|
3168
3170
|
);
|
|
3169
|
-
s.value = e, u.value = Object.values(
|
|
3171
|
+
s.value = e, u.value = Object.values(l);
|
|
3170
3172
|
} catch {
|
|
3171
3173
|
n.open({
|
|
3172
3174
|
message: "Error verifying file",
|
|
@@ -3219,26 +3221,26 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3219
3221
|
return isNaN(v.getTime()) ? null : ye(v);
|
|
3220
3222
|
});
|
|
3221
3223
|
return (v, e) => {
|
|
3222
|
-
const
|
|
3224
|
+
const l = F("FmLabel"), B = F("FmField"), L = F("FmSimpleDatePicker"), N = F("FmButton"), H = F("FmRadio"), X = F("FmRadioGroup"), R = F("FmTable");
|
|
3223
3225
|
return I(), V("div", Eo, [
|
|
3224
|
-
|
|
3225
|
-
h(
|
|
3226
|
+
a("div", Fo, [
|
|
3227
|
+
h(l, { label: "Latest closing" })
|
|
3226
3228
|
]),
|
|
3227
3229
|
h(B, {
|
|
3228
3230
|
"prepend-icon": "lock_outline",
|
|
3229
3231
|
disabled: ""
|
|
3230
3232
|
}, {
|
|
3231
3233
|
default: O(() => [
|
|
3232
|
-
P(
|
|
3234
|
+
P(T(S(y).state.closingDocumentId ? `${S(Ee)(new Date(S(Ae)(S(y).state.closingDocumentId)))}` : "No closing found"), 1)
|
|
3233
3235
|
]),
|
|
3234
3236
|
_: 1
|
|
3235
3237
|
}),
|
|
3236
3238
|
S(y).state.closingDocumentId ? (I(), V("div", Ho, e[6] || (e[6] = [
|
|
3237
|
-
|
|
3239
|
+
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)
|
|
3238
3240
|
]))) : (I(), V("div", Lo, [
|
|
3239
3241
|
h(L, {
|
|
3240
3242
|
modelValue: c.value,
|
|
3241
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
3243
|
+
"onUpdate:modelValue": e[0] || (e[0] = (j) => c.value = j),
|
|
3242
3244
|
label: "Last closing time"
|
|
3243
3245
|
}, {
|
|
3244
3246
|
"trigger-button": O(() => [
|
|
@@ -3248,34 +3250,34 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3248
3250
|
label: "Last closing time"
|
|
3249
3251
|
}, {
|
|
3250
3252
|
default: O(() => [
|
|
3251
|
-
P(
|
|
3253
|
+
P(T(A.value), 1)
|
|
3252
3254
|
]),
|
|
3253
3255
|
_: 1
|
|
3254
3256
|
})
|
|
3255
3257
|
]),
|
|
3256
3258
|
_: 1
|
|
3257
3259
|
}, 8, ["modelValue"]),
|
|
3258
|
-
|
|
3259
|
-
h(
|
|
3260
|
+
a("div", Vo, [
|
|
3261
|
+
h(l, { label: "Stock take file" })
|
|
3260
3262
|
]),
|
|
3261
3263
|
h(Fe, {
|
|
3262
|
-
onFileUpload: e[1] || (e[1] = (
|
|
3263
|
-
|
|
3264
|
+
onFileUpload: e[1] || (e[1] = (j) => {
|
|
3265
|
+
j && (w.value = j);
|
|
3264
3266
|
}),
|
|
3265
3267
|
accept: ".xlsx, .xls, .csv"
|
|
3266
3268
|
}, se({ _: 2 }, [
|
|
3267
3269
|
w.value ? {
|
|
3268
3270
|
name: "default",
|
|
3269
|
-
fn: O(({ openFileDialog:
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3271
|
+
fn: O(({ openFileDialog: j }) => [
|
|
3272
|
+
a("div", No, [
|
|
3273
|
+
a("div", Do, [
|
|
3274
|
+
a("div", Oo, [
|
|
3275
|
+
a("div", Mo, T(w.value.name), 1),
|
|
3274
3276
|
h(N, {
|
|
3275
3277
|
label: S(b)("inventory.ingredient.import.replaceFile"),
|
|
3276
3278
|
variant: "secondary",
|
|
3277
3279
|
"prepend-icon": "autorenew",
|
|
3278
|
-
onClick:
|
|
3280
|
+
onClick: j
|
|
3279
3281
|
}, null, 8, ["label", "onClick"])
|
|
3280
3282
|
])
|
|
3281
3283
|
])
|
|
@@ -3286,22 +3288,22 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3286
3288
|
]), 1024),
|
|
3287
3289
|
h(X, {
|
|
3288
3290
|
modelValue: i.value,
|
|
3289
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
3291
|
+
"onUpdate:modelValue": e[2] || (e[2] = (j) => i.value = j),
|
|
3290
3292
|
label: "Retrieve cost from",
|
|
3291
3293
|
class: "my-5"
|
|
3292
3294
|
}, {
|
|
3293
3295
|
default: O(() => [
|
|
3294
|
-
(I(!0), V(J, null, W(t.value, (
|
|
3295
|
-
key:
|
|
3296
|
-
value:
|
|
3297
|
-
label:
|
|
3298
|
-
sublabel:
|
|
3299
|
-
disabled:
|
|
3296
|
+
(I(!0), V(J, null, W(t.value, (j) => (I(), U(H, {
|
|
3297
|
+
key: j.value,
|
|
3298
|
+
value: j.value,
|
|
3299
|
+
label: j.label,
|
|
3300
|
+
sublabel: j.subLabel,
|
|
3301
|
+
disabled: j.disabled
|
|
3300
3302
|
}, {
|
|
3301
3303
|
label: O(() => [
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3304
|
+
a("div", Ro, [
|
|
3305
|
+
a("span", To, T(j.label), 1),
|
|
3306
|
+
a("span", jo, T(j.disabled ? j.disabledReason : j.subLabel), 1)
|
|
3305
3307
|
])
|
|
3306
3308
|
]),
|
|
3307
3309
|
_: 2
|
|
@@ -3309,7 +3311,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3309
3311
|
]),
|
|
3310
3312
|
_: 1
|
|
3311
3313
|
}, 8, ["modelValue"]),
|
|
3312
|
-
|
|
3314
|
+
a("div", _o, [
|
|
3313
3315
|
h(N, {
|
|
3314
3316
|
class: "ml-auto mt-4",
|
|
3315
3317
|
variant: "secondary",
|
|
@@ -3321,10 +3323,10 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3321
3323
|
}, null, 8, ["disabled", "loading"])
|
|
3322
3324
|
]),
|
|
3323
3325
|
w.value && u.value.length > 0 ? (I(), V(J, { key: 0 }, [
|
|
3324
|
-
e[4] || (e[4] =
|
|
3326
|
+
e[4] || (e[4] = a("h2", { class: "fm-typo-en-title-md-800 mt-8 mb-4" }, "Results", -1)),
|
|
3325
3327
|
h(R, {
|
|
3326
3328
|
modelValue: f.value,
|
|
3327
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
3329
|
+
"onUpdate:modelValue": e[3] || (e[3] = (j) => f.value = j),
|
|
3328
3330
|
"row-data": u.value,
|
|
3329
3331
|
"column-defs": x,
|
|
3330
3332
|
"shrink-at": !1,
|
|
@@ -3332,13 +3334,13 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3332
3334
|
}, null, 8, ["modelValue", "row-data", "search-value"])
|
|
3333
3335
|
], 64)) : z("", !0),
|
|
3334
3336
|
s.value.length > 0 ? (I(), V(J, { key: 1 }, [
|
|
3335
|
-
e[5] || (e[5] =
|
|
3337
|
+
e[5] || (e[5] = a("h2", { class: "fm-typo-en-title-md-800 mt-8 mb-4 text-red-600" }, "Errors", -1)),
|
|
3336
3338
|
h(R, {
|
|
3337
3339
|
"row-data": s.value,
|
|
3338
3340
|
"column-defs": E
|
|
3339
3341
|
}, null, 8, ["row-data"])
|
|
3340
3342
|
], 64)) : z("", !0),
|
|
3341
|
-
|
|
3343
|
+
a("div", zo, [
|
|
3342
3344
|
u.value.length > 0 && !S(y).state.closingDocumentId ? (I(), U(N, {
|
|
3343
3345
|
key: 0,
|
|
3344
3346
|
class: "ml-auto mt-4",
|
|
@@ -3386,7 +3388,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3386
3388
|
];
|
|
3387
3389
|
}),
|
|
3388
3390
|
"side-sheet-footer": O(() => [
|
|
3389
|
-
|
|
3391
|
+
a("div", qo, [
|
|
3390
3392
|
h(x, {
|
|
3391
3393
|
variant: "tertiary",
|
|
3392
3394
|
label: S(t)("common.close"),
|
|
@@ -3401,15 +3403,15 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3401
3403
|
fn: O(() => {
|
|
3402
3404
|
var g;
|
|
3403
3405
|
return [
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
s[2] || (s[2] =
|
|
3407
|
-
|
|
3406
|
+
a("div", Xo, [
|
|
3407
|
+
a("div", Qo, [
|
|
3408
|
+
s[2] || (s[2] = a("div", { class: "fm-typo-en-title-md-600" }, "Data migration (Synergy)", -1)),
|
|
3409
|
+
a("div", Yo, [
|
|
3408
3410
|
h(u, {
|
|
3409
3411
|
name: S(w),
|
|
3410
3412
|
size: "sm"
|
|
3411
3413
|
}, null, 8, ["name"]),
|
|
3412
|
-
|
|
3414
|
+
a("div", Jo, T((g = S(b)._currentLocation) == null ? void 0 : g.name), 1)
|
|
3413
3415
|
])
|
|
3414
3416
|
])
|
|
3415
3417
|
])
|
|
@@ -3443,14 +3445,14 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3443
3445
|
default: O(() => [
|
|
3444
3446
|
h(b, null, {
|
|
3445
3447
|
default: O(() => i[2] || (i[2] = [
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3448
|
+
a("div", { class: "flex justify-center" }, [
|
|
3449
|
+
a("div", { class: "size-[100px] bg-gray-200 rounded-lg flex items-center justify-center" }, [
|
|
3450
|
+
a("span", { class: "text-lg font-bold text-gray-600" }, "Synergy")
|
|
3449
3451
|
])
|
|
3450
3452
|
], -1),
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3453
|
+
a("div", { class: "flex flex-col items-center gap-2" }, [
|
|
3454
|
+
a("div", { class: "text-lg font-bold" }, "Synergy"),
|
|
3455
|
+
a("div", { class: "text-fm-color-neutral-gray-300" }, "Data migration from Synergy")
|
|
3454
3456
|
], -1)
|
|
3455
3457
|
])),
|
|
3456
3458
|
_: 1
|
|
@@ -3495,7 +3497,7 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3495
3497
|
title: S(i)("inventory.integration.title")
|
|
3496
3498
|
}, {
|
|
3497
3499
|
default: O(() => [
|
|
3498
|
-
|
|
3500
|
+
a("div", {
|
|
3499
3501
|
class: q([
|
|
3500
3502
|
"flex flex-col gap-8 max-h-full",
|
|
3501
3503
|
{
|
|
@@ -3511,14 +3513,14 @@ const Eo = { class: "flex flex-col gap-4" }, Fo = { class: "flex flex-col" }, Lo
|
|
|
3511
3513
|
!S(y)._currentLocation || o.value ? (I(), V("div", Wo, [
|
|
3512
3514
|
h(f, { size: "lg" })
|
|
3513
3515
|
])) : S(r).enabledIntegrations == 0 ? (I(), V("div", $o, [
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
+
a("div", null, [
|
|
3517
|
+
a("img", {
|
|
3516
3518
|
src: S(He),
|
|
3517
3519
|
alt: "List is empty"
|
|
3518
3520
|
}, null, 8, es)
|
|
3519
3521
|
]),
|
|
3520
|
-
w[0] || (w[0] =
|
|
3521
|
-
|
|
3522
|
+
w[0] || (w[0] = a("div", { class: "font-bold text-lg" }, "Integration", -1)),
|
|
3523
|
+
a("div", ts, T(S(i)("inventory.integration.description")), 1)
|
|
3522
3524
|
])) : (I(), V("div", ns, [
|
|
3523
3525
|
h(qn),
|
|
3524
3526
|
h(Pt),
|