@feedmepos/mf-report 5.4.26-beta.1 → 5.4.27-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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as H, mergeModels as _e, useModel as Q, computed as z, resolveComponent as
|
|
1
|
+
import { defineComponent as H, mergeModels as _e, useModel as Q, computed as z, resolveComponent as $, createElementBlock as F, openBlock as c, createElementVNode as t, createCommentVNode as R, normalizeClass as Ke, Fragment as L, renderList as X, createBlock as K, createVNode as i, withCtx as xe, toDisplayString as T, unref as f, ref as B, watch as ge, isRef as he, h as I, resolveDynamicComponent as be, mergeProps as Le, onMounted as Ee } from "vue";
|
|
2
2
|
import { useRouter as pe, useRoute as ze } from "vue-router";
|
|
3
3
|
import { u as W, I as de, d as je, e as we, f as ke, b as ue, q as Ye, m as qe, p as Ve, r as $e, s as Se, t as Ce, v as Ae, w as He, x as Xe, y as Qe, A as ve, z as Pe, B as Ge, E as Je } from "./global-loader-BKQvLNRz.js";
|
|
4
4
|
import { u as Fe } from "./message-dialog-UoMWOnil.js";
|
|
@@ -9,7 +9,7 @@ import { _ as Ue } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-B
|
|
|
9
9
|
const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, et = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis" }, tt = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "w-[24px] flex items-center"
|
|
12
|
-
},
|
|
12
|
+
}, A = /* @__PURE__ */ H({
|
|
13
13
|
__name: "MappingField",
|
|
14
14
|
props: /* @__PURE__ */ _e({
|
|
15
15
|
removable: {
|
|
@@ -45,7 +45,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
45
45
|
})
|
|
46
46
|
), b = o;
|
|
47
47
|
return (x, D) => {
|
|
48
|
-
const w =
|
|
48
|
+
const w = $("FmTextField"), m = $("FmTooltip"), d = $("FmIcon");
|
|
49
49
|
return c(), F("div", Ze, [
|
|
50
50
|
t("div", {
|
|
51
51
|
class: Ke(`${g.removable ? "w-[calc(100%-24px)]" : "w-[100%]"} flex flex-row items-center gap-[4px]`)
|
|
@@ -72,7 +72,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
}, null, 8, ["model-value", "placeholder", "type", "rules", "onUpdate:modelValue"])
|
|
75
|
-
], 2)) : (c(),
|
|
75
|
+
], 2)) : (c(), K(m, {
|
|
76
76
|
key: 1,
|
|
77
77
|
content: (_ = e.value[h.key]) == null ? void 0 : _.toString(),
|
|
78
78
|
class: "w-[50%]"
|
|
@@ -132,7 +132,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
132
132
|
});
|
|
133
133
|
return (k, b) => {
|
|
134
134
|
var m, d;
|
|
135
|
-
const x =
|
|
135
|
+
const x = $("FmSwitch"), D = $("FmTextField"), w = $("FmTimePicker");
|
|
136
136
|
return c(), F(L, null, [
|
|
137
137
|
t("div", ot, [
|
|
138
138
|
t("div", at, T(f(o)("report.integration.auto", { label: g.label })), 1),
|
|
@@ -177,7 +177,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
177
177
|
}, null, 8, ["model-value"])
|
|
178
178
|
])
|
|
179
179
|
]),
|
|
180
|
-
i(
|
|
180
|
+
i(A, {
|
|
181
181
|
"model-value": {
|
|
182
182
|
label: f(o)("report.integration.delayDay"),
|
|
183
183
|
delayDay: e.value.delayDay
|
|
@@ -251,7 +251,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
251
251
|
return n.singleValueMode ? n.options.key.placeholder : (d = e.value[m.key]) == null ? void 0 : d.toString();
|
|
252
252
|
}, D = (m) => n.singleValueMode ? e.value : e.value[m.key], w = o;
|
|
253
253
|
return (m, d) => {
|
|
254
|
-
const h =
|
|
254
|
+
const h = $("FmSelect"), _ = $("FmTextField"), u = $("FmTooltip"), p = $("FmIcon");
|
|
255
255
|
return c(), F("div", ft, [
|
|
256
256
|
t("div", {
|
|
257
257
|
class: Ke(`${g.removable ? "w-[calc(100%-24px)]" : "w-[100%]"} flex flex-row items-center gap-[4px]`)
|
|
@@ -260,14 +260,14 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
260
260
|
key: r.key
|
|
261
261
|
}, [
|
|
262
262
|
r.editable ? (c(), F("div", vt, [
|
|
263
|
-
r.dropdownOptions ? (c(),
|
|
263
|
+
r.dropdownOptions ? (c(), K(h, {
|
|
264
264
|
key: 0,
|
|
265
265
|
"model-value": D(r),
|
|
266
266
|
placeholder: r.placeholder,
|
|
267
267
|
items: r.dropdownOptions,
|
|
268
268
|
"shift-menu": !0,
|
|
269
269
|
"onUpdate:modelValue": (y) => b(y, r.key)
|
|
270
|
-
}, null, 8, ["model-value", "placeholder", "items", "onUpdate:modelValue"])) : (c(),
|
|
270
|
+
}, null, 8, ["model-value", "placeholder", "items", "onUpdate:modelValue"])) : (c(), K(_, {
|
|
271
271
|
key: 1,
|
|
272
272
|
"model-value": D(r),
|
|
273
273
|
placeholder: r.placeholder,
|
|
@@ -275,7 +275,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
275
275
|
rules: g.rules,
|
|
276
276
|
"onUpdate:modelValue": (y) => b(y, r.key)
|
|
277
277
|
}, null, 8, ["model-value", "placeholder", "type", "rules", "onUpdate:modelValue"]))
|
|
278
|
-
])) : (c(),
|
|
278
|
+
])) : (c(), K(u, {
|
|
279
279
|
key: 1,
|
|
280
280
|
content: x(r),
|
|
281
281
|
class: "w-[50%]"
|
|
@@ -360,13 +360,13 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
360
360
|
try {
|
|
361
361
|
const s = await qe(e.value._id);
|
|
362
362
|
m.value = !0;
|
|
363
|
-
const
|
|
363
|
+
const P = setInterval(async () => {
|
|
364
364
|
var N;
|
|
365
365
|
_.value += 1;
|
|
366
366
|
try {
|
|
367
367
|
await k.getSettings();
|
|
368
368
|
} finally {
|
|
369
|
-
(_.value === 12 || (N = e.value.platform) != null && N.accessToken) && (m.value = !1,
|
|
369
|
+
(_.value === 12 || (N = e.value.platform) != null && N.accessToken) && (m.value = !1, P && clearInterval(P), _.value = 0);
|
|
370
370
|
}
|
|
371
371
|
}, 5e3);
|
|
372
372
|
window.open(s.redirect, "_blank");
|
|
@@ -398,21 +398,21 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
function y(v) {
|
|
401
|
-
const s = g.tenantOptions.data.find((
|
|
401
|
+
const s = g.tenantOptions.data.find((P) => P.value === v);
|
|
402
402
|
s && e.value.platform && (e.value.platform.tenant = {
|
|
403
403
|
id: s.value,
|
|
404
404
|
name: s.label
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
var
|
|
409
|
-
(N = (
|
|
407
|
+
function V(v, s) {
|
|
408
|
+
var P, N;
|
|
409
|
+
(N = (P = e.value.platform) == null ? void 0 : P.mappings) != null && N[v] && (e.value.platform.mappings[v] = e.value.platform.mappings[v].filter(
|
|
410
410
|
(G, Y) => Y !== s
|
|
411
411
|
));
|
|
412
412
|
}
|
|
413
413
|
function l(v) {
|
|
414
|
-
var s,
|
|
415
|
-
(
|
|
414
|
+
var s, P;
|
|
415
|
+
(P = (s = e.value.platform) == null ? void 0 : s.mappings) != null && P[v] && (e.value.platform.mappings[v] = [
|
|
416
416
|
...e.value.platform.mappings[v],
|
|
417
417
|
v === "items" ? {
|
|
418
418
|
feedmeKey: "",
|
|
@@ -437,15 +437,15 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
return (v, s) => {
|
|
440
|
-
var E, Z, ee, te, oe, ae, le, ne, se, ie, U,
|
|
441
|
-
const
|
|
440
|
+
var E, Z, ee, te, oe, ae, le, ne, se, ie, U, S, C, M, q, re, ye, Ne, Re, Oe, Be;
|
|
441
|
+
const P = $("FmIcon"), N = $("FmButton"), G = $("FmMenuDivider"), Y = $("FmCircularProgress"), J = $("FmSelect"), O = $("FmTextField"), j = $("FmSwitch");
|
|
442
442
|
return (Z = (E = e.value) == null ? void 0 : E.platform) != null && Z.mappings ? (c(), F("div", xt, [
|
|
443
443
|
t("div", _t, [
|
|
444
444
|
t("div", bt, [
|
|
445
445
|
s[10] || (s[10] = t("div", { class: "fm-typo-en-title-sm-800" }, "Connect", -1)),
|
|
446
446
|
t("div", wt, [
|
|
447
447
|
t("div", ht, [
|
|
448
|
-
i(
|
|
448
|
+
i(P, {
|
|
449
449
|
name: "refresh",
|
|
450
450
|
class: "p-2 bg-gray-100 rounded-full",
|
|
451
451
|
onClick: a
|
|
@@ -477,7 +477,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
477
477
|
onClick: u
|
|
478
478
|
}, null, 8, ["disabled", "label"])
|
|
479
479
|
]),
|
|
480
|
-
!g.tenantOptions.isLoaded && ((ee = e.value.platform) != null && ee.accessToken) ? (c(),
|
|
480
|
+
!g.tenantOptions.isLoaded && ((ee = e.value.platform) != null && ee.accessToken) ? (c(), K(Y, {
|
|
481
481
|
key: 0,
|
|
482
482
|
size: "xl"
|
|
483
483
|
})) : R("", !0),
|
|
@@ -563,12 +563,12 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
563
563
|
})
|
|
564
564
|
]),
|
|
565
565
|
g.taxOptions.isError || e.value.platform.accessToken == null ? (c(), F("div", Rt, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : R("", !0),
|
|
566
|
-
!g.taxOptions.isLoaded && ((le = e.value.platform) != null && le.accessToken) ? (c(),
|
|
566
|
+
!g.taxOptions.isLoaded && ((le = e.value.platform) != null && le.accessToken) ? (c(), K(Y, {
|
|
567
567
|
key: 1,
|
|
568
568
|
size: "xl"
|
|
569
569
|
})) : R("", !0),
|
|
570
570
|
((ne = g.taxOptions.data) == null ? void 0 : ne.length) > 0 ? (c(), F("div", Ot, [
|
|
571
|
-
(c(!0), F(L, null, X((U = (ie = (se = e.value) == null ? void 0 : se.platform) == null ? void 0 : ie.mappings) == null ? void 0 : U.taxes, (me, ce) => (c(),
|
|
571
|
+
(c(!0), F(L, null, X((U = (ie = (se = e.value) == null ? void 0 : se.platform) == null ? void 0 : ie.mappings) == null ? void 0 : U.taxes, (me, ce) => (c(), K(Me, {
|
|
572
572
|
key: `tax-${ce}`,
|
|
573
573
|
modelValue: e.value.platform.mappings.taxes[ce],
|
|
574
574
|
"onUpdate:modelValue": (Ie) => e.value.platform.mappings.taxes[ce] = Ie,
|
|
@@ -581,7 +581,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
581
581
|
}
|
|
582
582
|
},
|
|
583
583
|
removable: !0,
|
|
584
|
-
onRemove: () =>
|
|
584
|
+
onRemove: () => V("taxes", ce)
|
|
585
585
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onRemove"]))), 128))
|
|
586
586
|
])) : R("", !0),
|
|
587
587
|
t("div", Bt, [
|
|
@@ -593,12 +593,12 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
593
593
|
})
|
|
594
594
|
]),
|
|
595
595
|
g.accountCodeOptions.isError || e.value.platform.accessToken == null ? (c(), F("div", jt, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : R("", !0),
|
|
596
|
-
!g.accountCodeOptions.isLoaded && ((
|
|
596
|
+
!g.accountCodeOptions.isLoaded && ((S = e.value.platform) != null && S.accessToken) ? (c(), K(Y, {
|
|
597
597
|
key: 4,
|
|
598
598
|
size: "xl"
|
|
599
599
|
})) : R("", !0),
|
|
600
600
|
((C = g.accountCodeOptions.data) == null ? void 0 : C.length) > 0 ? (c(), F("div", Lt, [
|
|
601
|
-
(c(!0), F(L, null, X((re = (q = (
|
|
601
|
+
(c(!0), F(L, null, X((re = (q = (M = e.value) == null ? void 0 : M.platform) == null ? void 0 : q.mappings) == null ? void 0 : re.items, (me, ce) => (c(), K(Me, {
|
|
602
602
|
key: `item-${ce}`,
|
|
603
603
|
modelValue: e.value.platform.mappings.items[ce],
|
|
604
604
|
"onUpdate:modelValue": (Ie) => e.value.platform.mappings.items[ce] = Ie,
|
|
@@ -611,7 +611,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
611
611
|
}
|
|
612
612
|
},
|
|
613
613
|
removable: !0,
|
|
614
|
-
onRemove: () =>
|
|
614
|
+
onRemove: () => V("items", ce)
|
|
615
615
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onRemove"]))), 128))
|
|
616
616
|
])) : R("", !0),
|
|
617
617
|
t("div", Et, [
|
|
@@ -623,12 +623,12 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
623
623
|
})
|
|
624
624
|
]),
|
|
625
625
|
g.accountCodeOptions.isError || e.value.platform.accessToken == null ? (c(), F("div", zt, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : R("", !0),
|
|
626
|
-
!g.accountCodeOptions.isLoaded && ((ye = e.value.platform) != null && ye.accessToken) ? (c(),
|
|
626
|
+
!g.accountCodeOptions.isLoaded && ((ye = e.value.platform) != null && ye.accessToken) ? (c(), K(Y, {
|
|
627
627
|
key: 7,
|
|
628
628
|
size: "xl"
|
|
629
629
|
})) : R("", !0),
|
|
630
630
|
((Ne = g.accountCodeOptions.data) == null ? void 0 : Ne.length) > 0 ? (c(), F("div", Yt, [
|
|
631
|
-
(c(!0), F(L, null, X((Be = (Oe = (Re = e.value) == null ? void 0 : Re.platform) == null ? void 0 : Oe.mappings) == null ? void 0 : Be.payments, (me, ce) => (c(),
|
|
631
|
+
(c(!0), F(L, null, X((Be = (Oe = (Re = e.value) == null ? void 0 : Re.platform) == null ? void 0 : Oe.mappings) == null ? void 0 : Be.payments, (me, ce) => (c(), K(Me, {
|
|
632
632
|
key: `payment-${ce}`,
|
|
633
633
|
modelValue: e.value.platform.mappings.payments[ce],
|
|
634
634
|
"onUpdate:modelValue": (Ie) => e.value.platform.mappings.payments[ce] = Ie,
|
|
@@ -641,7 +641,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
641
641
|
}
|
|
642
642
|
},
|
|
643
643
|
removable: !0,
|
|
644
|
-
onRemove: () =>
|
|
644
|
+
onRemove: () => V("payments", ce)
|
|
645
645
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onRemove"]))), 128))
|
|
646
646
|
])) : R("", !0)
|
|
647
647
|
])
|
|
@@ -794,7 +794,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
return (m, d) => {
|
|
797
|
-
const h =
|
|
797
|
+
const h = $("FmButton"), _ = $("FmCircularProgress"), u = $("FmTable");
|
|
798
798
|
return c(), F("div", Ht, [
|
|
799
799
|
t("div", Xt, [
|
|
800
800
|
i(Ue, {
|
|
@@ -812,7 +812,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
812
812
|
b.value ? (c(), F("div", Qt, [
|
|
813
813
|
i(_, { size: "xl" }),
|
|
814
814
|
d[1] || (d[1] = t("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Loading data... ", -1))
|
|
815
|
-
])) : e.value.length > 0 ? (c(),
|
|
815
|
+
])) : e.value.length > 0 ? (c(), K(u, {
|
|
816
816
|
key: 1,
|
|
817
817
|
class: "flex overflow-scroll",
|
|
818
818
|
"row-data": e.value,
|
|
@@ -909,11 +909,11 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
909
909
|
},
|
|
910
910
|
{ immediate: !0 }
|
|
911
911
|
), (u, p) => {
|
|
912
|
-
var
|
|
913
|
-
const r =
|
|
912
|
+
var V, l, a;
|
|
913
|
+
const r = $("FmPageHead"), y = $("FmTabs");
|
|
914
914
|
return c(), F("div", Jt, [
|
|
915
915
|
i(r, {
|
|
916
|
-
title: ((
|
|
916
|
+
title: ((V = e.value) == null ? void 0 : V.name) || "Xero",
|
|
917
917
|
"back-button": !0,
|
|
918
918
|
style: { paddingLeft: "0px", paddingRight: "0px" },
|
|
919
919
|
"onClick:back": f(w).back
|
|
@@ -929,7 +929,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
929
929
|
items: D
|
|
930
930
|
}, null, 8, ["model-value"]),
|
|
931
931
|
t("div", Wt, [
|
|
932
|
-
(c(),
|
|
932
|
+
(c(), K(be((l = m.value) == null ? void 0 : l.component), Le({
|
|
933
933
|
modelValue: e.value,
|
|
934
934
|
"onUpdate:modelValue": p[1] || (p[1] = (v) => e.value = v)
|
|
935
935
|
}, (a = m.value) == null ? void 0 : a.props), null, 16, ["modelValue"]))
|
|
@@ -975,7 +975,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
975
975
|
function _(l, a) {
|
|
976
976
|
var v, s;
|
|
977
977
|
(s = (v = o.value.platform) == null ? void 0 : v.mappings) != null && s[l] && (o.value.platform.mappings[l] = o.value.platform.mappings[l].filter(
|
|
978
|
-
(
|
|
978
|
+
(P, N) => N !== a
|
|
979
979
|
));
|
|
980
980
|
}
|
|
981
981
|
function u(l) {
|
|
@@ -1042,7 +1042,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1042
1042
|
account: { placeholder: l, editable: !0 }
|
|
1043
1043
|
};
|
|
1044
1044
|
}
|
|
1045
|
-
async function
|
|
1045
|
+
async function V() {
|
|
1046
1046
|
await b(async () => {
|
|
1047
1047
|
try {
|
|
1048
1048
|
await Se(o.value._id), await n.getSettings();
|
|
@@ -1052,8 +1052,8 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1052
1052
|
});
|
|
1053
1053
|
}
|
|
1054
1054
|
return (l, a) => {
|
|
1055
|
-
var J, O, j, E, Z, ee, te, oe, ae, le, ne, se, ie, U,
|
|
1056
|
-
const v =
|
|
1055
|
+
var J, O, j, E, Z, ee, te, oe, ae, le, ne, se, ie, U, S;
|
|
1056
|
+
const v = $("FmIcon"), s = $("FmButton"), P = $("FmMenuDivider"), N = $("FmTextField"), G = $("FmSelect"), Y = $("FmCheckbox");
|
|
1057
1057
|
return (O = (J = o.value) == null ? void 0 : J.platform) != null && O.mappings ? (c(), F("div", eo, [
|
|
1058
1058
|
t("div", to, [
|
|
1059
1059
|
t("div", oo, [
|
|
@@ -1063,7 +1063,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1063
1063
|
i(v, {
|
|
1064
1064
|
name: "refresh",
|
|
1065
1065
|
class: "p-2 bg-gray-100 rounded-full",
|
|
1066
|
-
onClick:
|
|
1066
|
+
onClick: V
|
|
1067
1067
|
}),
|
|
1068
1068
|
t("span", so, T(f(m)("report.integration.setting.refreshTooltip")), 1)
|
|
1069
1069
|
]),
|
|
@@ -1080,7 +1080,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1080
1080
|
])
|
|
1081
1081
|
])
|
|
1082
1082
|
]),
|
|
1083
|
-
i(
|
|
1083
|
+
i(P, { style: { margin: 0 } }),
|
|
1084
1084
|
t("div", io, [
|
|
1085
1085
|
t("div", ro, T(f(m)("report.integration.bukku.authentication")), 1),
|
|
1086
1086
|
t("div", mo, [
|
|
@@ -1139,7 +1139,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1139
1139
|
]),
|
|
1140
1140
|
t("div", $o, [
|
|
1141
1141
|
t("div", So, [
|
|
1142
|
-
i(
|
|
1142
|
+
i(A, {
|
|
1143
1143
|
"model-value": {
|
|
1144
1144
|
key: "Contact",
|
|
1145
1145
|
account: o.value.platform.mappings.contact.account
|
|
@@ -1155,11 +1155,11 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1155
1155
|
}
|
|
1156
1156
|
},
|
|
1157
1157
|
"onUpdate:modelValue": a[5] || (a[5] = (C) => {
|
|
1158
|
-
var
|
|
1159
|
-
(re = (q = (
|
|
1158
|
+
var M, q, re;
|
|
1159
|
+
(re = (q = (M = o.value) == null ? void 0 : M.platform) == null ? void 0 : q.mappings) != null && re.contact && (o.value.platform.mappings.contact.account = C.account);
|
|
1160
1160
|
})
|
|
1161
1161
|
}, null, 8, ["model-value"]),
|
|
1162
|
-
i(
|
|
1162
|
+
i(A, {
|
|
1163
1163
|
"model-value": {
|
|
1164
1164
|
key: "Invoice no",
|
|
1165
1165
|
account: o.value.platform.mappings.invoiceDocNo
|
|
@@ -1167,7 +1167,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1167
1167
|
options: y("Invoice no"),
|
|
1168
1168
|
"onUpdate:modelValue": a[6] || (a[6] = (C) => r({ key: "invoiceDocNo", value: C.account }))
|
|
1169
1169
|
}, null, 8, ["model-value", "options"]),
|
|
1170
|
-
i(
|
|
1170
|
+
i(A, {
|
|
1171
1171
|
"model-value": {
|
|
1172
1172
|
key: "Credit note no",
|
|
1173
1173
|
account: o.value.platform.mappings.creditNoteDocNo
|
|
@@ -1175,7 +1175,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1175
1175
|
options: y("Credit note no"),
|
|
1176
1176
|
"onUpdate:modelValue": a[7] || (a[7] = (C) => r({ key: "creditNoteDocNo", value: C.account }))
|
|
1177
1177
|
}, null, 8, ["model-value", "options"]),
|
|
1178
|
-
i(
|
|
1178
|
+
i(A, {
|
|
1179
1179
|
"model-value": {
|
|
1180
1180
|
key: "Payment no",
|
|
1181
1181
|
account: o.value.platform.mappings.paymentDocNo
|
|
@@ -1183,7 +1183,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1183
1183
|
options: y("Payment no"),
|
|
1184
1184
|
"onUpdate:modelValue": a[8] || (a[8] = (C) => r({ key: "paymentDocNo", value: C.account }))
|
|
1185
1185
|
}, null, 8, ["model-value", "options"]),
|
|
1186
|
-
i(
|
|
1186
|
+
i(A, {
|
|
1187
1187
|
"model-value": {
|
|
1188
1188
|
key: "Refund no",
|
|
1189
1189
|
account: o.value.platform.mappings.refundDocNo
|
|
@@ -1191,21 +1191,21 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1191
1191
|
options: y("Refund no"),
|
|
1192
1192
|
"onUpdate:modelValue": a[9] || (a[9] = (C) => r({ key: "refundDocNo", value: C.account }))
|
|
1193
1193
|
}, null, 8, ["model-value", "options"]),
|
|
1194
|
-
i(
|
|
1194
|
+
i(A, {
|
|
1195
1195
|
"model-value": {
|
|
1196
1196
|
key: "Rounding",
|
|
1197
1197
|
account: o.value.platform.mappings.rounding.account
|
|
1198
1198
|
},
|
|
1199
1199
|
options: y("Rounding"),
|
|
1200
1200
|
"onUpdate:modelValue": a[10] || (a[10] = (C) => {
|
|
1201
|
-
var
|
|
1202
|
-
(re = (q = (
|
|
1201
|
+
var M, q, re;
|
|
1202
|
+
(re = (q = (M = o.value) == null ? void 0 : M.platform) == null ? void 0 : q.mappings) != null && re.rounding && (o.value.platform.mappings.rounding.account = C.account);
|
|
1203
1203
|
})
|
|
1204
1204
|
}, null, 8, ["model-value", "options"]),
|
|
1205
|
-
(c(!0), F(L, null, X((Z = (E = (j = o.value) == null ? void 0 : j.platform) == null ? void 0 : E.mappings) == null ? void 0 : Z.charges, (C,
|
|
1206
|
-
key: `charge-${
|
|
1207
|
-
modelValue: o.value.platform.mappings.charges[
|
|
1208
|
-
"onUpdate:modelValue": (q) => o.value.platform.mappings.charges[
|
|
1205
|
+
(c(!0), F(L, null, X((Z = (E = (j = o.value) == null ? void 0 : j.platform) == null ? void 0 : E.mappings) == null ? void 0 : Z.charges, (C, M) => (c(), K(A, {
|
|
1206
|
+
key: `charge-${M}`,
|
|
1207
|
+
modelValue: o.value.platform.mappings.charges[M],
|
|
1208
|
+
"onUpdate:modelValue": (q) => o.value.platform.mappings.charges[M] = q,
|
|
1209
1209
|
options: {
|
|
1210
1210
|
key: {
|
|
1211
1211
|
placeholder: f(m)(`report.integration.bukku.mapping.charge.${C.key}`),
|
|
@@ -1234,16 +1234,16 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1234
1234
|
})
|
|
1235
1235
|
]),
|
|
1236
1236
|
t("div", Do, [
|
|
1237
|
-
(c(!0), F(L, null, X((ae = (oe = (te = o.value) == null ? void 0 : te.platform) == null ? void 0 : oe.mappings) == null ? void 0 : ae.items, (C,
|
|
1238
|
-
key: `item-${
|
|
1239
|
-
modelValue: o.value.platform.mappings.items[
|
|
1240
|
-
"onUpdate:modelValue": (q) => o.value.platform.mappings.items[
|
|
1237
|
+
(c(!0), F(L, null, X((ae = (oe = (te = o.value) == null ? void 0 : te.platform) == null ? void 0 : oe.mappings) == null ? void 0 : ae.items, (C, M) => (c(), K(A, {
|
|
1238
|
+
key: `item-${M}`,
|
|
1239
|
+
modelValue: o.value.platform.mappings.items[M],
|
|
1240
|
+
"onUpdate:modelValue": (q) => o.value.platform.mappings.items[M] = q,
|
|
1241
1241
|
options: {
|
|
1242
1242
|
key: { placeholder: "Key", editable: !0 },
|
|
1243
1243
|
account: { placeholder: "Account code", editable: !0 }
|
|
1244
1244
|
},
|
|
1245
1245
|
removable: !0,
|
|
1246
|
-
onRemove: () => _("items",
|
|
1246
|
+
onRemove: () => _("items", M)
|
|
1247
1247
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
1248
1248
|
]),
|
|
1249
1249
|
t("div", Uo, [
|
|
@@ -1255,16 +1255,16 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1255
1255
|
})
|
|
1256
1256
|
]),
|
|
1257
1257
|
t("div", Io, [
|
|
1258
|
-
(c(!0), F(L, null, X((se = (ne = (le = o.value) == null ? void 0 : le.platform) == null ? void 0 : ne.mappings) == null ? void 0 : se.taxes, (C,
|
|
1259
|
-
key: `tax-${
|
|
1260
|
-
modelValue: o.value.platform.mappings.taxes[
|
|
1261
|
-
"onUpdate:modelValue": (q) => o.value.platform.mappings.taxes[
|
|
1258
|
+
(c(!0), F(L, null, X((se = (ne = (le = o.value) == null ? void 0 : le.platform) == null ? void 0 : ne.mappings) == null ? void 0 : se.taxes, (C, M) => (c(), K(A, {
|
|
1259
|
+
key: `tax-${M}`,
|
|
1260
|
+
modelValue: o.value.platform.mappings.taxes[M],
|
|
1261
|
+
"onUpdate:modelValue": (q) => o.value.platform.mappings.taxes[M] = q,
|
|
1262
1262
|
options: {
|
|
1263
1263
|
key: { placeholder: "Key", editable: !0 },
|
|
1264
1264
|
account: { placeholder: "Account code", editable: !0 }
|
|
1265
1265
|
},
|
|
1266
1266
|
removable: !0,
|
|
1267
|
-
onRemove: () => _("taxes",
|
|
1267
|
+
onRemove: () => _("taxes", M)
|
|
1268
1268
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
1269
1269
|
]),
|
|
1270
1270
|
t("div", Mo, [
|
|
@@ -1275,29 +1275,29 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1275
1275
|
onClick: a[14] || (a[14] = () => u("payments"))
|
|
1276
1276
|
})
|
|
1277
1277
|
]),
|
|
1278
|
-
(c(!0), F(L, null, X((
|
|
1279
|
-
key: `payment-${
|
|
1278
|
+
(c(!0), F(L, null, X((S = (U = (ie = o.value) == null ? void 0 : ie.platform) == null ? void 0 : U.mappings) == null ? void 0 : S.payments, (C, M) => (c(), F("div", {
|
|
1279
|
+
key: `payment-${M}`,
|
|
1280
1280
|
class: "grid-cols-1 grid gap-x-16"
|
|
1281
1281
|
}, [
|
|
1282
1282
|
t("div", Ao, [
|
|
1283
1283
|
i(Y, {
|
|
1284
|
-
"model-value": !o.value.platform.mappings.payments[
|
|
1284
|
+
"model-value": !o.value.platform.mappings.payments[M].skip,
|
|
1285
1285
|
value: "",
|
|
1286
1286
|
"onUpdate:modelValue": (q) => {
|
|
1287
1287
|
var re, ye;
|
|
1288
|
-
(ye = (re = o.value.platform) == null ? void 0 : re.mappings) != null && ye.payments[
|
|
1288
|
+
(ye = (re = o.value.platform) == null ? void 0 : re.mappings) != null && ye.payments[M] && (o.value.platform.mappings.payments[M].skip = !q);
|
|
1289
1289
|
}
|
|
1290
1290
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
1291
|
-
i(
|
|
1292
|
-
modelValue: o.value.platform.mappings.payments[
|
|
1293
|
-
"onUpdate:modelValue": (q) => o.value.platform.mappings.payments[
|
|
1291
|
+
i(A, {
|
|
1292
|
+
modelValue: o.value.platform.mappings.payments[M],
|
|
1293
|
+
"onUpdate:modelValue": (q) => o.value.platform.mappings.payments[M] = q,
|
|
1294
1294
|
options: {
|
|
1295
1295
|
key: { placeholder: "Key", editable: !0 },
|
|
1296
1296
|
method: { placeholder: "Method", editable: !0 },
|
|
1297
1297
|
account: { placeholder: "Account code", editable: !0 }
|
|
1298
1298
|
},
|
|
1299
1299
|
removable: !0,
|
|
1300
|
-
onRemove: () => _("payments",
|
|
1300
|
+
onRemove: () => _("payments", M)
|
|
1301
1301
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"])
|
|
1302
1302
|
])
|
|
1303
1303
|
]))), 128))
|
|
@@ -1329,15 +1329,15 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1329
1329
|
for (let r = 0; r < Math.max(u.form_items.length, p.length); r++) {
|
|
1330
1330
|
const y = _ + r;
|
|
1331
1331
|
d[y] || (d[y] = {});
|
|
1332
|
-
const
|
|
1333
|
-
|
|
1332
|
+
const V = u.form_items[r];
|
|
1333
|
+
V && (d[y] = {
|
|
1334
1334
|
...d[y],
|
|
1335
|
-
itemDescription:
|
|
1336
|
-
itemQuantity:
|
|
1337
|
-
itemUnitPrice:
|
|
1338
|
-
itemAccount:
|
|
1339
|
-
itemTaxCode:
|
|
1340
|
-
itemDiscount:
|
|
1335
|
+
itemDescription: V.description,
|
|
1336
|
+
itemQuantity: V.quantity,
|
|
1337
|
+
itemUnitPrice: V.unit_price,
|
|
1338
|
+
itemAccount: V._account_name,
|
|
1339
|
+
itemTaxCode: V._tax_code_name,
|
|
1340
|
+
itemDiscount: V.discount
|
|
1341
1341
|
});
|
|
1342
1342
|
const l = p[r];
|
|
1343
1343
|
l && (d[y] = {
|
|
@@ -1473,7 +1473,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1473
1473
|
}
|
|
1474
1474
|
}
|
|
1475
1475
|
return (d, h) => {
|
|
1476
|
-
const _ =
|
|
1476
|
+
const _ = $("FmButton"), u = $("FmCircularProgress"), p = $("FmTable");
|
|
1477
1477
|
return c(), F("div", No, [
|
|
1478
1478
|
t("div", Ro, [
|
|
1479
1479
|
i(Ue, {
|
|
@@ -1491,7 +1491,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1491
1491
|
x.value ? (c(), F("div", Oo, [
|
|
1492
1492
|
i(u, { size: "xl" }),
|
|
1493
1493
|
t("span", Bo, T(f(n)("report.integration.preview.loading")), 1)
|
|
1494
|
-
])) : e.value.length > 0 ? (c(),
|
|
1494
|
+
])) : e.value.length > 0 ? (c(), K(p, {
|
|
1495
1495
|
key: 1,
|
|
1496
1496
|
class: "flex overflow-scroll",
|
|
1497
1497
|
"row-data": e.value,
|
|
@@ -1531,7 +1531,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1531
1531
|
});
|
|
1532
1532
|
return (D, w) => {
|
|
1533
1533
|
var h;
|
|
1534
|
-
const m =
|
|
1534
|
+
const m = $("FmPageHead"), d = $("FmTabs");
|
|
1535
1535
|
return c(), F("div", Lo, [
|
|
1536
1536
|
i(m, {
|
|
1537
1537
|
title: ((h = e.value) == null ? void 0 : h.name) || "Bukku",
|
|
@@ -1550,7 +1550,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1550
1550
|
items: k
|
|
1551
1551
|
}, null, 8, ["model-value"]),
|
|
1552
1552
|
t("div", Eo, [
|
|
1553
|
-
(c(),
|
|
1553
|
+
(c(), K(be(x.value), {
|
|
1554
1554
|
modelValue: e.value,
|
|
1555
1555
|
"onUpdate:modelValue": w[1] || (w[1] = (_) => e.value = _)
|
|
1556
1556
|
}, null, 8, ["modelValue"]))
|
|
@@ -1596,7 +1596,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1596
1596
|
function _(l, a) {
|
|
1597
1597
|
var v, s;
|
|
1598
1598
|
(s = (v = e.value.platform) == null ? void 0 : v.mappings) != null && s[l] && (e.value.platform.mappings[l] = e.value.platform.mappings[l].filter(
|
|
1599
|
-
(
|
|
1599
|
+
(P, N) => N !== a
|
|
1600
1600
|
));
|
|
1601
1601
|
}
|
|
1602
1602
|
function u(l) {
|
|
@@ -1640,7 +1640,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1640
1640
|
account: { placeholder: l, editable: !0 }
|
|
1641
1641
|
};
|
|
1642
1642
|
}
|
|
1643
|
-
async function
|
|
1643
|
+
async function V() {
|
|
1644
1644
|
await x(async () => {
|
|
1645
1645
|
try {
|
|
1646
1646
|
await Se(e.value._id), await k.getSettings();
|
|
@@ -1651,7 +1651,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1651
1651
|
}
|
|
1652
1652
|
return (l, a) => {
|
|
1653
1653
|
var Y, J, O, j, E, Z, ee, te, oe, ae, le, ne, se, ie;
|
|
1654
|
-
const v =
|
|
1654
|
+
const v = $("FmIcon"), s = $("FmButton"), P = $("FmMenuDivider"), N = $("FmTextField"), G = $("FmSelect");
|
|
1655
1655
|
return (J = (Y = e.value) == null ? void 0 : Y.platform) != null && J.mappings ? (c(), F("div", Yo, [
|
|
1656
1656
|
t("div", qo, [
|
|
1657
1657
|
t("div", Ho, [
|
|
@@ -1661,7 +1661,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1661
1661
|
i(v, {
|
|
1662
1662
|
name: "refresh",
|
|
1663
1663
|
class: "p-2 bg-gray-100 rounded-full",
|
|
1664
|
-
onClick:
|
|
1664
|
+
onClick: V
|
|
1665
1665
|
}),
|
|
1666
1666
|
t("span", Go, T(f(o)("report.integration.autoCount.repopulate")), 1)
|
|
1667
1667
|
]),
|
|
@@ -1678,7 +1678,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1678
1678
|
])
|
|
1679
1679
|
])
|
|
1680
1680
|
]),
|
|
1681
|
-
i(
|
|
1681
|
+
i(P, { style: { margin: 0 } }),
|
|
1682
1682
|
t("div", Jo, [
|
|
1683
1683
|
t("div", Wo, [
|
|
1684
1684
|
t("div", Zo, T(f(o)("report.integration.autocount.general")), 1),
|
|
@@ -1717,17 +1717,17 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1717
1717
|
]),
|
|
1718
1718
|
t("div", ia, [
|
|
1719
1719
|
t("div", ra, [
|
|
1720
|
-
i(
|
|
1720
|
+
i(A, {
|
|
1721
1721
|
"model-value": { key: "Project", account: e.value.platform.mappings.project },
|
|
1722
1722
|
options: y("Project"),
|
|
1723
1723
|
"onUpdate:modelValue": a[3] || (a[3] = (U) => r({ key: "project", value: U.account }))
|
|
1724
1724
|
}, null, 8, ["model-value", "options"]),
|
|
1725
|
-
i(
|
|
1725
|
+
i(A, {
|
|
1726
1726
|
"model-value": { key: "Debtor", account: e.value.platform.mappings.debtor },
|
|
1727
1727
|
options: y("Debtor"),
|
|
1728
1728
|
"onUpdate:modelValue": a[4] || (a[4] = (U) => r({ key: "debtor", value: U.account }))
|
|
1729
1729
|
}, null, 8, ["model-value", "options"]),
|
|
1730
|
-
i(
|
|
1730
|
+
i(A, {
|
|
1731
1731
|
"model-value": {
|
|
1732
1732
|
key: "Invoice no",
|
|
1733
1733
|
account: e.value.platform.mappings.invoiceDocNo
|
|
@@ -1735,7 +1735,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1735
1735
|
options: y("Invoice no"),
|
|
1736
1736
|
"onUpdate:modelValue": a[5] || (a[5] = (U) => r({ key: "invoiceDocNo", value: U.account }))
|
|
1737
1737
|
}, null, 8, ["model-value", "options"]),
|
|
1738
|
-
i(
|
|
1738
|
+
i(A, {
|
|
1739
1739
|
"model-value": {
|
|
1740
1740
|
key: "Credit note no",
|
|
1741
1741
|
account: e.value.platform.mappings.creditNoteDocNo
|
|
@@ -1743,7 +1743,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1743
1743
|
options: y("Credit note no"),
|
|
1744
1744
|
"onUpdate:modelValue": a[6] || (a[6] = (U) => r({ key: "creditNoteDocNo", value: U.account }))
|
|
1745
1745
|
}, null, 8, ["model-value", "options"]),
|
|
1746
|
-
i(
|
|
1746
|
+
i(A, {
|
|
1747
1747
|
"model-value": {
|
|
1748
1748
|
key: "Payment no",
|
|
1749
1749
|
account: e.value.platform.mappings.paymentDocNo
|
|
@@ -1751,7 +1751,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1751
1751
|
options: y("Payment no"),
|
|
1752
1752
|
"onUpdate:modelValue": a[7] || (a[7] = (U) => r({ key: "paymentDocNo", value: U.account }))
|
|
1753
1753
|
}, null, 8, ["model-value", "options"]),
|
|
1754
|
-
i(
|
|
1754
|
+
i(A, {
|
|
1755
1755
|
"model-value": {
|
|
1756
1756
|
key: "Refund no",
|
|
1757
1757
|
account: e.value.platform.mappings.refundDocNo
|
|
@@ -1759,21 +1759,21 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1759
1759
|
options: y("Refund no"),
|
|
1760
1760
|
"onUpdate:modelValue": a[8] || (a[8] = (U) => r({ key: "refundDocNo", value: U.account }))
|
|
1761
1761
|
}, null, 8, ["model-value", "options"]),
|
|
1762
|
-
i(
|
|
1762
|
+
i(A, {
|
|
1763
1763
|
"model-value": {
|
|
1764
1764
|
key: "Rounding",
|
|
1765
1765
|
account: e.value.platform.mappings.rounding.account
|
|
1766
1766
|
},
|
|
1767
1767
|
options: y("Rounding"),
|
|
1768
1768
|
"onUpdate:modelValue": a[9] || (a[9] = (U) => {
|
|
1769
|
-
var
|
|
1770
|
-
(
|
|
1769
|
+
var S, C, M;
|
|
1770
|
+
(M = (C = (S = e.value) == null ? void 0 : S.platform) == null ? void 0 : C.mappings) != null && M.rounding && (e.value.platform.mappings.rounding.account = U.account);
|
|
1771
1771
|
})
|
|
1772
1772
|
}, null, 8, ["model-value", "options"]),
|
|
1773
|
-
(c(!0), F(L, null, X((E = (j = (O = e.value) == null ? void 0 : O.platform) == null ? void 0 : j.mappings) == null ? void 0 : E.charges, (U,
|
|
1774
|
-
key: `charge-${
|
|
1775
|
-
modelValue: e.value.platform.mappings.charges[
|
|
1776
|
-
"onUpdate:modelValue": (C) => e.value.platform.mappings.charges[
|
|
1773
|
+
(c(!0), F(L, null, X((E = (j = (O = e.value) == null ? void 0 : O.platform) == null ? void 0 : j.mappings) == null ? void 0 : E.charges, (U, S) => (c(), K(A, {
|
|
1774
|
+
key: `charge-${S}`,
|
|
1775
|
+
modelValue: e.value.platform.mappings.charges[S],
|
|
1776
|
+
"onUpdate:modelValue": (C) => e.value.platform.mappings.charges[S] = C,
|
|
1777
1777
|
options: {
|
|
1778
1778
|
key: { placeholder: "Key", editable: !1 },
|
|
1779
1779
|
account: { placeholder: "Account code", editable: !0 }
|
|
@@ -1795,16 +1795,16 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1795
1795
|
})
|
|
1796
1796
|
]),
|
|
1797
1797
|
t("div", da, [
|
|
1798
|
-
(c(!0), F(L, null, X((te = (ee = (Z = e.value) == null ? void 0 : Z.platform) == null ? void 0 : ee.mappings) == null ? void 0 : te.items, (U,
|
|
1799
|
-
key: `item-${
|
|
1800
|
-
modelValue: e.value.platform.mappings.items[
|
|
1801
|
-
"onUpdate:modelValue": (C) => e.value.platform.mappings.items[
|
|
1798
|
+
(c(!0), F(L, null, X((te = (ee = (Z = e.value) == null ? void 0 : Z.platform) == null ? void 0 : ee.mappings) == null ? void 0 : te.items, (U, S) => (c(), K(A, {
|
|
1799
|
+
key: `item-${S}`,
|
|
1800
|
+
modelValue: e.value.platform.mappings.items[S],
|
|
1801
|
+
"onUpdate:modelValue": (C) => e.value.platform.mappings.items[S] = C,
|
|
1802
1802
|
options: {
|
|
1803
1803
|
key: { placeholder: "Key", editable: !0 },
|
|
1804
1804
|
account: { placeholder: "Account code", editable: !0 }
|
|
1805
1805
|
},
|
|
1806
1806
|
removable: !0,
|
|
1807
|
-
onRemove: () => _("items",
|
|
1807
|
+
onRemove: () => _("items", S)
|
|
1808
1808
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
1809
1809
|
]),
|
|
1810
1810
|
t("div", pa, [
|
|
@@ -1816,16 +1816,16 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1816
1816
|
})
|
|
1817
1817
|
]),
|
|
1818
1818
|
t("div", fa, [
|
|
1819
|
-
(c(!0), F(L, null, X((le = (ae = (oe = e.value) == null ? void 0 : oe.platform) == null ? void 0 : ae.mappings) == null ? void 0 : le.taxes, (U,
|
|
1820
|
-
key: `tax-${
|
|
1821
|
-
modelValue: e.value.platform.mappings.taxes[
|
|
1822
|
-
"onUpdate:modelValue": (C) => e.value.platform.mappings.taxes[
|
|
1819
|
+
(c(!0), F(L, null, X((le = (ae = (oe = e.value) == null ? void 0 : oe.platform) == null ? void 0 : ae.mappings) == null ? void 0 : le.taxes, (U, S) => (c(), K(A, {
|
|
1820
|
+
key: `tax-${S}`,
|
|
1821
|
+
modelValue: e.value.platform.mappings.taxes[S],
|
|
1822
|
+
"onUpdate:modelValue": (C) => e.value.platform.mappings.taxes[S] = C,
|
|
1823
1823
|
options: {
|
|
1824
1824
|
key: { placeholder: "Key", editable: !0 },
|
|
1825
1825
|
account: { placeholder: "Account code", editable: !0 }
|
|
1826
1826
|
},
|
|
1827
1827
|
removable: !0,
|
|
1828
|
-
onRemove: () => _("taxes",
|
|
1828
|
+
onRemove: () => _("taxes", S)
|
|
1829
1829
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
1830
1830
|
]),
|
|
1831
1831
|
t("div", va, [
|
|
@@ -1837,16 +1837,16 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1837
1837
|
})
|
|
1838
1838
|
]),
|
|
1839
1839
|
t("div", ya, [
|
|
1840
|
-
(c(!0), F(L, null, X((ie = (se = (ne = e.value) == null ? void 0 : ne.platform) == null ? void 0 : se.mappings) == null ? void 0 : ie.payments, (U,
|
|
1841
|
-
key: `payment-${
|
|
1842
|
-
modelValue: e.value.platform.mappings.payments[
|
|
1843
|
-
"onUpdate:modelValue": (C) => e.value.platform.mappings.payments[
|
|
1840
|
+
(c(!0), F(L, null, X((ie = (se = (ne = e.value) == null ? void 0 : ne.platform) == null ? void 0 : se.mappings) == null ? void 0 : ie.payments, (U, S) => (c(), K(A, {
|
|
1841
|
+
key: `payment-${S}`,
|
|
1842
|
+
modelValue: e.value.platform.mappings.payments[S],
|
|
1843
|
+
"onUpdate:modelValue": (C) => e.value.platform.mappings.payments[S] = C,
|
|
1844
1844
|
options: {
|
|
1845
1845
|
key: { placeholder: "Key", editable: !0 },
|
|
1846
1846
|
account: { placeholder: "Payment name", editable: !0 }
|
|
1847
1847
|
},
|
|
1848
1848
|
removable: !0,
|
|
1849
|
-
onRemove: () => _("payments",
|
|
1849
|
+
onRemove: () => _("payments", S)
|
|
1850
1850
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
1851
1851
|
])
|
|
1852
1852
|
])
|
|
@@ -1991,7 +1991,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1991
1991
|
}
|
|
1992
1992
|
}
|
|
1993
1993
|
return (d, h) => {
|
|
1994
|
-
const _ =
|
|
1994
|
+
const _ = $("FmButton"), u = $("FmCircularProgress"), p = $("FmTable");
|
|
1995
1995
|
return c(), F("div", _a, [
|
|
1996
1996
|
t("div", ba, [
|
|
1997
1997
|
i(Ue, {
|
|
@@ -2009,7 +2009,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2009
2009
|
x.value ? (c(), F("div", wa, [
|
|
2010
2010
|
i(u, { size: "xl" }),
|
|
2011
2011
|
t("span", ha, T(f(o)("report.common.isLoading")), 1)
|
|
2012
|
-
])) : n.value.length > 0 ? (c(),
|
|
2012
|
+
])) : n.value.length > 0 ? (c(), K(p, {
|
|
2013
2013
|
key: 1,
|
|
2014
2014
|
class: "flex overflow-scroll",
|
|
2015
2015
|
"row-data": n.value,
|
|
@@ -2049,7 +2049,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2049
2049
|
});
|
|
2050
2050
|
return (D, w) => {
|
|
2051
2051
|
var h;
|
|
2052
|
-
const m =
|
|
2052
|
+
const m = $("FmPageHead"), d = $("FmTabs");
|
|
2053
2053
|
return c(), F("div", Va, [
|
|
2054
2054
|
i(m, {
|
|
2055
2055
|
title: ((h = e.value) == null ? void 0 : h.name) || "AutoCount",
|
|
@@ -2068,7 +2068,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2068
2068
|
items: k
|
|
2069
2069
|
}, null, 8, ["model-value"]),
|
|
2070
2070
|
t("div", $a, [
|
|
2071
|
-
(c(),
|
|
2071
|
+
(c(), K(be(x.value), {
|
|
2072
2072
|
modelValue: e.value,
|
|
2073
2073
|
"onUpdate:modelValue": w[1] || (w[1] = (_) => e.value = _)
|
|
2074
2074
|
}, null, 8, ["modelValue"]))
|
|
@@ -2114,7 +2114,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2114
2114
|
function _(l, a) {
|
|
2115
2115
|
var v, s;
|
|
2116
2116
|
(s = (v = e.value.platform) == null ? void 0 : v.mappings) != null && s[l] && (e.value.platform.mappings[l] = e.value.platform.mappings[l].filter(
|
|
2117
|
-
(
|
|
2117
|
+
(P, N) => N !== a
|
|
2118
2118
|
));
|
|
2119
2119
|
}
|
|
2120
2120
|
function u(l) {
|
|
@@ -2159,7 +2159,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2159
2159
|
account: { placeholder: l, editable: !0 }
|
|
2160
2160
|
};
|
|
2161
2161
|
}
|
|
2162
|
-
async function
|
|
2162
|
+
async function V() {
|
|
2163
2163
|
await x(async () => {
|
|
2164
2164
|
try {
|
|
2165
2165
|
await Se(e.value._id), await k.getSettings();
|
|
@@ -2170,7 +2170,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2170
2170
|
}
|
|
2171
2171
|
return (l, a) => {
|
|
2172
2172
|
var Y, J, O, j, E, Z, ee, te, oe, ae, le, ne, se, ie;
|
|
2173
|
-
const v =
|
|
2173
|
+
const v = $("FmIcon"), s = $("FmButton"), P = $("FmMenuDivider"), N = $("FmTextField"), G = $("FmSelect");
|
|
2174
2174
|
return (J = (Y = e.value) == null ? void 0 : Y.platform) != null && J.mappings ? (c(), F("div", Ca, [
|
|
2175
2175
|
t("div", Fa, [
|
|
2176
2176
|
t("div", Da, [
|
|
@@ -2180,7 +2180,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2180
2180
|
i(v, {
|
|
2181
2181
|
name: "refresh",
|
|
2182
2182
|
class: "p-2 bg-gray-100 rounded-full",
|
|
2183
|
-
onClick:
|
|
2183
|
+
onClick: V
|
|
2184
2184
|
}),
|
|
2185
2185
|
t("span", Ia, T(f(o)("report.integration.sql.refreshTooltip")), 1)
|
|
2186
2186
|
]),
|
|
@@ -2197,7 +2197,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2197
2197
|
])
|
|
2198
2198
|
])
|
|
2199
2199
|
]),
|
|
2200
|
-
i(
|
|
2200
|
+
i(P, { style: { margin: 0 } }),
|
|
2201
2201
|
t("div", Ma, [
|
|
2202
2202
|
t("div", Ka, [
|
|
2203
2203
|
t("div", Aa, T(f(o)("report.integration.sql.general")), 1),
|
|
@@ -2236,12 +2236,12 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2236
2236
|
]),
|
|
2237
2237
|
t("div", Ea, [
|
|
2238
2238
|
t("div", za, [
|
|
2239
|
-
i(
|
|
2239
|
+
i(A, {
|
|
2240
2240
|
"model-value": { key: "Debtor", account: e.value.platform.mappings.debtor },
|
|
2241
2241
|
options: y("Debtor"),
|
|
2242
2242
|
"onUpdate:modelValue": a[3] || (a[3] = (U) => r({ key: "debtor", value: U.account }))
|
|
2243
2243
|
}, null, 8, ["model-value", "options"]),
|
|
2244
|
-
i(
|
|
2244
|
+
i(A, {
|
|
2245
2245
|
"model-value": {
|
|
2246
2246
|
key: "Invoice no",
|
|
2247
2247
|
account: e.value.platform.mappings.invoiceDocNo
|
|
@@ -2249,7 +2249,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2249
2249
|
options: y("Invoice no"),
|
|
2250
2250
|
"onUpdate:modelValue": a[4] || (a[4] = (U) => r({ key: "invoiceDocNo", value: U.account }))
|
|
2251
2251
|
}, null, 8, ["model-value", "options"]),
|
|
2252
|
-
i(
|
|
2252
|
+
i(A, {
|
|
2253
2253
|
"model-value": {
|
|
2254
2254
|
key: "Credit note no",
|
|
2255
2255
|
account: e.value.platform.mappings.creditNoteDocNo
|
|
@@ -2257,7 +2257,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2257
2257
|
options: y("Credit note no"),
|
|
2258
2258
|
"onUpdate:modelValue": a[5] || (a[5] = (U) => r({ key: "creditNoteDocNo", value: U.account }))
|
|
2259
2259
|
}, null, 8, ["model-value", "options"]),
|
|
2260
|
-
i(
|
|
2260
|
+
i(A, {
|
|
2261
2261
|
"model-value": {
|
|
2262
2262
|
key: "Payment no",
|
|
2263
2263
|
account: e.value.platform.mappings.paymentDocNo
|
|
@@ -2265,7 +2265,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2265
2265
|
options: y("Payment no"),
|
|
2266
2266
|
"onUpdate:modelValue": a[6] || (a[6] = (U) => r({ key: "paymentDocNo", value: U.account }))
|
|
2267
2267
|
}, null, 8, ["model-value", "options"]),
|
|
2268
|
-
i(
|
|
2268
|
+
i(A, {
|
|
2269
2269
|
"model-value": {
|
|
2270
2270
|
key: "Refund no",
|
|
2271
2271
|
account: e.value.platform.mappings.refundDocNo
|
|
@@ -2273,7 +2273,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2273
2273
|
options: y("Refund no"),
|
|
2274
2274
|
"onUpdate:modelValue": a[7] || (a[7] = (U) => r({ key: "refundDocNo", value: U.account }))
|
|
2275
2275
|
}, null, 8, ["model-value", "options"]),
|
|
2276
|
-
i(
|
|
2276
|
+
i(A, {
|
|
2277
2277
|
"model-value": {
|
|
2278
2278
|
key: "Project header",
|
|
2279
2279
|
account: e.value.platform.mappings.projectHeader
|
|
@@ -2281,7 +2281,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2281
2281
|
options: y("Project header"),
|
|
2282
2282
|
"onUpdate:modelValue": a[8] || (a[8] = (U) => r({ key: "projectHeader", value: U.account }))
|
|
2283
2283
|
}, null, 8, ["model-value", "options"]),
|
|
2284
|
-
i(
|
|
2284
|
+
i(A, {
|
|
2285
2285
|
"model-value": {
|
|
2286
2286
|
key: "Project detail",
|
|
2287
2287
|
account: e.value.platform.mappings.projectDetail
|
|
@@ -2291,7 +2291,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2291
2291
|
}, null, 8, ["model-value", "options"])
|
|
2292
2292
|
]),
|
|
2293
2293
|
t("div", Ya, [
|
|
2294
|
-
i(
|
|
2294
|
+
i(A, {
|
|
2295
2295
|
"model-value": {
|
|
2296
2296
|
key: "Rounding",
|
|
2297
2297
|
account: e.value.platform.mappings.rounding.account,
|
|
@@ -2303,14 +2303,14 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2303
2303
|
code: { placeholder: "Item code", editable: !0 }
|
|
2304
2304
|
},
|
|
2305
2305
|
"onUpdate:modelValue": a[10] || (a[10] = (U) => {
|
|
2306
|
-
var
|
|
2307
|
-
(
|
|
2306
|
+
var S, C, M;
|
|
2307
|
+
(M = (C = (S = e.value) == null ? void 0 : S.platform) == null ? void 0 : C.mappings) != null && M.rounding && (e.value.platform.mappings.rounding.account = U.account, e.value.platform.mappings.rounding.code = U.code);
|
|
2308
2308
|
})
|
|
2309
2309
|
}, null, 8, ["model-value"]),
|
|
2310
|
-
(c(!0), F(L, null, X((E = (j = (O = e.value) == null ? void 0 : O.platform) == null ? void 0 : j.mappings) == null ? void 0 : E.charges, (U,
|
|
2311
|
-
key: `charge-${
|
|
2312
|
-
modelValue: e.value.platform.mappings.charges[
|
|
2313
|
-
"onUpdate:modelValue": (C) => e.value.platform.mappings.charges[
|
|
2310
|
+
(c(!0), F(L, null, X((E = (j = (O = e.value) == null ? void 0 : O.platform) == null ? void 0 : j.mappings) == null ? void 0 : E.charges, (U, S) => (c(), K(A, {
|
|
2311
|
+
key: `charge-${S}`,
|
|
2312
|
+
modelValue: e.value.platform.mappings.charges[S],
|
|
2313
|
+
"onUpdate:modelValue": (C) => e.value.platform.mappings.charges[S] = C,
|
|
2314
2314
|
options: {
|
|
2315
2315
|
key: { placeholder: "Key", editable: !1 },
|
|
2316
2316
|
account: { placeholder: "Account code", editable: !0 },
|
|
@@ -2333,17 +2333,17 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2333
2333
|
}, null, 8, ["label"])
|
|
2334
2334
|
]),
|
|
2335
2335
|
t("div", Xa, [
|
|
2336
|
-
(c(!0), F(L, null, X((te = (ee = (Z = e.value) == null ? void 0 : Z.platform) == null ? void 0 : ee.mappings) == null ? void 0 : te.items, (U,
|
|
2337
|
-
key: `item-${
|
|
2338
|
-
modelValue: e.value.platform.mappings.items[
|
|
2339
|
-
"onUpdate:modelValue": (C) => e.value.platform.mappings.items[
|
|
2336
|
+
(c(!0), F(L, null, X((te = (ee = (Z = e.value) == null ? void 0 : Z.platform) == null ? void 0 : ee.mappings) == null ? void 0 : te.items, (U, S) => (c(), K(A, {
|
|
2337
|
+
key: `item-${S}`,
|
|
2338
|
+
modelValue: e.value.platform.mappings.items[S],
|
|
2339
|
+
"onUpdate:modelValue": (C) => e.value.platform.mappings.items[S] = C,
|
|
2340
2340
|
options: {
|
|
2341
2341
|
key: { placeholder: "Key", editable: !0 },
|
|
2342
2342
|
account: { placeholder: "Account code", editable: !0 },
|
|
2343
2343
|
code: { placeholder: "Item code", editable: !0 }
|
|
2344
2344
|
},
|
|
2345
2345
|
removable: !0,
|
|
2346
|
-
onRemove: () => _("items",
|
|
2346
|
+
onRemove: () => _("items", S)
|
|
2347
2347
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
2348
2348
|
]),
|
|
2349
2349
|
t("div", Qa, [
|
|
@@ -2355,16 +2355,16 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2355
2355
|
})
|
|
2356
2356
|
]),
|
|
2357
2357
|
t("div", Ja, [
|
|
2358
|
-
(c(!0), F(L, null, X((le = (ae = (oe = e.value) == null ? void 0 : oe.platform) == null ? void 0 : ae.mappings) == null ? void 0 : le.taxes, (U,
|
|
2359
|
-
key: `tax-${
|
|
2360
|
-
modelValue: e.value.platform.mappings.taxes[
|
|
2361
|
-
"onUpdate:modelValue": (C) => e.value.platform.mappings.taxes[
|
|
2358
|
+
(c(!0), F(L, null, X((le = (ae = (oe = e.value) == null ? void 0 : oe.platform) == null ? void 0 : ae.mappings) == null ? void 0 : le.taxes, (U, S) => (c(), K(A, {
|
|
2359
|
+
key: `tax-${S}`,
|
|
2360
|
+
modelValue: e.value.platform.mappings.taxes[S],
|
|
2361
|
+
"onUpdate:modelValue": (C) => e.value.platform.mappings.taxes[S] = C,
|
|
2362
2362
|
options: {
|
|
2363
2363
|
key: { placeholder: "Key", editable: !0 },
|
|
2364
2364
|
account: { placeholder: "Account code", editable: !0 }
|
|
2365
2365
|
},
|
|
2366
2366
|
removable: !0,
|
|
2367
|
-
onRemove: () => _("taxes",
|
|
2367
|
+
onRemove: () => _("taxes", S)
|
|
2368
2368
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
2369
2369
|
]),
|
|
2370
2370
|
t("div", Wa, [
|
|
@@ -2376,16 +2376,16 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2376
2376
|
})
|
|
2377
2377
|
]),
|
|
2378
2378
|
t("div", el, [
|
|
2379
|
-
(c(!0), F(L, null, X((ie = (se = (ne = e.value) == null ? void 0 : ne.platform) == null ? void 0 : se.mappings) == null ? void 0 : ie.payments, (U,
|
|
2380
|
-
key: `payment-${
|
|
2381
|
-
modelValue: e.value.platform.mappings.payments[
|
|
2382
|
-
"onUpdate:modelValue": (C) => e.value.platform.mappings.payments[
|
|
2379
|
+
(c(!0), F(L, null, X((ie = (se = (ne = e.value) == null ? void 0 : ne.platform) == null ? void 0 : se.mappings) == null ? void 0 : ie.payments, (U, S) => (c(), K(A, {
|
|
2380
|
+
key: `payment-${S}`,
|
|
2381
|
+
modelValue: e.value.platform.mappings.payments[S],
|
|
2382
|
+
"onUpdate:modelValue": (C) => e.value.platform.mappings.payments[S] = C,
|
|
2383
2383
|
options: {
|
|
2384
2384
|
key: { placeholder: "Key", editable: !0 },
|
|
2385
2385
|
account: { placeholder: "Method", editable: !0 }
|
|
2386
2386
|
},
|
|
2387
2387
|
removable: !0,
|
|
2388
|
-
onRemove: () => _("payments",
|
|
2388
|
+
onRemove: () => _("payments", S)
|
|
2389
2389
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
2390
2390
|
])
|
|
2391
2391
|
])
|
|
@@ -2525,7 +2525,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2525
2525
|
}
|
|
2526
2526
|
}
|
|
2527
2527
|
return (d, h) => {
|
|
2528
|
-
const _ =
|
|
2528
|
+
const _ = $("FmButton"), u = $("FmCircularProgress"), p = $("FmTable");
|
|
2529
2529
|
return c(), F("div", ol, [
|
|
2530
2530
|
t("div", al, [
|
|
2531
2531
|
i(Ue, {
|
|
@@ -2543,7 +2543,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2543
2543
|
x.value ? (c(), F("div", ll, [
|
|
2544
2544
|
i(u, { size: "xl" }),
|
|
2545
2545
|
t("span", nl, T(f(o)("report.common.isLoading")), 1)
|
|
2546
|
-
])) : n.value.length > 0 ? (c(),
|
|
2546
|
+
])) : n.value.length > 0 ? (c(), K(p, {
|
|
2547
2547
|
key: 1,
|
|
2548
2548
|
class: "flex overflow-scroll",
|
|
2549
2549
|
"row-data": n.value,
|
|
@@ -2583,7 +2583,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2583
2583
|
});
|
|
2584
2584
|
return (D, w) => {
|
|
2585
2585
|
var h;
|
|
2586
|
-
const m =
|
|
2586
|
+
const m = $("FmPageHead"), d = $("FmTabs");
|
|
2587
2587
|
return c(), F("div", il, [
|
|
2588
2588
|
i(m, {
|
|
2589
2589
|
title: ((h = e.value) == null ? void 0 : h.name) || "SQL",
|
|
@@ -2602,7 +2602,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2602
2602
|
items: k
|
|
2603
2603
|
}, null, 8, ["model-value"]),
|
|
2604
2604
|
t("div", rl, [
|
|
2605
|
-
(c(),
|
|
2605
|
+
(c(), K(be(x.value), {
|
|
2606
2606
|
modelValue: e.value,
|
|
2607
2607
|
"onUpdate:modelValue": w[1] || (w[1] = (_) => e.value = _)
|
|
2608
2608
|
}, null, 8, ["modelValue"]))
|
|
@@ -2646,11 +2646,11 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2646
2646
|
emits: ["update:modelValue"],
|
|
2647
2647
|
setup(g) {
|
|
2648
2648
|
const { t: o } = W(), e = Q(g, "modelValue"), n = fe(), k = we(), b = pe(), { promptLoader: x } = ke(), { promptMessage: D } = Fe(), { restaurants: w } = ue(), m = z(
|
|
2649
|
-
() => w.map((
|
|
2649
|
+
() => w.map((V) => ({ label: V.name, value: V.id }))
|
|
2650
2650
|
);
|
|
2651
|
-
function d(
|
|
2651
|
+
function d(V) {
|
|
2652
2652
|
var l;
|
|
2653
|
-
!((l = g.retrievedMethods) != null && l.data) || !Array.isArray(g.retrievedMethods.data) ||
|
|
2653
|
+
!((l = g.retrievedMethods) != null && l.data) || !Array.isArray(g.retrievedMethods.data) || V.forEach((a) => {
|
|
2654
2654
|
const v = g.retrievedMethods.data.find((s) => s.value == a.id);
|
|
2655
2655
|
v && (a.cnId = v.cnId);
|
|
2656
2656
|
});
|
|
@@ -2669,29 +2669,29 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2669
2669
|
}
|
|
2670
2670
|
async function _() {
|
|
2671
2671
|
await x(async () => {
|
|
2672
|
-
var
|
|
2672
|
+
var V, l, a;
|
|
2673
2673
|
try {
|
|
2674
|
-
(a = (l = (
|
|
2674
|
+
(a = (l = (V = e.value) == null ? void 0 : V.platform) == null ? void 0 : l.mappings) != null && a.paymentMethods && d(e.value.platform.mappings.paymentMethods), await $e(e.value._id, e.value), await k.getSettings();
|
|
2675
2675
|
} catch (v) {
|
|
2676
2676
|
n.open({ type: "error", message: v.message });
|
|
2677
2677
|
}
|
|
2678
2678
|
});
|
|
2679
2679
|
}
|
|
2680
|
-
function u(
|
|
2680
|
+
function u(V, l) {
|
|
2681
2681
|
var a, v;
|
|
2682
|
-
(v = (a = e.value.platform) == null ? void 0 : a.mappings) != null && v[
|
|
2683
|
-
(s,
|
|
2682
|
+
(v = (a = e.value.platform) == null ? void 0 : a.mappings) != null && v[V] && (e.value.platform.mappings[V] = e.value.platform.mappings[V].filter(
|
|
2683
|
+
(s, P) => P !== l
|
|
2684
2684
|
));
|
|
2685
2685
|
}
|
|
2686
|
-
function p(
|
|
2686
|
+
function p(V) {
|
|
2687
2687
|
var l, a;
|
|
2688
|
-
(a = (l = e.value.platform) == null ? void 0 : l.mappings) != null && a[
|
|
2689
|
-
...e.value.platform.mappings[
|
|
2690
|
-
|
|
2688
|
+
(a = (l = e.value.platform) == null ? void 0 : l.mappings) != null && a[V] && (e.value.platform.mappings[V] = [
|
|
2689
|
+
...e.value.platform.mappings[V],
|
|
2690
|
+
V === "items" ? {
|
|
2691
2691
|
key: "",
|
|
2692
2692
|
account: "",
|
|
2693
2693
|
description: ""
|
|
2694
|
-
} :
|
|
2694
|
+
} : V === "taxes" ? {
|
|
2695
2695
|
key: "",
|
|
2696
2696
|
account: "SST-"
|
|
2697
2697
|
} : {
|
|
@@ -2708,12 +2708,12 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2708
2708
|
];
|
|
2709
2709
|
ge(
|
|
2710
2710
|
() => {
|
|
2711
|
-
var
|
|
2712
|
-
return (a = (l = (
|
|
2711
|
+
var V, l, a;
|
|
2712
|
+
return (a = (l = (V = e.value) == null ? void 0 : V.platform) == null ? void 0 : l.mappings) == null ? void 0 : a.taxes;
|
|
2713
2713
|
},
|
|
2714
|
-
(
|
|
2715
|
-
|
|
2716
|
-
var
|
|
2714
|
+
(V) => {
|
|
2715
|
+
V && V.forEach((l, a) => {
|
|
2716
|
+
var P;
|
|
2717
2717
|
const v = l.key || "";
|
|
2718
2718
|
let s = l.account;
|
|
2719
2719
|
if (!s && v) {
|
|
@@ -2728,7 +2728,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2728
2728
|
s = "SST-0";
|
|
2729
2729
|
break;
|
|
2730
2730
|
}
|
|
2731
|
-
(
|
|
2731
|
+
(P = e.value.platform) != null && P.mappings && (e.value.platform.mappings.taxes[a] = {
|
|
2732
2732
|
...l,
|
|
2733
2733
|
account: s
|
|
2734
2734
|
});
|
|
@@ -2738,12 +2738,12 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2738
2738
|
{ immediate: !0, deep: !0 }
|
|
2739
2739
|
), ge(
|
|
2740
2740
|
() => {
|
|
2741
|
-
var
|
|
2742
|
-
return (a = (l = (
|
|
2741
|
+
var V, l, a;
|
|
2742
|
+
return (a = (l = (V = e.value) == null ? void 0 : V.platform) == null ? void 0 : l.mappings) == null ? void 0 : a.version;
|
|
2743
2743
|
},
|
|
2744
|
-
(
|
|
2745
|
-
var l, a, v, s,
|
|
2746
|
-
|
|
2744
|
+
(V) => {
|
|
2745
|
+
var l, a, v, s, P;
|
|
2746
|
+
V === "v1" && !((v = (a = (l = e.value) == null ? void 0 : l.platform) == null ? void 0 : a.mappings) != null && v.payee) && (P = (s = e.value) == null ? void 0 : s.platform) != null && P.mappings && (e.value.platform.mappings.payee = {
|
|
2747
2747
|
id: 1,
|
|
2748
2748
|
name: ""
|
|
2749
2749
|
});
|
|
@@ -2754,14 +2754,14 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2754
2754
|
await x(async () => {
|
|
2755
2755
|
try {
|
|
2756
2756
|
await Se(e.value._id), await k.getSettings();
|
|
2757
|
-
} catch (
|
|
2758
|
-
n.open({ type: "error", message:
|
|
2757
|
+
} catch (V) {
|
|
2758
|
+
n.open({ type: "error", message: V.message });
|
|
2759
2759
|
}
|
|
2760
2760
|
});
|
|
2761
2761
|
}
|
|
2762
|
-
return (
|
|
2762
|
+
return (V, l) => {
|
|
2763
2763
|
var J, O, j, E, Z, ee, te, oe, ae, le, ne, se, ie, U;
|
|
2764
|
-
const a =
|
|
2764
|
+
const a = $("FmIcon"), v = $("FmButton"), s = $("FmSelect"), P = $("FmMenuDivider"), N = $("FmTextField"), G = $("FmCircularProgress"), Y = $("FmCheckbox");
|
|
2765
2765
|
return (O = (J = e.value) == null ? void 0 : J.platform) != null && O.mappings ? (c(), F("div", cl, [
|
|
2766
2766
|
t("div", dl, [
|
|
2767
2767
|
t("div", pl, [
|
|
@@ -2797,7 +2797,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2797
2797
|
t("div", hl, [
|
|
2798
2798
|
i(s, {
|
|
2799
2799
|
modelValue: e.value.platform.mappings.version,
|
|
2800
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
2800
|
+
"onUpdate:modelValue": l[0] || (l[0] = (S) => e.value.platform.mappings.version = S),
|
|
2801
2801
|
items: [
|
|
2802
2802
|
{ label: "v1", value: "v1" },
|
|
2803
2803
|
{ label: "v2", value: "v2" }
|
|
@@ -2806,14 +2806,14 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2806
2806
|
}, null, 8, ["modelValue"])
|
|
2807
2807
|
])
|
|
2808
2808
|
]),
|
|
2809
|
-
i(
|
|
2809
|
+
i(P, { style: { margin: 0 } }),
|
|
2810
2810
|
t("div", kl, [
|
|
2811
2811
|
t("div", Vl, [
|
|
2812
2812
|
t("div", $l, T(f(o)("report.integration.biztory.subdomain")), 1),
|
|
2813
2813
|
t("div", Sl, [
|
|
2814
2814
|
i(N, {
|
|
2815
2815
|
modelValue: e.value.platform.subdomain,
|
|
2816
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
2816
|
+
"onUpdate:modelValue": l[1] || (l[1] = (S) => e.value.platform.subdomain = S),
|
|
2817
2817
|
placeholder: "Subdomain"
|
|
2818
2818
|
}, null, 8, ["modelValue"])
|
|
2819
2819
|
])
|
|
@@ -2823,7 +2823,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2823
2823
|
t("div", Dl, [
|
|
2824
2824
|
i(N, {
|
|
2825
2825
|
modelValue: e.value.platform.api_key,
|
|
2826
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
|
2826
|
+
"onUpdate:modelValue": l[2] || (l[2] = (S) => e.value.platform.api_key = S),
|
|
2827
2827
|
placeholder: "API Key"
|
|
2828
2828
|
}, null, 8, ["modelValue"])
|
|
2829
2829
|
])
|
|
@@ -2835,7 +2835,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2835
2835
|
t("div", Kl, [
|
|
2836
2836
|
i(N, {
|
|
2837
2837
|
modelValue: e.value.name,
|
|
2838
|
-
"onUpdate:modelValue": l[3] || (l[3] = (
|
|
2838
|
+
"onUpdate:modelValue": l[3] || (l[3] = (S) => e.value.name = S)
|
|
2839
2839
|
}, null, 8, ["modelValue"])
|
|
2840
2840
|
])
|
|
2841
2841
|
]),
|
|
@@ -2843,7 +2843,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2843
2843
|
t("div", Pl, T(f(o)("report.common.location")), 1),
|
|
2844
2844
|
i(s, {
|
|
2845
2845
|
modelValue: e.value.platform.locationIds,
|
|
2846
|
-
"onUpdate:modelValue": l[4] || (l[4] = (
|
|
2846
|
+
"onUpdate:modelValue": l[4] || (l[4] = (S) => e.value.platform.locationIds = S),
|
|
2847
2847
|
multiselect: !0,
|
|
2848
2848
|
items: m.value,
|
|
2849
2849
|
placeholder: f(o)("report.common.location"),
|
|
@@ -2854,7 +2854,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2854
2854
|
t("div", Rl, T(f(o)("report.integration.biztory.grouping")), 1),
|
|
2855
2855
|
i(s, {
|
|
2856
2856
|
modelValue: e.value.platform.grouping,
|
|
2857
|
-
"onUpdate:modelValue": l[5] || (l[5] = (
|
|
2857
|
+
"onUpdate:modelValue": l[5] || (l[5] = (S) => e.value.platform.grouping = S),
|
|
2858
2858
|
multiselect: !1,
|
|
2859
2859
|
items: r,
|
|
2860
2860
|
placeholder: f(o)("report.integration.biztory.grouping"),
|
|
@@ -2864,10 +2864,10 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2864
2864
|
]),
|
|
2865
2865
|
e.value.platform.mappings.version == "v1" ? (c(), F("div", Ol, [
|
|
2866
2866
|
l[13] || (l[13] = t("div", { class: "w-[33%]" }, "Payee ID", -1)),
|
|
2867
|
-
e.value.platform.mappings.version == "v1" ? (c(), A
|
|
2867
|
+
e.value.platform.mappings.version == "v1" ? (c(), K(A, {
|
|
2868
2868
|
key: 0,
|
|
2869
2869
|
modelValue: e.value.platform.mappings.payee,
|
|
2870
|
-
"onUpdate:modelValue": l[6] || (l[6] = (
|
|
2870
|
+
"onUpdate:modelValue": l[6] || (l[6] = (S) => e.value.platform.mappings.payee = S),
|
|
2871
2871
|
options: {
|
|
2872
2872
|
id: { placeholder: "ID", editable: !0 }
|
|
2873
2873
|
},
|
|
@@ -2877,15 +2877,15 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2877
2877
|
]),
|
|
2878
2878
|
t("div", Bl, [
|
|
2879
2879
|
t("div", jl, [
|
|
2880
|
-
!g.retrievedCustomers.isLoaded && e.value.platform.mappings.version == "v2" ? (c(),
|
|
2880
|
+
!g.retrievedCustomers.isLoaded && e.value.platform.mappings.version == "v2" ? (c(), K(G, {
|
|
2881
2881
|
key: 0,
|
|
2882
2882
|
size: "xl"
|
|
2883
2883
|
})) : R("", !0),
|
|
2884
2884
|
g.retrievedCustomers.isLoaded && g.retrievedCustomers.data && ((j = g.retrievedCustomers.data) == null ? void 0 : j.length) != 0 ? (c(), F("div", Ll, [
|
|
2885
|
-
e.value.platform.mappings.version == "v2" ? (c(),
|
|
2885
|
+
e.value.platform.mappings.version == "v2" ? (c(), K(Me, {
|
|
2886
2886
|
key: 0,
|
|
2887
2887
|
modelValue: e.value.platform.mappings.payeeId,
|
|
2888
|
-
"onUpdate:modelValue": l[7] || (l[7] = (
|
|
2888
|
+
"onUpdate:modelValue": l[7] || (l[7] = (S) => e.value.platform.mappings.payeeId = S),
|
|
2889
2889
|
options: {
|
|
2890
2890
|
key: { placeholder: "Payee", editable: !1 },
|
|
2891
2891
|
customer: {
|
|
@@ -2902,7 +2902,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2902
2902
|
]),
|
|
2903
2903
|
i(Te, {
|
|
2904
2904
|
modelValue: e.value.platform,
|
|
2905
|
-
"onUpdate:modelValue": l[8] || (l[8] = (
|
|
2905
|
+
"onUpdate:modelValue": l[8] || (l[8] = (S) => e.value.platform = S),
|
|
2906
2906
|
label: "upload",
|
|
2907
2907
|
"last-upload-date": (Z = e.value.platform) == null ? void 0 : Z.lastUploadDate
|
|
2908
2908
|
}, null, 8, ["modelValue", "last-upload-date"]),
|
|
@@ -2915,10 +2915,10 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2915
2915
|
})
|
|
2916
2916
|
]),
|
|
2917
2917
|
t("div", Yl, [
|
|
2918
|
-
(c(!0), F(L, null, X((oe = (te = (ee = e.value) == null ? void 0 : ee.platform) == null ? void 0 : te.mappings) == null ? void 0 : oe.items, (
|
|
2918
|
+
(c(!0), F(L, null, X((oe = (te = (ee = e.value) == null ? void 0 : ee.platform) == null ? void 0 : te.mappings) == null ? void 0 : oe.items, (S, C) => (c(), K(A, {
|
|
2919
2919
|
key: `item-${C}`,
|
|
2920
2920
|
modelValue: e.value.platform.mappings.items[C],
|
|
2921
|
-
"onUpdate:modelValue": (
|
|
2921
|
+
"onUpdate:modelValue": (M) => e.value.platform.mappings.items[C] = M,
|
|
2922
2922
|
options: {
|
|
2923
2923
|
key: { placeholder: "Key", editable: !0 },
|
|
2924
2924
|
code: { placeholder: "Account code", editable: !0 }
|
|
@@ -2936,10 +2936,10 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2936
2936
|
})
|
|
2937
2937
|
]),
|
|
2938
2938
|
t("div", Xl, [
|
|
2939
|
-
(c(!0), F(L, null, X((ne = (le = (ae = e.value) == null ? void 0 : ae.platform) == null ? void 0 : le.mappings) == null ? void 0 : ne.taxes, (
|
|
2939
|
+
(c(!0), F(L, null, X((ne = (le = (ae = e.value) == null ? void 0 : ae.platform) == null ? void 0 : le.mappings) == null ? void 0 : ne.taxes, (S, C) => (c(), K(A, {
|
|
2940
2940
|
key: `tax-${C}`,
|
|
2941
2941
|
modelValue: e.value.platform.mappings.taxes[C],
|
|
2942
|
-
"onUpdate:modelValue": (
|
|
2942
|
+
"onUpdate:modelValue": (M) => e.value.platform.mappings.taxes[C] = M,
|
|
2943
2943
|
options: {
|
|
2944
2944
|
key: { placeholder: "Key", editable: !0 },
|
|
2945
2945
|
account: { placeholder: "Account code", editable: !0 }
|
|
@@ -2959,9 +2959,9 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2959
2959
|
t("div", Jl, [
|
|
2960
2960
|
l[14] || (l[14] = t("div", { class: "w-[25%]" }, "Payment Term", -1)),
|
|
2961
2961
|
t("div", Wl, [
|
|
2962
|
-
i(
|
|
2962
|
+
i(A, {
|
|
2963
2963
|
modelValue: e.value.platform.mappings.paymentTerm,
|
|
2964
|
-
"onUpdate:modelValue": l[12] || (l[12] = (
|
|
2964
|
+
"onUpdate:modelValue": l[12] || (l[12] = (S) => e.value.platform.mappings.paymentTerm = S),
|
|
2965
2965
|
options: {
|
|
2966
2966
|
id: { placeholder: "ID", editable: !0 },
|
|
2967
2967
|
name: { placeholder: "Name", editable: !0 }
|
|
@@ -2972,18 +2972,18 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2972
2972
|
]),
|
|
2973
2973
|
g.retrievedMethods.isError ? R("", !0) : (c(), F("div", Zl, T(f(o)("report.integration.biztory.paymentTerm")), 1)),
|
|
2974
2974
|
g.retrievedMethods.isLoaded && g.retrievedMethods.data && g.retrievedMethods.data.length == 0 && !g.retrievedMethods.isError ? (c(), F("span", en, T(f(o)("report.integration.biztory.noPaymentMethods")), 1)) : R("", !0),
|
|
2975
|
-
g.retrievedMethods.isLoaded ? R("", !0) : (c(),
|
|
2975
|
+
g.retrievedMethods.isLoaded ? R("", !0) : (c(), K(G, {
|
|
2976
2976
|
key: 2,
|
|
2977
2977
|
size: "xl"
|
|
2978
2978
|
})),
|
|
2979
2979
|
g.retrievedMethods.isError ? (c(), F("span", tn, T(f(o)("report.integration.biztory.error")), 1)) : R("", !0),
|
|
2980
|
-
(c(!0), F(L, null, X((U = (ie = (se = e.value) == null ? void 0 : se.platform) == null ? void 0 : ie.mappings) == null ? void 0 : U.paymentMethods, (
|
|
2981
|
-
var
|
|
2980
|
+
(c(!0), F(L, null, X((U = (ie = (se = e.value) == null ? void 0 : se.platform) == null ? void 0 : ie.mappings) == null ? void 0 : U.paymentMethods, (S, C) => {
|
|
2981
|
+
var M;
|
|
2982
2982
|
return c(), F("div", {
|
|
2983
2983
|
key: `payment-${C}`,
|
|
2984
2984
|
class: "grid-cols-1 grid gap-x-16"
|
|
2985
2985
|
}, [
|
|
2986
|
-
g.retrievedMethods.isLoaded && g.retrievedMethods.data && ((
|
|
2986
|
+
g.retrievedMethods.isLoaded && g.retrievedMethods.data && ((M = g.retrievedMethods.data) == null ? void 0 : M.length) != 0 ? (c(), F("div", on, [
|
|
2987
2987
|
i(Y, {
|
|
2988
2988
|
"model-value": !e.value.platform.mappings.paymentMethods[C].skip,
|
|
2989
2989
|
value: "",
|
|
@@ -3020,7 +3020,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3020
3020
|
});
|
|
3021
3021
|
function ln(g) {
|
|
3022
3022
|
return g.reduce((o, e) => {
|
|
3023
|
-
var b, x, D, w, m, d, h, _, u, p, r, y,
|
|
3023
|
+
var b, x, D, w, m, d, h, _, u, p, r, y, V, l, a, v, s, P, N, G, Y, J;
|
|
3024
3024
|
const { invoice: n } = e, k = o.length;
|
|
3025
3025
|
o[k] = {
|
|
3026
3026
|
invoice_date: n.invoice_date,
|
|
@@ -3049,11 +3049,11 @@ function ln(g) {
|
|
|
3049
3049
|
item_price: E.price,
|
|
3050
3050
|
item_tax: E.total_tax,
|
|
3051
3051
|
item_tax_label: E.tax_label || "-",
|
|
3052
|
-
payment_amount: ((l = (
|
|
3052
|
+
payment_amount: ((l = (V = n.transactions) == null ? void 0 : V[O]) == null ? void 0 : l.amount) || void 0,
|
|
3053
3053
|
payment_method: ((v = (a = n.transactions) == null ? void 0 : a[O]) == null ? void 0 : v.payment_method) || "-",
|
|
3054
3054
|
payment_term: ((s = n == null ? void 0 : n.payment_term) == null ? void 0 : s.name) || ""
|
|
3055
3055
|
} : o[j] = {
|
|
3056
|
-
payment_amount: ((N = (
|
|
3056
|
+
payment_amount: ((N = (P = n.transactions) == null ? void 0 : P[O]) == null ? void 0 : N.amount) || void 0,
|
|
3057
3057
|
payment_method: ((Y = (G = n.transactions) == null ? void 0 : G[O]) == null ? void 0 : Y.payment_method) || "-",
|
|
3058
3058
|
payment_term: ((J = n == null ? void 0 : n.payment_term) == null ? void 0 : J.name) || ""
|
|
3059
3059
|
};
|
|
@@ -3135,7 +3135,7 @@ const nn = [
|
|
|
3135
3135
|
];
|
|
3136
3136
|
function sn(g) {
|
|
3137
3137
|
return g.reduce((o, e) => {
|
|
3138
|
-
var D, w, m, d, h, _, u, p, r, y
|
|
3138
|
+
var D, w, m, d, h, _, u, p, r, y;
|
|
3139
3139
|
const { invoice: n, payments: k } = e, b = o.length;
|
|
3140
3140
|
o[b] = {
|
|
3141
3141
|
invoice_date: n.invoice_date,
|
|
@@ -3144,37 +3144,37 @@ function sn(g) {
|
|
|
3144
3144
|
item_code: (D = n.items[0]) == null ? void 0 : D.code,
|
|
3145
3145
|
item_description: (w = n.items[0]) == null ? void 0 : w.description,
|
|
3146
3146
|
item_price: (m = n.items[0]) == null ? void 0 : m.price,
|
|
3147
|
-
item_tax_label: ((d = n.items[0]) == null ? void 0 : d.tax_label)
|
|
3148
|
-
item_tax_amount: ((
|
|
3149
|
-
service_charge_amount: ((
|
|
3147
|
+
item_tax_label: ((d = n.items[0]) == null ? void 0 : d.tax_label) ?? "",
|
|
3148
|
+
item_tax_amount: ((h = n.items[0]) == null ? void 0 : h.total_tax) ?? "",
|
|
3149
|
+
service_charge_amount: ((_ = n.service_charges[0]) == null ? void 0 : _.total) ?? "",
|
|
3150
3150
|
rounding: n.rounding ?? 0,
|
|
3151
3151
|
payment_term_id: n.payment_term.name ?? "",
|
|
3152
|
-
payment_term_amount: ((
|
|
3153
|
-
payment_method: ((
|
|
3152
|
+
payment_term_amount: ((u = n.terms[b]) == null ? void 0 : u.amount) ?? "",
|
|
3153
|
+
payment_method: ((p = k[0]) == null ? void 0 : p.payment_method_name) || ""
|
|
3154
3154
|
};
|
|
3155
3155
|
const x = Math.max(
|
|
3156
|
-
((
|
|
3157
|
-
((
|
|
3156
|
+
((r = n.items) == null ? void 0 : r.length) || 0,
|
|
3157
|
+
((y = n.terms) == null ? void 0 : y.length) || 0,
|
|
3158
3158
|
(k == null ? void 0 : k.length) || 0
|
|
3159
3159
|
);
|
|
3160
|
-
for (let
|
|
3161
|
-
const
|
|
3162
|
-
o[
|
|
3163
|
-
const
|
|
3164
|
-
|
|
3165
|
-
...o[
|
|
3166
|
-
item_code:
|
|
3167
|
-
item_description:
|
|
3168
|
-
item_price:
|
|
3169
|
-
item_tax_label:
|
|
3170
|
-
item_tax_amount:
|
|
3160
|
+
for (let V = 1; V < x; V++) {
|
|
3161
|
+
const l = b + V;
|
|
3162
|
+
o[l] || (o[l] = {});
|
|
3163
|
+
const a = n.items[V], v = n.terms[V], s = k[V];
|
|
3164
|
+
a ? o[l] = {
|
|
3165
|
+
...o[l],
|
|
3166
|
+
item_code: a.code,
|
|
3167
|
+
item_description: a.description,
|
|
3168
|
+
item_price: a.total,
|
|
3169
|
+
item_tax_label: a.tax_label == "?" ? "" : a.tax_label ?? "",
|
|
3170
|
+
item_tax_amount: a.total_tax ?? "",
|
|
3171
3171
|
payment_term_id: n.payment_term.name ?? "",
|
|
3172
|
-
payment_term_amount: (
|
|
3173
|
-
payment_method: (
|
|
3174
|
-
} : o[
|
|
3172
|
+
payment_term_amount: (v == null ? void 0 : v.amount) ?? "",
|
|
3173
|
+
payment_method: (s == null ? void 0 : s.payment_method_name) || ""
|
|
3174
|
+
} : o[l] = {
|
|
3175
3175
|
payment_term_id: n.payment_term.name ?? "",
|
|
3176
|
-
payment_term_amount: (
|
|
3177
|
-
payment_method: (
|
|
3176
|
+
payment_term_amount: (v == null ? void 0 : v.amount) ?? "",
|
|
3177
|
+
payment_method: (s == null ? void 0 : s.payment_method_name) || ""
|
|
3178
3178
|
};
|
|
3179
3179
|
}
|
|
3180
3180
|
return o;
|
|
@@ -3301,7 +3301,7 @@ const rn = [
|
|
|
3301
3301
|
}
|
|
3302
3302
|
}
|
|
3303
3303
|
return (m, d) => {
|
|
3304
|
-
const h =
|
|
3304
|
+
const h = $("FmButton"), _ = $("FmCircularProgress"), u = $("FmTable");
|
|
3305
3305
|
return c(), F("div", mn, [
|
|
3306
3306
|
t("div", cn, [
|
|
3307
3307
|
i(Ue, {
|
|
@@ -3319,7 +3319,7 @@ const rn = [
|
|
|
3319
3319
|
e.value ? (c(), F("div", dn, [
|
|
3320
3320
|
i(_, { size: "xl" }),
|
|
3321
3321
|
d[1] || (d[1] = t("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Loading data... ", -1))
|
|
3322
|
-
])) : (c(),
|
|
3322
|
+
])) : (c(), K(u, {
|
|
3323
3323
|
key: 1,
|
|
3324
3324
|
class: "flex overflow-scroll",
|
|
3325
3325
|
"row-data": x.value,
|
|
@@ -3368,12 +3368,12 @@ const rn = [
|
|
|
3368
3368
|
label: r.length > 2 ? `ID:${y[r[2]]} [${y[r[0]]}] ${y[r[1]]}` : `[${y[r[0]]}] ${y[r[1]]}`,
|
|
3369
3369
|
value: y.id,
|
|
3370
3370
|
cnId: y.cnId ? y.cnId : null
|
|
3371
|
-
})), d = (p) => m(p, ["wallet", "name"]), h = (p) => m(p, ["id", "name"]), _ = async (p, r, y,
|
|
3371
|
+
})), d = (p) => m(p, ["wallet", "name"]), h = (p) => m(p, ["id", "name"]), _ = async (p, r, y, V) => {
|
|
3372
3372
|
try {
|
|
3373
3373
|
const l = await p(e.value._id);
|
|
3374
3374
|
y.value.data = r(l);
|
|
3375
3375
|
} catch (l) {
|
|
3376
|
-
console.error(
|
|
3376
|
+
console.error(V, l), y.value.isError = !0;
|
|
3377
3377
|
} finally {
|
|
3378
3378
|
y.value.isLoaded = !0;
|
|
3379
3379
|
}
|
|
@@ -3396,7 +3396,7 @@ const rn = [
|
|
|
3396
3396
|
return (p = e.value.platform.mappings) == null ? void 0 : p.version;
|
|
3397
3397
|
}, u), (p, r) => {
|
|
3398
3398
|
var l, a, v;
|
|
3399
|
-
const y =
|
|
3399
|
+
const y = $("FmPageHead"), V = $("FmTabs");
|
|
3400
3400
|
return c(), F("div", un, [
|
|
3401
3401
|
i(y, {
|
|
3402
3402
|
title: ((l = e.value) == null ? void 0 : l.name) || "Biztory",
|
|
@@ -3409,13 +3409,13 @@ const rn = [
|
|
|
3409
3409
|
])),
|
|
3410
3410
|
_: 1
|
|
3411
3411
|
}, 8, ["title", "onClick:back"]),
|
|
3412
|
-
i(
|
|
3412
|
+
i(V, {
|
|
3413
3413
|
"model-value": n.value,
|
|
3414
3414
|
"onUpdate:modelValue": r[0] || (r[0] = (s) => n.value = s),
|
|
3415
3415
|
items: k
|
|
3416
3416
|
}, null, 8, ["model-value"]),
|
|
3417
3417
|
t("div", fn, [
|
|
3418
|
-
(c(),
|
|
3418
|
+
(c(), K(be((a = x.value) == null ? void 0 : a.component), Le({
|
|
3419
3419
|
modelValue: e.value,
|
|
3420
3420
|
"onUpdate:modelValue": r[1] || (r[1] = (s) => e.value = s)
|
|
3421
3421
|
}, (v = x.value) == null ? void 0 : v.props), null, 16, ["modelValue"]))
|
|
@@ -3459,14 +3459,14 @@ const rn = [
|
|
|
3459
3459
|
});
|
|
3460
3460
|
}
|
|
3461
3461
|
function _(r, y) {
|
|
3462
|
-
var
|
|
3463
|
-
(l = (
|
|
3462
|
+
var V, l;
|
|
3463
|
+
(l = (V = e.value.platform) == null ? void 0 : V.mappings) != null && l[r] && (e.value.platform.mappings[r] = e.value.platform.mappings[r].filter(
|
|
3464
3464
|
(a, v) => v !== y
|
|
3465
3465
|
));
|
|
3466
3466
|
}
|
|
3467
3467
|
function u(r) {
|
|
3468
|
-
var y,
|
|
3469
|
-
(
|
|
3468
|
+
var y, V;
|
|
3469
|
+
(V = (y = e.value.platform) == null ? void 0 : y.mappings) != null && V[r] && (e.value.platform.mappings[r] = [
|
|
3470
3470
|
...e.value.platform.mappings[r],
|
|
3471
3471
|
{
|
|
3472
3472
|
key: "",
|
|
@@ -3486,15 +3486,15 @@ const rn = [
|
|
|
3486
3486
|
});
|
|
3487
3487
|
}
|
|
3488
3488
|
return (r, y) => {
|
|
3489
|
-
var
|
|
3490
|
-
const
|
|
3491
|
-
return (N = (
|
|
3489
|
+
var P, N, G, Y, J;
|
|
3490
|
+
const V = $("FmIcon"), l = $("FmButton"), a = $("FmMenuDivider"), v = $("FmTextField"), s = $("FmSelect");
|
|
3491
|
+
return (N = (P = e.value) == null ? void 0 : P.platform) != null && N.mappings ? (c(), F("div", gn, [
|
|
3492
3492
|
t("div", yn, [
|
|
3493
3493
|
t("div", xn, [
|
|
3494
3494
|
y[4] || (y[4] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
|
|
3495
3495
|
t("div", _n, [
|
|
3496
3496
|
t("div", bn, [
|
|
3497
|
-
i(
|
|
3497
|
+
i(V, {
|
|
3498
3498
|
name: "refresh",
|
|
3499
3499
|
class: "p-2 bg-gray-100 rounded-full",
|
|
3500
3500
|
onClick: p
|
|
@@ -3553,7 +3553,7 @@ const rn = [
|
|
|
3553
3553
|
})
|
|
3554
3554
|
]),
|
|
3555
3555
|
t("div", In, [
|
|
3556
|
-
(c(!0), F(L, null, X((J = (Y = (G = e.value) == null ? void 0 : G.platform) == null ? void 0 : Y.mappings) == null ? void 0 : J.employees, (O, j) => (c(), A
|
|
3556
|
+
(c(!0), F(L, null, X((J = (Y = (G = e.value) == null ? void 0 : G.platform) == null ? void 0 : Y.mappings) == null ? void 0 : J.employees, (O, j) => (c(), K(A, {
|
|
3557
3557
|
key: `employee-${j}`,
|
|
3558
3558
|
modelValue: e.value.platform.mappings.employees[j],
|
|
3559
3559
|
"onUpdate:modelValue": (E) => e.value.platform.mappings.employees[j] = E,
|
|
@@ -3634,7 +3634,7 @@ const rn = [
|
|
|
3634
3634
|
}
|
|
3635
3635
|
}
|
|
3636
3636
|
return (m, d) => {
|
|
3637
|
-
const h =
|
|
3637
|
+
const h = $("FmButton"), _ = $("FmCircularProgress"), u = $("FmTable");
|
|
3638
3638
|
return c(), F("div", Kn, [
|
|
3639
3639
|
t("div", An, [
|
|
3640
3640
|
i(Ue, {
|
|
@@ -3652,7 +3652,7 @@ const rn = [
|
|
|
3652
3652
|
b.value ? (c(), F("div", Pn, [
|
|
3653
3653
|
i(_, { size: "xl" }),
|
|
3654
3654
|
t("span", Nn, T(f(o)("report.common.isLoading")), 1)
|
|
3655
|
-
])) : e.value.length > 0 ? (c(),
|
|
3655
|
+
])) : e.value.length > 0 ? (c(), K(u, {
|
|
3656
3656
|
key: 1,
|
|
3657
3657
|
class: "flex overflow-scroll",
|
|
3658
3658
|
"row-data": e.value,
|
|
@@ -3692,7 +3692,7 @@ const rn = [
|
|
|
3692
3692
|
});
|
|
3693
3693
|
return (D, w) => {
|
|
3694
3694
|
var h;
|
|
3695
|
-
const m =
|
|
3695
|
+
const m = $("FmPageHead"), d = $("FmTabs");
|
|
3696
3696
|
return c(), F("div", On, [
|
|
3697
3697
|
i(m, {
|
|
3698
3698
|
title: ((h = e.value) == null ? void 0 : h.name) || "AutoCount",
|
|
@@ -3711,7 +3711,7 @@ const rn = [
|
|
|
3711
3711
|
items: k
|
|
3712
3712
|
}, null, 8, ["model-value"]),
|
|
3713
3713
|
t("div", Bn, [
|
|
3714
|
-
(c(),
|
|
3714
|
+
(c(), K(be(x.value), {
|
|
3715
3715
|
modelValue: e.value,
|
|
3716
3716
|
"onUpdate:modelValue": w[1] || (w[1] = (_) => e.value = _)
|
|
3717
3717
|
}, null, 8, ["modelValue"]))
|
|
@@ -3753,7 +3753,7 @@ const rn = [
|
|
|
3753
3753
|
}
|
|
3754
3754
|
});
|
|
3755
3755
|
return (x, D) => (c(), F("div", Ln, [
|
|
3756
|
-
(c(),
|
|
3756
|
+
(c(), K(be(b.value), {
|
|
3757
3757
|
modelValue: k.value,
|
|
3758
3758
|
"onUpdate:modelValue": D[0] || (D[0] = (w) => k.value = w)
|
|
3759
3759
|
}, null, 8, ["modelValue"]))
|