@feedmepos/mf-report 5.31.1-beta.0 → 5.31.2-beta.0
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-CifvmxI-.js → App-BS7p-1_C.js} +103 -103
- package/dist/{DateRangeSelect-ChxxlHH1.js → DateRangeSelect-CU1zLhsi.js} +129 -121
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CL1-_8mf.js → Default.vue_vue_type_script_setup_true_lang-BbIP6Sxr.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DHjqUTvO.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CzSVopxn.js} +7 -7
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CSs3HGml.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-V9SzUzmd.js} +453 -453
- package/dist/{InsightView-Du6tSxTb.js → InsightView-BY5Sgoxt.js} +5 -5
- package/dist/{Integration-BAcn22tg.js → Integration-YOGVHjkr.js} +174 -174
- package/dist/{Integrations-DJxV9dAE.js → Integrations-DLn3wHzm.js} +2 -2
- package/dist/{Layout-BYyARllh.js → Layout-B8HhRlSf.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-CvOMVHQ5.js → LocationSelect.vue_vue_type_script_setup_true_lang-C2yXmZru.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DresFUiL.js → MenuTab.vue_vue_type_script_setup_true_lang-CZFM47wC.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CTWgBaBB.js → NavigationTab.vue_vue_type_script_setup_true_lang-BriXZRy-.js} +5 -5
- package/dist/{OverviewView-WaYZ9aiD.js → OverviewView-B4auEUPK.js} +5 -5
- package/dist/{Report-NAiFlYu_.js → Report-dar8N8tM.js} +3 -3
- package/dist/{ReportCanvasView-Bfr5ZK1X.js → ReportCanvasView-J-TOAEDk.js} +5 -5
- package/dist/{ReportEditor-DNKWamHm.js → ReportEditor-GUrAEUjy.js} +7 -7
- package/dist/{ReportView-DVOKMdRI.js → ReportView-ok4zqyiS.js} +6 -6
- package/dist/{ReportViewRoute-4E5uW09e.js → ReportViewRoute-BcYLz9D0.js} +2 -2
- package/dist/{Setting-BIUKmm2_.js → Setting-CW-iwHV7.js} +3 -3
- package/dist/{Template-COsS2dIW.js → Template-CYnlmr86.js} +3 -3
- package/dist/TileEditor-btcTn9w6.js +4183 -0
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-CIMNFOXf.js → TilePageStack.vue_vue_type_script_setup_true_lang-Be_qbuOb.js} +2 -2
- package/dist/{TransitionFade-DddzAlaC.js → TransitionFade-B3zeQDvF.js} +5 -5
- package/dist/{app-B1esZ9Mq.js → app-Bw-zsS2R.js} +2337 -2297
- package/dist/app.js +1 -1
- package/dist/assets/{processTableData.worker-r9RKAQPd.js → formatChartData.worker-UoGYoYc3.js} +30 -42
- package/dist/assets/{formatChartData.worker-DcIXAZPX.js → processTableData.worker-DxE4bjxG.js} +33 -45
- package/dist/{currency-CT2q92PX.js → currency-DmsNWBQ3.js} +1 -1
- package/dist/{index-BScxCrNy.js → index-B5Reb-CL.js} +552 -564
- package/dist/{report-BCTiFDGD.js → report-CblaE0LI.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-Bt2kY6PE.js → useRestaurantPermission-BZR1kItv.js} +3 -3
- package/package.json +1 -1
- package/dist/TileEditor-BGiamZMW.js +0 -4184
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as ve, mergeModels as ke, useModel as be, computed as X, resolveComponent as T, createElementBlock as R, openBlock as x, createElementVNode as t, createCommentVNode as q, normalizeClass as Ye, Fragment as $e, renderList as qe, createBlock as ae, normalizeStyle as st, createVNode as l, withCtx as Ce, renderSlot as It, toDisplayString as C, unref as n, h, createTextVNode as $t, ref as se, onUnmounted as Xe, watch as De, isRef as
|
|
1
|
+
import { defineComponent as ve, mergeModels as ke, useModel as be, computed as X, resolveComponent as T, createElementBlock as R, openBlock as x, createElementVNode as t, createCommentVNode as q, normalizeClass as Ye, Fragment as $e, renderList as qe, createBlock as ae, normalizeStyle as st, createVNode as l, withCtx as Ce, renderSlot as It, toDisplayString as C, unref as n, h, createTextVNode as $t, ref as se, onUnmounted as Xe, watch as De, isRef as ze, resolveDynamicComponent as Ge, mergeProps as dt, onMounted as ct, withKeys as nt, withModifiers as mt, nextTick as kt } from "vue";
|
|
2
2
|
import { useRouter as Ie, useRoute as Tt } from "vue-router";
|
|
3
|
-
import { A as Se,
|
|
3
|
+
import { A as Se, x as it, d as Fe, y as Nt, e as Ee, a as Te, B as _e, E as Vt, G as Ft, s as ce, w as Je, H as Qe, J as He, K as Ze, L as pt, M as Kt, N as Mt, O as Ut, P as Rt, Q as Pt, R as ut, b as ft, S as Ot, T as Lt, o as jt, I as Be, U as Et, V as Bt, W as Yt } from "./app-Bw-zsS2R.js";
|
|
4
4
|
import { u as et } from "./global-loader-BuxFfehu.js";
|
|
5
5
|
import { u as tt } from "./message-dialog-UoMWOnil.js";
|
|
6
6
|
import { useSnackbar as Ne } from "@feedmepos/ui-library";
|
|
7
7
|
import { s as St } from "./index-CtZE4sab.js";
|
|
8
8
|
import { u as we, _ as qt } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
9
|
-
import { u as We, h as Ae } from "./useRestaurantPermission-
|
|
9
|
+
import { u as We, h as Ae } from "./useRestaurantPermission-BZR1kItv.js";
|
|
10
10
|
import { storeToRefs as ot } from "pinia";
|
|
11
|
-
import { D as at } from "./DateRangeSelect-
|
|
12
|
-
const
|
|
11
|
+
import { D as at } from "./DateRangeSelect-CU1zLhsi.js";
|
|
12
|
+
const Ht = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, zt = { class: "w-[100%] overflow-hidden" }, Gt = { class: "inline-flex max-w-full items-center gap-2 align-top" }, Qt = { class: "text-nowrap min-w-0 overflow-hidden text-ellipsis font-semibold" }, Wt = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "w-[24px] flex items-center"
|
|
15
15
|
}, ie = /* @__PURE__ */ ve({
|
|
@@ -61,7 +61,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
61
61
|
const P = o;
|
|
62
62
|
return (M, f) => {
|
|
63
63
|
const S = T("FmTextField"), A = T("FmTooltip"), V = T("FmIcon");
|
|
64
|
-
return x(), R("div",
|
|
64
|
+
return x(), R("div", Ht, [
|
|
65
65
|
t("div", {
|
|
66
66
|
class: Ye(`${m.removable ? "w-[calc(100%-24px)]" : "w-[100%]"} flex flex-col items-start gap-[4px]`)
|
|
67
67
|
}, [
|
|
@@ -90,7 +90,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
90
90
|
style: st(m.removable || !m.isTakeWholeRow ? { width: F.value } : { width: "100%" })
|
|
91
91
|
}, {
|
|
92
92
|
default: Ce(() => [
|
|
93
|
-
t("div",
|
|
93
|
+
t("div", zt, [
|
|
94
94
|
t("div", Gt, [
|
|
95
95
|
t("div", Qt, C(e.value[$.key]), 1),
|
|
96
96
|
It(M.$slots, "field-suffix", { field: $ })
|
|
@@ -335,7 +335,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
335
335
|
};
|
|
336
336
|
return (r, s) => {
|
|
337
337
|
var pe, xe, O, y;
|
|
338
|
-
const g = T("FmBadge"), i = T("FmTable"), a = T("FmSideSheet"), w = T("FmSwitch"), u = T("FmTooltip"), L = T("FmDatePicker"),
|
|
338
|
+
const g = T("FmBadge"), i = T("FmTable"), a = T("FmSideSheet"), w = T("FmSwitch"), u = T("FmTooltip"), L = T("FmDatePicker"), H = T("FmTextField"), E = T("FmTabs"), te = T("FmSelect"), de = T("FmTimePicker");
|
|
339
339
|
return x(), R($e, null, [
|
|
340
340
|
t("div", Xt, [
|
|
341
341
|
t("div", Jt, C(n(o)("report.integration.auto", { label: m.label })), 1),
|
|
@@ -413,7 +413,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
413
413
|
m.isAutoEmailMode ? (x(), R("div", co, [
|
|
414
414
|
t("div", mo, C(n(o)("report.common.email")), 1),
|
|
415
415
|
t("div", fo, [
|
|
416
|
-
l(
|
|
416
|
+
l(H, {
|
|
417
417
|
"model-value": (e.value.emails || []).join(","),
|
|
418
418
|
placeholder: "Email",
|
|
419
419
|
"onUpdate:modelValue": s[3] || (s[3] = (k) => {
|
|
@@ -802,7 +802,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
802
802
|
}), jo = {
|
|
803
803
|
key: 0,
|
|
804
804
|
class: "flex flex-col h-full"
|
|
805
|
-
}, Eo = { class: "flex flex-col gap-[16px] pb-[24px]" }, Bo = { class: "flex flex-row justify-between items-center gap-2" }, Yo = { class: "flex flex-row gap-2 items-center" }, qo = { class: "relative group cursor-pointer" },
|
|
805
|
+
}, Eo = { class: "flex flex-col gap-[16px] pb-[24px]" }, Bo = { class: "flex flex-row justify-between items-center gap-2" }, Yo = { class: "flex flex-row gap-2 items-center" }, qo = { class: "relative group cursor-pointer" }, Ho = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, zo = { class: "flex flex-col gap-16 pt-[24px] overflow-scroll" }, Go = { class: "w-[90%] flex flex-col gap-24" }, Qo = { class: "flex flex-row items-center justify-between gap-2" }, Wo = { class: "w-[25%]" }, Xo = { class: "flex flex-col gap-[16px]" }, Jo = { class: "flex flex-col max-w-[100%] justify-between" }, Zo = { class: "flex-grow" }, ea = { class: "flex flex-col max-w-[100%] justify-between" }, ta = { class: "flex flex-col max-w-[100%] justify-between" }, oa = { class: "w-[25%] font-semibold" }, aa = {
|
|
806
806
|
key: 0,
|
|
807
807
|
class: "flex flex-row items-center max-w-[100%] justify-between pl-4"
|
|
808
808
|
}, la = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, na = { class: "flex-grow" }, sa = { class: "flex flex-col gap-[16px]" }, ra = { class: "flex flex-row items-center gap-5" }, ia = { class: "fm-typo-en-title-sm-800" }, da = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, pa = { class: "flex flex-col gap-[16px]" }, ua = { class: "flex flex-col max-w-[100%] justify-between" }, ca = { class: "flex-grow" }, ma = { class: "flex flex-row items-center max-w-[100%] justify-between" }, fa = { class: "flex-grow" }, ga = { class: "flex flex-row items-center max-w-[100%] justify-between" }, va = { class: "flex-grow" }, ya = { class: "flex flex-col gap-[16px]" }, xa = { class: "flex flex-row items-center justify-between gap-x-16" }, ba = {
|
|
@@ -866,12 +866,12 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
866
866
|
const u = await Ft(e.value._id);
|
|
867
867
|
A.value = !0;
|
|
868
868
|
const L = setInterval(async () => {
|
|
869
|
-
var
|
|
869
|
+
var H;
|
|
870
870
|
K.value += 1;
|
|
871
871
|
try {
|
|
872
872
|
await b.getSettings();
|
|
873
873
|
} finally {
|
|
874
|
-
(K.value === 12 || (
|
|
874
|
+
(K.value === 12 || (H = e.value.platform) != null && H.accessToken) && (A.value = !1, L && clearInterval(L), K.value = 0);
|
|
875
875
|
}
|
|
876
876
|
}, 5e3);
|
|
877
877
|
window.open(u.redirect, "_blank");
|
|
@@ -882,8 +882,8 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
882
882
|
p.open({ type: "error", message: `invalid accounting ${e.value._id}` });
|
|
883
883
|
}
|
|
884
884
|
async function v() {
|
|
885
|
-
var
|
|
886
|
-
const w = (
|
|
885
|
+
var H;
|
|
886
|
+
const w = (H = e.value.platform) == null ? void 0 : H.locationIds;
|
|
887
887
|
if (Ae({
|
|
888
888
|
integrationRestaurantIds: w,
|
|
889
889
|
rules: f.value,
|
|
@@ -917,8 +917,8 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
917
917
|
await N(async () => {
|
|
918
918
|
try {
|
|
919
919
|
await Qe(e.value._id, e.value), await b.getSettings();
|
|
920
|
-
} catch (
|
|
921
|
-
p.open({ type: "error", message:
|
|
920
|
+
} catch (H) {
|
|
921
|
+
p.open({ type: "error", message: H.message });
|
|
922
922
|
}
|
|
923
923
|
});
|
|
924
924
|
}
|
|
@@ -930,8 +930,8 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
930
930
|
});
|
|
931
931
|
}
|
|
932
932
|
function s(w, u) {
|
|
933
|
-
var L,
|
|
934
|
-
(
|
|
933
|
+
var L, H;
|
|
934
|
+
(H = (L = e.value.platform) == null ? void 0 : L.mappings) != null && H[w] && (e.value.platform.mappings[w] = e.value.platform.mappings[w].filter(
|
|
935
935
|
(E, te) => te !== u
|
|
936
936
|
));
|
|
937
937
|
}
|
|
@@ -953,7 +953,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
953
953
|
async function i() {
|
|
954
954
|
await N(async () => {
|
|
955
955
|
try {
|
|
956
|
-
await
|
|
956
|
+
await He(e.value._id), await b.getSettings();
|
|
957
957
|
} catch (w) {
|
|
958
958
|
p.open({ type: "error", message: w.message });
|
|
959
959
|
}
|
|
@@ -977,7 +977,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
977
977
|
await b.getSettings();
|
|
978
978
|
}), (w, u) => {
|
|
979
979
|
var O, y, k, D, Q, Z, ne, re, U, _, G, B, Y, oe, j, le, fe, Ke, Me, Ue, Re, Pe, Oe, Le, I, J;
|
|
980
|
-
const L = T("FmIcon"),
|
|
980
|
+
const L = T("FmIcon"), H = T("FmButton"), E = T("FmMenuDivider"), te = T("FmCircularProgress"), de = T("FmSelect"), pe = T("FmTextField"), xe = T("FmSwitch");
|
|
981
981
|
return (y = (O = e.value) == null ? void 0 : O.platform) != null && y.mappings ? (x(), R("div", jo, [
|
|
982
982
|
t("div", Eo, [
|
|
983
983
|
t("div", Bo, [
|
|
@@ -989,14 +989,14 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
989
989
|
class: "p-2 bg-gray-100 rounded-full",
|
|
990
990
|
onClick: i
|
|
991
991
|
}),
|
|
992
|
-
t("span",
|
|
992
|
+
t("span", Ho, C(n(o)("report.integration.refreshSettingTooltip")), 1)
|
|
993
993
|
]),
|
|
994
|
-
l(
|
|
994
|
+
l(H, {
|
|
995
995
|
variant: "tertiary",
|
|
996
996
|
label: "Delete",
|
|
997
997
|
onClick: v
|
|
998
998
|
}),
|
|
999
|
-
l(
|
|
999
|
+
l(H, {
|
|
1000
1000
|
variant: "primary",
|
|
1001
1001
|
label: n(o)("report.common.update"),
|
|
1002
1002
|
"prepend-icon": "update",
|
|
@@ -1006,12 +1006,12 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1006
1006
|
])
|
|
1007
1007
|
]),
|
|
1008
1008
|
l(E, { style: { margin: 0 } }),
|
|
1009
|
-
t("div",
|
|
1009
|
+
t("div", zo, [
|
|
1010
1010
|
t("div", Go, [
|
|
1011
1011
|
u[37] || (u[37] = t("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Authenticate with your official Xero account to enable FeedMe to securely upload data to Xero. ", -1)),
|
|
1012
1012
|
t("div", Qo, [
|
|
1013
1013
|
t("div", Wo, [
|
|
1014
|
-
l(
|
|
1014
|
+
l(H, {
|
|
1015
1015
|
disabled: A.value,
|
|
1016
1016
|
variant: "primary",
|
|
1017
1017
|
label: $.value,
|
|
@@ -1038,7 +1038,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1038
1038
|
t("div", Zo, [
|
|
1039
1039
|
l(pe, {
|
|
1040
1040
|
modelValue: e.value.name,
|
|
1041
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1041
|
+
"onUpdate:modelValue": u[0] || (u[0] = (z) => e.value.name = z)
|
|
1042
1042
|
}, null, 8, ["modelValue"])
|
|
1043
1043
|
])
|
|
1044
1044
|
]),
|
|
@@ -1046,7 +1046,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1046
1046
|
u[26] || (u[26] = t("div", { class: "w-[25%] font-semibold" }, "Location", -1)),
|
|
1047
1047
|
l(de, {
|
|
1048
1048
|
modelValue: e.value.platform.locationIds,
|
|
1049
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
1049
|
+
"onUpdate:modelValue": u[1] || (u[1] = (z) => e.value.platform.locationIds = z),
|
|
1050
1050
|
multiselect: !0,
|
|
1051
1051
|
items: V.value,
|
|
1052
1052
|
searchable: "",
|
|
@@ -1059,7 +1059,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1059
1059
|
t("div", oa, C(n(o)("report.integration.grouping.title")), 1),
|
|
1060
1060
|
l(de, {
|
|
1061
1061
|
modelValue: e.value.platform.grouping,
|
|
1062
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
1062
|
+
"onUpdate:modelValue": u[2] || (u[2] = (z) => e.value.platform.grouping = z),
|
|
1063
1063
|
multiselect: !1,
|
|
1064
1064
|
items: a,
|
|
1065
1065
|
placeholder: n(o)("report.integration.grouping.title"),
|
|
@@ -1075,8 +1075,8 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1075
1075
|
l(xe, {
|
|
1076
1076
|
"model-value": e.value.platform.discountByGroupKey ?? !1,
|
|
1077
1077
|
style: { gap: 0 },
|
|
1078
|
-
"onUpdate:modelValue": u[3] || (u[3] = (
|
|
1079
|
-
e.value.platform.discountByGroupKey =
|
|
1078
|
+
"onUpdate:modelValue": u[3] || (u[3] = (z) => {
|
|
1079
|
+
e.value.platform.discountByGroupKey = z;
|
|
1080
1080
|
})
|
|
1081
1081
|
}, null, 8, ["model-value"])
|
|
1082
1082
|
])
|
|
@@ -1091,25 +1091,25 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1091
1091
|
t("div", da, [
|
|
1092
1092
|
l(pe, {
|
|
1093
1093
|
modelValue: e.value.platform.mappings.invoiceDocNo,
|
|
1094
|
-
"onUpdate:modelValue": u[4] || (u[4] = (
|
|
1094
|
+
"onUpdate:modelValue": u[4] || (u[4] = (z) => e.value.platform.mappings.invoiceDocNo = z),
|
|
1095
1095
|
label: "Invoice no",
|
|
1096
1096
|
placeholder: "IV-[NO]"
|
|
1097
1097
|
}, null, 8, ["modelValue"]),
|
|
1098
1098
|
l(pe, {
|
|
1099
1099
|
modelValue: e.value.platform.mappings.creditNoteDocNo,
|
|
1100
|
-
"onUpdate:modelValue": u[5] || (u[5] = (
|
|
1100
|
+
"onUpdate:modelValue": u[5] || (u[5] = (z) => e.value.platform.mappings.creditNoteDocNo = z),
|
|
1101
1101
|
label: "Credit note no",
|
|
1102
1102
|
placeholder: "CN-[NO]"
|
|
1103
1103
|
}, null, 8, ["modelValue"]),
|
|
1104
1104
|
l(pe, {
|
|
1105
1105
|
modelValue: e.value.platform.mappings.paymentDocNo,
|
|
1106
|
-
"onUpdate:modelValue": u[6] || (u[6] = (
|
|
1106
|
+
"onUpdate:modelValue": u[6] || (u[6] = (z) => e.value.platform.mappings.paymentDocNo = z),
|
|
1107
1107
|
label: "Payment no",
|
|
1108
1108
|
placeholder: "IV-[NO]-[PAYMENT4]"
|
|
1109
1109
|
}, null, 8, ["modelValue"]),
|
|
1110
1110
|
l(pe, {
|
|
1111
1111
|
modelValue: e.value.platform.mappings.refundDocNo,
|
|
1112
|
-
"onUpdate:modelValue": u[7] || (u[7] = (
|
|
1112
|
+
"onUpdate:modelValue": u[7] || (u[7] = (z) => e.value.platform.mappings.refundDocNo = z),
|
|
1113
1113
|
label: "Refund no",
|
|
1114
1114
|
placeholder: "CN-[NO]-[PAYMENT4]"
|
|
1115
1115
|
}, null, 8, ["modelValue"])
|
|
@@ -1118,7 +1118,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1118
1118
|
l(E, { style: { margin: 0 } }),
|
|
1119
1119
|
l(lt, {
|
|
1120
1120
|
modelValue: e.value.platform,
|
|
1121
|
-
"onUpdate:modelValue": u[8] || (u[8] = (
|
|
1121
|
+
"onUpdate:modelValue": u[8] || (u[8] = (z) => e.value.platform = z),
|
|
1122
1122
|
label: "upload",
|
|
1123
1123
|
"last-upload-date": (Z = e.value.platform) == null ? void 0 : Z.lastUploadDate,
|
|
1124
1124
|
"error-logs": m.errorLogs,
|
|
@@ -1132,7 +1132,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1132
1132
|
t("div", ca, [
|
|
1133
1133
|
l(pe, {
|
|
1134
1134
|
modelValue: e.value.platform.mappings.contact.xeroAccount,
|
|
1135
|
-
"onUpdate:modelValue": u[9] || (u[9] = (
|
|
1135
|
+
"onUpdate:modelValue": u[9] || (u[9] = (z) => e.value.platform.mappings.contact.xeroAccount = z),
|
|
1136
1136
|
placeholder: "Contact account number"
|
|
1137
1137
|
}, null, 8, ["modelValue"])
|
|
1138
1138
|
])
|
|
@@ -1143,8 +1143,8 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1143
1143
|
l(xe, {
|
|
1144
1144
|
"model-value": e.value.platform.discountItem ?? !1,
|
|
1145
1145
|
style: { gap: 0 },
|
|
1146
|
-
"onUpdate:modelValue": u[10] || (u[10] = (
|
|
1147
|
-
e.value.platform.discountItem =
|
|
1146
|
+
"onUpdate:modelValue": u[10] || (u[10] = (z) => {
|
|
1147
|
+
e.value.platform.discountItem = z;
|
|
1148
1148
|
})
|
|
1149
1149
|
}, null, 8, ["model-value"])
|
|
1150
1150
|
])
|
|
@@ -1156,8 +1156,8 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1156
1156
|
"model-value": e.value.platform.mappings.isCombineRefund ?? !1,
|
|
1157
1157
|
style: { gap: 0 },
|
|
1158
1158
|
disabled: e.value.platform.grouping != n(_e).BY_DAY,
|
|
1159
|
-
"onUpdate:modelValue": u[11] || (u[11] = (
|
|
1160
|
-
e.value.platform.mappings.isCombineRefund =
|
|
1159
|
+
"onUpdate:modelValue": u[11] || (u[11] = (z) => {
|
|
1160
|
+
e.value.platform.mappings.isCombineRefund = z;
|
|
1161
1161
|
})
|
|
1162
1162
|
}, null, 8, ["model-value", "disabled"])
|
|
1163
1163
|
])
|
|
@@ -1167,7 +1167,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1167
1167
|
t("div", ya, [
|
|
1168
1168
|
t("div", xa, [
|
|
1169
1169
|
u[33] || (u[33] = t("div", { class: "fm-typo-en-title-sm-800" }, "Taxes", -1)),
|
|
1170
|
-
l(
|
|
1170
|
+
l(H, {
|
|
1171
1171
|
variant: "secondary",
|
|
1172
1172
|
"prepend-icon": "add",
|
|
1173
1173
|
label: "Add taxes",
|
|
@@ -1194,16 +1194,16 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1194
1194
|
dropdownOptions: m.taxOptions.data ?? []
|
|
1195
1195
|
}
|
|
1196
1196
|
},
|
|
1197
|
-
onRemove: u[13] || (u[13] = (
|
|
1198
|
-
"onUpdate:rows": u[14] || (u[14] = (
|
|
1197
|
+
onRemove: u[13] || (u[13] = (z, ye) => s("taxes", ye)),
|
|
1198
|
+
"onUpdate:rows": u[14] || (u[14] = (z) => {
|
|
1199
1199
|
var ye, W;
|
|
1200
|
-
(W = (ye = e.value) == null ? void 0 : ye.platform) != null && W.mappings && (e.value.platform.mappings.taxes =
|
|
1200
|
+
(W = (ye = e.value) == null ? void 0 : ye.platform) != null && W.mappings && (e.value.platform.mappings.taxes = z);
|
|
1201
1201
|
})
|
|
1202
1202
|
}, null, 8, ["rows", "fields-options"])) : q("", !0),
|
|
1203
1203
|
l(E, { style: { margin: 0 } }),
|
|
1204
1204
|
t("div", wa, [
|
|
1205
1205
|
u[34] || (u[34] = t("div", { class: "fm-typo-en-title-sm-800" }, "Tax Rounding Adjustment", -1)),
|
|
1206
|
-
l(
|
|
1206
|
+
l(H, {
|
|
1207
1207
|
variant: "secondary",
|
|
1208
1208
|
"prepend-icon": "add",
|
|
1209
1209
|
label: "Add tax rounding adjustments",
|
|
@@ -1230,16 +1230,16 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1230
1230
|
dropdownOptions: m.accountCodeOptions.data ?? []
|
|
1231
1231
|
}
|
|
1232
1232
|
},
|
|
1233
|
-
onRemove: u[16] || (u[16] = (
|
|
1234
|
-
"onUpdate:rows": u[17] || (u[17] = (
|
|
1233
|
+
onRemove: u[16] || (u[16] = (z, ye) => s("taxRoundingAdjustments", ye)),
|
|
1234
|
+
"onUpdate:rows": u[17] || (u[17] = (z) => {
|
|
1235
1235
|
var ye, W;
|
|
1236
|
-
(W = (ye = e.value) == null ? void 0 : ye.platform) != null && W.mappings && (e.value.platform.mappings.taxRoundingAdjustments =
|
|
1236
|
+
(W = (ye = e.value) == null ? void 0 : ye.platform) != null && W.mappings && (e.value.platform.mappings.taxRoundingAdjustments = z);
|
|
1237
1237
|
})
|
|
1238
1238
|
}, null, 8, ["rows", "fields-options"])) : q("", !0),
|
|
1239
1239
|
l(E, { style: { margin: 0 } }),
|
|
1240
1240
|
t("div", _a, [
|
|
1241
1241
|
u[35] || (u[35] = t("div", { class: "fm-typo-en-title-sm-800" }, "Items", -1)),
|
|
1242
|
-
l(
|
|
1242
|
+
l(H, {
|
|
1243
1243
|
variant: "secondary",
|
|
1244
1244
|
"prepend-icon": "add",
|
|
1245
1245
|
label: "Add items",
|
|
@@ -1271,16 +1271,16 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1271
1271
|
dropdownOptions: m.itemOptions.data ?? []
|
|
1272
1272
|
}
|
|
1273
1273
|
},
|
|
1274
|
-
onRemove: u[19] || (u[19] = (
|
|
1275
|
-
"onUpdate:rows": u[20] || (u[20] = (
|
|
1274
|
+
onRemove: u[19] || (u[19] = (z, ye) => s("items", ye)),
|
|
1275
|
+
"onUpdate:rows": u[20] || (u[20] = (z) => {
|
|
1276
1276
|
var ye, W;
|
|
1277
|
-
(W = (ye = e.value) == null ? void 0 : ye.platform) != null && W.mappings && (e.value.platform.mappings.items =
|
|
1277
|
+
(W = (ye = e.value) == null ? void 0 : ye.platform) != null && W.mappings && (e.value.platform.mappings.items = z);
|
|
1278
1278
|
})
|
|
1279
1279
|
}, null, 8, ["rows", "fields-options"])) : q("", !0),
|
|
1280
1280
|
l(E, { style: { margin: 0 } }),
|
|
1281
1281
|
t("div", ka, [
|
|
1282
1282
|
u[36] || (u[36] = t("div", { class: "fm-typo-en-title-sm-800" }, "Payments", -1)),
|
|
1283
|
-
l(
|
|
1283
|
+
l(H, {
|
|
1284
1284
|
variant: "secondary",
|
|
1285
1285
|
"prepend-icon": "add",
|
|
1286
1286
|
label: "Add payments",
|
|
@@ -1307,10 +1307,10 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1307
1307
|
dropdownOptions: m.accountCodeOptions.data ?? []
|
|
1308
1308
|
}
|
|
1309
1309
|
},
|
|
1310
|
-
onRemove: u[22] || (u[22] = (
|
|
1311
|
-
"onUpdate:rows": u[23] || (u[23] = (
|
|
1310
|
+
onRemove: u[22] || (u[22] = (z, ye) => s("payments", ye)),
|
|
1311
|
+
"onUpdate:rows": u[23] || (u[23] = (z) => {
|
|
1312
1312
|
var ye, W;
|
|
1313
|
-
(W = (ye = e.value) == null ? void 0 : ye.platform) != null && W.mappings && (e.value.platform.mappings.payments =
|
|
1313
|
+
(W = (ye = e.value) == null ? void 0 : ye.platform) != null && W.mappings && (e.value.platform.mappings.payments = z);
|
|
1314
1314
|
})
|
|
1315
1315
|
}, null, 8, ["rows", "fields-options"])) : q("", !0)
|
|
1316
1316
|
])
|
|
@@ -1475,7 +1475,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1475
1475
|
t("div", Aa, [
|
|
1476
1476
|
l(at, {
|
|
1477
1477
|
"date-range": n(M),
|
|
1478
|
-
"onUpdate:dateRange": A[0] || (A[0] = (c) =>
|
|
1478
|
+
"onUpdate:dateRange": A[0] || (A[0] = (c) => ze(M) ? M.value = c : null),
|
|
1479
1479
|
compare: !1
|
|
1480
1480
|
}, null, 8, ["date-range"]),
|
|
1481
1481
|
l(V, {
|
|
@@ -1635,7 +1635,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1635
1635
|
}), Ma = {
|
|
1636
1636
|
key: 0,
|
|
1637
1637
|
class: "flex flex-col h-full"
|
|
1638
|
-
}, Ua = { class: "flex flex-col gap-16 pb-[24px]" }, Ra = { class: "flex flex-row justify-between items-center gap-2" }, Pa = { class: "fm-typo-en-title-sm-800" }, Oa = { class: "flex flex-row gap-2 items-center" }, La = { class: "relative group cursor-pointer" }, ja = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, Ea = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Ba = { class: "w-[90%] flex flex-col gap-24" }, Ya = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qa = { class: "flex flex-col justify-between" },
|
|
1638
|
+
}, Ua = { class: "flex flex-col gap-16 pb-[24px]" }, Ra = { class: "flex flex-row justify-between items-center gap-2" }, Pa = { class: "fm-typo-en-title-sm-800" }, Oa = { class: "flex flex-row gap-2 items-center" }, La = { class: "relative group cursor-pointer" }, ja = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, Ea = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Ba = { class: "w-[90%] flex flex-col gap-24" }, Ya = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qa = { class: "flex flex-col justify-between" }, Ha = { class: "w-[25%] font-semibold" }, za = { class: "flex-grow" }, Ga = { class: "flex flex-col justify-between" }, Qa = { class: "w-[25%] font-semibold" }, Wa = { class: "flex-grow" }, Xa = { class: "flex flex-col gap-16" }, Ja = { class: "fm-typo-en-title-sm-800" }, Za = { class: "flex flex-col max-w-[100%]" }, el = { class: "w-[25%] font-semibold" }, tl = { class: "flex-grow" }, ol = { class: "flex flex-col max-w-[100%]" }, al = { class: "w-[25%] font-semibold" }, ll = {
|
|
1639
1639
|
key: 0,
|
|
1640
1640
|
class: "flex flex-col gap-8 max-w-[100%]"
|
|
1641
1641
|
}, nl = { class: "flex flex-row items-start gap-1" }, sl = { class: "fm-typo-en-title-sm-800 pb-3" }, rl = { class: "ps-5 ms-1 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, il = { class: "ps-5 ms-1 flex flex-row flex-wrap gap-4 justify-between w-[100%]" }, dl = { class: "w-1/2" }, pl = { class: "w-1/2" }, ul = { class: "flex flex-row items-center w-full mb-2" }, cl = { class: "w-1/2 pe-2 flex justify-start" }, ml = { class: "text-nowrap overflow-hidden text-ellipsis font-semibold text-left" }, fl = { class: "w-1/2" }, gl = { class: "flex flex-col max-w-[100%]" }, vl = { class: "w-[25%] font-semibold" }, yl = { class: "flex flex-col max-w-[100%]" }, xl = { class: "flex flex-col gap-16" }, bl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, wl = { class: "flex flex-col gap-16 pt-3 pb-3" }, hl = { class: "flex flex-row items-center gap-5" }, _l = { class: "fm-typo-en-title-sm-800" }, Cl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, kl = { class: "flex flex-row items-center justify-between gap-x-16" }, Sl = { class: "fm-typo-en-title-sm-800" }, $l = { class: "flex flex-row items-center justify-between gap-x-16" }, Dl = { class: "fm-typo-en-title-sm-800" }, Al = { class: "flex flex-row items-center justify-between gap-x-16" }, Il = { class: "fm-typo-en-title-sm-800" }, Tl = { class: "flex flex-row items-center justify-between gap-x-16" }, Nl = { class: "fm-typo-en-title-sm-800" }, Vl = /* @__PURE__ */ ve({
|
|
@@ -1738,7 +1738,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1738
1738
|
}
|
|
1739
1739
|
});
|
|
1740
1740
|
}
|
|
1741
|
-
async function
|
|
1741
|
+
async function H() {
|
|
1742
1742
|
var Q;
|
|
1743
1743
|
const k = (Q = o.value.platform) == null ? void 0 : Q.locationIds;
|
|
1744
1744
|
if (Ae({
|
|
@@ -1848,7 +1848,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1848
1848
|
async function y() {
|
|
1849
1849
|
await F(async () => {
|
|
1850
1850
|
try {
|
|
1851
|
-
await
|
|
1851
|
+
await He(o.value._id), await p.getSettings(), await m.loadTags();
|
|
1852
1852
|
} catch (k) {
|
|
1853
1853
|
e.open({ type: "error", message: k.message });
|
|
1854
1854
|
}
|
|
@@ -1857,7 +1857,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1857
1857
|
return Xe(async () => {
|
|
1858
1858
|
await p.getSettings();
|
|
1859
1859
|
}), (k, D) => {
|
|
1860
|
-
var G, B, Y, oe, j, le, fe, Ke, Me, Ue, Re, Pe, Oe, Le, I, J,
|
|
1860
|
+
var G, B, Y, oe, j, le, fe, Ke, Me, Ue, Re, Pe, Oe, Le, I, J, z, ye;
|
|
1861
1861
|
const Q = T("FmIcon"), Z = T("FmButton"), ne = T("FmMenuDivider"), re = T("FmTextField"), U = T("FmSelect"), _ = T("FmTooltip");
|
|
1862
1862
|
return (B = (G = o.value) == null ? void 0 : G.platform) != null && B.mappings ? (x(), R("div", Ma, [
|
|
1863
1863
|
t("div", Ua, [
|
|
@@ -1881,7 +1881,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1881
1881
|
variant: "primary",
|
|
1882
1882
|
label: n(f)("report.common.update"),
|
|
1883
1883
|
"prepend-icon": "update",
|
|
1884
|
-
onClick:
|
|
1884
|
+
onClick: H
|
|
1885
1885
|
}, null, 8, ["label"])
|
|
1886
1886
|
])
|
|
1887
1887
|
])
|
|
@@ -1891,8 +1891,8 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1891
1891
|
t("div", Ba, [
|
|
1892
1892
|
t("div", Ya, C(n(f)("report.integration.bukku.authentication")), 1),
|
|
1893
1893
|
t("div", qa, [
|
|
1894
|
-
t("div",
|
|
1895
|
-
t("div",
|
|
1894
|
+
t("div", Ha, C(n(f)("report.integration.subdomain")), 1),
|
|
1895
|
+
t("div", za, [
|
|
1896
1896
|
l(re, {
|
|
1897
1897
|
modelValue: o.value.platform.subdomain,
|
|
1898
1898
|
"onUpdate:modelValue": D[0] || (D[0] = (W) => o.value.platform.subdomain = W),
|
|
@@ -2208,7 +2208,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2208
2208
|
]),
|
|
2209
2209
|
l(ue, {
|
|
2210
2210
|
"header-items": ["FeedMe Key", "Payment Name", "Account Code"],
|
|
2211
|
-
rows: ((ye = (
|
|
2211
|
+
rows: ((ye = (z = (J = o.value) == null ? void 0 : J.platform) == null ? void 0 : z.mappings) == null ? void 0 : ye.payments) || [],
|
|
2212
2212
|
"columns-per-row": 1,
|
|
2213
2213
|
removable: !0,
|
|
2214
2214
|
"mapping-type": "payments",
|
|
@@ -2458,7 +2458,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2458
2458
|
t("div", Kl, [
|
|
2459
2459
|
l(at, {
|
|
2460
2460
|
"date-range": n(A),
|
|
2461
|
-
"onUpdate:dateRange": v[0] || (v[0] = (g) =>
|
|
2461
|
+
"onUpdate:dateRange": v[0] || (v[0] = (g) => ze(A) ? A.value = g : null),
|
|
2462
2462
|
compare: !1
|
|
2463
2463
|
}, null, 8, ["date-range"]),
|
|
2464
2464
|
l(d, {
|
|
@@ -2571,13 +2571,13 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2571
2571
|
}), El = {
|
|
2572
2572
|
key: 0,
|
|
2573
2573
|
class: "flex flex-col h-full"
|
|
2574
|
-
}, Bl = { class: "flex flex-col gap-16 pb-[24px]" }, Yl = { class: "flex flex-row justify-between items-center gap-2" }, ql = { class: "flex flex-row gap-2 items-center" },
|
|
2574
|
+
}, Bl = { class: "flex flex-col gap-16 pb-[24px]" }, Yl = { class: "flex flex-row justify-between items-center gap-2" }, ql = { class: "flex flex-row gap-2 items-center" }, Hl = { class: "relative group cursor-pointer" }, zl = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, Gl = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Ql = { class: "w-[90%] flex flex-col gap-24" }, Wl = { class: "flex flex-col gap-16" }, Xl = { class: "fm-typo-en-title-sm-800" }, Jl = { class: "flex flex-col max-w-[100%]" }, Zl = { class: "w-[25%] font-semibold" }, en = { class: "flex-grow" }, tn = { class: "flex flex-col gap-24" }, on = { class: "flex flex-col max-w-[100%]" }, an = { class: "w-[25%] font-semibold" }, ln = { class: "flex flex-row items-start gap-1" }, nn = { class: "fm-typo-en-title-sm-800 pb-3" }, sn = { class: "flex flex-col max-w-[100%]" }, rn = { class: "w-[25%] font-semibold" }, dn = {
|
|
2575
2575
|
key: 0,
|
|
2576
2576
|
class: "flex flex-row items-center max-w-[100%] justify-between pl-4"
|
|
2577
2577
|
}, pn = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, un = { class: "flex-grow" }, cn = { class: "flex flex-col gap-16" }, mn = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, fn = { class: "flex flex-col gap-16 pt-3 pb-3" }, gn = { class: "flex flex-row items-center gap-5" }, vn = { class: "fm-typo-en-title-sm-800" }, yn = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, xn = { class: "flex flex-row items-center justify-between gap-x-16" }, bn = { class: "fm-typo-en-title-sm-800" }, wn = { class: "flex flex-row items-center justify-between gap-x-16" }, hn = { class: "fm-typo-en-title-sm-800" }, _n = { class: "flex flex-row items-center justify-between gap-x-16" }, Cn = { class: "fm-typo-en-title-sm-800" }, kn = { class: "flex flex-row items-center justify-between gap-x-16" }, Sn = { class: "fm-typo-en-title-sm-800" }, $n = { class: "flex flex-row items-center justify-between gap-x-16" }, Dn = { class: "flex flex-col gap-4" }, An = { class: "fm-typo-en-title-sm-800" }, In = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Tn = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16 items-center" }, Nn = ["onKeydown"], Vn = {
|
|
2578
2578
|
key: 0,
|
|
2579
2579
|
class: "sr-only"
|
|
2580
|
-
}, Fn = { class: "flex flex-row items-center justify-between gap-x-16" }, Kn = { class: "fm-typo-en-title-sm-800" }, Mn = { class: "flex flex-col gap-16" }, Un = { class: "flex flex-row items-center justify-between gap-x-16" }, Rn = { class: "flex flex-row items-center max-w-[100%] justify-between pl-4" }, Pn = { class: "flex-grow" }, On = { class: "flex flex-row items-center justify-between gap-x-16" }, Ln = { class: "fm-typo-en-title-sm-800" }, jn = { class: "flex flex-row items-center justify-between gap-x-16" }, En = { class: "flex flex-col gap-4" }, Bn = { class: "fm-typo-en-title-sm-800" }, Yn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, qn = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16 items-center" },
|
|
2580
|
+
}, Fn = { class: "flex flex-row items-center justify-between gap-x-16" }, Kn = { class: "fm-typo-en-title-sm-800" }, Mn = { class: "flex flex-col gap-16" }, Un = { class: "flex flex-row items-center justify-between gap-x-16" }, Rn = { class: "flex flex-row items-center max-w-[100%] justify-between pl-4" }, Pn = { class: "flex-grow" }, On = { class: "flex flex-row items-center justify-between gap-x-16" }, Ln = { class: "fm-typo-en-title-sm-800" }, jn = { class: "flex flex-row items-center justify-between gap-x-16" }, En = { class: "flex flex-col gap-4" }, Bn = { class: "fm-typo-en-title-sm-800" }, Yn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, qn = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16 items-center" }, Hn = ["onKeydown"], zn = { class: "fm-typo-en-title-sm-800" }, Gn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary underline underline-offset-2" }, Qn = { class: "flex flex-row items-center justify-between gap-x-16" }, Wn = { class: "fm-typo-en-title-sm-800" }, Xn = ["onKeydown"], Jn = { class: "fm-typo-en-title-sm-800" }, Zn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary underline underline-offset-2" }, es = "BILL_PRICE_ADJUSTMENT", ts = "ITEM_PRICE_ADJUSTMENT", os = /* @__PURE__ */ ve({
|
|
2581
2581
|
__name: "Setting",
|
|
2582
2582
|
props: /* @__PURE__ */ ke({
|
|
2583
2583
|
errorLogs: {}
|
|
@@ -2688,7 +2688,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2688
2688
|
const G = (Y = (B = e.value.platform) == null ? void 0 : B.apInvoice) == null ? void 0 : Y.mappings;
|
|
2689
2689
|
G && (G[U] = G[U].filter((oe, j) => j !== _));
|
|
2690
2690
|
}
|
|
2691
|
-
function
|
|
2691
|
+
function H(U, _) {
|
|
2692
2692
|
var oe, j;
|
|
2693
2693
|
const G = (j = (oe = e.value.platform) == null ? void 0 : oe.apInvoice) == null ? void 0 : j.mappings;
|
|
2694
2694
|
if (!G) return;
|
|
@@ -2792,7 +2792,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2792
2792
|
async function re() {
|
|
2793
2793
|
await N(async () => {
|
|
2794
2794
|
try {
|
|
2795
|
-
await
|
|
2795
|
+
await He(e.value._id), await b.getSettings();
|
|
2796
2796
|
} catch (U) {
|
|
2797
2797
|
p.open({ type: "error", message: U.message });
|
|
2798
2798
|
}
|
|
@@ -2801,20 +2801,20 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2801
2801
|
return Xe(async () => {
|
|
2802
2802
|
v && clearTimeout(v), d && clearTimeout(d), await b.getSettings();
|
|
2803
2803
|
}), (U, _) => {
|
|
2804
|
-
var fe, Ke, Me, Ue, Re, Pe, Oe, Le, I, J,
|
|
2804
|
+
var fe, Ke, Me, Ue, Re, Pe, Oe, Le, I, J, z, ye, W, ge, he, je, gt, vt, yt, xt, bt, wt, ht, _t;
|
|
2805
2805
|
const G = T("FmIcon"), B = T("FmButton"), Y = T("FmMenuDivider"), oe = T("FmTextField"), j = T("FmSelect"), le = T("FmSwitch");
|
|
2806
2806
|
return (Ke = (fe = e.value) == null ? void 0 : fe.platform) != null && Ke.mappings ? (x(), R("div", El, [
|
|
2807
2807
|
t("div", Bl, [
|
|
2808
2808
|
t("div", Yl, [
|
|
2809
2809
|
_[40] || (_[40] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
|
|
2810
2810
|
t("div", ql, [
|
|
2811
|
-
t("div",
|
|
2811
|
+
t("div", Hl, [
|
|
2812
2812
|
l(G, {
|
|
2813
2813
|
name: "refresh",
|
|
2814
2814
|
class: "p-2 bg-gray-100 rounded-full",
|
|
2815
2815
|
onClick: re
|
|
2816
2816
|
}),
|
|
2817
|
-
t("span",
|
|
2817
|
+
t("span", zl, C(n(o)("report.integration.refreshSettingTooltip")), 1)
|
|
2818
2818
|
]),
|
|
2819
2819
|
l(B, {
|
|
2820
2820
|
variant: "tertiary",
|
|
@@ -3031,7 +3031,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3031
3031
|
]),
|
|
3032
3032
|
l(ue, {
|
|
3033
3033
|
"header-items": ["FeedMe Key", "Account Code"],
|
|
3034
|
-
rows: ((ye = (
|
|
3034
|
+
rows: ((ye = (z = (J = e.value) == null ? void 0 : J.platform) == null ? void 0 : z.mappings) == null ? void 0 : ye.taxes) || [],
|
|
3035
3035
|
"columns-per-row": 2,
|
|
3036
3036
|
removable: !0,
|
|
3037
3037
|
"mapping-type": "taxes",
|
|
@@ -3224,7 +3224,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3224
3224
|
accNo: { placeholder: n(o)("report.integration.autocount.apInvoice.accNo"), editable: !0 },
|
|
3225
3225
|
uom: { placeholder: "UOM", editable: !0 }
|
|
3226
3226
|
},
|
|
3227
|
-
onRemove: _[30] || (_[30] = (ee, me) =>
|
|
3227
|
+
onRemove: _[30] || (_[30] = (ee, me) => H("priceAdjustment", me)),
|
|
3228
3228
|
"onUpdate:rows": _[31] || (_[31] = (ee) => {
|
|
3229
3229
|
O("priceAdjustment", ee);
|
|
3230
3230
|
})
|
|
@@ -3267,7 +3267,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3267
3267
|
accNo: { placeholder: n(o)("report.integration.autocount.apInvoice.accNo"), editable: !0 },
|
|
3268
3268
|
uom: { placeholder: "UOM", editable: !0 }
|
|
3269
3269
|
},
|
|
3270
|
-
onRemove: _[33] || (_[33] = (ee, me) =>
|
|
3270
|
+
onRemove: _[33] || (_[33] = (ee, me) => H("inventory", me)),
|
|
3271
3271
|
"onUpdate:rows": _[34] || (_[34] = (ee) => {
|
|
3272
3272
|
O("inventory", ee);
|
|
3273
3273
|
})
|
|
@@ -3312,9 +3312,9 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3312
3312
|
nt(mt(Z, ["prevent"]), ["space"])
|
|
3313
3313
|
]
|
|
3314
3314
|
}, [
|
|
3315
|
-
t("div",
|
|
3315
|
+
t("div", zn, C(n(o)("report.integration.autocount.apInvoice.projectNo")), 1),
|
|
3316
3316
|
t("div", Gn, C(n(o)("report.integration.autocount.stockTransfer.projectNoSharedHint")), 1)
|
|
3317
|
-
], 40,
|
|
3317
|
+
], 40, Hn)
|
|
3318
3318
|
]),
|
|
3319
3319
|
e.value.platform.stockTransfer.enable ? (x(), R($e, { key: 0 }, [
|
|
3320
3320
|
t("div", Qn, [
|
|
@@ -3739,7 +3739,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3739
3739
|
t("div", ns, [
|
|
3740
3740
|
l(at, {
|
|
3741
3741
|
"date-range": n($),
|
|
3742
|
-
"onUpdate:dateRange": r[0] || (r[0] = (w) =>
|
|
3742
|
+
"onUpdate:dateRange": r[0] || (r[0] = (w) => ze($) ? $.value = w : null),
|
|
3743
3743
|
compare: !1
|
|
3744
3744
|
}, null, 8, ["date-range"]),
|
|
3745
3745
|
l(s, {
|
|
@@ -3853,7 +3853,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3853
3853
|
}, fs = { class: "flex flex-col gap-16 pb-[24px]" }, gs = { class: "flex flex-row justify-between items-center gap-2" }, vs = { class: "flex flex-row gap-2 items-center" }, ys = { class: "relative group cursor-pointer" }, xs = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, bs = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, ws = { class: "w-[90%] flex flex-col gap-24" }, hs = { class: "flex flex-col gap-16" }, _s = { class: "fm-typo-en-title-sm-800" }, Cs = { class: "flex flex-col max-w-[100%]" }, ks = { class: "w-[25%] font-semibold" }, Ss = { class: "flex-grow" }, $s = { class: "flex flex-col max-w-[100%]" }, Ds = { class: "w-[25%] font-semibold" }, As = { class: "flex flex-col max-w-[100%]" }, Is = { class: "w-[25%] font-semibold" }, Ts = {
|
|
3854
3854
|
key: 0,
|
|
3855
3855
|
class: "flex flex-row items-center max-w-[100%] justify-between pl-4"
|
|
3856
|
-
}, Ns = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, Vs = { class: "flex-grow" }, Fs = { class: "flex flex-col gap-16" }, Ks = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ms = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Us = { class: "flex flex-col gap-16 pt-3 pb-3" }, Rs = { class: "flex flex-row items-center gap-5" }, Ps = { class: "fm-typo-en-title-sm-800" }, Os = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ls = { class: "flex flex-row items-center justify-between gap-x-16" }, js = { class: "fm-typo-en-title-sm-800" }, Es = { class: "flex flex-row items-center justify-between gap-x-16" }, Bs = { class: "fm-typo-en-title-sm-800" }, Ys = { class: "flex flex-row items-center justify-between gap-x-16" }, qs = { class: "fm-typo-en-title-sm-800" },
|
|
3856
|
+
}, Ns = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, Vs = { class: "flex-grow" }, Fs = { class: "flex flex-col gap-16" }, Ks = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ms = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Us = { class: "flex flex-col gap-16 pt-3 pb-3" }, Rs = { class: "flex flex-row items-center gap-5" }, Ps = { class: "fm-typo-en-title-sm-800" }, Os = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ls = { class: "flex flex-row items-center justify-between gap-x-16" }, js = { class: "fm-typo-en-title-sm-800" }, Es = { class: "flex flex-row items-center justify-between gap-x-16" }, Bs = { class: "fm-typo-en-title-sm-800" }, Ys = { class: "flex flex-row items-center justify-between gap-x-16" }, qs = { class: "fm-typo-en-title-sm-800" }, Hs = { class: "flex flex-row items-center justify-between gap-x-16" }, zs = { class: "fm-typo-en-title-sm-800" }, Gs = { class: "flex flex-row items-center justify-between gap-x-16" }, Qs = { class: "fm-typo-en-title-sm-800" }, Ws = { class: "flex flex-row items-center justify-between gap-x-16" }, Xs = { class: "flex flex-row items-center justify-between gap-x-16" }, Js = /* @__PURE__ */ ve({
|
|
3857
3857
|
__name: "Setting",
|
|
3858
3858
|
props: /* @__PURE__ */ ke({
|
|
3859
3859
|
errorLogs: {}
|
|
@@ -3901,15 +3901,15 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3901
3901
|
}
|
|
3902
3902
|
await N(async () => {
|
|
3903
3903
|
try {
|
|
3904
|
-
await Qe(e.value._id, e.value), await
|
|
3904
|
+
await Qe(e.value._id, e.value), await He(e.value._id), await b.getSettings();
|
|
3905
3905
|
} catch (u) {
|
|
3906
3906
|
p.open({ type: "error", message: u.message });
|
|
3907
3907
|
}
|
|
3908
3908
|
});
|
|
3909
3909
|
}
|
|
3910
3910
|
function K(i, a, w) {
|
|
3911
|
-
var
|
|
3912
|
-
const u = (
|
|
3911
|
+
var H;
|
|
3912
|
+
const u = (H = e.value.platform) == null ? void 0 : H[w];
|
|
3913
3913
|
if (!u) return;
|
|
3914
3914
|
if ([
|
|
3915
3915
|
"items",
|
|
@@ -3956,7 +3956,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3956
3956
|
async function r() {
|
|
3957
3957
|
await N(async () => {
|
|
3958
3958
|
try {
|
|
3959
|
-
await
|
|
3959
|
+
await He(e.value._id), await b.getSettings();
|
|
3960
3960
|
} catch (i) {
|
|
3961
3961
|
p.open({ type: "error", message: i.message });
|
|
3962
3962
|
}
|
|
@@ -3991,7 +3991,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3991
3991
|
await b.getSettings();
|
|
3992
3992
|
}), (i, a) => {
|
|
3993
3993
|
var de, pe, xe, O, y, k, D, Q, Z, ne, re, U, _, G, B, Y, oe, j, le, fe, Ke, Me, Ue, Re, Pe, Oe, Le;
|
|
3994
|
-
const w = T("FmIcon"), u = T("FmButton"), L = T("FmMenuDivider"),
|
|
3994
|
+
const w = T("FmIcon"), u = T("FmButton"), L = T("FmMenuDivider"), H = T("FmTextField"), E = T("FmSelect"), te = T("FmSwitch");
|
|
3995
3995
|
return (pe = (de = e.value) == null ? void 0 : de.platform) != null && pe.mappings ? (x(), R("div", ms, [
|
|
3996
3996
|
t("div", fs, [
|
|
3997
3997
|
t("div", gs, [
|
|
@@ -4027,7 +4027,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4027
4027
|
t("div", Cs, [
|
|
4028
4028
|
t("div", ks, C(n(o)("report.common.name")), 1),
|
|
4029
4029
|
t("div", Ss, [
|
|
4030
|
-
l(
|
|
4030
|
+
l(H, {
|
|
4031
4031
|
modelValue: e.value.name,
|
|
4032
4032
|
"onUpdate:modelValue": a[0] || (a[0] = (I) => e.value.name = I)
|
|
4033
4033
|
}, null, 8, ["modelValue"])
|
|
@@ -4119,14 +4119,14 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4119
4119
|
code: { placeholder: "Item Code", editable: !0 }
|
|
4120
4120
|
},
|
|
4121
4121
|
"onUpdate:modelValue": a[8] || (a[8] = (I) => {
|
|
4122
|
-
var J,
|
|
4123
|
-
(ye = (
|
|
4122
|
+
var J, z, ye;
|
|
4123
|
+
(ye = (z = (J = e.value) == null ? void 0 : J.platform) == null ? void 0 : z.mappings) != null && ye.rounding && (e.value.platform.mappings.rounding.account = I.account, e.value.platform.mappings.rounding.code = I.code);
|
|
4124
4124
|
})
|
|
4125
4125
|
}, null, 8, ["model-value"]),
|
|
4126
4126
|
(x(!0), R($e, null, qe((y = (O = (xe = e.value) == null ? void 0 : xe.platform) == null ? void 0 : O.mappings) == null ? void 0 : y.charges, (I, J) => (x(), ae(ie, {
|
|
4127
4127
|
key: `charge-${J}`,
|
|
4128
4128
|
modelValue: e.value.platform.mappings.charges[J],
|
|
4129
|
-
"onUpdate:modelValue": (
|
|
4129
|
+
"onUpdate:modelValue": (z) => e.value.platform.mappings.charges[J] = z,
|
|
4130
4130
|
options: {
|
|
4131
4131
|
key: { placeholder: "FeedMe Key", editable: !1 },
|
|
4132
4132
|
account: { placeholder: "Account Code", editable: !0 },
|
|
@@ -4209,8 +4209,8 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4209
4209
|
},
|
|
4210
4210
|
onRemove: a[15] || (a[15] = (I, J) => K("items", J, "mappings")),
|
|
4211
4211
|
"onUpdate:rows": a[16] || (a[16] = (I) => {
|
|
4212
|
-
var J,
|
|
4213
|
-
(
|
|
4212
|
+
var J, z;
|
|
4213
|
+
(z = (J = e.value) == null ? void 0 : J.platform) != null && z.mappings && (e.value.platform.mappings.items = I);
|
|
4214
4214
|
})
|
|
4215
4215
|
}, null, 8, ["rows"]),
|
|
4216
4216
|
l(L, { style: { margin: 0 } }),
|
|
@@ -4235,8 +4235,8 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4235
4235
|
},
|
|
4236
4236
|
onRemove: a[18] || (a[18] = (I, J) => K("taxes", J, "mappings")),
|
|
4237
4237
|
"onUpdate:rows": a[19] || (a[19] = (I) => {
|
|
4238
|
-
var J,
|
|
4239
|
-
(
|
|
4238
|
+
var J, z;
|
|
4239
|
+
(z = (J = e.value) == null ? void 0 : J.platform) != null && z.mappings && (e.value.platform.mappings.taxes = I);
|
|
4240
4240
|
})
|
|
4241
4241
|
}, null, 8, ["rows"]),
|
|
4242
4242
|
l(L, { style: { margin: 0 } }),
|
|
@@ -4261,13 +4261,13 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4261
4261
|
},
|
|
4262
4262
|
onRemove: a[21] || (a[21] = (I, J) => K("taxesForRefund", J, "mappings")),
|
|
4263
4263
|
"onUpdate:rows": a[22] || (a[22] = (I) => {
|
|
4264
|
-
var J,
|
|
4265
|
-
(
|
|
4264
|
+
var J, z;
|
|
4265
|
+
(z = (J = e.value) == null ? void 0 : J.platform) != null && z.mappings && (e.value.platform.mappings.taxesForRefund = I);
|
|
4266
4266
|
})
|
|
4267
4267
|
}, null, 8, ["rows"]),
|
|
4268
4268
|
l(L, { style: { margin: 0 } }),
|
|
4269
|
-
t("div",
|
|
4270
|
-
t("div",
|
|
4269
|
+
t("div", Hs, [
|
|
4270
|
+
t("div", zs, C(n(o)("report.integration.taxRoundingAdjustments")), 1),
|
|
4271
4271
|
l(u, {
|
|
4272
4272
|
variant: "secondary",
|
|
4273
4273
|
"prepend-icon": "add",
|
|
@@ -4287,8 +4287,8 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4287
4287
|
},
|
|
4288
4288
|
onRemove: a[24] || (a[24] = (I, J) => K("taxRoundingAdjustments", J, "mappings")),
|
|
4289
4289
|
"onUpdate:rows": a[25] || (a[25] = (I) => {
|
|
4290
|
-
var J,
|
|
4291
|
-
(
|
|
4290
|
+
var J, z;
|
|
4291
|
+
(z = (J = e.value) == null ? void 0 : J.platform) != null && z.mappings && (e.value.platform.mappings.taxRoundingAdjustments = I);
|
|
4292
4292
|
})
|
|
4293
4293
|
}, null, 8, ["rows"]),
|
|
4294
4294
|
l(L, { style: { margin: 0 } }),
|
|
@@ -4313,8 +4313,8 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4313
4313
|
},
|
|
4314
4314
|
onRemove: a[27] || (a[27] = (I, J) => K("payments", J, "mappings")),
|
|
4315
4315
|
"onUpdate:rows": a[28] || (a[28] = (I) => {
|
|
4316
|
-
var J,
|
|
4317
|
-
(
|
|
4316
|
+
var J, z;
|
|
4317
|
+
(z = (J = e.value) == null ? void 0 : J.platform) != null && z.mappings && (e.value.platform.mappings.payments = I);
|
|
4318
4318
|
})
|
|
4319
4319
|
}, null, 8, ["rows"]),
|
|
4320
4320
|
l(L, { style: { margin: 0 } }),
|
|
@@ -4341,8 +4341,8 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4341
4341
|
uom: { placeholder: "UOM", editable: !0 }
|
|
4342
4342
|
},
|
|
4343
4343
|
onRemove: a[30] || (a[30] = (I, J) => {
|
|
4344
|
-
var
|
|
4345
|
-
if (((W = (ye = (
|
|
4344
|
+
var z, ye, W;
|
|
4345
|
+
if (((W = (ye = (z = e.value) == null ? void 0 : z.platform) == null ? void 0 : ye.inventoryMappings) == null ? void 0 : W.items[J].key) === "DEFAULT") {
|
|
4346
4346
|
n(p).open({
|
|
4347
4347
|
type: "error",
|
|
4348
4348
|
message: "DEFAULT item cannot be removed."
|
|
@@ -4352,8 +4352,8 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4352
4352
|
K("items", J, "inventoryMappings");
|
|
4353
4353
|
}),
|
|
4354
4354
|
"onUpdate:rows": a[31] || (a[31] = (I) => {
|
|
4355
|
-
var J,
|
|
4356
|
-
(
|
|
4355
|
+
var J, z;
|
|
4356
|
+
(z = (J = e.value) == null ? void 0 : J.platform) != null && z.inventoryMappings && (e.value.platform.inventoryMappings.items = I);
|
|
4357
4357
|
})
|
|
4358
4358
|
}, null, 8, ["rows"]),
|
|
4359
4359
|
l(L, { style: { margin: 0 } }),
|
|
@@ -4381,8 +4381,8 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4381
4381
|
K("suppliers", J, "inventoryMappings");
|
|
4382
4382
|
}),
|
|
4383
4383
|
"onUpdate:rows": a[34] || (a[34] = (I) => {
|
|
4384
|
-
var J,
|
|
4385
|
-
(
|
|
4384
|
+
var J, z;
|
|
4385
|
+
(z = (J = e.value) == null ? void 0 : J.platform) != null && z.inventoryMappings && (e.value.platform.inventoryMappings.suppliers = I);
|
|
4386
4386
|
})
|
|
4387
4387
|
}, null, 8, ["rows"])
|
|
4388
4388
|
], 64)) : q("", !0)
|
|
@@ -4640,7 +4640,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4640
4640
|
t("div", er, [
|
|
4641
4641
|
l(at, {
|
|
4642
4642
|
"date-range": n(S),
|
|
4643
|
-
"onUpdate:dateRange": v[0] || (v[0] = (i) =>
|
|
4643
|
+
"onUpdate:dateRange": v[0] || (v[0] = (i) => ze(S) ? S.value = i : null),
|
|
4644
4644
|
compare: !1
|
|
4645
4645
|
}, null, 8, ["date-range"]),
|
|
4646
4646
|
l(d, {
|
|
@@ -4742,7 +4742,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4742
4742
|
}, dr = { class: "flex flex-col gap-16 pb-[24px]" }, pr = { class: "flex flex-row justify-between items-center gap-2" }, ur = { class: "fm-typo-en-title-sm-800" }, cr = { class: "flex flex-row gap-2 items-center" }, mr = { class: "flex flex-row gap-2 items-center" }, fr = { class: "relative group cursor-pointer" }, gr = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, vr = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, yr = { class: "w-[90%] flex flex-col gap-24" }, xr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, br = { class: "flex flex-col max-w-[100%]" }, wr = { class: "w-[25%] font-semibold" }, hr = { class: "flex-grow" }, _r = { class: "flex flex-col gap-24 pt-[24px]" }, Cr = { class: "flex flex-col justify-between" }, kr = { class: "w-[25%] font-semibold" }, Sr = { class: "flex-grow" }, $r = { class: "flex flex-col justify-between" }, Dr = { class: "w-[25%] font-semibold" }, Ar = { class: "flex-grow" }, Ir = { class: "flex flex-col gap-16" }, Tr = { class: "fm-typo-en-title-sm-800" }, Nr = { class: "flex flex-col max-w-[100%]" }, Vr = { class: "w-[25%] font-semibold" }, Fr = { class: "flex-grow" }, Kr = { class: "flex flex-col max-w-[100%]" }, Mr = { class: "w-[25%] font-semibold" }, Ur = { class: "flex flex-col max-w-[100%]" }, Rr = { class: "w-[25%] font-semibold" }, Pr = {
|
|
4743
4743
|
key: 0,
|
|
4744
4744
|
class: "flex flex-col max-w-[100%]"
|
|
4745
|
-
}, Or = { class: "flex flex-col gap-16" }, Lr = { class: "xs:grid-cols-1 grid gap-16" }, jr = { key: 1 }, Er = { class: "flex flex-col gap-16 pt-3 pb-3" }, Br = { class: "flex flex-row items-center gap-5" }, Yr = { class: "fm-typo-en-title-sm-800" }, qr = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" },
|
|
4745
|
+
}, Or = { class: "flex flex-col gap-16" }, Lr = { class: "xs:grid-cols-1 grid gap-16" }, jr = { key: 1 }, Er = { class: "flex flex-col gap-16 pt-3 pb-3" }, Br = { class: "flex flex-row items-center gap-5" }, Yr = { class: "fm-typo-en-title-sm-800" }, qr = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Hr = { class: "flex flex-row items-center justify-between gap-x-16" }, zr = { class: "fm-typo-en-title-sm-800" }, Gr = { class: "flex flex-row items-center justify-between gap-x-16" }, Qr = { class: "fm-typo-en-title-sm-800" }, Wr = { class: "flex flex-row items-center justify-between gap-x-16" }, Xr = { class: "fm-typo-en-title-sm-800" }, Jr = { class: "flex flex-row items-center justify-between gap-x-16" }, Zr = { class: "fm-typo-en-title-sm-800" }, ei = { class: "flex flex-row items-center justify-between" }, ti = { class: "flex-grow" }, oi = {
|
|
4746
4746
|
key: 0,
|
|
4747
4747
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
4748
4748
|
}, ai = {
|
|
@@ -4816,9 +4816,9 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4816
4816
|
return;
|
|
4817
4817
|
}
|
|
4818
4818
|
await N(async () => {
|
|
4819
|
-
var u, L,
|
|
4819
|
+
var u, L, H;
|
|
4820
4820
|
try {
|
|
4821
|
-
(
|
|
4821
|
+
(H = (L = (u = e.value) == null ? void 0 : u.platform) == null ? void 0 : L.mappings) != null && H.paymentMethods && V(e.value.platform.mappings.paymentMethods), await Qe(e.value._id, e.value), await b.getSettings();
|
|
4822
4822
|
} catch (E) {
|
|
4823
4823
|
p.open({ type: "error", message: E.message });
|
|
4824
4824
|
}
|
|
@@ -4829,8 +4829,8 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4829
4829
|
const w = (L = e.value.platform) == null ? void 0 : L.mappings;
|
|
4830
4830
|
if (!w) return;
|
|
4831
4831
|
if (["items", "taxes", "paymentMethods", "taxRoundingAdjustments"].includes(i)) {
|
|
4832
|
-
const
|
|
4833
|
-
w[
|
|
4832
|
+
const H = i;
|
|
4833
|
+
w[H] && Array.isArray(w[H]) && (w[H] = w[H].filter(
|
|
4834
4834
|
(E, te) => te !== a
|
|
4835
4835
|
));
|
|
4836
4836
|
}
|
|
@@ -4878,7 +4878,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4878
4878
|
},
|
|
4879
4879
|
(i) => {
|
|
4880
4880
|
i && i.forEach((a, w) => {
|
|
4881
|
-
var
|
|
4881
|
+
var H;
|
|
4882
4882
|
const u = a.key || "";
|
|
4883
4883
|
let L = a.account;
|
|
4884
4884
|
if (!L && u) {
|
|
@@ -4893,7 +4893,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4893
4893
|
L = "SST-0";
|
|
4894
4894
|
break;
|
|
4895
4895
|
}
|
|
4896
|
-
(
|
|
4896
|
+
(H = e.value.platform) != null && H.mappings && (e.value.platform.mappings.taxes[w] = {
|
|
4897
4897
|
...a,
|
|
4898
4898
|
account: L
|
|
4899
4899
|
});
|
|
@@ -4907,8 +4907,8 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4907
4907
|
return (w = (a = (i = e.value) == null ? void 0 : i.platform) == null ? void 0 : a.mappings) == null ? void 0 : w.version;
|
|
4908
4908
|
},
|
|
4909
4909
|
(i) => {
|
|
4910
|
-
var a, w, u, L,
|
|
4911
|
-
i === "v1" && !((u = (w = (a = e.value) == null ? void 0 : a.platform) == null ? void 0 : w.mappings) != null && u.payee) && (
|
|
4910
|
+
var a, w, u, L, H;
|
|
4911
|
+
i === "v1" && !((u = (w = (a = e.value) == null ? void 0 : a.platform) == null ? void 0 : w.mappings) != null && u.payee) && (H = (L = e.value) == null ? void 0 : L.platform) != null && H.mappings && (e.value.platform.mappings.payee = {
|
|
4912
4912
|
id: 1,
|
|
4913
4913
|
name: ""
|
|
4914
4914
|
});
|
|
@@ -4918,7 +4918,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4918
4918
|
async function g() {
|
|
4919
4919
|
await N(async () => {
|
|
4920
4920
|
try {
|
|
4921
|
-
await
|
|
4921
|
+
await He(e.value._id), await b.getSettings();
|
|
4922
4922
|
} catch (i) {
|
|
4923
4923
|
p.open({ type: "error", message: i.message });
|
|
4924
4924
|
}
|
|
@@ -4928,7 +4928,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4928
4928
|
await b.getSettings();
|
|
4929
4929
|
}), (i, a) => {
|
|
4930
4930
|
var de, pe, xe, O, y, k, D, Q, Z, ne, re, U, _, G, B, Y, oe;
|
|
4931
|
-
const w = T("FmIcon"), u = T("FmButton"), L = T("FmSelect"),
|
|
4931
|
+
const w = T("FmIcon"), u = T("FmButton"), L = T("FmSelect"), H = T("FmMenuDivider"), E = T("FmTextField"), te = T("FmCircularProgress");
|
|
4932
4932
|
return (pe = (de = e.value) == null ? void 0 : de.platform) != null && pe.mappings ? (x(), R("div", ir, [
|
|
4933
4933
|
t("div", dr, [
|
|
4934
4934
|
t("div", pr, [
|
|
@@ -4975,7 +4975,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4975
4975
|
}, null, 8, ["modelValue"])
|
|
4976
4976
|
])
|
|
4977
4977
|
]),
|
|
4978
|
-
l(
|
|
4978
|
+
l(H, { style: { margin: 0 } }),
|
|
4979
4979
|
t("div", _r, [
|
|
4980
4980
|
t("div", Cr, [
|
|
4981
4981
|
t("div", kr, C(n(o)("report.integration.biztory.subdomain")), 1),
|
|
@@ -5071,7 +5071,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
5071
5071
|
])
|
|
5072
5072
|
])
|
|
5073
5073
|
]),
|
|
5074
|
-
l(
|
|
5074
|
+
l(H, { style: { margin: 0 } }),
|
|
5075
5075
|
t("div", Er, [
|
|
5076
5076
|
t("div", Br, [
|
|
5077
5077
|
t("div", Yr, C(n(o)("report.integration.refNumFormat")), 1),
|
|
@@ -5114,7 +5114,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
5114
5114
|
}, null, 8, ["model-value", "options"])) : q("", !0)
|
|
5115
5115
|
])
|
|
5116
5116
|
]),
|
|
5117
|
-
l(
|
|
5117
|
+
l(H, { style: { margin: 0 } }),
|
|
5118
5118
|
l(lt, {
|
|
5119
5119
|
modelValue: e.value.platform,
|
|
5120
5120
|
"onUpdate:modelValue": a[12] || (a[12] = (j) => e.value.platform = j),
|
|
@@ -5123,9 +5123,9 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
5123
5123
|
"error-logs": m.errorLogs,
|
|
5124
5124
|
"integration-id": e.value._id
|
|
5125
5125
|
}, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
|
|
5126
|
-
l(
|
|
5127
|
-
t("div",
|
|
5128
|
-
t("div",
|
|
5126
|
+
l(H, { style: { margin: 0 } }),
|
|
5127
|
+
t("div", Hr, [
|
|
5128
|
+
t("div", zr, C(n(o)("report.integration.biztory.items")), 1),
|
|
5129
5129
|
l(u, {
|
|
5130
5130
|
variant: "secondary",
|
|
5131
5131
|
"prepend-icon": "add",
|
|
@@ -5149,7 +5149,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
5149
5149
|
(fe = (le = e.value) == null ? void 0 : le.platform) != null && fe.mappings && (e.value.platform.mappings.items = j);
|
|
5150
5150
|
})
|
|
5151
5151
|
}, null, 8, ["rows"]),
|
|
5152
|
-
l(
|
|
5152
|
+
l(H, { style: { margin: 0 } }),
|
|
5153
5153
|
t("div", Gr, [
|
|
5154
5154
|
t("div", Qr, C(n(o)("report.integration.biztory.taxes")), 1),
|
|
5155
5155
|
l(u, {
|
|
@@ -5175,7 +5175,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
5175
5175
|
(fe = (le = e.value) == null ? void 0 : le.platform) != null && fe.mappings && (e.value.platform.mappings.taxes = j);
|
|
5176
5176
|
})
|
|
5177
5177
|
}, null, 8, ["rows"]),
|
|
5178
|
-
l(
|
|
5178
|
+
l(H, { style: { margin: 0 } }),
|
|
5179
5179
|
t("div", Wr, [
|
|
5180
5180
|
t("div", Xr, C(n(o)("report.integration.taxRoundingAdjustments")), 1),
|
|
5181
5181
|
l(u, {
|
|
@@ -5201,7 +5201,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
5201
5201
|
(fe = (le = e.value) == null ? void 0 : le.platform) != null && fe.mappings && (e.value.platform.mappings.taxRoundingAdjustments = j);
|
|
5202
5202
|
})
|
|
5203
5203
|
}, null, 8, ["rows"]),
|
|
5204
|
-
l(
|
|
5204
|
+
l(H, { style: { margin: 0 } }),
|
|
5205
5205
|
t("div", Jr, [
|
|
5206
5206
|
t("div", Zr, C(n(o)("report.integration.biztory.payments")), 1),
|
|
5207
5207
|
l(u, {
|
|
@@ -5263,7 +5263,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
5263
5263
|
});
|
|
5264
5264
|
function si(m) {
|
|
5265
5265
|
return m.reduce((o, e) => {
|
|
5266
|
-
var F, N, P, M, f, S, A, V, $, K, c, v, d, r, s, g, i, a, w, u, L,
|
|
5266
|
+
var F, N, P, M, f, S, A, V, $, K, c, v, d, r, s, g, i, a, w, u, L, H;
|
|
5267
5267
|
const { invoice: p } = e, b = o.length;
|
|
5268
5268
|
o[b] = {
|
|
5269
5269
|
invoice_date: p.invoice_date,
|
|
@@ -5298,7 +5298,7 @@ function si(m) {
|
|
|
5298
5298
|
} : o[te] = {
|
|
5299
5299
|
payment_amount: ((w = (a = p.transactions) == null ? void 0 : a[E]) == null ? void 0 : w.amount) || void 0,
|
|
5300
5300
|
payment_method: ((L = (u = p.transactions) == null ? void 0 : u[E]) == null ? void 0 : L.payment_method) || "-",
|
|
5301
|
-
payment_term: ((
|
|
5301
|
+
payment_term: ((H = p == null ? void 0 : p.payment_term) == null ? void 0 : H.name) || ""
|
|
5302
5302
|
};
|
|
5303
5303
|
}
|
|
5304
5304
|
return o;
|
|
@@ -5550,7 +5550,7 @@ const di = [
|
|
|
5550
5550
|
t("div", ui, [
|
|
5551
5551
|
l(at, {
|
|
5552
5552
|
"date-range": n(F),
|
|
5553
|
-
"onUpdate:dateRange": A[0] || (A[0] = (c) =>
|
|
5553
|
+
"onUpdate:dateRange": A[0] || (A[0] = (c) => ze(F) ? F.value = c : null),
|
|
5554
5554
|
compare: !1
|
|
5555
5555
|
}, null, 8, ["date-range"]),
|
|
5556
5556
|
l(V, {
|
|
@@ -5748,7 +5748,7 @@ const di = [
|
|
|
5748
5748
|
async function v() {
|
|
5749
5749
|
await N(async () => {
|
|
5750
5750
|
try {
|
|
5751
|
-
await
|
|
5751
|
+
await He(e.value._id), await b.getSettings();
|
|
5752
5752
|
} catch (d) {
|
|
5753
5753
|
p.open({ type: "error", message: d.message });
|
|
5754
5754
|
}
|
|
@@ -5757,7 +5757,7 @@ const di = [
|
|
|
5757
5757
|
return Xe(async () => {
|
|
5758
5758
|
await b.getSettings();
|
|
5759
5759
|
}), (d, r) => {
|
|
5760
|
-
var u, L,
|
|
5760
|
+
var u, L, H, E, te, de;
|
|
5761
5761
|
const s = T("FmIcon"), g = T("FmButton"), i = T("FmMenuDivider"), a = T("FmTextField"), w = T("FmSelect");
|
|
5762
5762
|
return (L = (u = e.value) == null ? void 0 : u.platform) != null && L.mappings ? (x(), R("div", xi, [
|
|
5763
5763
|
t("div", bi, [
|
|
@@ -5819,7 +5819,7 @@ const di = [
|
|
|
5819
5819
|
modelValue: e.value.platform,
|
|
5820
5820
|
"onUpdate:modelValue": r[2] || (r[2] = (pe) => e.value.platform = pe),
|
|
5821
5821
|
label: n(o)("report.input.email"),
|
|
5822
|
-
"last-upload-date": (
|
|
5822
|
+
"last-upload-date": (H = e.value.platform) == null ? void 0 : H.lastUploadDate,
|
|
5823
5823
|
"error-logs": d.errorLogs,
|
|
5824
5824
|
"integration-id": e.value._id,
|
|
5825
5825
|
"is-auto-email-mode": !0
|
|
@@ -5925,7 +5925,7 @@ const di = [
|
|
|
5925
5925
|
t("div", Ri, [
|
|
5926
5926
|
l(at, {
|
|
5927
5927
|
"date-range": n(P),
|
|
5928
|
-
"onUpdate:dateRange": S[0] || (S[0] = (K) =>
|
|
5928
|
+
"onUpdate:dateRange": S[0] || (S[0] = (K) => ze(P) ? P.value = K : null),
|
|
5929
5929
|
compare: !1
|
|
5930
5930
|
}, null, 8, ["date-range"]),
|
|
5931
5931
|
l(A, {
|
|
@@ -6011,7 +6011,7 @@ const di = [
|
|
|
6011
6011
|
}), Yi = {
|
|
6012
6012
|
key: 0,
|
|
6013
6013
|
class: "flex flex-col h-full"
|
|
6014
|
-
}, qi = { class: "flex flex-col gap-16 pb-[24px]" },
|
|
6014
|
+
}, qi = { class: "flex flex-col gap-16 pb-[24px]" }, Hi = { class: "flex flex-row justify-between items-center gap-2" }, zi = { class: "fm-typo-en-title-sm-800" }, Gi = { class: "flex flex-row gap-2 items-center" }, Qi = { class: "flex flex-row gap-2 items-center" }, Wi = { class: "relative group cursor-pointer" }, Xi = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, Ji = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, Zi = { class: "flex flex-col gap-24 w-[90%]" }, ed = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, td = { class: "flex flex-col gap-24 overflow-y-auto overflow-x-hidden" }, od = { class: "flex flex-col justify-between" }, ad = { class: "w-[25%] font-semibold" }, ld = { class: "flex-grow" }, nd = { class: "flex flex-col justify-between" }, sd = { class: "w-[25%] font-semibold" }, rd = { class: "flex-grow" }, id = { class: "flex flex-col justify-between" }, dd = { class: "w-[25%] font-semibold" }, pd = { class: "flex-grow" }, ud = { class: "flex flex-col gap-16" }, cd = { class: "flex flex-row items-center gap-5" }, md = { class: "fm-typo-en-title-sm-800" }, fd = { class: "flex flex-col max-w-[100%]" }, gd = { class: "w-[25%] font-semibold" }, vd = { class: "flex-grow" }, yd = { class: "flex flex-col max-w-[100%]" }, xd = { class: "w-[25%] font-semibold" }, bd = { class: "flex flex-row items-center max-w-[100%] justify-between" }, wd = { class: "flex-grow" }, hd = { class: "flex flex-col max-w-[100%]" }, _d = { class: "w-[25%] font-semibold" }, Cd = {
|
|
6015
6015
|
key: 0,
|
|
6016
6016
|
class: "flex flex-row items-center max-w-[100%] justify-between pl-4"
|
|
6017
6017
|
}, kd = { class: "w-[30%] font-semibold flex items-start gap-1 items-center" }, Sd = { class: "flex-grow" }, $d = { class: "flex flex-col max-w-[100%]" }, Dd = { class: "w-[25%] font-semibold" }, Ad = {
|
|
@@ -6026,7 +6026,7 @@ const di = [
|
|
|
6026
6026
|
}, Fd = {
|
|
6027
6027
|
key: 2,
|
|
6028
6028
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
6029
|
-
}, Kd = { class: "flex flex-col gap-16" }, Md = { class: "fm-typo-en-title-sm-800" }, Ud = { class: "flex flex-row items-center w-[100%] justify-start" }, Rd = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, Pd = { class: "flex flex-row items-center w-[100%] justify-start" }, Od = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, Ld = { class: "flex flex-row items-center w-[100%] justify-start" }, jd = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, Ed = { class: "flex flex-col gap-16 pt-3 pb-3" }, Bd = { class: "flex flex-row items-center gap-5" }, Yd = { class: "fm-typo-en-title-sm-800" }, qd = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" },
|
|
6029
|
+
}, Kd = { class: "flex flex-col gap-16" }, Md = { class: "fm-typo-en-title-sm-800" }, Ud = { class: "flex flex-row items-center w-[100%] justify-start" }, Rd = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, Pd = { class: "flex flex-row items-center w-[100%] justify-start" }, Od = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, Ld = { class: "flex flex-row items-center w-[100%] justify-start" }, jd = { class: "text-nowrap w-[calc(25%-4px)] overflow-hidden text-ellipsis" }, Ed = { class: "flex flex-col gap-16 pt-3 pb-3" }, Bd = { class: "flex flex-row items-center gap-5" }, Yd = { class: "fm-typo-en-title-sm-800" }, qd = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Hd = { class: "flex flex-row items-center justify-between gap-x-16" }, zd = { class: "fm-typo-en-title-sm-800" }, Gd = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qd = { class: "flex flex-row items-center justify-between gap-x-16" }, Wd = { class: "fm-typo-en-title-sm-800" }, Xd = { class: "flex flex-row items-center justify-between gap-x-16" }, Jd = { class: "fm-typo-en-title-sm-800" }, Zd = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, ep = {
|
|
6030
6030
|
key: 0,
|
|
6031
6031
|
class: "flex flex-col gap-16"
|
|
6032
6032
|
}, tp = { class: "flex flex-row items-center justify-between gap-x-16" }, op = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16 items-center" }, ap = { class: "col-span-2 flex flex-row items-center max-w-[100%] justify-between" }, lp = { class: "flex-grow" }, np = { class: "col-span-2 flex flex-row items-center max-w-[100%] justify-between" }, sp = { class: "flex-grow" }, rp = { class: "flex flex-col gap-4 mt-5" }, ip = { class: "flex items-center gap-4" }, dp = { class: "fm-typo-en-title-sm-800" }, pp = { class: "flex items-center gap-2 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, up = { class: "flex flex-row items-center justify-between gap-x-16" }, cp = { class: "flex flex-row items-center justify-between gap-x-16" }, mp = /* @__PURE__ */ ve({
|
|
@@ -6183,7 +6183,7 @@ const di = [
|
|
|
6183
6183
|
async function u() {
|
|
6184
6184
|
await N(async () => {
|
|
6185
6185
|
try {
|
|
6186
|
-
await
|
|
6186
|
+
await He(e.value._id), await b.getSettings();
|
|
6187
6187
|
} catch (O) {
|
|
6188
6188
|
p.open({ type: "error", message: O.message });
|
|
6189
6189
|
}
|
|
@@ -6196,12 +6196,12 @@ const di = [
|
|
|
6196
6196
|
var k, D;
|
|
6197
6197
|
(D = (k = e.value) == null ? void 0 : k.platform) != null && D.mappings && (e.value.platform.mappings[O] = y);
|
|
6198
6198
|
}
|
|
6199
|
-
function
|
|
6199
|
+
function H(O) {
|
|
6200
6200
|
return O ? O === "ROUNDING" || O.startsWith("DISCOUNT") : !1;
|
|
6201
6201
|
}
|
|
6202
6202
|
function E(O = []) {
|
|
6203
6203
|
return O.map(
|
|
6204
|
-
(y) =>
|
|
6204
|
+
(y) => H(y == null ? void 0 : y.feedmeKey) ? { ...y, productCode: "" } : y
|
|
6205
6205
|
);
|
|
6206
6206
|
}
|
|
6207
6207
|
function te(O) {
|
|
@@ -6278,8 +6278,8 @@ const di = [
|
|
|
6278
6278
|
const k = T("FmIcon"), D = T("FmButton"), Q = T("FmMenuDivider"), Z = T("FmTextField"), ne = T("FmSelect"), re = T("FmSwitch"), U = T("FmCircularProgress"), _ = T("FmTooltip");
|
|
6279
6279
|
return (B = (G = e.value) == null ? void 0 : G.platform) != null && B.mappings ? (x(), R("div", Yi, [
|
|
6280
6280
|
t("div", qi, [
|
|
6281
|
-
t("div",
|
|
6282
|
-
t("div",
|
|
6281
|
+
t("div", Hi, [
|
|
6282
|
+
t("div", zi, C(n(o)("report.integration.connect")), 1),
|
|
6283
6283
|
t("div", Gi, [
|
|
6284
6284
|
t("div", Qi, [
|
|
6285
6285
|
t("div", Wi, [
|
|
@@ -6415,7 +6415,7 @@ const di = [
|
|
|
6415
6415
|
l(ne, {
|
|
6416
6416
|
modelValue: n(K),
|
|
6417
6417
|
"onUpdate:modelValue": [
|
|
6418
|
-
y[8] || (y[8] = (I) =>
|
|
6418
|
+
y[8] || (y[8] = (I) => ze(K) ? K.value = I : K = I),
|
|
6419
6419
|
xe
|
|
6420
6420
|
],
|
|
6421
6421
|
items: m.retrievedDebtors.data,
|
|
@@ -6523,8 +6523,8 @@ const di = [
|
|
|
6523
6523
|
"is-auto-email-mode": $.value
|
|
6524
6524
|
}, null, 8, ["modelValue", "label", "last-upload-date", "error-logs", "integration-id", "is-auto-email-mode"]),
|
|
6525
6525
|
l(Q, { style: { margin: 0 } }),
|
|
6526
|
-
t("div",
|
|
6527
|
-
t("div",
|
|
6526
|
+
t("div", Hd, [
|
|
6527
|
+
t("div", zd, C(n(o)("report.integration.items")), 1),
|
|
6528
6528
|
l(D, {
|
|
6529
6529
|
variant: "secondary",
|
|
6530
6530
|
"prepend-icon": "add",
|
|
@@ -6564,8 +6564,8 @@ const di = [
|
|
|
6564
6564
|
},
|
|
6565
6565
|
onRemove: y[19] || (y[19] = (I, J) => d(I, J)),
|
|
6566
6566
|
"onUpdate:rows": y[20] || (y[20] = (I) => {
|
|
6567
|
-
var J,
|
|
6568
|
-
(
|
|
6567
|
+
var J, z;
|
|
6568
|
+
(z = (J = e.value) == null ? void 0 : J.platform) != null && z.mappings && (e.value.platform.mappings.items = E(I));
|
|
6569
6569
|
})
|
|
6570
6570
|
}, null, 8, ["header-items", "rows", "fields-options"]),
|
|
6571
6571
|
l(Q, { style: { margin: 0 } }),
|
|
@@ -6599,8 +6599,8 @@ const di = [
|
|
|
6599
6599
|
},
|
|
6600
6600
|
onRemove: y[22] || (y[22] = (I, J) => d(I, J)),
|
|
6601
6601
|
"onUpdate:rows": y[23] || (y[23] = (I) => {
|
|
6602
|
-
var J,
|
|
6603
|
-
(
|
|
6602
|
+
var J, z;
|
|
6603
|
+
(z = (J = e.value) == null ? void 0 : J.platform) != null && z.mappings && (e.value.platform.mappings.taxes = I);
|
|
6604
6604
|
})
|
|
6605
6605
|
}, null, 8, ["header-items", "rows", "fields-options"]),
|
|
6606
6606
|
l(Q, { style: { margin: 0 } }),
|
|
@@ -6673,8 +6673,8 @@ const di = [
|
|
|
6673
6673
|
},
|
|
6674
6674
|
onRemove: y[29] || (y[29] = (I, J) => d(I, J)),
|
|
6675
6675
|
"onUpdate:rows": y[30] || (y[30] = (I) => {
|
|
6676
|
-
var J,
|
|
6677
|
-
(
|
|
6676
|
+
var J, z;
|
|
6677
|
+
(z = (J = e.value) == null ? void 0 : J.platform) != null && z.mappings && (e.value.platform.mappings.payments = I);
|
|
6678
6678
|
})
|
|
6679
6679
|
}, null, 8, ["header-items", "rows", "fields-options"]),
|
|
6680
6680
|
l(Q, { style: { margin: 0 } }),
|
|
@@ -6868,7 +6868,7 @@ function fp(m) {
|
|
|
6868
6868
|
for (let w = 1; w < N; w++) {
|
|
6869
6869
|
const u = F + w;
|
|
6870
6870
|
o[u] || (o[u] = {});
|
|
6871
|
-
const L = p.details[w],
|
|
6871
|
+
const L = p.details[w], H = b[w];
|
|
6872
6872
|
L && (o[u] = {
|
|
6873
6873
|
...o[u],
|
|
6874
6874
|
recordType: e.isRefund ? "Credit Note" : "Invoice",
|
|
@@ -6882,18 +6882,18 @@ function fp(m) {
|
|
|
6882
6882
|
unitPrice: L.unitPrice,
|
|
6883
6883
|
discount: L.discount,
|
|
6884
6884
|
taxCode: L.taxCode
|
|
6885
|
-
}),
|
|
6885
|
+
}), H && (o[u] = {
|
|
6886
6886
|
...o[u],
|
|
6887
6887
|
recordType: e.isRefund ? "Credit Note" : "Invoice",
|
|
6888
6888
|
debtorCode: p.master.debtorCode,
|
|
6889
6889
|
debtorName: p.master.debtorName,
|
|
6890
6890
|
creditTerm: p.master.creditTerm,
|
|
6891
|
-
paymentDocNo:
|
|
6892
|
-
docType:
|
|
6893
|
-
paymentMethod: (i =
|
|
6894
|
-
amount: ((a =
|
|
6895
|
-
currencyCode:
|
|
6896
|
-
journalType:
|
|
6891
|
+
paymentDocNo: H.master.docNo,
|
|
6892
|
+
docType: H.master.docType,
|
|
6893
|
+
paymentMethod: (i = H.paymentDetails[0]) == null ? void 0 : i.paymentMethod,
|
|
6894
|
+
amount: ((a = H.details[0]) == null ? void 0 : a.amount) || 0,
|
|
6895
|
+
currencyCode: H.master.currencyCode,
|
|
6896
|
+
journalType: H.master.journalType
|
|
6897
6897
|
});
|
|
6898
6898
|
}
|
|
6899
6899
|
return o;
|
|
@@ -7217,12 +7217,12 @@ const vp = [
|
|
|
7217
7217
|
}
|
|
7218
7218
|
}
|
|
7219
7219
|
return (a, w) => {
|
|
7220
|
-
const u = T("FmButton"), L = T("FmCheckbox"),
|
|
7220
|
+
const u = T("FmButton"), L = T("FmCheckbox"), H = T("FmCircularProgress"), E = T("FmTabs"), te = T("FmTable");
|
|
7221
7221
|
return x(), R("div", xp, [
|
|
7222
7222
|
t("div", bp, [
|
|
7223
7223
|
l(at, {
|
|
7224
7224
|
"date-range": n(F),
|
|
7225
|
-
"onUpdate:dateRange": w[0] || (w[0] = (de) =>
|
|
7225
|
+
"onUpdate:dateRange": w[0] || (w[0] = (de) => ze(F) ? F.value = de : null),
|
|
7226
7226
|
compare: !1
|
|
7227
7227
|
}, null, 8, ["date-range"]),
|
|
7228
7228
|
t("div", wp, [
|
|
@@ -7259,7 +7259,7 @@ const vp = [
|
|
|
7259
7259
|
])
|
|
7260
7260
|
]),
|
|
7261
7261
|
p.value ? (x(), R("div", Cp, [
|
|
7262
|
-
l(
|
|
7262
|
+
l(H, { size: "xl" }),
|
|
7263
7263
|
t("span", kp, C(n(o)("report.common.isLoading")), 1)
|
|
7264
7264
|
])) : (x(), R("div", Sp, [
|
|
7265
7265
|
l(E, {
|
|
@@ -7386,7 +7386,7 @@ const vp = [
|
|
|
7386
7386
|
}), Tp = {
|
|
7387
7387
|
key: 0,
|
|
7388
7388
|
class: "flex flex-col h-full w-full"
|
|
7389
|
-
}, Np = { class: "flex flex-col gap-16 pb-[24px]" }, Vp = { class: "flex flex-row justify-between items-center gap-2" }, Fp = { class: "flex flex-row gap-2 items-center" }, Kp = { class: "relative group cursor-pointer" }, Mp = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, Up = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Rp = { class: "w-[90%] flex flex-col gap-24" }, Pp = { class: "flex flex-col gap-16" }, Op = { class: "fm-typo-en-title-sm-800" }, Lp = { class: "flex flex-col max-w-[100%]" }, jp = { class: "w-[25%] font-semibold" }, Ep = { class: "flex-grow" }, Bp = { class: "flex flex-col max-w-[100%]" }, Yp = { class: "w-[25%] font-semibold" }, qp = { class: "flex flex-col gap-16" },
|
|
7389
|
+
}, Np = { class: "flex flex-col gap-16 pb-[24px]" }, Vp = { class: "flex flex-row justify-between items-center gap-2" }, Fp = { class: "flex flex-row gap-2 items-center" }, Kp = { class: "relative group cursor-pointer" }, Mp = { class: "absolute left-1/2 -translate-x-2/3 top-full mt-2 w-max bg-gray-900 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity" }, Up = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Rp = { class: "w-[90%] flex flex-col gap-24" }, Pp = { class: "flex flex-col gap-16" }, Op = { class: "fm-typo-en-title-sm-800" }, Lp = { class: "flex flex-col max-w-[100%]" }, jp = { class: "w-[25%] font-semibold" }, Ep = { class: "flex-grow" }, Bp = { class: "flex flex-col max-w-[100%]" }, Yp = { class: "w-[25%] font-semibold" }, qp = { class: "flex flex-col gap-16" }, Hp = { class: "grid-cols-2 grid gap-16" }, zp = { class: "flex flex-row items-center justify-between gap-x-16" }, Gp = { class: "flex flex-row items-center justify-between gap-x-16" }, Qp = { class: "fm-typo-en-title-sm-800" }, Wp = { class: "flex flex-row items-center justify-between gap-x-16" }, Xp = { class: "flex flex-row items-center justify-between gap-x-16" }, Jp = /* @__PURE__ */ ve({
|
|
7390
7390
|
__name: "Setting",
|
|
7391
7391
|
props: {
|
|
7392
7392
|
modelValue: { required: !0 },
|
|
@@ -7457,7 +7457,7 @@ const vp = [
|
|
|
7457
7457
|
async function v() {
|
|
7458
7458
|
await N(async () => {
|
|
7459
7459
|
try {
|
|
7460
|
-
await
|
|
7460
|
+
await He(e.value._id), await b.getSettings();
|
|
7461
7461
|
} catch (d) {
|
|
7462
7462
|
p.open({ type: "error", message: d.message });
|
|
7463
7463
|
}
|
|
@@ -7466,7 +7466,7 @@ const vp = [
|
|
|
7466
7466
|
return Xe(async () => {
|
|
7467
7467
|
await b.getSettings();
|
|
7468
7468
|
}), (d, r) => {
|
|
7469
|
-
var u, L,
|
|
7469
|
+
var u, L, H, E, te, de, pe, xe, O, y, k, D, Q, Z, ne, re, U, _, G;
|
|
7470
7470
|
const s = T("FmIcon"), g = T("FmButton"), i = T("FmMenuDivider"), a = T("FmTextField"), w = T("FmSelect");
|
|
7471
7471
|
return (L = (u = e.value) == null ? void 0 : u.platform) != null && L.mappings ? (x(), R("div", Tp, [
|
|
7472
7472
|
t("div", Np, [
|
|
@@ -7543,11 +7543,11 @@ const vp = [
|
|
|
7543
7543
|
(le = (j = (oe = (Y = e.value) == null ? void 0 : Y.platform) == null ? void 0 : oe.mappings) == null ? void 0 : j.invoice) != null && le.debtor && (e.value.platform.mappings.invoice.debtor.name = B.name, e.value.platform.mappings.invoice.debtor.code = B.code);
|
|
7544
7544
|
})
|
|
7545
7545
|
}, null, 8, ["model-value"]),
|
|
7546
|
-
t("div",
|
|
7546
|
+
t("div", Hp, [
|
|
7547
7547
|
l(ie, {
|
|
7548
7548
|
"model-value": {
|
|
7549
7549
|
key: "Rounding",
|
|
7550
|
-
account: (
|
|
7550
|
+
account: (H = e.value.platform.mappings) == null ? void 0 : H.invoice.rounding.account,
|
|
7551
7551
|
code: (E = e.value.platform.mappings) == null ? void 0 : E.invoice.rounding.code
|
|
7552
7552
|
},
|
|
7553
7553
|
options: {
|
|
@@ -7573,7 +7573,7 @@ const vp = [
|
|
|
7573
7573
|
])
|
|
7574
7574
|
]),
|
|
7575
7575
|
l(i, { style: { margin: 0 } }),
|
|
7576
|
-
t("div",
|
|
7576
|
+
t("div", zp, [
|
|
7577
7577
|
r[17] || (r[17] = t("div", { class: "fm-typo-en-title-sm-800" }, "Sales Invoice Items", -1)),
|
|
7578
7578
|
l(g, {
|
|
7579
7579
|
variant: "secondary",
|
|
@@ -8123,7 +8123,7 @@ const vp = [
|
|
|
8123
8123
|
t("div", eu, [
|
|
8124
8124
|
l(at, {
|
|
8125
8125
|
"date-range": n(v),
|
|
8126
|
-
"onUpdate:dateRange": i[0] || (i[0] = (
|
|
8126
|
+
"onUpdate:dateRange": i[0] || (i[0] = (H) => ze(v) ? v.value = H : null),
|
|
8127
8127
|
compare: !1
|
|
8128
8128
|
}, null, 8, ["date-range"]),
|
|
8129
8129
|
l(a, {
|
|
@@ -8139,7 +8139,7 @@ const vp = [
|
|
|
8139
8139
|
])) : (x(), R("div", au, [
|
|
8140
8140
|
l(u, {
|
|
8141
8141
|
"model-value": s.value,
|
|
8142
|
-
"onUpdate:modelValue": i[1] || (i[1] = (
|
|
8142
|
+
"onUpdate:modelValue": i[1] || (i[1] = (H) => s.value = H),
|
|
8143
8143
|
items: r
|
|
8144
8144
|
}, null, 8, ["model-value"]),
|
|
8145
8145
|
s.value === "INVOICE" ? (x(), ae(L, {
|
|
@@ -8300,7 +8300,7 @@ const vp = [
|
|
|
8300
8300
|
async function c() {
|
|
8301
8301
|
await N(async () => {
|
|
8302
8302
|
try {
|
|
8303
|
-
await
|
|
8303
|
+
await He(e.value._id), await b.getSettings();
|
|
8304
8304
|
} catch (r) {
|
|
8305
8305
|
p.open({ type: "error", message: r.message });
|
|
8306
8306
|
}
|
|
@@ -8331,9 +8331,9 @@ const vp = [
|
|
|
8331
8331
|
return Xe(async () => {
|
|
8332
8332
|
await b.getSettings();
|
|
8333
8333
|
}), (r, s) => {
|
|
8334
|
-
var L,
|
|
8334
|
+
var L, H;
|
|
8335
8335
|
const g = T("FmIcon"), i = T("FmButton"), a = T("FmTextField"), w = T("FmSelect"), u = T("FmMenuDivider");
|
|
8336
|
-
return (
|
|
8336
|
+
return (H = (L = e.value) == null ? void 0 : L.platform) != null && H.mappings ? (x(), R("div", iu, [
|
|
8337
8337
|
t("div", du, [
|
|
8338
8338
|
t("div", pu, [
|
|
8339
8339
|
t("div", uu, C(n(o)("report.integration.connect")), 1),
|
|
@@ -8648,7 +8648,7 @@ const vp = [
|
|
|
8648
8648
|
t("div", Uu, [
|
|
8649
8649
|
l(at, {
|
|
8650
8650
|
"date-range": n(N),
|
|
8651
|
-
"onUpdate:dateRange": A[0] || (A[0] = (c) =>
|
|
8651
|
+
"onUpdate:dateRange": A[0] || (A[0] = (c) => ze(N) ? N.value = c : null),
|
|
8652
8652
|
compare: !1
|
|
8653
8653
|
}, null, 8, ["date-range"]),
|
|
8654
8654
|
l(V, {
|