@feedmepos/mf-report 5.4.23 → 5.4.24
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,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as H, mergeModels as _e, useModel as
|
|
2
|
-
import { useRouter as pe, useRoute as
|
|
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
|
|
1
|
+
import { defineComponent as H, mergeModels as _e, useModel as Q, computed as z, resolveComponent as V, createElementBlock as D, openBlock as d, createElementVNode as t, createCommentVNode as R, normalizeClass as Ke, Fragment as L, renderList as X, createBlock as A, 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
|
+
import { useRouter as pe, useRoute as ze } from "vue-router";
|
|
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-D9UMph7l.js";
|
|
4
4
|
import { u as Fe } from "./message-dialog-UoMWOnil.js";
|
|
5
5
|
import { useSnackbar as fe } from "@feedmepos/ui-library";
|
|
6
6
|
import { s as We } from "./index-CxVnRxOJ.js";
|
|
@@ -33,8 +33,8 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
33
33
|
modelModifiers: {}
|
|
34
34
|
}),
|
|
35
35
|
emits: /* @__PURE__ */ _e(["remove"], ["update:modelValue"]),
|
|
36
|
-
setup(
|
|
37
|
-
const e =
|
|
36
|
+
setup(v, { emit: o }) {
|
|
37
|
+
const e = Q(v, "modelValue"), n = v, w = z(
|
|
38
38
|
() => Object.keys(n.options).map((_) => {
|
|
39
39
|
const S = n.options[_];
|
|
40
40
|
return {
|
|
@@ -48,25 +48,25 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
48
48
|
const h = V("FmTextField"), r = V("FmTooltip"), p = V("FmIcon");
|
|
49
49
|
return d(), D("div", Ze, [
|
|
50
50
|
t("div", {
|
|
51
|
-
class: Ke(`${
|
|
51
|
+
class: Ke(`${v.removable ? "w-[calc(100%-24px)]" : "w-[100%]"} flex flex-row items-center gap-[4px]`)
|
|
52
52
|
}, [
|
|
53
|
-
(d(!0), D(L, null,
|
|
54
|
-
var
|
|
53
|
+
(d(!0), D(L, null, X(w.value, (k) => {
|
|
54
|
+
var g;
|
|
55
55
|
return d(), D(L, {
|
|
56
56
|
key: k.key
|
|
57
57
|
}, [
|
|
58
58
|
k.editable ? (d(), D("div", {
|
|
59
59
|
key: 0,
|
|
60
|
-
class: Ke(`${
|
|
60
|
+
class: Ke(`${v.removable ? "w-[50%]" : "w-[100%]"}`)
|
|
61
61
|
}, [
|
|
62
62
|
i(h, {
|
|
63
63
|
"model-value": e.value[k.key],
|
|
64
64
|
placeholder: k.placeholder,
|
|
65
|
-
type:
|
|
66
|
-
rules:
|
|
67
|
-
"onUpdate:modelValue": (
|
|
68
|
-
let c =
|
|
69
|
-
|
|
65
|
+
type: v.type,
|
|
66
|
+
rules: v.rules,
|
|
67
|
+
"onUpdate:modelValue": (y) => {
|
|
68
|
+
let c = y;
|
|
69
|
+
v.type === "number" && (c = Number(y)), e.value = {
|
|
70
70
|
...e.value,
|
|
71
71
|
[k.key]: c
|
|
72
72
|
};
|
|
@@ -74,7 +74,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
74
74
|
}, null, 8, ["model-value", "placeholder", "type", "rules", "onUpdate:modelValue"])
|
|
75
75
|
], 2)) : (d(), A(r, {
|
|
76
76
|
key: 1,
|
|
77
|
-
content: (
|
|
77
|
+
content: (g = e.value[k.key]) == null ? void 0 : g.toString(),
|
|
78
78
|
class: "w-[50%]"
|
|
79
79
|
}, {
|
|
80
80
|
default: xe(() => [
|
|
@@ -85,7 +85,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
85
85
|
], 64);
|
|
86
86
|
}), 128))
|
|
87
87
|
], 2),
|
|
88
|
-
|
|
88
|
+
v.removable ? (d(), D("div", tt, [
|
|
89
89
|
i(p, {
|
|
90
90
|
color: "system-error-300",
|
|
91
91
|
class: "cursor-pointer",
|
|
@@ -119,8 +119,8 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
119
119
|
modelModifiers: {}
|
|
120
120
|
}),
|
|
121
121
|
emits: ["update:modelValue"],
|
|
122
|
-
setup(
|
|
123
|
-
const { t: o } = W(), e =
|
|
122
|
+
setup(v) {
|
|
123
|
+
const { t: o } = W(), e = Q(v, "modelValue"), n = z(() => {
|
|
124
124
|
switch (e.value.name) {
|
|
125
125
|
case de.AutoCount:
|
|
126
126
|
case de.SQL:
|
|
@@ -135,8 +135,8 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
135
135
|
const _ = V("FmSwitch"), S = V("FmTextField"), h = V("FmTimePicker");
|
|
136
136
|
return d(), D(L, null, [
|
|
137
137
|
t("div", ot, [
|
|
138
|
-
t("div", at, T(f(o)("report.integration.auto", { label:
|
|
139
|
-
|
|
138
|
+
t("div", at, T(f(o)("report.integration.auto", { label: v.label })), 1),
|
|
139
|
+
v.label == "upload" ? (d(), D("div", lt, T(f(o)("report.integration.lastUploadDate")) + ": " + T(v.lastUploadDate ? f(je)(v.lastUploadDate).format("MMMM D, YYYY h:mm A") : f(o)("report.integration.noData.title")), 1)) : R("", !0)
|
|
140
140
|
]),
|
|
141
141
|
t("div", nt, [
|
|
142
142
|
t("div", st, T(f(o)("report.common.enable")), 1),
|
|
@@ -166,7 +166,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
166
166
|
])) : R("", !0),
|
|
167
167
|
t("div", ct, [
|
|
168
168
|
t("div", dt, [
|
|
169
|
-
t("div", pt, T(f(We)(
|
|
169
|
+
t("div", pt, T(f(We)(v.label)) + " time ", 1),
|
|
170
170
|
t("div", ut, [
|
|
171
171
|
i(h, {
|
|
172
172
|
class: "gap-[0px]",
|
|
@@ -230,8 +230,8 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
230
230
|
modelModifiers: {}
|
|
231
231
|
}),
|
|
232
232
|
emits: /* @__PURE__ */ _e(["remove"], ["update:modelValue"]),
|
|
233
|
-
setup(
|
|
234
|
-
const e =
|
|
233
|
+
setup(v, { emit: o }) {
|
|
234
|
+
const e = Q(v, "modelValue"), n = v, w = z(
|
|
235
235
|
() => Object.keys(n.options).map((r) => {
|
|
236
236
|
const p = n.options[r];
|
|
237
237
|
return {
|
|
@@ -251,12 +251,12 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
251
251
|
return n.singleValueMode ? n.options.key.placeholder : (p = e.value[r.key]) == null ? void 0 : p.toString();
|
|
252
252
|
}, S = (r) => n.singleValueMode ? e.value : e.value[r.key], h = o;
|
|
253
253
|
return (r, p) => {
|
|
254
|
-
const k = V("FmSelect"),
|
|
254
|
+
const k = V("FmSelect"), g = V("FmTextField"), y = V("FmTooltip"), c = V("FmIcon");
|
|
255
255
|
return d(), D("div", ft, [
|
|
256
256
|
t("div", {
|
|
257
|
-
class: Ke(`${
|
|
257
|
+
class: Ke(`${v.removable ? "w-[calc(100%-24px)]" : "w-[100%]"} flex flex-row items-center gap-[4px]`)
|
|
258
258
|
}, [
|
|
259
|
-
(d(!0), D(L, null,
|
|
259
|
+
(d(!0), D(L, null, X(w.value, (m) => (d(), D(L, {
|
|
260
260
|
key: m.key
|
|
261
261
|
}, [
|
|
262
262
|
m.editable ? (d(), D("div", vt, [
|
|
@@ -267,15 +267,15 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
267
267
|
items: m.dropdownOptions,
|
|
268
268
|
"shift-menu": !0,
|
|
269
269
|
"onUpdate:modelValue": (b) => x(b, m.key)
|
|
270
|
-
}, null, 8, ["model-value", "placeholder", "items", "onUpdate:modelValue"])) : (d(), A(
|
|
270
|
+
}, null, 8, ["model-value", "placeholder", "items", "onUpdate:modelValue"])) : (d(), A(g, {
|
|
271
271
|
key: 1,
|
|
272
272
|
"model-value": S(m),
|
|
273
273
|
placeholder: m.placeholder,
|
|
274
|
-
type:
|
|
275
|
-
rules:
|
|
274
|
+
type: v.type,
|
|
275
|
+
rules: v.rules,
|
|
276
276
|
"onUpdate:modelValue": (b) => x(b, m.key)
|
|
277
277
|
}, null, 8, ["model-value", "placeholder", "type", "rules", "onUpdate:modelValue"]))
|
|
278
|
-
])) : (d(), A(
|
|
278
|
+
])) : (d(), A(y, {
|
|
279
279
|
key: 1,
|
|
280
280
|
content: _(m),
|
|
281
281
|
class: "w-[50%]"
|
|
@@ -287,7 +287,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
287
287
|
}, 1032, ["content"]))
|
|
288
288
|
], 64))), 128))
|
|
289
289
|
], 2),
|
|
290
|
-
|
|
290
|
+
v.removable ? (d(), D("div", yt, [
|
|
291
291
|
i(c, {
|
|
292
292
|
color: "system-error-300",
|
|
293
293
|
class: "cursor-pointer",
|
|
@@ -303,15 +303,24 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
303
303
|
key: 0,
|
|
304
304
|
class: "flex flex-col h-full"
|
|
305
305
|
}, _t = { class: "flex flex-col gap-[16px] pb-[24px]" }, bt = { class: "flex flex-row justify-between items-center gap-2" }, wt = { class: "flex flex-row gap-2 items-center" }, ht = { class: "relative group cursor-pointer" }, kt = { class: "flex flex-col gap-16 pt-[24px] overflow-scroll" }, Vt = { class: "flex flex-row items-center justify-between gap-2" }, $t = { class: "w-[25%]" }, St = { class: "flex flex-col gap-[16px]" }, Ct = { class: "flex flex-row items-center max-w-[100%] justify-between" }, Ft = { class: "flex-grow" }, Dt = { class: "flex flex-row items-center max-w-[100%] justify-between" }, Ut = { class: "flex flex-col gap-[16px]" }, Tt = { class: "flex flex-row items-center max-w-[100%] justify-between" }, It = { class: "flex-grow" }, Mt = { class: "flex flex-row items-center max-w-[100%] justify-between" }, Kt = { class: "flex-grow" }, At = { class: "flex flex-row items-center max-w-[100%] justify-between" }, Pt = { class: "flex-grow" }, Nt = { class: "flex flex-row items-center gap-x-16" }, Rt = {
|
|
306
|
-
key:
|
|
306
|
+
key: 0,
|
|
307
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
308
|
+
}, Ot = {
|
|
309
|
+
key: 2,
|
|
307
310
|
class: "xs:grid-cols-1 grid-cols-2 grid gap-16"
|
|
308
|
-
},
|
|
311
|
+
}, Bt = { class: "flex flex-row items-center gap-x-16" }, jt = {
|
|
309
312
|
key: 3,
|
|
310
|
-
class: "
|
|
311
|
-
},
|
|
313
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
314
|
+
}, Lt = {
|
|
312
315
|
key: 5,
|
|
313
316
|
class: "xs:grid-cols-1 grid-cols-2 grid gap-16"
|
|
314
|
-
},
|
|
317
|
+
}, Et = { class: "flex flex-row items-center gap-x-16" }, zt = {
|
|
318
|
+
key: 6,
|
|
319
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
320
|
+
}, Yt = {
|
|
321
|
+
key: 8,
|
|
322
|
+
class: "xs:grid-cols-1 grid-cols-2 grid gap-16"
|
|
323
|
+
}, qt = /* @__PURE__ */ H({
|
|
315
324
|
__name: "Setting",
|
|
316
325
|
props: /* @__PURE__ */ _e({
|
|
317
326
|
tenantOptions: {
|
|
@@ -331,14 +340,14 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
331
340
|
modelModifiers: {}
|
|
332
341
|
}),
|
|
333
342
|
emits: ["update:modelValue"],
|
|
334
|
-
setup(
|
|
335
|
-
const { t: o } = W(), e =
|
|
343
|
+
setup(v) {
|
|
344
|
+
const { t: o } = W(), e = Q(v, "modelValue"), n = fe(), w = we(), x = pe(), { promptLoader: _ } = ke(), { promptMessage: S } = Fe(), { restaurants: h } = ue(), r = B(!1), p = z(
|
|
336
345
|
() => h.map((u) => ({ label: u.name, value: u.id }))
|
|
337
|
-
), k =
|
|
346
|
+
), k = z(() => {
|
|
338
347
|
var u, s;
|
|
339
348
|
return r.value ? "Connecting" : (s = (u = e.value) == null ? void 0 : u.platform) != null && s.accessToken ? "Disconnect" : "Connect";
|
|
340
|
-
}),
|
|
341
|
-
async function
|
|
349
|
+
}), g = B(0);
|
|
350
|
+
async function y() {
|
|
342
351
|
var u;
|
|
343
352
|
if (r.value)
|
|
344
353
|
n.open({ type: "error", message: "Connecting in progress" });
|
|
@@ -353,11 +362,11 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
353
362
|
r.value = !0;
|
|
354
363
|
const M = setInterval(async () => {
|
|
355
364
|
var N;
|
|
356
|
-
|
|
365
|
+
g.value += 1;
|
|
357
366
|
try {
|
|
358
367
|
await w.getSettings();
|
|
359
368
|
} finally {
|
|
360
|
-
(
|
|
369
|
+
(g.value === 12 || (N = e.value.platform) != null && N.accessToken) && (r.value = !1, M && clearInterval(M), g.value = 0);
|
|
361
370
|
}
|
|
362
371
|
}, 5e3);
|
|
363
372
|
window.open(s.redirect, "_blank");
|
|
@@ -389,7 +398,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
389
398
|
});
|
|
390
399
|
}
|
|
391
400
|
function b(u) {
|
|
392
|
-
const s =
|
|
401
|
+
const s = v.tenantOptions.data.find((M) => M.value === u);
|
|
393
402
|
s && e.value.platform && (e.value.platform.tenant = {
|
|
394
403
|
id: s.value,
|
|
395
404
|
name: s.label
|
|
@@ -428,9 +437,9 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
428
437
|
});
|
|
429
438
|
}
|
|
430
439
|
return (u, s) => {
|
|
431
|
-
var
|
|
440
|
+
var E, Z, ee, te, oe, ae, le, ne, se, ie, U, $, F, K, q, re, ye, Ne, Re, Oe, Be;
|
|
432
441
|
const M = V("FmIcon"), N = V("FmButton"), G = V("FmMenuDivider"), Y = V("FmCircularProgress"), J = V("FmSelect"), O = V("FmTextField"), j = V("FmSwitch");
|
|
433
|
-
return (Z = (
|
|
442
|
+
return (Z = (E = e.value) == null ? void 0 : E.platform) != null && Z.mappings ? (d(), D("div", xt, [
|
|
434
443
|
t("div", _t, [
|
|
435
444
|
t("div", bt, [
|
|
436
445
|
s[10] || (s[10] = t("div", { class: "fm-typo-en-title-sm-800" }, "Connect", -1)),
|
|
@@ -465,21 +474,20 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
465
474
|
disabled: r.value,
|
|
466
475
|
variant: "primary",
|
|
467
476
|
label: k.value,
|
|
468
|
-
onClick:
|
|
477
|
+
onClick: y
|
|
469
478
|
}, null, 8, ["disabled", "label"])
|
|
470
479
|
]),
|
|
471
|
-
!
|
|
480
|
+
!v.tenantOptions.isLoaded && ((ee = e.value.platform) != null && ee.accessToken) ? (d(), A(Y, {
|
|
472
481
|
key: 0,
|
|
473
482
|
size: "xl"
|
|
474
483
|
})) : R("", !0),
|
|
475
|
-
(
|
|
476
|
-
key: 1,
|
|
484
|
+
i(J, {
|
|
477
485
|
class: "flex-grow",
|
|
478
|
-
items:
|
|
479
|
-
"model-value": (
|
|
480
|
-
placeholder: "Select tenant",
|
|
486
|
+
items: v.tenantOptions.data || [],
|
|
487
|
+
"model-value": (te = e.value.platform.tenant) == null ? void 0 : te.id,
|
|
488
|
+
placeholder: v.tenantOptions.data ? "Select tenant " : (oe = e.value.platform.tenant) == null ? void 0 : oe.name,
|
|
481
489
|
"onUpdate:modelValue": b
|
|
482
|
-
}, null, 8, ["items", "model-value"
|
|
490
|
+
}, null, 8, ["items", "model-value", "placeholder"])
|
|
483
491
|
]),
|
|
484
492
|
t("div", St, [
|
|
485
493
|
s[13] || (s[13] = t("div", { class: "flex flex-row items-center fm-typo-en-title-sm-800 h-[36px]" }, "General", -1)),
|
|
@@ -554,12 +562,13 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
554
562
|
onClick: s[6] || (s[6] = () => l("taxes"))
|
|
555
563
|
})
|
|
556
564
|
]),
|
|
557
|
-
|
|
558
|
-
|
|
565
|
+
v.taxOptions.isError || e.value.platform.accessToken == null ? (d(), D("div", Rt, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : R("", !0),
|
|
566
|
+
!v.taxOptions.isLoaded && ((le = e.value.platform) != null && le.accessToken) ? (d(), A(Y, {
|
|
567
|
+
key: 1,
|
|
559
568
|
size: "xl"
|
|
560
569
|
})) : R("", !0),
|
|
561
|
-
((ne =
|
|
562
|
-
(d(!0), D(L, null,
|
|
570
|
+
((ne = v.taxOptions.data) == null ? void 0 : ne.length) > 0 ? (d(), D("div", Ot, [
|
|
571
|
+
(d(!0), D(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) => (d(), A(Me, {
|
|
563
572
|
key: `tax-${ce}`,
|
|
564
573
|
modelValue: e.value.platform.mappings.taxes[ce],
|
|
565
574
|
"onUpdate:modelValue": (Ie) => e.value.platform.mappings.taxes[ce] = Ie,
|
|
@@ -568,14 +577,14 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
568
577
|
xeroAccount: {
|
|
569
578
|
placeholder: "Select Tax",
|
|
570
579
|
editable: !0,
|
|
571
|
-
dropdownOptions:
|
|
580
|
+
dropdownOptions: v.taxOptions.data ?? []
|
|
572
581
|
}
|
|
573
582
|
},
|
|
574
583
|
removable: !0,
|
|
575
584
|
onRemove: () => C("taxes", ce)
|
|
576
585
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onRemove"]))), 128))
|
|
577
586
|
])) : R("", !0),
|
|
578
|
-
t("div",
|
|
587
|
+
t("div", Bt, [
|
|
579
588
|
s[18] || (s[18] = t("div", { class: "fm-typo-en-title-sm-800" }, "Items", -1)),
|
|
580
589
|
i(N, {
|
|
581
590
|
variant: "primary",
|
|
@@ -583,12 +592,13 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
583
592
|
onClick: s[7] || (s[7] = () => l("items"))
|
|
584
593
|
})
|
|
585
594
|
]),
|
|
586
|
-
|
|
587
|
-
|
|
595
|
+
v.accountCodeOptions.isError || e.value.platform.accessToken == null ? (d(), D("div", jt, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : R("", !0),
|
|
596
|
+
!v.accountCodeOptions.isLoaded && (($ = e.value.platform) != null && $.accessToken) ? (d(), A(Y, {
|
|
597
|
+
key: 4,
|
|
588
598
|
size: "xl"
|
|
589
599
|
})) : R("", !0),
|
|
590
|
-
((F =
|
|
591
|
-
(d(!0), D(L, null,
|
|
600
|
+
((F = v.accountCodeOptions.data) == null ? void 0 : F.length) > 0 ? (d(), D("div", Lt, [
|
|
601
|
+
(d(!0), D(L, null, X((re = (q = (K = e.value) == null ? void 0 : K.platform) == null ? void 0 : q.mappings) == null ? void 0 : re.items, (me, ce) => (d(), A(Me, {
|
|
592
602
|
key: `item-${ce}`,
|
|
593
603
|
modelValue: e.value.platform.mappings.items[ce],
|
|
594
604
|
"onUpdate:modelValue": (Ie) => e.value.platform.mappings.items[ce] = Ie,
|
|
@@ -597,14 +607,14 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
597
607
|
xeroAccount: {
|
|
598
608
|
placeholder: "Select Item Code",
|
|
599
609
|
editable: !0,
|
|
600
|
-
dropdownOptions:
|
|
610
|
+
dropdownOptions: v.accountCodeOptions.data ?? []
|
|
601
611
|
}
|
|
602
612
|
},
|
|
603
613
|
removable: !0,
|
|
604
614
|
onRemove: () => C("items", ce)
|
|
605
615
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onRemove"]))), 128))
|
|
606
616
|
])) : R("", !0),
|
|
607
|
-
t("div",
|
|
617
|
+
t("div", Et, [
|
|
608
618
|
s[19] || (s[19] = t("div", { class: "fm-typo-en-title-sm-800" }, "Payments", -1)),
|
|
609
619
|
i(N, {
|
|
610
620
|
variant: "primary",
|
|
@@ -612,12 +622,13 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
612
622
|
onClick: s[8] || (s[8] = () => l("payments"))
|
|
613
623
|
})
|
|
614
624
|
]),
|
|
615
|
-
|
|
616
|
-
|
|
625
|
+
v.accountCodeOptions.isError || e.value.platform.accessToken == null ? (d(), D("div", zt, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : R("", !0),
|
|
626
|
+
!v.accountCodeOptions.isLoaded && ((ye = e.value.platform) != null && ye.accessToken) ? (d(), A(Y, {
|
|
627
|
+
key: 7,
|
|
617
628
|
size: "xl"
|
|
618
629
|
})) : R("", !0),
|
|
619
|
-
((Ne =
|
|
620
|
-
(d(!0), D(L, null,
|
|
630
|
+
((Ne = v.accountCodeOptions.data) == null ? void 0 : Ne.length) > 0 ? (d(), D("div", Yt, [
|
|
631
|
+
(d(!0), D(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) => (d(), A(Me, {
|
|
621
632
|
key: `payment-${ce}`,
|
|
622
633
|
modelValue: e.value.platform.mappings.payments[ce],
|
|
623
634
|
"onUpdate:modelValue": (Ie) => e.value.platform.mappings.payments[ce] = Ie,
|
|
@@ -626,7 +637,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
626
637
|
xeroAccount: {
|
|
627
638
|
placeholder: "Select Payment Code",
|
|
628
639
|
editable: !0,
|
|
629
|
-
dropdownOptions:
|
|
640
|
+
dropdownOptions: v.accountCodeOptions.data ?? []
|
|
630
641
|
}
|
|
631
642
|
},
|
|
632
643
|
removable: !0,
|
|
@@ -638,44 +649,44 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
638
649
|
])) : R("", !0);
|
|
639
650
|
};
|
|
640
651
|
}
|
|
641
|
-
}),
|
|
652
|
+
}), Ht = { class: "h-full flex flex-col gap-16" }, Xt = { class: "flex flex-row gap-2 justify-between items-center" }, Qt = {
|
|
642
653
|
key: 0,
|
|
643
654
|
class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
|
|
644
|
-
},
|
|
655
|
+
}, Gt = /* @__PURE__ */ H({
|
|
645
656
|
__name: "Preview",
|
|
646
657
|
props: {
|
|
647
658
|
modelValue: { required: !0 },
|
|
648
659
|
modelModifiers: {}
|
|
649
660
|
},
|
|
650
661
|
emits: ["update:modelValue"],
|
|
651
|
-
setup(
|
|
652
|
-
const o = B([]), e =
|
|
662
|
+
setup(v) {
|
|
663
|
+
const o = B([]), e = z(
|
|
653
664
|
() => o.value.reduce((r, p) => {
|
|
654
|
-
const k = r.length, { invoice:
|
|
665
|
+
const k = r.length, { invoice: g, payments: y } = p;
|
|
655
666
|
r[k] = {
|
|
656
|
-
date:
|
|
657
|
-
contact:
|
|
658
|
-
status:
|
|
659
|
-
ref:
|
|
667
|
+
date: g.Date,
|
|
668
|
+
contact: g.Contact.ContactID,
|
|
669
|
+
status: g.Status,
|
|
670
|
+
ref: g.Reference
|
|
660
671
|
};
|
|
661
|
-
for (let c = 0; c < Math.max(
|
|
672
|
+
for (let c = 0; c < Math.max(g.LineItems.length, y.length); c++) {
|
|
662
673
|
const m = k + c;
|
|
663
|
-
r[m] || (r[m] = {}),
|
|
674
|
+
r[m] || (r[m] = {}), g.LineItems[c] && (r[m] = {
|
|
664
675
|
...r[m],
|
|
665
|
-
itemDescription:
|
|
666
|
-
itemQuantity:
|
|
667
|
-
itemUnitAmount:
|
|
676
|
+
itemDescription: g.LineItems[c].Description,
|
|
677
|
+
itemQuantity: g.LineItems[c].Quantity,
|
|
678
|
+
itemUnitAmount: g.LineItems[c].UnitAmount,
|
|
668
679
|
// itemCode: invoice.LineItems[i].ItemCode,
|
|
669
|
-
itemAccount:
|
|
670
|
-
itemTax:
|
|
671
|
-
itemTaxType:
|
|
672
|
-
itemAmount:
|
|
673
|
-
itemDiscount:
|
|
674
|
-
}),
|
|
680
|
+
itemAccount: g.LineItems[c].AccountCode,
|
|
681
|
+
itemTax: g.LineItems[c].TaxAmount,
|
|
682
|
+
itemTaxType: g.LineItems[c].TaxType,
|
|
683
|
+
itemAmount: g.LineItems[c].LineAmount,
|
|
684
|
+
itemDiscount: g.LineItems[c].DiscountAmount
|
|
685
|
+
}), y[c] && (r[m] = {
|
|
675
686
|
...r[m],
|
|
676
|
-
paymentAccount:
|
|
677
|
-
paymentReference:
|
|
678
|
-
paymentAmount:
|
|
687
|
+
paymentAccount: y[c].Account.Code,
|
|
688
|
+
paymentReference: y[c].Reference,
|
|
689
|
+
paymentAmount: y[c].Amount
|
|
679
690
|
});
|
|
680
691
|
}
|
|
681
692
|
return r;
|
|
@@ -756,7 +767,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
756
767
|
header: "Payment Amount",
|
|
757
768
|
enableSorting: !1
|
|
758
769
|
}
|
|
759
|
-
], w =
|
|
770
|
+
], w = Q(v, "modelValue"), x = B(!1), _ = fe(), { dateRange: S } = De(ue());
|
|
760
771
|
ge(
|
|
761
772
|
() => S.value,
|
|
762
773
|
async () => {
|
|
@@ -783,9 +794,9 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
783
794
|
}
|
|
784
795
|
}
|
|
785
796
|
return (r, p) => {
|
|
786
|
-
const k = V("FmButton"),
|
|
787
|
-
return d(), D("div",
|
|
788
|
-
t("div",
|
|
797
|
+
const k = V("FmButton"), g = V("FmCircularProgress"), y = V("FmTable");
|
|
798
|
+
return d(), D("div", Ht, [
|
|
799
|
+
t("div", Xt, [
|
|
789
800
|
i(Ue, {
|
|
790
801
|
"date-range": f(S),
|
|
791
802
|
"onUpdate:dateRange": p[0] || (p[0] = (c) => he(S) ? S.value = c : null),
|
|
@@ -798,10 +809,10 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
798
809
|
onClick: h
|
|
799
810
|
}, null, 8, ["loading"])
|
|
800
811
|
]),
|
|
801
|
-
x.value ? (d(), D("div",
|
|
802
|
-
i(
|
|
812
|
+
x.value ? (d(), D("div", Qt, [
|
|
813
|
+
i(g, { size: "xl" }),
|
|
803
814
|
p[1] || (p[1] = t("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Loading data... ", -1))
|
|
804
|
-
])) : e.value.length > 0 ? (d(), A(
|
|
815
|
+
])) : e.value.length > 0 ? (d(), A(y, {
|
|
805
816
|
key: 1,
|
|
806
817
|
class: "flex overflow-scroll",
|
|
807
818
|
"row-data": e.value,
|
|
@@ -810,15 +821,15 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
810
821
|
]);
|
|
811
822
|
};
|
|
812
823
|
}
|
|
813
|
-
}),
|
|
824
|
+
}), Jt = { class: "h-full relative flex flex-col" }, Wt = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Zt = /* @__PURE__ */ H({
|
|
814
825
|
__name: "Xero",
|
|
815
826
|
props: {
|
|
816
827
|
modelValue: { required: !0 },
|
|
817
828
|
modelModifiers: {}
|
|
818
829
|
},
|
|
819
830
|
emits: ["update:modelValue"],
|
|
820
|
-
setup(
|
|
821
|
-
const { t: o } = W(), e =
|
|
831
|
+
setup(v) {
|
|
832
|
+
const { t: o } = W(), e = Q(v, "modelValue"), n = B("setting"), w = B({}), x = B({}), _ = B({}), S = [
|
|
822
833
|
{
|
|
823
834
|
label: o("report.integration.setting"),
|
|
824
835
|
value: "setting",
|
|
@@ -829,13 +840,13 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
829
840
|
value: "preview",
|
|
830
841
|
icon: "table"
|
|
831
842
|
}
|
|
832
|
-
], h = pe(), r =
|
|
843
|
+
], h = pe(), r = z(() => {
|
|
833
844
|
switch (n.value) {
|
|
834
845
|
case "preview":
|
|
835
|
-
return { component:
|
|
846
|
+
return { component: Gt };
|
|
836
847
|
case "setting":
|
|
837
848
|
return {
|
|
838
|
-
component:
|
|
849
|
+
component: qt,
|
|
839
850
|
props: {
|
|
840
851
|
tenantOptions: w.value,
|
|
841
852
|
taxOptions: x.value,
|
|
@@ -849,13 +860,13 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
849
860
|
async function p() {
|
|
850
861
|
if (e.value._id)
|
|
851
862
|
try {
|
|
852
|
-
const
|
|
853
|
-
w.value.data =
|
|
863
|
+
const y = await He(e.value._id);
|
|
864
|
+
w.value.data = y.map((c) => ({
|
|
854
865
|
value: c.id,
|
|
855
866
|
label: c.name
|
|
856
867
|
}));
|
|
857
|
-
} catch (
|
|
858
|
-
console.error("Failed to fetch tenants:",
|
|
868
|
+
} catch (y) {
|
|
869
|
+
console.error("Failed to fetch tenants:", y), w.value.isError = !0;
|
|
859
870
|
} finally {
|
|
860
871
|
w.value.isLoaded = !0;
|
|
861
872
|
}
|
|
@@ -863,44 +874,44 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
863
874
|
async function k() {
|
|
864
875
|
if (e.value._id)
|
|
865
876
|
try {
|
|
866
|
-
const
|
|
867
|
-
x.value.data =
|
|
877
|
+
const y = await Xe(e.value._id);
|
|
878
|
+
x.value.data = y.map((c) => ({
|
|
868
879
|
value: c.Name,
|
|
869
880
|
label: `${c.Name} - (${c.EffectiveRate}%)`
|
|
870
881
|
}));
|
|
871
|
-
} catch (
|
|
872
|
-
console.error("Failed to fetch taxes:",
|
|
882
|
+
} catch (y) {
|
|
883
|
+
console.error("Failed to fetch taxes:", y), x.value.isError = !0;
|
|
873
884
|
} finally {
|
|
874
885
|
x.value.isLoaded = !0;
|
|
875
886
|
}
|
|
876
887
|
}
|
|
877
|
-
async function
|
|
888
|
+
async function g() {
|
|
878
889
|
if (e.value._id)
|
|
879
890
|
try {
|
|
880
|
-
const
|
|
881
|
-
_.value.data =
|
|
891
|
+
const y = await Qe(e.value._id);
|
|
892
|
+
_.value.data = y.map((c) => ({
|
|
882
893
|
value: c.Code,
|
|
883
894
|
label: `${c.Code} ${c.Name} - [${c.Class}_${c.Type}]`
|
|
884
895
|
}));
|
|
885
|
-
} catch (
|
|
886
|
-
console.error("Failed to fetch accounts:",
|
|
896
|
+
} catch (y) {
|
|
897
|
+
console.error("Failed to fetch accounts:", y), _.value.isError = !0;
|
|
887
898
|
} finally {
|
|
888
899
|
_.value.isLoaded = !0;
|
|
889
900
|
}
|
|
890
901
|
}
|
|
891
902
|
return ge(
|
|
892
903
|
() => {
|
|
893
|
-
var
|
|
894
|
-
return (
|
|
904
|
+
var y;
|
|
905
|
+
return (y = e.value.platform) == null ? void 0 : y.accessToken;
|
|
895
906
|
},
|
|
896
|
-
(
|
|
897
|
-
|
|
907
|
+
(y) => {
|
|
908
|
+
y && (p(), k(), g());
|
|
898
909
|
},
|
|
899
910
|
{ immediate: !0 }
|
|
900
|
-
), (
|
|
911
|
+
), (y, c) => {
|
|
901
912
|
var C, l, a;
|
|
902
913
|
const m = V("FmPageHead"), b = V("FmTabs");
|
|
903
|
-
return d(), D("div",
|
|
914
|
+
return d(), D("div", Jt, [
|
|
904
915
|
i(m, {
|
|
905
916
|
title: ((C = e.value) == null ? void 0 : C.name) || "Xero",
|
|
906
917
|
"back-button": !0,
|
|
@@ -917,7 +928,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
917
928
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => n.value = u),
|
|
918
929
|
items: S
|
|
919
930
|
}, null, 8, ["model-value"]),
|
|
920
|
-
t("div",
|
|
931
|
+
t("div", Wt, [
|
|
921
932
|
(d(), A(be((l = r.value) == null ? void 0 : l.component), Le({
|
|
922
933
|
modelValue: e.value,
|
|
923
934
|
"onUpdate:modelValue": c[1] || (c[1] = (u) => e.value = u)
|
|
@@ -926,18 +937,18 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
926
937
|
]);
|
|
927
938
|
};
|
|
928
939
|
}
|
|
929
|
-
}),
|
|
940
|
+
}), eo = {
|
|
930
941
|
key: 0,
|
|
931
942
|
class: "flex flex-col h-full"
|
|
932
|
-
},
|
|
943
|
+
}, to = { class: "flex flex-col gap-16 pb-[24px]" }, oo = { class: "flex flex-row justify-between items-center gap-2" }, ao = { class: "fm-typo-en-title-sm-800" }, lo = { class: "flex flex-row gap-2 items-center" }, no = { class: "relative group cursor-pointer" }, so = { 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" }, io = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, ro = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, mo = { class: "flex flex-row items-center justify-between" }, co = { class: "w-[25%]" }, po = { class: "flex-grow" }, uo = { class: "flex flex-row items-center justify-between" }, fo = { class: "w-[25%]" }, vo = { class: "flex-grow" }, go = { class: "flex flex-col gap-16" }, yo = { class: "fm-typo-en-title-sm-800" }, xo = { class: "flex flex-row items-center max-w-[100%]" }, _o = { class: "w-[25%]" }, bo = { class: "flex-grow" }, wo = { class: "flex flex-row items-center max-w-[100%]" }, ho = { class: "w-[25%]" }, ko = { class: "flex flex-row items-center max-w-[100%]" }, Vo = { class: "w-[25%]" }, $o = { class: "flex flex-col gap-16" }, So = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Co = { class: "flex flex-row items-center gap-x-16" }, Fo = { class: "fm-typo-en-title-sm-800" }, Do = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Uo = { class: "flex flex-row items-center gap-x-16" }, To = { class: "fm-typo-en-title-sm-800" }, Io = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Mo = { class: "flex flex-row items-center gap-x-16" }, Ko = { class: "fm-typo-en-title-sm-800" }, Ao = { class: "flex flex-row items-center" }, Po = /* @__PURE__ */ H({
|
|
933
944
|
__name: "Setting",
|
|
934
945
|
props: {
|
|
935
946
|
modelValue: { required: !0 },
|
|
936
947
|
modelModifiers: {}
|
|
937
948
|
},
|
|
938
949
|
emits: ["update:modelValue"],
|
|
939
|
-
setup(
|
|
940
|
-
const o =
|
|
950
|
+
setup(v) {
|
|
951
|
+
const o = Q(v, "modelValue"), e = fe(), n = we(), w = pe(), { promptLoader: x } = ke(), { promptMessage: _ } = Fe(), { restaurants: S } = ue(), h = z(
|
|
941
952
|
() => S.map((l) => ({ label: l.name, value: l.id }))
|
|
942
953
|
), { t: r } = W();
|
|
943
954
|
async function p() {
|
|
@@ -961,13 +972,13 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
961
972
|
}
|
|
962
973
|
});
|
|
963
974
|
}
|
|
964
|
-
function
|
|
975
|
+
function g(l, a) {
|
|
965
976
|
var u, s;
|
|
966
977
|
(s = (u = o.value.platform) == null ? void 0 : u.mappings) != null && s[l] && (o.value.platform.mappings[l] = o.value.platform.mappings[l].filter(
|
|
967
978
|
(M, N) => N !== a
|
|
968
979
|
));
|
|
969
980
|
}
|
|
970
|
-
function
|
|
981
|
+
function y(l) {
|
|
971
982
|
var a, u;
|
|
972
983
|
if ((u = (a = o.value.platform) == null ? void 0 : a.mappings) != null && u[l]) {
|
|
973
984
|
let s;
|
|
@@ -1041,20 +1052,20 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1041
1052
|
});
|
|
1042
1053
|
}
|
|
1043
1054
|
return (l, a) => {
|
|
1044
|
-
var J, O, j,
|
|
1055
|
+
var J, O, j, E, Z, ee, te, oe, ae, le, ne, se, ie, U, $;
|
|
1045
1056
|
const u = V("FmIcon"), s = V("FmButton"), M = V("FmMenuDivider"), N = V("FmTextField"), G = V("FmSelect"), Y = V("FmCheckbox");
|
|
1046
|
-
return (O = (J = o.value) == null ? void 0 : J.platform) != null && O.mappings ? (d(), D("div",
|
|
1047
|
-
t("div",
|
|
1048
|
-
t("div",
|
|
1049
|
-
t("div",
|
|
1050
|
-
t("div",
|
|
1051
|
-
t("div",
|
|
1057
|
+
return (O = (J = o.value) == null ? void 0 : J.platform) != null && O.mappings ? (d(), D("div", eo, [
|
|
1058
|
+
t("div", to, [
|
|
1059
|
+
t("div", oo, [
|
|
1060
|
+
t("div", ao, T(f(r)("report.integration.bukku.connect")), 1),
|
|
1061
|
+
t("div", lo, [
|
|
1062
|
+
t("div", no, [
|
|
1052
1063
|
i(u, {
|
|
1053
1064
|
name: "refresh",
|
|
1054
1065
|
class: "p-2 bg-gray-100 rounded-full",
|
|
1055
1066
|
onClick: C
|
|
1056
1067
|
}),
|
|
1057
|
-
t("span",
|
|
1068
|
+
t("span", so, T(f(r)("report.integration.setting.refreshTooltip")), 1)
|
|
1058
1069
|
]),
|
|
1059
1070
|
i(s, {
|
|
1060
1071
|
variant: "tertiary",
|
|
@@ -1070,11 +1081,11 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1070
1081
|
])
|
|
1071
1082
|
]),
|
|
1072
1083
|
i(M, { style: { margin: 0 } }),
|
|
1073
|
-
t("div",
|
|
1074
|
-
t("div",
|
|
1075
|
-
t("div",
|
|
1076
|
-
t("div",
|
|
1077
|
-
t("div",
|
|
1084
|
+
t("div", io, [
|
|
1085
|
+
t("div", ro, T(f(r)("report.integration.bukku.authentication")), 1),
|
|
1086
|
+
t("div", mo, [
|
|
1087
|
+
t("div", co, T(f(r)("report.integration.subdomain")), 1),
|
|
1088
|
+
t("div", po, [
|
|
1078
1089
|
i(N, {
|
|
1079
1090
|
modelValue: o.value.platform.subdomain,
|
|
1080
1091
|
"onUpdate:modelValue": a[0] || (a[0] = (F) => o.value.platform.subdomain = F),
|
|
@@ -1082,9 +1093,9 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1082
1093
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1083
1094
|
])
|
|
1084
1095
|
]),
|
|
1085
|
-
t("div",
|
|
1086
|
-
t("div",
|
|
1087
|
-
t("div",
|
|
1096
|
+
t("div", uo, [
|
|
1097
|
+
t("div", fo, T(f(r)("report.integration.token")), 1),
|
|
1098
|
+
t("div", vo, [
|
|
1088
1099
|
i(N, {
|
|
1089
1100
|
modelValue: o.value.platform.token,
|
|
1090
1101
|
"onUpdate:modelValue": a[1] || (a[1] = (F) => o.value.platform.token = F),
|
|
@@ -1092,19 +1103,19 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1092
1103
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1093
1104
|
])
|
|
1094
1105
|
]),
|
|
1095
|
-
t("div",
|
|
1096
|
-
t("div",
|
|
1097
|
-
t("div",
|
|
1098
|
-
t("div",
|
|
1099
|
-
t("div",
|
|
1106
|
+
t("div", go, [
|
|
1107
|
+
t("div", yo, T(f(r)("report.integration.bukku.general")), 1),
|
|
1108
|
+
t("div", xo, [
|
|
1109
|
+
t("div", _o, T(f(r)("report.common.name")), 1),
|
|
1110
|
+
t("div", bo, [
|
|
1100
1111
|
i(N, {
|
|
1101
1112
|
modelValue: o.value.name,
|
|
1102
1113
|
"onUpdate:modelValue": a[2] || (a[2] = (F) => o.value.name = F)
|
|
1103
1114
|
}, null, 8, ["modelValue"])
|
|
1104
1115
|
])
|
|
1105
1116
|
]),
|
|
1106
|
-
t("div",
|
|
1107
|
-
t("div",
|
|
1117
|
+
t("div", wo, [
|
|
1118
|
+
t("div", ho, T(f(r)("report.common.location")), 1),
|
|
1108
1119
|
i(G, {
|
|
1109
1120
|
modelValue: o.value.platform.locationIds,
|
|
1110
1121
|
"onUpdate:modelValue": a[3] || (a[3] = (F) => o.value.platform.locationIds = F),
|
|
@@ -1114,8 +1125,8 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1114
1125
|
class: "flex-grow"
|
|
1115
1126
|
}, null, 8, ["modelValue", "items"])
|
|
1116
1127
|
]),
|
|
1117
|
-
t("div",
|
|
1118
|
-
t("div",
|
|
1128
|
+
t("div", ko, [
|
|
1129
|
+
t("div", Vo, T(f(r)("report.integration.bukku.grouping.title")), 1),
|
|
1119
1130
|
i(G, {
|
|
1120
1131
|
modelValue: o.value.platform.grouping,
|
|
1121
1132
|
"onUpdate:modelValue": a[4] || (a[4] = (F) => o.value.platform.grouping = F),
|
|
@@ -1126,8 +1137,8 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1126
1137
|
}, null, 8, ["modelValue"])
|
|
1127
1138
|
])
|
|
1128
1139
|
]),
|
|
1129
|
-
t("div",
|
|
1130
|
-
t("div",
|
|
1140
|
+
t("div", $o, [
|
|
1141
|
+
t("div", So, [
|
|
1131
1142
|
i(P, {
|
|
1132
1143
|
"model-value": {
|
|
1133
1144
|
key: "Contact",
|
|
@@ -1191,7 +1202,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1191
1202
|
(re = (q = (K = o.value) == null ? void 0 : K.platform) == null ? void 0 : q.mappings) != null && re.rounding && (o.value.platform.mappings.rounding.account = F.account);
|
|
1192
1203
|
})
|
|
1193
1204
|
}, null, 8, ["model-value", "options"]),
|
|
1194
|
-
(d(!0), D(L, null,
|
|
1205
|
+
(d(!0), D(L, null, X((Z = (E = (j = o.value) == null ? void 0 : j.platform) == null ? void 0 : E.mappings) == null ? void 0 : Z.charges, (F, K) => (d(), A(P, {
|
|
1195
1206
|
key: `charge-${K}`,
|
|
1196
1207
|
modelValue: o.value.platform.mappings.charges[K],
|
|
1197
1208
|
"onUpdate:modelValue": (q) => o.value.platform.mappings.charges[K] = q,
|
|
@@ -1214,16 +1225,16 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1214
1225
|
label: "upload",
|
|
1215
1226
|
"last-upload-date": (ee = o.value.platform) == null ? void 0 : ee.lastUploadDate
|
|
1216
1227
|
}, null, 8, ["modelValue", "last-upload-date"]),
|
|
1217
|
-
t("div",
|
|
1218
|
-
t("div",
|
|
1228
|
+
t("div", Co, [
|
|
1229
|
+
t("div", Fo, T(f(r)("report.integration.items")), 1),
|
|
1219
1230
|
i(s, {
|
|
1220
1231
|
variant: "primary",
|
|
1221
1232
|
icon: "add",
|
|
1222
|
-
onClick: a[12] || (a[12] = () =>
|
|
1233
|
+
onClick: a[12] || (a[12] = () => y("items"))
|
|
1223
1234
|
})
|
|
1224
1235
|
]),
|
|
1225
|
-
t("div",
|
|
1226
|
-
(d(!0), D(L, null,
|
|
1236
|
+
t("div", Do, [
|
|
1237
|
+
(d(!0), D(L, null, X((ae = (oe = (te = o.value) == null ? void 0 : te.platform) == null ? void 0 : oe.mappings) == null ? void 0 : ae.items, (F, K) => (d(), A(P, {
|
|
1227
1238
|
key: `item-${K}`,
|
|
1228
1239
|
modelValue: o.value.platform.mappings.items[K],
|
|
1229
1240
|
"onUpdate:modelValue": (q) => o.value.platform.mappings.items[K] = q,
|
|
@@ -1232,19 +1243,19 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1232
1243
|
account: { placeholder: "Account code", editable: !0 }
|
|
1233
1244
|
},
|
|
1234
1245
|
removable: !0,
|
|
1235
|
-
onRemove: () =>
|
|
1246
|
+
onRemove: () => g("items", K)
|
|
1236
1247
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
1237
1248
|
]),
|
|
1238
|
-
t("div",
|
|
1239
|
-
t("div",
|
|
1249
|
+
t("div", Uo, [
|
|
1250
|
+
t("div", To, T(f(r)("report.integration.taxes")), 1),
|
|
1240
1251
|
i(s, {
|
|
1241
1252
|
variant: "primary",
|
|
1242
1253
|
icon: "add",
|
|
1243
|
-
onClick: a[13] || (a[13] = () =>
|
|
1254
|
+
onClick: a[13] || (a[13] = () => y("taxes"))
|
|
1244
1255
|
})
|
|
1245
1256
|
]),
|
|
1246
|
-
t("div",
|
|
1247
|
-
(d(!0), D(L, null,
|
|
1257
|
+
t("div", Io, [
|
|
1258
|
+
(d(!0), D(L, null, X((se = (ne = (le = o.value) == null ? void 0 : le.platform) == null ? void 0 : ne.mappings) == null ? void 0 : se.taxes, (F, K) => (d(), A(P, {
|
|
1248
1259
|
key: `tax-${K}`,
|
|
1249
1260
|
modelValue: o.value.platform.mappings.taxes[K],
|
|
1250
1261
|
"onUpdate:modelValue": (q) => o.value.platform.mappings.taxes[K] = q,
|
|
@@ -1253,22 +1264,22 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1253
1264
|
account: { placeholder: "Account code", editable: !0 }
|
|
1254
1265
|
},
|
|
1255
1266
|
removable: !0,
|
|
1256
|
-
onRemove: () =>
|
|
1267
|
+
onRemove: () => g("taxes", K)
|
|
1257
1268
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
1258
1269
|
]),
|
|
1259
|
-
t("div",
|
|
1260
|
-
t("div",
|
|
1270
|
+
t("div", Mo, [
|
|
1271
|
+
t("div", Ko, T(f(r)("report.integration.payments")), 1),
|
|
1261
1272
|
i(s, {
|
|
1262
1273
|
variant: "primary",
|
|
1263
1274
|
icon: "add",
|
|
1264
|
-
onClick: a[14] || (a[14] = () =>
|
|
1275
|
+
onClick: a[14] || (a[14] = () => y("payments"))
|
|
1265
1276
|
})
|
|
1266
1277
|
]),
|
|
1267
|
-
(d(!0), D(L, null,
|
|
1278
|
+
(d(!0), D(L, null, X(($ = (U = (ie = o.value) == null ? void 0 : ie.platform) == null ? void 0 : U.mappings) == null ? void 0 : $.payments, (F, K) => (d(), D("div", {
|
|
1268
1279
|
key: `payment-${K}`,
|
|
1269
1280
|
class: "grid-cols-1 grid gap-x-16"
|
|
1270
1281
|
}, [
|
|
1271
|
-
t("div",
|
|
1282
|
+
t("div", Ao, [
|
|
1272
1283
|
i(Y, {
|
|
1273
1284
|
"model-value": !o.value.platform.mappings.payments[K].skip,
|
|
1274
1285
|
value: "",
|
|
@@ -1286,7 +1297,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1286
1297
|
account: { placeholder: "Account code", editable: !0 }
|
|
1287
1298
|
},
|
|
1288
1299
|
removable: !0,
|
|
1289
|
-
onRemove: () =>
|
|
1300
|
+
onRemove: () => g("payments", K)
|
|
1290
1301
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"])
|
|
1291
1302
|
])
|
|
1292
1303
|
]))), 128))
|
|
@@ -1294,31 +1305,31 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1294
1305
|
])) : R("", !0);
|
|
1295
1306
|
};
|
|
1296
1307
|
}
|
|
1297
|
-
}),
|
|
1308
|
+
}), No = { class: "h-full flex flex-col gap-16" }, Ro = { class: "flex flex-row gap-2 justify-between items-center" }, Oo = {
|
|
1298
1309
|
key: 0,
|
|
1299
1310
|
class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
|
|
1300
|
-
},
|
|
1311
|
+
}, Bo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, jo = /* @__PURE__ */ H({
|
|
1301
1312
|
__name: "Preview",
|
|
1302
1313
|
props: {
|
|
1303
1314
|
modelValue: { required: !0 },
|
|
1304
1315
|
modelModifiers: {}
|
|
1305
1316
|
},
|
|
1306
1317
|
emits: ["update:modelValue"],
|
|
1307
|
-
setup(
|
|
1308
|
-
const o = B([]), e =
|
|
1318
|
+
setup(v) {
|
|
1319
|
+
const o = B([]), e = z(
|
|
1309
1320
|
() => o.value.reduce((p, k) => {
|
|
1310
|
-
const
|
|
1311
|
-
p[
|
|
1312
|
-
no:
|
|
1313
|
-
date:
|
|
1314
|
-
contact:
|
|
1315
|
-
status:
|
|
1316
|
-
title:
|
|
1321
|
+
const g = p.length, { invoice: y, payments: c } = k;
|
|
1322
|
+
p[g] = {
|
|
1323
|
+
no: y.number,
|
|
1324
|
+
date: y.date,
|
|
1325
|
+
contact: y._contact_name,
|
|
1326
|
+
status: y.status,
|
|
1327
|
+
title: y.title
|
|
1317
1328
|
};
|
|
1318
|
-
for (let m = 0; m < Math.max(
|
|
1319
|
-
const b =
|
|
1329
|
+
for (let m = 0; m < Math.max(y.form_items.length, c.length); m++) {
|
|
1330
|
+
const b = g + m;
|
|
1320
1331
|
p[b] || (p[b] = {});
|
|
1321
|
-
const C =
|
|
1332
|
+
const C = y.form_items[m];
|
|
1322
1333
|
C && (p[b] = {
|
|
1323
1334
|
...p[b],
|
|
1324
1335
|
itemDescription: C.description,
|
|
@@ -1435,7 +1446,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1435
1446
|
header: "Skip",
|
|
1436
1447
|
enableSorting: !1
|
|
1437
1448
|
}
|
|
1438
|
-
], x =
|
|
1449
|
+
], x = Q(v, "modelValue"), _ = B(!1), S = fe(), { dateRange: h } = De(ue());
|
|
1439
1450
|
ge(
|
|
1440
1451
|
() => h.value,
|
|
1441
1452
|
async () => {
|
|
@@ -1462,24 +1473,24 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1462
1473
|
}
|
|
1463
1474
|
}
|
|
1464
1475
|
return (p, k) => {
|
|
1465
|
-
const
|
|
1466
|
-
return d(), D("div",
|
|
1467
|
-
t("div",
|
|
1476
|
+
const g = V("FmButton"), y = V("FmCircularProgress"), c = V("FmTable");
|
|
1477
|
+
return d(), D("div", No, [
|
|
1478
|
+
t("div", Ro, [
|
|
1468
1479
|
i(Ue, {
|
|
1469
1480
|
"date-range": f(h),
|
|
1470
1481
|
"onUpdate:dateRange": k[0] || (k[0] = (m) => he(h) ? h.value = m : null),
|
|
1471
1482
|
compare: !1
|
|
1472
1483
|
}, null, 8, ["date-range"]),
|
|
1473
|
-
i(
|
|
1484
|
+
i(g, {
|
|
1474
1485
|
loading: _.value,
|
|
1475
1486
|
variant: "primary",
|
|
1476
1487
|
label: f(n)("report.common.upload"),
|
|
1477
1488
|
onClick: r
|
|
1478
1489
|
}, null, 8, ["loading", "label"])
|
|
1479
1490
|
]),
|
|
1480
|
-
_.value ? (d(), D("div",
|
|
1481
|
-
i(
|
|
1482
|
-
t("span",
|
|
1491
|
+
_.value ? (d(), D("div", Oo, [
|
|
1492
|
+
i(y, { size: "xl" }),
|
|
1493
|
+
t("span", Bo, T(f(n)("report.integration.preview.loading")), 1)
|
|
1483
1494
|
])) : e.value.length > 0 ? (d(), A(c, {
|
|
1484
1495
|
key: 1,
|
|
1485
1496
|
class: "flex overflow-scroll",
|
|
@@ -1489,15 +1500,15 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1489
1500
|
]);
|
|
1490
1501
|
};
|
|
1491
1502
|
}
|
|
1492
|
-
}),
|
|
1503
|
+
}), Lo = { class: "h-full relative flex flex-col" }, Eo = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, zo = /* @__PURE__ */ H({
|
|
1493
1504
|
__name: "Bukku",
|
|
1494
1505
|
props: {
|
|
1495
1506
|
modelValue: {},
|
|
1496
1507
|
modelModifiers: {}
|
|
1497
1508
|
},
|
|
1498
1509
|
emits: ["update:modelValue"],
|
|
1499
|
-
setup(
|
|
1500
|
-
const { t: o } = W(), e =
|
|
1510
|
+
setup(v) {
|
|
1511
|
+
const { t: o } = W(), e = Q(v, "modelValue"), n = B("setting"), w = [
|
|
1501
1512
|
{
|
|
1502
1513
|
label: o("report.integration.setting"),
|
|
1503
1514
|
value: "setting",
|
|
@@ -1508,12 +1519,12 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1508
1519
|
value: "preview",
|
|
1509
1520
|
icon: "table"
|
|
1510
1521
|
}
|
|
1511
|
-
], x = pe(), _ =
|
|
1522
|
+
], x = pe(), _ = z(() => {
|
|
1512
1523
|
switch (n.value) {
|
|
1513
1524
|
case "preview":
|
|
1514
|
-
return
|
|
1525
|
+
return jo;
|
|
1515
1526
|
case "setting":
|
|
1516
|
-
return
|
|
1527
|
+
return Po;
|
|
1517
1528
|
default:
|
|
1518
1529
|
return null;
|
|
1519
1530
|
}
|
|
@@ -1521,7 +1532,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1521
1532
|
return (S, h) => {
|
|
1522
1533
|
var k;
|
|
1523
1534
|
const r = V("FmPageHead"), p = V("FmTabs");
|
|
1524
|
-
return d(), D("div",
|
|
1535
|
+
return d(), D("div", Lo, [
|
|
1525
1536
|
i(r, {
|
|
1526
1537
|
title: ((k = e.value) == null ? void 0 : k.name) || "Bukku",
|
|
1527
1538
|
"back-button": !0,
|
|
@@ -1535,30 +1546,30 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1535
1546
|
}, 8, ["title", "onClick:back"]),
|
|
1536
1547
|
i(p, {
|
|
1537
1548
|
"model-value": n.value,
|
|
1538
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
1549
|
+
"onUpdate:modelValue": h[0] || (h[0] = (g) => n.value = g),
|
|
1539
1550
|
items: w
|
|
1540
1551
|
}, null, 8, ["model-value"]),
|
|
1541
|
-
t("div",
|
|
1552
|
+
t("div", Eo, [
|
|
1542
1553
|
(d(), A(be(_.value), {
|
|
1543
1554
|
modelValue: e.value,
|
|
1544
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
1555
|
+
"onUpdate:modelValue": h[1] || (h[1] = (g) => e.value = g)
|
|
1545
1556
|
}, null, 8, ["modelValue"]))
|
|
1546
1557
|
])
|
|
1547
1558
|
]);
|
|
1548
1559
|
};
|
|
1549
1560
|
}
|
|
1550
|
-
}),
|
|
1561
|
+
}), Yo = {
|
|
1551
1562
|
key: 0,
|
|
1552
1563
|
class: "flex flex-col h-full"
|
|
1553
|
-
},
|
|
1564
|
+
}, qo = { class: "flex flex-col gap-16 pb-[24px]" }, Ho = { class: "flex flex-row justify-between items-center gap-2" }, Xo = { class: "flex flex-row gap-2 items-center" }, Qo = { class: "relative group cursor-pointer" }, Go = { 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" }, Jo = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Wo = { class: "flex flex-col gap-16" }, Zo = { class: "fm-typo-en-title-sm-800" }, ea = { class: "flex flex-row items-center max-w-[100%]" }, ta = { class: "w-[25%]" }, oa = { class: "flex-grow" }, aa = { class: "flex flex-row items-center max-w-[100%]" }, la = { class: "w-[25%]" }, na = { class: "flex flex-row items-center max-w-[100%]" }, sa = { class: "w-[25%]" }, ia = { class: "flex flex-col gap-16" }, ra = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, ma = { class: "flex flex-row items-center gap-x-16" }, ca = { class: "fm-typo-en-title-sm-800" }, da = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, pa = { class: "flex flex-row items-center gap-x-16" }, ua = { class: "fm-typo-en-title-sm-800" }, fa = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, va = { class: "flex flex-row items-center gap-x-16" }, ga = { class: "fm-typo-en-title-sm-800" }, ya = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, xa = /* @__PURE__ */ H({
|
|
1554
1565
|
__name: "Setting",
|
|
1555
1566
|
props: {
|
|
1556
1567
|
modelValue: { required: !0 },
|
|
1557
1568
|
modelModifiers: {}
|
|
1558
1569
|
},
|
|
1559
1570
|
emits: ["update:modelValue"],
|
|
1560
|
-
setup(
|
|
1561
|
-
const { t: o } = W(), e =
|
|
1571
|
+
setup(v) {
|
|
1572
|
+
const { t: o } = W(), e = Q(v, "modelValue"), n = fe(), w = we(), x = pe(), { promptLoader: _ } = ke(), { promptMessage: S } = Fe(), { restaurants: h } = ue(), r = z(
|
|
1562
1573
|
() => h.map((l) => ({ label: l.name, value: l.id }))
|
|
1563
1574
|
);
|
|
1564
1575
|
async function p() {
|
|
@@ -1582,13 +1593,13 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1582
1593
|
}
|
|
1583
1594
|
});
|
|
1584
1595
|
}
|
|
1585
|
-
function
|
|
1596
|
+
function g(l, a) {
|
|
1586
1597
|
var u, s;
|
|
1587
1598
|
(s = (u = e.value.platform) == null ? void 0 : u.mappings) != null && s[l] && (e.value.platform.mappings[l] = e.value.platform.mappings[l].filter(
|
|
1588
1599
|
(M, N) => N !== a
|
|
1589
1600
|
));
|
|
1590
1601
|
}
|
|
1591
|
-
function
|
|
1602
|
+
function y(l) {
|
|
1592
1603
|
var a, u;
|
|
1593
1604
|
(u = (a = e.value.platform) == null ? void 0 : a.mappings) != null && u[l] && (e.value.platform.mappings[l] = [
|
|
1594
1605
|
...e.value.platform.mappings[l],
|
|
@@ -1639,20 +1650,20 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1639
1650
|
});
|
|
1640
1651
|
}
|
|
1641
1652
|
return (l, a) => {
|
|
1642
|
-
var Y, J, O, j,
|
|
1653
|
+
var Y, J, O, j, E, Z, ee, te, oe, ae, le, ne, se, ie;
|
|
1643
1654
|
const u = V("FmIcon"), s = V("FmButton"), M = V("FmMenuDivider"), N = V("FmTextField"), G = V("FmSelect");
|
|
1644
|
-
return (J = (Y = e.value) == null ? void 0 : Y.platform) != null && J.mappings ? (d(), D("div",
|
|
1645
|
-
t("div",
|
|
1646
|
-
t("div",
|
|
1655
|
+
return (J = (Y = e.value) == null ? void 0 : Y.platform) != null && J.mappings ? (d(), D("div", Yo, [
|
|
1656
|
+
t("div", qo, [
|
|
1657
|
+
t("div", Ho, [
|
|
1647
1658
|
a[14] || (a[14] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
|
|
1648
|
-
t("div",
|
|
1649
|
-
t("div",
|
|
1659
|
+
t("div", Xo, [
|
|
1660
|
+
t("div", Qo, [
|
|
1650
1661
|
i(u, {
|
|
1651
1662
|
name: "refresh",
|
|
1652
1663
|
class: "p-2 bg-gray-100 rounded-full",
|
|
1653
1664
|
onClick: C
|
|
1654
1665
|
}),
|
|
1655
|
-
t("span",
|
|
1666
|
+
t("span", Go, T(f(o)("report.integration.autoCount.repopulate")), 1)
|
|
1656
1667
|
]),
|
|
1657
1668
|
i(s, {
|
|
1658
1669
|
variant: "tertiary",
|
|
@@ -1668,20 +1679,20 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1668
1679
|
])
|
|
1669
1680
|
]),
|
|
1670
1681
|
i(M, { style: { margin: 0 } }),
|
|
1671
|
-
t("div",
|
|
1672
|
-
t("div",
|
|
1673
|
-
t("div",
|
|
1674
|
-
t("div",
|
|
1675
|
-
t("div",
|
|
1676
|
-
t("div",
|
|
1682
|
+
t("div", Jo, [
|
|
1683
|
+
t("div", Wo, [
|
|
1684
|
+
t("div", Zo, T(f(o)("report.integration.autocount.general")), 1),
|
|
1685
|
+
t("div", ea, [
|
|
1686
|
+
t("div", ta, T(f(o)("report.common.name")), 1),
|
|
1687
|
+
t("div", oa, [
|
|
1677
1688
|
i(N, {
|
|
1678
1689
|
modelValue: e.value.name,
|
|
1679
1690
|
"onUpdate:modelValue": a[0] || (a[0] = (U) => e.value.name = U)
|
|
1680
1691
|
}, null, 8, ["modelValue"])
|
|
1681
1692
|
])
|
|
1682
1693
|
]),
|
|
1683
|
-
t("div",
|
|
1684
|
-
t("div",
|
|
1694
|
+
t("div", aa, [
|
|
1695
|
+
t("div", la, T(f(o)("report.integration.location")), 1),
|
|
1685
1696
|
i(G, {
|
|
1686
1697
|
modelValue: e.value.platform.locationIds,
|
|
1687
1698
|
"onUpdate:modelValue": a[1] || (a[1] = (U) => e.value.platform.locationIds = U),
|
|
@@ -1692,8 +1703,8 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1692
1703
|
rules: [(U) => U.length !== 0 || "Please select at least 1 location"]
|
|
1693
1704
|
}, null, 8, ["modelValue", "items", "rules"])
|
|
1694
1705
|
]),
|
|
1695
|
-
t("div",
|
|
1696
|
-
t("div",
|
|
1706
|
+
t("div", na, [
|
|
1707
|
+
t("div", sa, T(f(o)("report.integration.autoCount.grouping.title")), 1),
|
|
1697
1708
|
i(G, {
|
|
1698
1709
|
modelValue: e.value.platform.grouping,
|
|
1699
1710
|
"onUpdate:modelValue": a[2] || (a[2] = (U) => e.value.platform.grouping = U),
|
|
@@ -1704,8 +1715,8 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1704
1715
|
}, null, 8, ["modelValue"])
|
|
1705
1716
|
])
|
|
1706
1717
|
]),
|
|
1707
|
-
t("div",
|
|
1708
|
-
t("div",
|
|
1718
|
+
t("div", ia, [
|
|
1719
|
+
t("div", ra, [
|
|
1709
1720
|
i(P, {
|
|
1710
1721
|
"model-value": { key: "Project", account: e.value.platform.mappings.project },
|
|
1711
1722
|
options: b("Project"),
|
|
@@ -1759,7 +1770,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1759
1770
|
(K = (F = ($ = e.value) == null ? void 0 : $.platform) == null ? void 0 : F.mappings) != null && K.rounding && (e.value.platform.mappings.rounding.account = U.account);
|
|
1760
1771
|
})
|
|
1761
1772
|
}, null, 8, ["model-value", "options"]),
|
|
1762
|
-
(d(!0), D(L, null,
|
|
1773
|
+
(d(!0), D(L, null, X((E = (j = (O = e.value) == null ? void 0 : O.platform) == null ? void 0 : j.mappings) == null ? void 0 : E.charges, (U, $) => (d(), A(P, {
|
|
1763
1774
|
key: `charge-${$}`,
|
|
1764
1775
|
modelValue: e.value.platform.mappings.charges[$],
|
|
1765
1776
|
"onUpdate:modelValue": (F) => e.value.platform.mappings.charges[$] = F,
|
|
@@ -1775,16 +1786,16 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1775
1786
|
"onUpdate:modelValue": a[10] || (a[10] = (U) => e.value.platform = U),
|
|
1776
1787
|
label: f(o)("report.input.email")
|
|
1777
1788
|
}, null, 8, ["modelValue", "label"]),
|
|
1778
|
-
t("div",
|
|
1779
|
-
t("div",
|
|
1789
|
+
t("div", ma, [
|
|
1790
|
+
t("div", ca, T(f(o)("report.integration.items")), 1),
|
|
1780
1791
|
i(s, {
|
|
1781
1792
|
variant: "primary",
|
|
1782
1793
|
icon: "add",
|
|
1783
|
-
onClick: a[11] || (a[11] = () =>
|
|
1794
|
+
onClick: a[11] || (a[11] = () => y("items"))
|
|
1784
1795
|
})
|
|
1785
1796
|
]),
|
|
1786
|
-
t("div",
|
|
1787
|
-
(d(!0), D(L, null,
|
|
1797
|
+
t("div", da, [
|
|
1798
|
+
(d(!0), D(L, null, X((te = (ee = (Z = e.value) == null ? void 0 : Z.platform) == null ? void 0 : ee.mappings) == null ? void 0 : te.items, (U, $) => (d(), A(P, {
|
|
1788
1799
|
key: `item-${$}`,
|
|
1789
1800
|
modelValue: e.value.platform.mappings.items[$],
|
|
1790
1801
|
"onUpdate:modelValue": (F) => e.value.platform.mappings.items[$] = F,
|
|
@@ -1793,19 +1804,19 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1793
1804
|
account: { placeholder: "Account code", editable: !0 }
|
|
1794
1805
|
},
|
|
1795
1806
|
removable: !0,
|
|
1796
|
-
onRemove: () =>
|
|
1807
|
+
onRemove: () => g("items", $)
|
|
1797
1808
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
1798
1809
|
]),
|
|
1799
|
-
t("div",
|
|
1800
|
-
t("div",
|
|
1810
|
+
t("div", pa, [
|
|
1811
|
+
t("div", ua, T(f(o)("report.integration.taxes")), 1),
|
|
1801
1812
|
i(s, {
|
|
1802
1813
|
variant: "primary",
|
|
1803
1814
|
icon: "add",
|
|
1804
|
-
onClick: a[12] || (a[12] = () =>
|
|
1815
|
+
onClick: a[12] || (a[12] = () => y("taxes"))
|
|
1805
1816
|
})
|
|
1806
1817
|
]),
|
|
1807
|
-
t("div",
|
|
1808
|
-
(d(!0), D(L, null,
|
|
1818
|
+
t("div", fa, [
|
|
1819
|
+
(d(!0), D(L, null, X((le = (ae = (oe = e.value) == null ? void 0 : oe.platform) == null ? void 0 : ae.mappings) == null ? void 0 : le.taxes, (U, $) => (d(), A(P, {
|
|
1809
1820
|
key: `tax-${$}`,
|
|
1810
1821
|
modelValue: e.value.platform.mappings.taxes[$],
|
|
1811
1822
|
"onUpdate:modelValue": (F) => e.value.platform.mappings.taxes[$] = F,
|
|
@@ -1814,19 +1825,19 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1814
1825
|
account: { placeholder: "Account code", editable: !0 }
|
|
1815
1826
|
},
|
|
1816
1827
|
removable: !0,
|
|
1817
|
-
onRemove: () =>
|
|
1828
|
+
onRemove: () => g("taxes", $)
|
|
1818
1829
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
1819
1830
|
]),
|
|
1820
|
-
t("div",
|
|
1821
|
-
t("div",
|
|
1831
|
+
t("div", va, [
|
|
1832
|
+
t("div", ga, T(f(o)("report.integration.payments")), 1),
|
|
1822
1833
|
i(s, {
|
|
1823
1834
|
variant: "primary",
|
|
1824
1835
|
icon: "add",
|
|
1825
|
-
onClick: a[13] || (a[13] = () =>
|
|
1836
|
+
onClick: a[13] || (a[13] = () => y("payments"))
|
|
1826
1837
|
})
|
|
1827
1838
|
]),
|
|
1828
|
-
t("div",
|
|
1829
|
-
(d(!0), D(L, null,
|
|
1839
|
+
t("div", ya, [
|
|
1840
|
+
(d(!0), D(L, null, X((ie = (se = (ne = e.value) == null ? void 0 : ne.platform) == null ? void 0 : se.mappings) == null ? void 0 : ie.payments, (U, $) => (d(), A(P, {
|
|
1830
1841
|
key: `payment-${$}`,
|
|
1831
1842
|
modelValue: e.value.platform.mappings.payments[$],
|
|
1832
1843
|
"onUpdate:modelValue": (F) => e.value.platform.mappings.payments[$] = F,
|
|
@@ -1835,49 +1846,49 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1835
1846
|
account: { placeholder: "Payment name", editable: !0 }
|
|
1836
1847
|
},
|
|
1837
1848
|
removable: !0,
|
|
1838
|
-
onRemove: () =>
|
|
1849
|
+
onRemove: () => g("payments", $)
|
|
1839
1850
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
1840
1851
|
])
|
|
1841
1852
|
])
|
|
1842
1853
|
])) : R("", !0);
|
|
1843
1854
|
};
|
|
1844
1855
|
}
|
|
1845
|
-
}),
|
|
1856
|
+
}), _a = { class: "h-full flex flex-col gap-16" }, ba = { class: "flex flex-row gap-2 justify-between items-center" }, wa = {
|
|
1846
1857
|
key: 0,
|
|
1847
1858
|
class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
|
|
1848
|
-
},
|
|
1859
|
+
}, ha = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ka = /* @__PURE__ */ H({
|
|
1849
1860
|
__name: "Preview",
|
|
1850
1861
|
props: {
|
|
1851
1862
|
modelValue: { required: !0 },
|
|
1852
1863
|
modelModifiers: {}
|
|
1853
1864
|
},
|
|
1854
1865
|
emits: ["update:modelValue"],
|
|
1855
|
-
setup(
|
|
1856
|
-
const o = B([]), e =
|
|
1866
|
+
setup(v) {
|
|
1867
|
+
const o = B([]), e = z(
|
|
1857
1868
|
() => o.value.reduce((r, p) => {
|
|
1858
|
-
const k = r.length, { invoice:
|
|
1869
|
+
const k = r.length, { invoice: g, payments: y } = p;
|
|
1859
1870
|
r[k] = {
|
|
1860
|
-
date:
|
|
1861
|
-
docNo:
|
|
1862
|
-
projNo:
|
|
1863
|
-
debtor:
|
|
1864
|
-
description:
|
|
1871
|
+
date: g.DocDate,
|
|
1872
|
+
docNo: g.DocNo,
|
|
1873
|
+
projNo: g.ProjNo,
|
|
1874
|
+
debtor: g.DebtorCode,
|
|
1875
|
+
description: g.Description
|
|
1865
1876
|
};
|
|
1866
|
-
for (let c = 0; c < Math.max(
|
|
1877
|
+
for (let c = 0; c < Math.max(g._items.length, y.length); c++) {
|
|
1867
1878
|
const m = k + c;
|
|
1868
|
-
r[m] || (r[m] = {}),
|
|
1879
|
+
r[m] || (r[m] = {}), g._items[c] && (r[m] = {
|
|
1869
1880
|
...r[m],
|
|
1870
|
-
itemDescription:
|
|
1871
|
-
itemUnitPrice:
|
|
1872
|
-
itemAccount:
|
|
1873
|
-
itemTaxCode:
|
|
1874
|
-
itemTax:
|
|
1875
|
-
}),
|
|
1881
|
+
itemDescription: g._items[c].DetailDescription,
|
|
1882
|
+
itemUnitPrice: g._items[c].Amount,
|
|
1883
|
+
itemAccount: g._items[c].AccNo,
|
|
1884
|
+
itemTaxCode: g._items[c].TaxType,
|
|
1885
|
+
itemTax: g._items[c].Tax
|
|
1886
|
+
}), y[c] && (r[m] = {
|
|
1876
1887
|
...r[m],
|
|
1877
|
-
paymentDocNo:
|
|
1878
|
-
paymentMethod:
|
|
1879
|
-
paymentDescription:
|
|
1880
|
-
paymentAmount:
|
|
1888
|
+
paymentDocNo: y[c].DocNo,
|
|
1889
|
+
paymentMethod: y[c].paymentMethod,
|
|
1890
|
+
paymentDescription: y[c].Description,
|
|
1891
|
+
paymentAmount: y[c].PaymentAmt
|
|
1881
1892
|
});
|
|
1882
1893
|
}
|
|
1883
1894
|
return r;
|
|
@@ -1953,7 +1964,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1953
1964
|
header: "Payment Amount",
|
|
1954
1965
|
enableSorting: !1
|
|
1955
1966
|
}
|
|
1956
|
-
], w =
|
|
1967
|
+
], w = Q(v, "modelValue"), x = B(!1), _ = fe(), { dateRange: S } = De(ue());
|
|
1957
1968
|
ge(
|
|
1958
1969
|
() => S.value,
|
|
1959
1970
|
async () => {
|
|
@@ -1980,9 +1991,9 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1980
1991
|
}
|
|
1981
1992
|
}
|
|
1982
1993
|
return (r, p) => {
|
|
1983
|
-
const k = V("FmButton"),
|
|
1984
|
-
return d(), D("div",
|
|
1985
|
-
t("div",
|
|
1994
|
+
const k = V("FmButton"), g = V("FmCircularProgress"), y = V("FmTable");
|
|
1995
|
+
return d(), D("div", _a, [
|
|
1996
|
+
t("div", ba, [
|
|
1986
1997
|
i(Ue, {
|
|
1987
1998
|
"date-range": f(S),
|
|
1988
1999
|
"onUpdate:dateRange": p[0] || (p[0] = (c) => he(S) ? S.value = c : null),
|
|
@@ -1995,10 +2006,10 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1995
2006
|
onClick: h
|
|
1996
2007
|
}, null, 8, ["loading", "label"])
|
|
1997
2008
|
]),
|
|
1998
|
-
x.value ? (d(), D("div",
|
|
1999
|
-
i(
|
|
2000
|
-
t("span",
|
|
2001
|
-
])) : e.value.length > 0 ? (d(), A(
|
|
2009
|
+
x.value ? (d(), D("div", wa, [
|
|
2010
|
+
i(g, { size: "xl" }),
|
|
2011
|
+
t("span", ha, T(r.t("report.common.loading")), 1)
|
|
2012
|
+
])) : e.value.length > 0 ? (d(), A(y, {
|
|
2002
2013
|
key: 1,
|
|
2003
2014
|
class: "flex overflow-scroll",
|
|
2004
2015
|
"row-data": e.value,
|
|
@@ -2007,15 +2018,15 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2007
2018
|
]);
|
|
2008
2019
|
};
|
|
2009
2020
|
}
|
|
2010
|
-
}),
|
|
2021
|
+
}), Va = { class: "h-full relative flex flex-col" }, $a = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, Sa = /* @__PURE__ */ H({
|
|
2011
2022
|
__name: "AutoCount",
|
|
2012
2023
|
props: {
|
|
2013
2024
|
modelValue: {},
|
|
2014
2025
|
modelModifiers: {}
|
|
2015
2026
|
},
|
|
2016
2027
|
emits: ["update:modelValue"],
|
|
2017
|
-
setup(
|
|
2018
|
-
const { t: o } = W(), e =
|
|
2028
|
+
setup(v) {
|
|
2029
|
+
const { t: o } = W(), e = Q(v, "modelValue"), n = B("setting"), w = [
|
|
2019
2030
|
{
|
|
2020
2031
|
label: o("report.integration.setting"),
|
|
2021
2032
|
value: "setting",
|
|
@@ -2026,12 +2037,12 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2026
2037
|
value: "preview",
|
|
2027
2038
|
icon: "table"
|
|
2028
2039
|
}
|
|
2029
|
-
], x = pe(), _ =
|
|
2040
|
+
], x = pe(), _ = z(() => {
|
|
2030
2041
|
switch (n.value) {
|
|
2031
2042
|
case "preview":
|
|
2032
|
-
return
|
|
2043
|
+
return ka;
|
|
2033
2044
|
case "setting":
|
|
2034
|
-
return
|
|
2045
|
+
return xa;
|
|
2035
2046
|
default:
|
|
2036
2047
|
return null;
|
|
2037
2048
|
}
|
|
@@ -2039,7 +2050,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2039
2050
|
return (S, h) => {
|
|
2040
2051
|
var k;
|
|
2041
2052
|
const r = V("FmPageHead"), p = V("FmTabs");
|
|
2042
|
-
return d(), D("div",
|
|
2053
|
+
return d(), D("div", Va, [
|
|
2043
2054
|
i(r, {
|
|
2044
2055
|
title: ((k = e.value) == null ? void 0 : k.name) || "AutoCount",
|
|
2045
2056
|
"back-button": !0,
|
|
@@ -2053,30 +2064,30 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2053
2064
|
}, 8, ["title", "onClick:back"]),
|
|
2054
2065
|
i(p, {
|
|
2055
2066
|
"model-value": n.value,
|
|
2056
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
2067
|
+
"onUpdate:modelValue": h[0] || (h[0] = (g) => n.value = g),
|
|
2057
2068
|
items: w
|
|
2058
2069
|
}, null, 8, ["model-value"]),
|
|
2059
|
-
t("div",
|
|
2070
|
+
t("div", $a, [
|
|
2060
2071
|
(d(), A(be(_.value), {
|
|
2061
2072
|
modelValue: e.value,
|
|
2062
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
2073
|
+
"onUpdate:modelValue": h[1] || (h[1] = (g) => e.value = g)
|
|
2063
2074
|
}, null, 8, ["modelValue"]))
|
|
2064
2075
|
])
|
|
2065
2076
|
]);
|
|
2066
2077
|
};
|
|
2067
2078
|
}
|
|
2068
|
-
}),
|
|
2079
|
+
}), Ca = {
|
|
2069
2080
|
key: 0,
|
|
2070
2081
|
class: "flex flex-col h-full"
|
|
2071
|
-
},
|
|
2082
|
+
}, Fa = { class: "flex flex-col gap-16 pb-[24px]" }, Da = { class: "flex flex-row justify-between items-center gap-2" }, Ua = { class: "flex flex-row gap-2 items-center" }, Ta = { class: "relative group cursor-pointer" }, Ia = { 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" }, Ma = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, Ka = { class: "flex flex-col gap-16" }, Aa = { class: "fm-typo-en-title-sm-800" }, Pa = { class: "flex flex-row items-center max-w-[100%]" }, Na = { class: "w-[25%]" }, Ra = { class: "flex-grow" }, Oa = { class: "flex flex-row items-center max-w-[100%]" }, Ba = { class: "w-[25%]" }, ja = { class: "flex flex-row items-center max-w-[100%]" }, La = { class: "w-[25%]" }, Ea = { class: "flex flex-col gap-16" }, za = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ya = { class: "grid-cols-1 grid gap-16" }, qa = { class: "flex flex-row items-center gap-x-16" }, Ha = { class: "fm-typo-en-title-sm-800" }, Xa = { class: "grid-cols-1 grid gap-16" }, Qa = { class: "flex flex-row items-center gap-x-16" }, Ga = { class: "fm-typo-en-title-sm-800" }, Ja = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Wa = { class: "flex flex-row items-center gap-x-16" }, Za = { class: "fm-typo-en-title-sm-800" }, el = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, tl = /* @__PURE__ */ H({
|
|
2072
2083
|
__name: "Setting",
|
|
2073
2084
|
props: {
|
|
2074
2085
|
modelValue: { required: !0 },
|
|
2075
2086
|
modelModifiers: {}
|
|
2076
2087
|
},
|
|
2077
2088
|
emits: ["update:modelValue"],
|
|
2078
|
-
setup(
|
|
2079
|
-
const { t: o } = W(), e =
|
|
2089
|
+
setup(v) {
|
|
2090
|
+
const { t: o } = W(), e = Q(v, "modelValue"), n = fe(), w = we(), x = pe(), { promptLoader: _ } = ke(), { promptMessage: S } = Fe(), { restaurants: h } = ue(), r = z(
|
|
2080
2091
|
() => h.map((l) => ({ label: l.name, value: l.id }))
|
|
2081
2092
|
);
|
|
2082
2093
|
async function p() {
|
|
@@ -2100,13 +2111,13 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2100
2111
|
}
|
|
2101
2112
|
});
|
|
2102
2113
|
}
|
|
2103
|
-
function
|
|
2114
|
+
function g(l, a) {
|
|
2104
2115
|
var u, s;
|
|
2105
2116
|
(s = (u = e.value.platform) == null ? void 0 : u.mappings) != null && s[l] && (e.value.platform.mappings[l] = e.value.platform.mappings[l].filter(
|
|
2106
2117
|
(M, N) => N !== a
|
|
2107
2118
|
));
|
|
2108
2119
|
}
|
|
2109
|
-
function
|
|
2120
|
+
function y(l) {
|
|
2110
2121
|
var a, u;
|
|
2111
2122
|
(u = (a = e.value.platform) == null ? void 0 : a.mappings) != null && u[l] && (e.value.platform.mappings[l] = [
|
|
2112
2123
|
...e.value.platform.mappings[l],
|
|
@@ -2158,20 +2169,20 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2158
2169
|
});
|
|
2159
2170
|
}
|
|
2160
2171
|
return (l, a) => {
|
|
2161
|
-
var Y, J, O, j,
|
|
2172
|
+
var Y, J, O, j, E, Z, ee, te, oe, ae, le, ne, se, ie;
|
|
2162
2173
|
const u = V("FmIcon"), s = V("FmButton"), M = V("FmMenuDivider"), N = V("FmTextField"), G = V("FmSelect");
|
|
2163
|
-
return (J = (Y = e.value) == null ? void 0 : Y.platform) != null && J.mappings ? (d(), D("div",
|
|
2164
|
-
t("div",
|
|
2165
|
-
t("div",
|
|
2174
|
+
return (J = (Y = e.value) == null ? void 0 : Y.platform) != null && J.mappings ? (d(), D("div", Ca, [
|
|
2175
|
+
t("div", Fa, [
|
|
2176
|
+
t("div", Da, [
|
|
2166
2177
|
a[15] || (a[15] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
|
|
2167
|
-
t("div",
|
|
2168
|
-
t("div",
|
|
2178
|
+
t("div", Ua, [
|
|
2179
|
+
t("div", Ta, [
|
|
2169
2180
|
i(u, {
|
|
2170
2181
|
name: "refresh",
|
|
2171
2182
|
class: "p-2 bg-gray-100 rounded-full",
|
|
2172
2183
|
onClick: C
|
|
2173
2184
|
}),
|
|
2174
|
-
t("span",
|
|
2185
|
+
t("span", Ia, T(f(o)("report.integration.sql.refreshTooltip")), 1)
|
|
2175
2186
|
]),
|
|
2176
2187
|
i(s, {
|
|
2177
2188
|
variant: "tertiary",
|
|
@@ -2187,20 +2198,20 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2187
2198
|
])
|
|
2188
2199
|
]),
|
|
2189
2200
|
i(M, { style: { margin: 0 } }),
|
|
2190
|
-
t("div",
|
|
2191
|
-
t("div",
|
|
2192
|
-
t("div",
|
|
2193
|
-
t("div",
|
|
2194
|
-
t("div",
|
|
2195
|
-
t("div",
|
|
2201
|
+
t("div", Ma, [
|
|
2202
|
+
t("div", Ka, [
|
|
2203
|
+
t("div", Aa, T(f(o)("report.integration.sql.general")), 1),
|
|
2204
|
+
t("div", Pa, [
|
|
2205
|
+
t("div", Na, T(f(o)("report.common.name")), 1),
|
|
2206
|
+
t("div", Ra, [
|
|
2196
2207
|
i(N, {
|
|
2197
2208
|
modelValue: e.value.name,
|
|
2198
2209
|
"onUpdate:modelValue": a[0] || (a[0] = (U) => e.value.name = U)
|
|
2199
2210
|
}, null, 8, ["modelValue"])
|
|
2200
2211
|
])
|
|
2201
2212
|
]),
|
|
2202
|
-
t("div",
|
|
2203
|
-
t("div",
|
|
2213
|
+
t("div", Oa, [
|
|
2214
|
+
t("div", Ba, T(f(o)("report.integration.location")), 1),
|
|
2204
2215
|
i(G, {
|
|
2205
2216
|
modelValue: e.value.platform.locationIds,
|
|
2206
2217
|
"onUpdate:modelValue": a[1] || (a[1] = (U) => e.value.platform.locationIds = U),
|
|
@@ -2211,8 +2222,8 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2211
2222
|
rules: [(U) => U.length !== 0 || "Please select at least 1 location"]
|
|
2212
2223
|
}, null, 8, ["modelValue", "items", "rules"])
|
|
2213
2224
|
]),
|
|
2214
|
-
t("div",
|
|
2215
|
-
t("div",
|
|
2225
|
+
t("div", ja, [
|
|
2226
|
+
t("div", La, T(f(o)("report.integration.grouping")), 1),
|
|
2216
2227
|
i(G, {
|
|
2217
2228
|
modelValue: e.value.platform.grouping,
|
|
2218
2229
|
"onUpdate:modelValue": a[2] || (a[2] = (U) => e.value.platform.grouping = U),
|
|
@@ -2223,8 +2234,8 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2223
2234
|
}, null, 8, ["modelValue"])
|
|
2224
2235
|
])
|
|
2225
2236
|
]),
|
|
2226
|
-
t("div",
|
|
2227
|
-
t("div",
|
|
2237
|
+
t("div", Ea, [
|
|
2238
|
+
t("div", za, [
|
|
2228
2239
|
i(P, {
|
|
2229
2240
|
"model-value": { key: "Debtor", account: e.value.platform.mappings.debtor },
|
|
2230
2241
|
options: b("Debtor"),
|
|
@@ -2279,7 +2290,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2279
2290
|
"onUpdate:modelValue": a[9] || (a[9] = (U) => m({ key: "projectDetail", value: U.account }))
|
|
2280
2291
|
}, null, 8, ["model-value", "options"])
|
|
2281
2292
|
]),
|
|
2282
|
-
t("div",
|
|
2293
|
+
t("div", Ya, [
|
|
2283
2294
|
i(P, {
|
|
2284
2295
|
"model-value": {
|
|
2285
2296
|
key: "Rounding",
|
|
@@ -2296,7 +2307,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2296
2307
|
(K = (F = ($ = e.value) == null ? void 0 : $.platform) == null ? void 0 : F.mappings) != null && K.rounding && (e.value.platform.mappings.rounding.account = U.account, e.value.platform.mappings.rounding.code = U.code);
|
|
2297
2308
|
})
|
|
2298
2309
|
}, null, 8, ["model-value"]),
|
|
2299
|
-
(d(!0), D(L, null,
|
|
2310
|
+
(d(!0), D(L, null, X((E = (j = (O = e.value) == null ? void 0 : O.platform) == null ? void 0 : j.mappings) == null ? void 0 : E.charges, (U, $) => (d(), A(P, {
|
|
2300
2311
|
key: `charge-${$}`,
|
|
2301
2312
|
modelValue: e.value.platform.mappings.charges[$],
|
|
2302
2313
|
"onUpdate:modelValue": (F) => e.value.platform.mappings.charges[$] = F,
|
|
@@ -2313,16 +2324,16 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2313
2324
|
"onUpdate:modelValue": a[11] || (a[11] = (U) => e.value.platform = U),
|
|
2314
2325
|
label: "email"
|
|
2315
2326
|
}, null, 8, ["modelValue"]),
|
|
2316
|
-
t("div",
|
|
2317
|
-
t("div",
|
|
2327
|
+
t("div", qa, [
|
|
2328
|
+
t("div", Ha, T(f(o)("report.integration.items")), 1),
|
|
2318
2329
|
i(s, {
|
|
2319
2330
|
variant: "primary",
|
|
2320
2331
|
label: f(o)("report.action.add"),
|
|
2321
|
-
onClick: a[12] || (a[12] = () =>
|
|
2332
|
+
onClick: a[12] || (a[12] = () => y("items"))
|
|
2322
2333
|
}, null, 8, ["label"])
|
|
2323
2334
|
]),
|
|
2324
|
-
t("div",
|
|
2325
|
-
(d(!0), D(L, null,
|
|
2335
|
+
t("div", Xa, [
|
|
2336
|
+
(d(!0), D(L, null, X((te = (ee = (Z = e.value) == null ? void 0 : Z.platform) == null ? void 0 : ee.mappings) == null ? void 0 : te.items, (U, $) => (d(), A(P, {
|
|
2326
2337
|
key: `item-${$}`,
|
|
2327
2338
|
modelValue: e.value.platform.mappings.items[$],
|
|
2328
2339
|
"onUpdate:modelValue": (F) => e.value.platform.mappings.items[$] = F,
|
|
@@ -2332,19 +2343,19 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2332
2343
|
code: { placeholder: "Item code", editable: !0 }
|
|
2333
2344
|
},
|
|
2334
2345
|
removable: !0,
|
|
2335
|
-
onRemove: () =>
|
|
2346
|
+
onRemove: () => g("items", $)
|
|
2336
2347
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
2337
2348
|
]),
|
|
2338
|
-
t("div",
|
|
2339
|
-
t("div",
|
|
2349
|
+
t("div", Qa, [
|
|
2350
|
+
t("div", Ga, T(f(o)("report.integration.taxes")), 1),
|
|
2340
2351
|
i(s, {
|
|
2341
2352
|
variant: "primary",
|
|
2342
2353
|
icon: "add",
|
|
2343
|
-
onClick: a[13] || (a[13] = () =>
|
|
2354
|
+
onClick: a[13] || (a[13] = () => y("taxes"))
|
|
2344
2355
|
})
|
|
2345
2356
|
]),
|
|
2346
|
-
t("div",
|
|
2347
|
-
(d(!0), D(L, null,
|
|
2357
|
+
t("div", Ja, [
|
|
2358
|
+
(d(!0), D(L, null, X((le = (ae = (oe = e.value) == null ? void 0 : oe.platform) == null ? void 0 : ae.mappings) == null ? void 0 : le.taxes, (U, $) => (d(), A(P, {
|
|
2348
2359
|
key: `tax-${$}`,
|
|
2349
2360
|
modelValue: e.value.platform.mappings.taxes[$],
|
|
2350
2361
|
"onUpdate:modelValue": (F) => e.value.platform.mappings.taxes[$] = F,
|
|
@@ -2353,19 +2364,19 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2353
2364
|
account: { placeholder: "Account code", editable: !0 }
|
|
2354
2365
|
},
|
|
2355
2366
|
removable: !0,
|
|
2356
|
-
onRemove: () =>
|
|
2367
|
+
onRemove: () => g("taxes", $)
|
|
2357
2368
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
2358
2369
|
]),
|
|
2359
|
-
t("div",
|
|
2360
|
-
t("div",
|
|
2370
|
+
t("div", Wa, [
|
|
2371
|
+
t("div", Za, T(f(o)("report.integration.payments")), 1),
|
|
2361
2372
|
i(s, {
|
|
2362
2373
|
variant: "primary",
|
|
2363
2374
|
icon: "add",
|
|
2364
|
-
onClick: a[14] || (a[14] = () =>
|
|
2375
|
+
onClick: a[14] || (a[14] = () => y("payments"))
|
|
2365
2376
|
})
|
|
2366
2377
|
]),
|
|
2367
|
-
t("div",
|
|
2368
|
-
(d(!0), D(L, null,
|
|
2378
|
+
t("div", el, [
|
|
2379
|
+
(d(!0), D(L, null, X((ie = (se = (ne = e.value) == null ? void 0 : ne.platform) == null ? void 0 : se.mappings) == null ? void 0 : ie.payments, (U, $) => (d(), A(P, {
|
|
2369
2380
|
key: `payment-${$}`,
|
|
2370
2381
|
modelValue: e.value.platform.mappings.payments[$],
|
|
2371
2382
|
"onUpdate:modelValue": (F) => e.value.platform.mappings.payments[$] = F,
|
|
@@ -2374,42 +2385,42 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2374
2385
|
account: { placeholder: "Method", editable: !0 }
|
|
2375
2386
|
},
|
|
2376
2387
|
removable: !0,
|
|
2377
|
-
onRemove: () =>
|
|
2388
|
+
onRemove: () => g("payments", $)
|
|
2378
2389
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
2379
2390
|
])
|
|
2380
2391
|
])
|
|
2381
2392
|
])) : R("", !0);
|
|
2382
2393
|
};
|
|
2383
2394
|
}
|
|
2384
|
-
}),
|
|
2395
|
+
}), ol = { class: "h-full flex flex-col gap-16" }, al = { class: "flex flex-row gap-2 justify-between items-center" }, ll = {
|
|
2385
2396
|
key: 0,
|
|
2386
2397
|
class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
|
|
2387
|
-
},
|
|
2398
|
+
}, nl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, sl = /* @__PURE__ */ H({
|
|
2388
2399
|
__name: "Preview",
|
|
2389
2400
|
props: {
|
|
2390
2401
|
modelValue: { required: !0 },
|
|
2391
2402
|
modelModifiers: {}
|
|
2392
2403
|
},
|
|
2393
2404
|
emits: ["update:modelValue"],
|
|
2394
|
-
setup(
|
|
2395
|
-
const { t: o } = W(), e = B([]), n =
|
|
2405
|
+
setup(v) {
|
|
2406
|
+
const { t: o } = W(), e = B([]), n = z(
|
|
2396
2407
|
() => e.value.reduce((p, k) => {
|
|
2397
|
-
const
|
|
2398
|
-
p[
|
|
2399
|
-
date:
|
|
2400
|
-
docNo:
|
|
2401
|
-
debtor:
|
|
2402
|
-
description:
|
|
2408
|
+
const g = p.length, { invoice: y, payments: c } = k;
|
|
2409
|
+
p[g] = {
|
|
2410
|
+
date: y.DocDate,
|
|
2411
|
+
docNo: y.DocNo,
|
|
2412
|
+
debtor: y.Code,
|
|
2413
|
+
description: y.Description_HDR
|
|
2403
2414
|
};
|
|
2404
|
-
for (let m = 0; m < Math.max(
|
|
2405
|
-
const b =
|
|
2406
|
-
p[b] || (p[b] = {}),
|
|
2415
|
+
for (let m = 0; m < Math.max(y._items.length, c.length); m++) {
|
|
2416
|
+
const b = g + m;
|
|
2417
|
+
p[b] || (p[b] = {}), y._items[m] && (p[b] = {
|
|
2407
2418
|
...p[b],
|
|
2408
|
-
itemDescription:
|
|
2409
|
-
itemUnitPrice:
|
|
2410
|
-
itemAccount:
|
|
2411
|
-
itemTaxCode:
|
|
2412
|
-
itemTax:
|
|
2419
|
+
itemDescription: y._items[m].Description_DTL,
|
|
2420
|
+
itemUnitPrice: y._items[m].UnitPrice,
|
|
2421
|
+
itemAccount: y._items[m].ACCOUNT,
|
|
2422
|
+
itemTaxCode: y._items[m].Tax,
|
|
2423
|
+
itemTax: y._items[m].TaxAmt
|
|
2413
2424
|
}), c[m] && (p[b] = {
|
|
2414
2425
|
...p[b],
|
|
2415
2426
|
paymentDocNo: c[m].DOCNO_Header,
|
|
@@ -2487,7 +2498,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2487
2498
|
header: "Payment Amount",
|
|
2488
2499
|
enableSorting: !1
|
|
2489
2500
|
}
|
|
2490
|
-
], x =
|
|
2501
|
+
], x = Q(v, "modelValue"), _ = B(!1), S = fe(), { dateRange: h } = De(ue());
|
|
2491
2502
|
ge(
|
|
2492
2503
|
() => h.value,
|
|
2493
2504
|
async () => {
|
|
@@ -2514,24 +2525,24 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2514
2525
|
}
|
|
2515
2526
|
}
|
|
2516
2527
|
return (p, k) => {
|
|
2517
|
-
const
|
|
2518
|
-
return d(), D("div",
|
|
2519
|
-
t("div",
|
|
2528
|
+
const g = V("FmButton"), y = V("FmCircularProgress"), c = V("FmTable");
|
|
2529
|
+
return d(), D("div", ol, [
|
|
2530
|
+
t("div", al, [
|
|
2520
2531
|
i(Ue, {
|
|
2521
2532
|
"date-range": f(h),
|
|
2522
2533
|
"onUpdate:dateRange": k[0] || (k[0] = (m) => he(h) ? h.value = m : null),
|
|
2523
2534
|
compare: !1
|
|
2524
2535
|
}, null, 8, ["date-range"]),
|
|
2525
|
-
i(
|
|
2536
|
+
i(g, {
|
|
2526
2537
|
loading: _.value,
|
|
2527
2538
|
variant: "primary",
|
|
2528
2539
|
label: f(o)("report.common.download"),
|
|
2529
2540
|
onClick: r
|
|
2530
2541
|
}, null, 8, ["loading", "label"])
|
|
2531
2542
|
]),
|
|
2532
|
-
_.value ? (d(), D("div",
|
|
2533
|
-
i(
|
|
2534
|
-
t("span",
|
|
2543
|
+
_.value ? (d(), D("div", ll, [
|
|
2544
|
+
i(y, { size: "xl" }),
|
|
2545
|
+
t("span", nl, T(f(o)("report.common.loading")), 1)
|
|
2535
2546
|
])) : n.value.length > 0 ? (d(), A(c, {
|
|
2536
2547
|
key: 1,
|
|
2537
2548
|
class: "flex overflow-scroll",
|
|
@@ -2541,15 +2552,15 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2541
2552
|
]);
|
|
2542
2553
|
};
|
|
2543
2554
|
}
|
|
2544
|
-
}),
|
|
2555
|
+
}), il = { class: "h-full relative flex flex-col" }, rl = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, ml = /* @__PURE__ */ H({
|
|
2545
2556
|
__name: "SQL",
|
|
2546
2557
|
props: {
|
|
2547
2558
|
modelValue: {},
|
|
2548
2559
|
modelModifiers: {}
|
|
2549
2560
|
},
|
|
2550
2561
|
emits: ["update:modelValue"],
|
|
2551
|
-
setup(
|
|
2552
|
-
const { t: o } = W(), e =
|
|
2562
|
+
setup(v) {
|
|
2563
|
+
const { t: o } = W(), e = Q(v, "modelValue"), n = B("setting"), w = [
|
|
2553
2564
|
{
|
|
2554
2565
|
label: o("report.integration.setting"),
|
|
2555
2566
|
value: "setting",
|
|
@@ -2560,12 +2571,12 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2560
2571
|
value: "preview",
|
|
2561
2572
|
icon: "table"
|
|
2562
2573
|
}
|
|
2563
|
-
], x = pe(), _ =
|
|
2574
|
+
], x = pe(), _ = z(() => {
|
|
2564
2575
|
switch (n.value) {
|
|
2565
2576
|
case "preview":
|
|
2566
|
-
return
|
|
2577
|
+
return sl;
|
|
2567
2578
|
case "setting":
|
|
2568
|
-
return
|
|
2579
|
+
return tl;
|
|
2569
2580
|
default:
|
|
2570
2581
|
return null;
|
|
2571
2582
|
}
|
|
@@ -2573,7 +2584,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2573
2584
|
return (S, h) => {
|
|
2574
2585
|
var k;
|
|
2575
2586
|
const r = V("FmPageHead"), p = V("FmTabs");
|
|
2576
|
-
return d(), D("div",
|
|
2587
|
+
return d(), D("div", il, [
|
|
2577
2588
|
i(r, {
|
|
2578
2589
|
title: ((k = e.value) == null ? void 0 : k.name) || "SQL",
|
|
2579
2590
|
"back-button": !0,
|
|
@@ -2587,37 +2598,37 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2587
2598
|
}, 8, ["title", "onClick:back"]),
|
|
2588
2599
|
i(p, {
|
|
2589
2600
|
"model-value": n.value,
|
|
2590
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
2601
|
+
"onUpdate:modelValue": h[0] || (h[0] = (g) => n.value = g),
|
|
2591
2602
|
items: w
|
|
2592
2603
|
}, null, 8, ["model-value"]),
|
|
2593
|
-
t("div",
|
|
2604
|
+
t("div", rl, [
|
|
2594
2605
|
(d(), A(be(_.value), {
|
|
2595
2606
|
modelValue: e.value,
|
|
2596
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
2607
|
+
"onUpdate:modelValue": h[1] || (h[1] = (g) => e.value = g)
|
|
2597
2608
|
}, null, 8, ["modelValue"]))
|
|
2598
2609
|
])
|
|
2599
2610
|
]);
|
|
2600
2611
|
};
|
|
2601
2612
|
}
|
|
2602
|
-
}),
|
|
2613
|
+
}), cl = {
|
|
2603
2614
|
key: 0,
|
|
2604
2615
|
class: "flex flex-col h-full"
|
|
2605
|
-
},
|
|
2616
|
+
}, dl = { class: "flex flex-col gap-16 pb-[24px]" }, pl = { class: "flex flex-row justify-between items-center gap-2" }, ul = { class: "fm-typo-en-title-sm-800" }, fl = { class: "flex flex-row gap-2 items-center" }, vl = { class: "flex flex-row gap-2 items-center" }, gl = { class: "relative group cursor-pointer" }, yl = { 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" }, xl = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, _l = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, bl = { class: "flex flex-row items-center max-w-[100%]" }, wl = { class: "w-[25%]" }, hl = { class: "flex-grow" }, kl = { class: "flex flex-col gap-24 pt-[24px] overflow-y-auto overflow-x-hidden" }, Vl = { class: "flex flex-row items-center justify-between" }, $l = { class: "w-[25%]" }, Sl = { class: "flex-grow" }, Cl = { class: "flex flex-row items-center justify-between" }, Fl = { class: "w-[25%]" }, Dl = { class: "flex-grow" }, Ul = { class: "flex flex-col gap-16" }, Tl = { class: "fm-typo-en-title-sm-800" }, Il = { class: "flex flex-row items-center max-w-[100%]" }, Ml = { class: "w-[25%]" }, Kl = { class: "flex-grow" }, Al = { class: "flex flex-row items-center max-w-[100%]" }, Pl = { class: "w-[25%]" }, Nl = { class: "flex flex-row items-center max-w-[100%]" }, Rl = { class: "w-[25%]" }, Ol = {
|
|
2606
2617
|
key: 0,
|
|
2607
2618
|
class: "flex flex-row items-center max-w-[100%]"
|
|
2608
|
-
},
|
|
2619
|
+
}, Bl = { class: "flex flex-col gap-16" }, jl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ll = { key: 1 }, El = { class: "flex flex-row items-center gap-x-16" }, zl = { class: "fm-typo-en-title-sm-800" }, Yl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, ql = { class: "flex flex-row items-center gap-x-16" }, Hl = { class: "fm-typo-en-title-sm-800" }, Xl = { class: "xs:grid-cols-1 grid-cols-2 grid gap-16" }, Ql = { class: "flex flex-row items-center gap-x-16" }, Gl = { class: "fm-typo-en-title-sm-800" }, Jl = { class: "flex flex-row items-center justify-between" }, Wl = { class: "flex-grow" }, Zl = {
|
|
2609
2620
|
key: 0,
|
|
2610
2621
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
2611
|
-
},
|
|
2622
|
+
}, en = {
|
|
2612
2623
|
key: 1,
|
|
2613
2624
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
2614
|
-
},
|
|
2625
|
+
}, tn = {
|
|
2615
2626
|
key: 3,
|
|
2616
2627
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
2617
|
-
},
|
|
2628
|
+
}, on = {
|
|
2618
2629
|
key: 0,
|
|
2619
2630
|
class: "flex flex-row items-center"
|
|
2620
|
-
},
|
|
2631
|
+
}, an = /* @__PURE__ */ H({
|
|
2621
2632
|
__name: "Setting",
|
|
2622
2633
|
props: /* @__PURE__ */ _e({
|
|
2623
2634
|
retrievedMethods: {
|
|
@@ -2633,14 +2644,14 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2633
2644
|
modelModifiers: {}
|
|
2634
2645
|
}),
|
|
2635
2646
|
emits: ["update:modelValue"],
|
|
2636
|
-
setup(
|
|
2637
|
-
const { t: o } = W(), e =
|
|
2647
|
+
setup(v) {
|
|
2648
|
+
const { t: o } = W(), e = Q(v, "modelValue"), n = fe(), w = we(), x = pe(), { promptLoader: _ } = ke(), { promptMessage: S } = Fe(), { restaurants: h } = ue(), r = z(
|
|
2638
2649
|
() => h.map((C) => ({ label: C.name, value: C.id }))
|
|
2639
2650
|
);
|
|
2640
2651
|
function p(C) {
|
|
2641
2652
|
var l;
|
|
2642
|
-
!((l =
|
|
2643
|
-
const u =
|
|
2653
|
+
!((l = v.retrievedMethods) != null && l.data) || !Array.isArray(v.retrievedMethods.data) || C.forEach((a) => {
|
|
2654
|
+
const u = v.retrievedMethods.data.find((s) => s.value == a.id);
|
|
2644
2655
|
u && (a.cnId = u.cnId);
|
|
2645
2656
|
});
|
|
2646
2657
|
}
|
|
@@ -2656,7 +2667,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2656
2667
|
}
|
|
2657
2668
|
});
|
|
2658
2669
|
}
|
|
2659
|
-
async function
|
|
2670
|
+
async function g() {
|
|
2660
2671
|
await _(async () => {
|
|
2661
2672
|
var C, l, a;
|
|
2662
2673
|
try {
|
|
@@ -2666,7 +2677,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2666
2677
|
}
|
|
2667
2678
|
});
|
|
2668
2679
|
}
|
|
2669
|
-
function
|
|
2680
|
+
function y(C, l) {
|
|
2670
2681
|
var a, u;
|
|
2671
2682
|
(u = (a = e.value.platform) == null ? void 0 : a.mappings) != null && u[C] && (e.value.platform.mappings[C] = e.value.platform.mappings[C].filter(
|
|
2672
2683
|
(s, M) => M !== l
|
|
@@ -2749,21 +2760,21 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2749
2760
|
});
|
|
2750
2761
|
}
|
|
2751
2762
|
return (C, l) => {
|
|
2752
|
-
var J, O, j,
|
|
2763
|
+
var J, O, j, E, Z, ee, te, oe, ae, le, ne, se, ie, U;
|
|
2753
2764
|
const a = V("FmIcon"), u = V("FmButton"), s = V("FmSelect"), M = V("FmMenuDivider"), N = V("FmTextField"), G = V("FmCircularProgress"), Y = V("FmCheckbox");
|
|
2754
|
-
return (O = (J = e.value) == null ? void 0 : J.platform) != null && O.mappings ? (d(), D("div",
|
|
2755
|
-
t("div",
|
|
2756
|
-
t("div",
|
|
2757
|
-
t("div",
|
|
2758
|
-
t("div",
|
|
2759
|
-
t("div",
|
|
2760
|
-
t("div",
|
|
2765
|
+
return (O = (J = e.value) == null ? void 0 : J.platform) != null && O.mappings ? (d(), D("div", cl, [
|
|
2766
|
+
t("div", dl, [
|
|
2767
|
+
t("div", pl, [
|
|
2768
|
+
t("div", ul, T(f(o)("report.integration.connect")), 1),
|
|
2769
|
+
t("div", fl, [
|
|
2770
|
+
t("div", vl, [
|
|
2771
|
+
t("div", gl, [
|
|
2761
2772
|
i(a, {
|
|
2762
2773
|
name: "refresh",
|
|
2763
2774
|
class: "p-2 bg-gray-100 rounded-full",
|
|
2764
2775
|
onClick: b
|
|
2765
2776
|
}),
|
|
2766
|
-
t("span",
|
|
2777
|
+
t("span", yl, T(f(o)("report.integration.biztory.refreshTooltip")), 1)
|
|
2767
2778
|
]),
|
|
2768
2779
|
i(u, {
|
|
2769
2780
|
variant: "tertiary",
|
|
@@ -2773,17 +2784,17 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2773
2784
|
i(u, {
|
|
2774
2785
|
variant: "primary",
|
|
2775
2786
|
label: f(o)("report.common.update"),
|
|
2776
|
-
onClick:
|
|
2787
|
+
onClick: g
|
|
2777
2788
|
}, null, 8, ["label"])
|
|
2778
2789
|
])
|
|
2779
2790
|
])
|
|
2780
2791
|
])
|
|
2781
2792
|
]),
|
|
2782
|
-
t("div",
|
|
2783
|
-
t("div",
|
|
2784
|
-
t("div",
|
|
2785
|
-
t("div",
|
|
2786
|
-
t("div",
|
|
2793
|
+
t("div", xl, [
|
|
2794
|
+
t("div", _l, T(f(o)("report.integration.biztory.authenticate")), 1),
|
|
2795
|
+
t("div", bl, [
|
|
2796
|
+
t("div", wl, "Biztory " + T(f(o)("report.integration.biztory.version")), 1),
|
|
2797
|
+
t("div", hl, [
|
|
2787
2798
|
i(s, {
|
|
2788
2799
|
modelValue: e.value.platform.mappings.version,
|
|
2789
2800
|
"onUpdate:modelValue": l[0] || (l[0] = ($) => e.value.platform.mappings.version = $),
|
|
@@ -2796,10 +2807,10 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2796
2807
|
])
|
|
2797
2808
|
]),
|
|
2798
2809
|
i(M, { style: { margin: 0 } }),
|
|
2799
|
-
t("div",
|
|
2800
|
-
t("div",
|
|
2801
|
-
t("div",
|
|
2802
|
-
t("div",
|
|
2810
|
+
t("div", kl, [
|
|
2811
|
+
t("div", Vl, [
|
|
2812
|
+
t("div", $l, T(f(o)("report.integration.biztory.subdomain")), 1),
|
|
2813
|
+
t("div", Sl, [
|
|
2803
2814
|
i(N, {
|
|
2804
2815
|
modelValue: e.value.platform.subdomain,
|
|
2805
2816
|
"onUpdate:modelValue": l[1] || (l[1] = ($) => e.value.platform.subdomain = $),
|
|
@@ -2807,9 +2818,9 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2807
2818
|
}, null, 8, ["modelValue"])
|
|
2808
2819
|
])
|
|
2809
2820
|
]),
|
|
2810
|
-
t("div",
|
|
2811
|
-
t("div",
|
|
2812
|
-
t("div",
|
|
2821
|
+
t("div", Cl, [
|
|
2822
|
+
t("div", Fl, T(f(o)("report.integration.biztory.apiKey")), 1),
|
|
2823
|
+
t("div", Dl, [
|
|
2813
2824
|
i(N, {
|
|
2814
2825
|
modelValue: e.value.platform.api_key,
|
|
2815
2826
|
"onUpdate:modelValue": l[2] || (l[2] = ($) => e.value.platform.api_key = $),
|
|
@@ -2817,19 +2828,19 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2817
2828
|
}, null, 8, ["modelValue"])
|
|
2818
2829
|
])
|
|
2819
2830
|
]),
|
|
2820
|
-
t("div",
|
|
2821
|
-
t("div",
|
|
2822
|
-
t("div",
|
|
2823
|
-
t("div",
|
|
2824
|
-
t("div",
|
|
2831
|
+
t("div", Ul, [
|
|
2832
|
+
t("div", Tl, T(f(o)("report.integration.biztory.general")), 1),
|
|
2833
|
+
t("div", Il, [
|
|
2834
|
+
t("div", Ml, T(f(o)("report.common.name")), 1),
|
|
2835
|
+
t("div", Kl, [
|
|
2825
2836
|
i(N, {
|
|
2826
2837
|
modelValue: e.value.name,
|
|
2827
2838
|
"onUpdate:modelValue": l[3] || (l[3] = ($) => e.value.name = $)
|
|
2828
2839
|
}, null, 8, ["modelValue"])
|
|
2829
2840
|
])
|
|
2830
2841
|
]),
|
|
2831
|
-
t("div",
|
|
2832
|
-
t("div",
|
|
2842
|
+
t("div", Al, [
|
|
2843
|
+
t("div", Pl, T(f(o)("report.common.location")), 1),
|
|
2833
2844
|
i(s, {
|
|
2834
2845
|
modelValue: e.value.platform.locationIds,
|
|
2835
2846
|
"onUpdate:modelValue": l[4] || (l[4] = ($) => e.value.platform.locationIds = $),
|
|
@@ -2839,8 +2850,8 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2839
2850
|
class: "flex-grow"
|
|
2840
2851
|
}, null, 8, ["modelValue", "items", "placeholder"])
|
|
2841
2852
|
]),
|
|
2842
|
-
t("div",
|
|
2843
|
-
t("div",
|
|
2853
|
+
t("div", Nl, [
|
|
2854
|
+
t("div", Rl, T(f(o)("report.integration.biztory.grouping")), 1),
|
|
2844
2855
|
i(s, {
|
|
2845
2856
|
modelValue: e.value.platform.grouping,
|
|
2846
2857
|
"onUpdate:modelValue": l[5] || (l[5] = ($) => e.value.platform.grouping = $),
|
|
@@ -2851,7 +2862,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2851
2862
|
disabled: ""
|
|
2852
2863
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2853
2864
|
]),
|
|
2854
|
-
e.value.platform.mappings.version == "v1" ? (d(), D("div",
|
|
2865
|
+
e.value.platform.mappings.version == "v1" ? (d(), D("div", Ol, [
|
|
2855
2866
|
l[13] || (l[13] = t("div", { class: "w-[33%]" }, "Payee ID", -1)),
|
|
2856
2867
|
e.value.platform.mappings.version == "v1" ? (d(), A(P, {
|
|
2857
2868
|
key: 0,
|
|
@@ -2864,13 +2875,13 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2864
2875
|
}, null, 8, ["modelValue"])) : R("", !0)
|
|
2865
2876
|
])) : R("", !0)
|
|
2866
2877
|
]),
|
|
2867
|
-
t("div",
|
|
2868
|
-
t("div",
|
|
2869
|
-
!
|
|
2878
|
+
t("div", Bl, [
|
|
2879
|
+
t("div", jl, [
|
|
2880
|
+
!v.retrievedCustomers.isLoaded && e.value.platform.mappings.version == "v2" ? (d(), A(G, {
|
|
2870
2881
|
key: 0,
|
|
2871
2882
|
size: "xl"
|
|
2872
2883
|
})) : R("", !0),
|
|
2873
|
-
|
|
2884
|
+
v.retrievedCustomers.isLoaded && v.retrievedCustomers.data && ((j = v.retrievedCustomers.data) == null ? void 0 : j.length) != 0 ? (d(), D("div", Ll, [
|
|
2874
2885
|
e.value.platform.mappings.version == "v2" ? (d(), A(Me, {
|
|
2875
2886
|
key: 0,
|
|
2876
2887
|
modelValue: e.value.platform.mappings.payeeId,
|
|
@@ -2880,7 +2891,7 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2880
2891
|
customer: {
|
|
2881
2892
|
placeholder: "Select payee",
|
|
2882
2893
|
editable: !0,
|
|
2883
|
-
dropdownOptions: ((
|
|
2894
|
+
dropdownOptions: ((E = v.retrievedCustomers) == null ? void 0 : E.data) ?? []
|
|
2884
2895
|
}
|
|
2885
2896
|
},
|
|
2886
2897
|
removable: !1,
|
|
@@ -2895,16 +2906,16 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2895
2906
|
label: "upload",
|
|
2896
2907
|
"last-upload-date": (Z = e.value.platform) == null ? void 0 : Z.lastUploadDate
|
|
2897
2908
|
}, null, 8, ["modelValue", "last-upload-date"]),
|
|
2898
|
-
t("div",
|
|
2899
|
-
t("div",
|
|
2909
|
+
t("div", El, [
|
|
2910
|
+
t("div", zl, T(f(o)("report.integration.biztory.items")), 1),
|
|
2900
2911
|
i(u, {
|
|
2901
2912
|
variant: "primary",
|
|
2902
2913
|
icon: "add",
|
|
2903
2914
|
onClick: l[9] || (l[9] = () => c("items"))
|
|
2904
2915
|
})
|
|
2905
2916
|
]),
|
|
2906
|
-
t("div",
|
|
2907
|
-
(d(!0), D(L, null,
|
|
2917
|
+
t("div", Yl, [
|
|
2918
|
+
(d(!0), D(L, null, X((oe = (te = (ee = e.value) == null ? void 0 : ee.platform) == null ? void 0 : te.mappings) == null ? void 0 : oe.items, ($, F) => (d(), A(P, {
|
|
2908
2919
|
key: `item-${F}`,
|
|
2909
2920
|
modelValue: e.value.platform.mappings.items[F],
|
|
2910
2921
|
"onUpdate:modelValue": (K) => e.value.platform.mappings.items[F] = K,
|
|
@@ -2913,19 +2924,19 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2913
2924
|
code: { placeholder: "Account code", editable: !0 }
|
|
2914
2925
|
},
|
|
2915
2926
|
removable: !0,
|
|
2916
|
-
onRemove: () =>
|
|
2927
|
+
onRemove: () => y("items", F)
|
|
2917
2928
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
2918
2929
|
]),
|
|
2919
|
-
t("div",
|
|
2920
|
-
t("div",
|
|
2930
|
+
t("div", ql, [
|
|
2931
|
+
t("div", Hl, T(f(o)("report.integration.biztory.taxes")), 1),
|
|
2921
2932
|
i(u, {
|
|
2922
2933
|
variant: "primary",
|
|
2923
2934
|
icon: "add",
|
|
2924
2935
|
onClick: l[10] || (l[10] = () => c("taxes"))
|
|
2925
2936
|
})
|
|
2926
2937
|
]),
|
|
2927
|
-
t("div",
|
|
2928
|
-
(d(!0), D(L, null,
|
|
2938
|
+
t("div", Xl, [
|
|
2939
|
+
(d(!0), D(L, null, X((ne = (le = (ae = e.value) == null ? void 0 : ae.platform) == null ? void 0 : le.mappings) == null ? void 0 : ne.taxes, ($, F) => (d(), A(P, {
|
|
2929
2940
|
key: `tax-${F}`,
|
|
2930
2941
|
modelValue: e.value.platform.mappings.taxes[F],
|
|
2931
2942
|
"onUpdate:modelValue": (K) => e.value.platform.mappings.taxes[F] = K,
|
|
@@ -2934,20 +2945,20 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2934
2945
|
account: { placeholder: "Account code", editable: !0 }
|
|
2935
2946
|
},
|
|
2936
2947
|
removable: !0,
|
|
2937
|
-
onRemove: () =>
|
|
2948
|
+
onRemove: () => y("taxes", F)
|
|
2938
2949
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
2939
2950
|
]),
|
|
2940
|
-
t("div",
|
|
2941
|
-
t("div",
|
|
2951
|
+
t("div", Ql, [
|
|
2952
|
+
t("div", Gl, T(f(o)("report.integration.biztory.payments")), 1),
|
|
2942
2953
|
i(u, {
|
|
2943
2954
|
variant: "primary",
|
|
2944
2955
|
icon: "add",
|
|
2945
2956
|
onClick: l[11] || (l[11] = () => c("paymentMethods"))
|
|
2946
2957
|
})
|
|
2947
2958
|
]),
|
|
2948
|
-
t("div",
|
|
2959
|
+
t("div", Jl, [
|
|
2949
2960
|
l[14] || (l[14] = t("div", { class: "w-[25%]" }, "Payment Term", -1)),
|
|
2950
|
-
t("div",
|
|
2961
|
+
t("div", Wl, [
|
|
2951
2962
|
i(P, {
|
|
2952
2963
|
modelValue: e.value.platform.mappings.paymentTerm,
|
|
2953
2964
|
"onUpdate:modelValue": l[12] || (l[12] = ($) => e.value.platform.mappings.paymentTerm = $),
|
|
@@ -2959,20 +2970,20 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2959
2970
|
}, null, 8, ["modelValue"])
|
|
2960
2971
|
])
|
|
2961
2972
|
]),
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2973
|
+
v.retrievedMethods.isError ? R("", !0) : (d(), D("div", Zl, T(f(o)("report.integration.biztory.paymentTerm")), 1)),
|
|
2974
|
+
v.retrievedMethods.isLoaded && v.retrievedMethods.data && v.retrievedMethods.data.length == 0 && !v.retrievedMethods.isError ? (d(), D("span", en, T(f(o)("report.integration.biztory.noPaymentMethods")), 1)) : R("", !0),
|
|
2975
|
+
v.retrievedMethods.isLoaded ? R("", !0) : (d(), A(G, {
|
|
2965
2976
|
key: 2,
|
|
2966
2977
|
size: "xl"
|
|
2967
2978
|
})),
|
|
2968
|
-
|
|
2969
|
-
(d(!0), D(L, null,
|
|
2979
|
+
v.retrievedMethods.isError ? (d(), D("span", tn, T(f(o)("report.integration.biztory.error")), 1)) : R("", !0),
|
|
2980
|
+
(d(!0), D(L, null, X((U = (ie = (se = e.value) == null ? void 0 : se.platform) == null ? void 0 : ie.mappings) == null ? void 0 : U.paymentMethods, ($, F) => {
|
|
2970
2981
|
var K;
|
|
2971
2982
|
return d(), D("div", {
|
|
2972
2983
|
key: `payment-${F}`,
|
|
2973
2984
|
class: "grid-cols-1 grid gap-x-16"
|
|
2974
2985
|
}, [
|
|
2975
|
-
|
|
2986
|
+
v.retrievedMethods.isLoaded && v.retrievedMethods.data && ((K = v.retrievedMethods.data) == null ? void 0 : K.length) != 0 ? (d(), D("div", on, [
|
|
2976
2987
|
i(Y, {
|
|
2977
2988
|
"model-value": !e.value.platform.mappings.paymentMethods[F].skip,
|
|
2978
2989
|
value: "",
|
|
@@ -2992,11 +3003,11 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2992
3003
|
id: {
|
|
2993
3004
|
placeholder: "Select mapping",
|
|
2994
3005
|
editable: !0,
|
|
2995
|
-
dropdownOptions:
|
|
3006
|
+
dropdownOptions: v.retrievedMethods.data
|
|
2996
3007
|
}
|
|
2997
3008
|
},
|
|
2998
3009
|
removable: !0,
|
|
2999
|
-
onRemove: () =>
|
|
3010
|
+
onRemove: () => y("paymentMethods", F)
|
|
3000
3011
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onRemove"])
|
|
3001
3012
|
])) : R("", !0)
|
|
3002
3013
|
]);
|
|
@@ -3007,9 +3018,9 @@ const Ze = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3007
3018
|
};
|
|
3008
3019
|
}
|
|
3009
3020
|
});
|
|
3010
|
-
function
|
|
3011
|
-
return
|
|
3012
|
-
var x, _, S, h, r, p, k,
|
|
3021
|
+
function ln(v) {
|
|
3022
|
+
return v.reduce((o, e) => {
|
|
3023
|
+
var x, _, S, h, r, p, k, g, y, c, m, b, C, l, a, u, s, M, N, G, Y, J;
|
|
3013
3024
|
const { invoice: n } = e, w = o.length;
|
|
3014
3025
|
o[w] = {
|
|
3015
3026
|
invoice_date: n.invoice_date,
|
|
@@ -3024,20 +3035,20 @@ function tn(y) {
|
|
|
3024
3035
|
item_tax: (h = n.items[0]) == null ? void 0 : h.total_tax,
|
|
3025
3036
|
item_tax_label: ((r = n.items[0]) == null ? void 0 : r.tax_label) || "-",
|
|
3026
3037
|
payment_amount: ((k = (p = n.transactions) == null ? void 0 : p[0]) == null ? void 0 : k.amount) || void 0,
|
|
3027
|
-
payment_method: ((
|
|
3038
|
+
payment_method: ((y = (g = n.transactions) == null ? void 0 : g[0]) == null ? void 0 : y.payment_method) || "-",
|
|
3028
3039
|
payment_term: ((c = n == null ? void 0 : n.payment_term) == null ? void 0 : c.name) || ""
|
|
3029
3040
|
};
|
|
3030
3041
|
for (let O = 1; O < Math.max(((m = n.items) == null ? void 0 : m.length) || 0, ((b = n.transactions) == null ? void 0 : b.length) || 0); O++) {
|
|
3031
3042
|
const j = w + O;
|
|
3032
3043
|
o[j] || (o[j] = {});
|
|
3033
|
-
const
|
|
3034
|
-
|
|
3044
|
+
const E = n.items[O];
|
|
3045
|
+
E ? o[j] = {
|
|
3035
3046
|
...o[j],
|
|
3036
|
-
item_code:
|
|
3037
|
-
item_desc:
|
|
3038
|
-
item_price:
|
|
3039
|
-
item_tax:
|
|
3040
|
-
item_tax_label:
|
|
3047
|
+
item_code: E.code,
|
|
3048
|
+
item_desc: E.description,
|
|
3049
|
+
item_price: E.price,
|
|
3050
|
+
item_tax: E.total_tax,
|
|
3051
|
+
item_tax_label: E.tax_label || "-",
|
|
3041
3052
|
payment_amount: ((l = (C = n.transactions) == null ? void 0 : C[O]) == null ? void 0 : l.amount) || void 0,
|
|
3042
3053
|
payment_method: ((u = (a = n.transactions) == null ? void 0 : a[O]) == null ? void 0 : u.payment_method) || "-",
|
|
3043
3054
|
payment_term: ((s = n == null ? void 0 : n.payment_term) == null ? void 0 : s.name) || ""
|
|
@@ -3050,7 +3061,7 @@ function tn(y) {
|
|
|
3050
3061
|
return o;
|
|
3051
3062
|
}, []);
|
|
3052
3063
|
}
|
|
3053
|
-
const
|
|
3064
|
+
const nn = [
|
|
3054
3065
|
{
|
|
3055
3066
|
accessorKey: "invoice_date",
|
|
3056
3067
|
header: () => I("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
|
|
@@ -3122,9 +3133,9 @@ const on = [
|
|
|
3122
3133
|
enableSorting: !1
|
|
3123
3134
|
}
|
|
3124
3135
|
];
|
|
3125
|
-
function
|
|
3126
|
-
return
|
|
3127
|
-
var S, h, r, p, k,
|
|
3136
|
+
function sn(v) {
|
|
3137
|
+
return v.reduce((o, e) => {
|
|
3138
|
+
var S, h, r, p, k, g, y, c, m, b, C;
|
|
3128
3139
|
const { invoice: n, payments: w } = e, x = o.length;
|
|
3129
3140
|
o[x] = {
|
|
3130
3141
|
invoice_date: n.invoice_date,
|
|
@@ -3134,8 +3145,8 @@ function an(y) {
|
|
|
3134
3145
|
item_description: (h = n.items[0]) == null ? void 0 : h.description,
|
|
3135
3146
|
item_price: (r = n.items[0]) == null ? void 0 : r.price,
|
|
3136
3147
|
item_tax_label: ((p = n.items[0]) == null ? void 0 : p.tax_label) == "?" ? "" : ((k = n.items[0]) == null ? void 0 : k.tax_label) ?? "",
|
|
3137
|
-
item_tax_amount: ((
|
|
3138
|
-
service_charge_amount: ((
|
|
3148
|
+
item_tax_amount: ((g = n.items[0]) == null ? void 0 : g.total_tax) ?? "",
|
|
3149
|
+
service_charge_amount: ((y = n.service_charges[0]) == null ? void 0 : y.total) ?? "",
|
|
3139
3150
|
rounding: n.rounding ?? 0,
|
|
3140
3151
|
payment_term_id: n.payment_term.name ?? "",
|
|
3141
3152
|
payment_term_amount: ((c = n.terms[x]) == null ? void 0 : c.amount) ?? "",
|
|
@@ -3169,7 +3180,7 @@ function an(y) {
|
|
|
3169
3180
|
return o;
|
|
3170
3181
|
}, []);
|
|
3171
3182
|
}
|
|
3172
|
-
const
|
|
3183
|
+
const rn = [
|
|
3173
3184
|
{
|
|
3174
3185
|
accessorKey: "invoice_date",
|
|
3175
3186
|
header: () => I("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
|
|
@@ -3235,18 +3246,18 @@ const ln = [
|
|
|
3235
3246
|
header: () => I("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Payment Method (ID)"),
|
|
3236
3247
|
enableSorting: !1
|
|
3237
3248
|
}
|
|
3238
|
-
],
|
|
3249
|
+
], mn = { class: "h-full flex flex-col gap-16" }, cn = { class: "flex flex-row gap-2 justify-between items-center" }, dn = {
|
|
3239
3250
|
key: 0,
|
|
3240
3251
|
class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
|
|
3241
|
-
},
|
|
3252
|
+
}, pn = /* @__PURE__ */ H({
|
|
3242
3253
|
__name: "Preview",
|
|
3243
3254
|
props: {
|
|
3244
3255
|
modelValue: { required: !0 },
|
|
3245
3256
|
modelModifiers: {}
|
|
3246
3257
|
},
|
|
3247
3258
|
emits: ["update:modelValue"],
|
|
3248
|
-
setup(
|
|
3249
|
-
const o =
|
|
3259
|
+
setup(v) {
|
|
3260
|
+
const o = Q(v, "modelValue"), e = B(!1), n = fe(), { dateRange: w } = De(ue()), x = B([]);
|
|
3250
3261
|
ge(
|
|
3251
3262
|
() => w.value,
|
|
3252
3263
|
async () => {
|
|
@@ -3263,20 +3274,20 @@ const ln = [
|
|
|
3263
3274
|
immediate: !0
|
|
3264
3275
|
}
|
|
3265
3276
|
);
|
|
3266
|
-
const _ =
|
|
3277
|
+
const _ = z(() => {
|
|
3267
3278
|
switch (o.value.platform.mappings.version) {
|
|
3268
3279
|
case "v1":
|
|
3269
|
-
return
|
|
3280
|
+
return ln(x.value);
|
|
3270
3281
|
case "v2":
|
|
3271
|
-
return
|
|
3282
|
+
return sn(x.value);
|
|
3272
3283
|
}
|
|
3273
3284
|
return [];
|
|
3274
|
-
}), S =
|
|
3285
|
+
}), S = z(() => {
|
|
3275
3286
|
switch (o.value.platform.mappings.version) {
|
|
3276
3287
|
case "v1":
|
|
3277
|
-
return
|
|
3288
|
+
return nn;
|
|
3278
3289
|
case "v2":
|
|
3279
|
-
return
|
|
3290
|
+
return rn;
|
|
3280
3291
|
}
|
|
3281
3292
|
return [];
|
|
3282
3293
|
});
|
|
@@ -3290,9 +3301,9 @@ const ln = [
|
|
|
3290
3301
|
}
|
|
3291
3302
|
}
|
|
3292
3303
|
return (r, p) => {
|
|
3293
|
-
const k = V("FmButton"),
|
|
3294
|
-
return d(), D("div",
|
|
3295
|
-
t("div",
|
|
3304
|
+
const k = V("FmButton"), g = V("FmCircularProgress"), y = V("FmTable");
|
|
3305
|
+
return d(), D("div", mn, [
|
|
3306
|
+
t("div", cn, [
|
|
3296
3307
|
i(Ue, {
|
|
3297
3308
|
"date-range": f(w),
|
|
3298
3309
|
"onUpdate:dateRange": p[0] || (p[0] = (c) => he(w) ? w.value = c : null),
|
|
@@ -3305,10 +3316,10 @@ const ln = [
|
|
|
3305
3316
|
onClick: h
|
|
3306
3317
|
}, null, 8, ["loading"])
|
|
3307
3318
|
]),
|
|
3308
|
-
e.value ? (d(), D("div",
|
|
3309
|
-
i(
|
|
3319
|
+
e.value ? (d(), D("div", dn, [
|
|
3320
|
+
i(g, { size: "xl" }),
|
|
3310
3321
|
p[1] || (p[1] = t("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Loading data... ", -1))
|
|
3311
|
-
])) : (d(), A(
|
|
3322
|
+
])) : (d(), A(y, {
|
|
3312
3323
|
key: 1,
|
|
3313
3324
|
class: "flex overflow-scroll",
|
|
3314
3325
|
"row-data": _.value,
|
|
@@ -3317,15 +3328,15 @@ const ln = [
|
|
|
3317
3328
|
]);
|
|
3318
3329
|
};
|
|
3319
3330
|
}
|
|
3320
|
-
}),
|
|
3331
|
+
}), un = { class: "h-full relative flex flex-col" }, fn = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, vn = /* @__PURE__ */ H({
|
|
3321
3332
|
__name: "Biztory",
|
|
3322
3333
|
props: {
|
|
3323
3334
|
modelValue: { required: !0 },
|
|
3324
3335
|
modelModifiers: {}
|
|
3325
3336
|
},
|
|
3326
3337
|
emits: ["update:modelValue"],
|
|
3327
|
-
setup(
|
|
3328
|
-
const { t: o } = W(), e =
|
|
3338
|
+
setup(v) {
|
|
3339
|
+
const { t: o } = W(), e = Q(v, "modelValue"), n = B("setting"), w = [
|
|
3329
3340
|
{
|
|
3330
3341
|
label: o("report.integration.setting"),
|
|
3331
3342
|
value: "setting",
|
|
@@ -3336,15 +3347,15 @@ const ln = [
|
|
|
3336
3347
|
value: "preview",
|
|
3337
3348
|
icon: "table"
|
|
3338
3349
|
}
|
|
3339
|
-
], x = pe(), _ =
|
|
3350
|
+
], x = pe(), _ = z(() => {
|
|
3340
3351
|
switch (n.value) {
|
|
3341
3352
|
case "preview":
|
|
3342
3353
|
return {
|
|
3343
|
-
component:
|
|
3354
|
+
component: pn
|
|
3344
3355
|
};
|
|
3345
3356
|
case "setting":
|
|
3346
3357
|
return {
|
|
3347
|
-
component:
|
|
3358
|
+
component: an,
|
|
3348
3359
|
props: {
|
|
3349
3360
|
retrievedMethods: S.value,
|
|
3350
3361
|
retrievedCustomers: h.value
|
|
@@ -3357,7 +3368,7 @@ const ln = [
|
|
|
3357
3368
|
label: m.length > 2 ? `ID:${b[m[2]]} [${b[m[0]]}] ${b[m[1]]}` : `[${b[m[0]]}] ${b[m[1]]}`,
|
|
3358
3369
|
value: b.id,
|
|
3359
3370
|
cnId: b.cnId ? b.cnId : null
|
|
3360
|
-
})), p = (c) => r(c, ["wallet", "name"]), k = (c) => r(c, ["id", "name"]),
|
|
3371
|
+
})), p = (c) => r(c, ["wallet", "name"]), k = (c) => r(c, ["id", "name"]), g = async (c, m, b, C) => {
|
|
3361
3372
|
try {
|
|
3362
3373
|
const l = await c(e.value._id);
|
|
3363
3374
|
b.value.data = m(l);
|
|
@@ -3366,27 +3377,27 @@ const ln = [
|
|
|
3366
3377
|
} finally {
|
|
3367
3378
|
b.value.isLoaded = !0;
|
|
3368
3379
|
}
|
|
3369
|
-
},
|
|
3380
|
+
}, y = async () => {
|
|
3370
3381
|
var c, m;
|
|
3371
|
-
(c = e.value.platform.mappings) != null && c.version && await
|
|
3382
|
+
(c = e.value.platform.mappings) != null && c.version && await g(
|
|
3372
3383
|
Ge,
|
|
3373
3384
|
p,
|
|
3374
3385
|
S,
|
|
3375
3386
|
"Failed to fetch payment methods:"
|
|
3376
|
-
), ((m = e.value.platform.mappings) == null ? void 0 : m.version) == "v2" && await
|
|
3387
|
+
), ((m = e.value.platform.mappings) == null ? void 0 : m.version) == "v2" && await g(
|
|
3377
3388
|
Je,
|
|
3378
3389
|
k,
|
|
3379
3390
|
h,
|
|
3380
3391
|
"Failed to fetch customers:"
|
|
3381
3392
|
), S.value.isLoaded = !0, h.value.isLoaded = !0;
|
|
3382
3393
|
};
|
|
3383
|
-
return
|
|
3394
|
+
return Ee(y), ge(() => {
|
|
3384
3395
|
var c;
|
|
3385
3396
|
return (c = e.value.platform.mappings) == null ? void 0 : c.version;
|
|
3386
|
-
},
|
|
3397
|
+
}, y), (c, m) => {
|
|
3387
3398
|
var l, a, u;
|
|
3388
3399
|
const b = V("FmPageHead"), C = V("FmTabs");
|
|
3389
|
-
return d(), D("div",
|
|
3400
|
+
return d(), D("div", un, [
|
|
3390
3401
|
i(b, {
|
|
3391
3402
|
title: ((l = e.value) == null ? void 0 : l.name) || "Biztory",
|
|
3392
3403
|
"back-button": !0,
|
|
@@ -3403,7 +3414,7 @@ const ln = [
|
|
|
3403
3414
|
"onUpdate:modelValue": m[0] || (m[0] = (s) => n.value = s),
|
|
3404
3415
|
items: w
|
|
3405
3416
|
}, null, 8, ["model-value"]),
|
|
3406
|
-
t("div",
|
|
3417
|
+
t("div", fn, [
|
|
3407
3418
|
(d(), A(be((a = _.value) == null ? void 0 : a.component), Le({
|
|
3408
3419
|
modelValue: e.value,
|
|
3409
3420
|
"onUpdate:modelValue": m[1] || (m[1] = (s) => e.value = s)
|
|
@@ -3412,18 +3423,18 @@ const ln = [
|
|
|
3412
3423
|
]);
|
|
3413
3424
|
};
|
|
3414
3425
|
}
|
|
3415
|
-
}),
|
|
3426
|
+
}), gn = {
|
|
3416
3427
|
key: 0,
|
|
3417
3428
|
class: "flex flex-col h-full"
|
|
3418
|
-
},
|
|
3429
|
+
}, yn = { class: "flex flex-col gap-16 pb-[24px]" }, xn = { class: "flex flex-row justify-between items-center gap-2" }, _n = { class: "flex flex-row gap-2 items-center" }, bn = { class: "relative group cursor-pointer" }, wn = { 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" }, hn = { class: "flex flex-col gap-24 pt-[24px] overflow-scroll" }, kn = { class: "flex flex-col gap-16" }, Vn = { class: "fm-typo-en-title-sm-800" }, $n = { class: "flex flex-row items-center max-w-[100%]" }, Sn = { class: "w-[25%]" }, Cn = { class: "flex-grow" }, Fn = { class: "flex flex-row items-center max-w-[100%]" }, Dn = { class: "w-[25%]" }, Un = { class: "flex flex-row items-center gap-x-16" }, Tn = { class: "fm-typo-en-title-sm-800" }, In = { class: "grid-cols-1 grid gap-16" }, Mn = /* @__PURE__ */ H({
|
|
3419
3430
|
__name: "Setting",
|
|
3420
3431
|
props: {
|
|
3421
3432
|
modelValue: { required: !0 },
|
|
3422
3433
|
modelModifiers: {}
|
|
3423
3434
|
},
|
|
3424
3435
|
emits: ["update:modelValue"],
|
|
3425
|
-
setup(
|
|
3426
|
-
const { t: o } = W(), e =
|
|
3436
|
+
setup(v) {
|
|
3437
|
+
const { t: o } = W(), e = Q(v, "modelValue"), n = fe(), w = we(), x = pe(), { promptLoader: _ } = ke(), { promptMessage: S } = Fe(), { restaurants: h } = ue(), r = z(
|
|
3427
3438
|
() => h.map((m) => ({ label: m.name, value: m.id }))
|
|
3428
3439
|
);
|
|
3429
3440
|
async function p() {
|
|
@@ -3447,13 +3458,13 @@ const ln = [
|
|
|
3447
3458
|
}
|
|
3448
3459
|
});
|
|
3449
3460
|
}
|
|
3450
|
-
function
|
|
3461
|
+
function g(m, b) {
|
|
3451
3462
|
var C, l;
|
|
3452
3463
|
(l = (C = e.value.platform) == null ? void 0 : C.mappings) != null && l[m] && (e.value.platform.mappings[m] = e.value.platform.mappings[m].filter(
|
|
3453
3464
|
(a, u) => u !== b
|
|
3454
3465
|
));
|
|
3455
3466
|
}
|
|
3456
|
-
function
|
|
3467
|
+
function y(m) {
|
|
3457
3468
|
var b, C;
|
|
3458
3469
|
(C = (b = e.value.platform) == null ? void 0 : b.mappings) != null && C[m] && (e.value.platform.mappings[m] = [
|
|
3459
3470
|
...e.value.platform.mappings[m],
|
|
@@ -3477,18 +3488,18 @@ const ln = [
|
|
|
3477
3488
|
return (m, b) => {
|
|
3478
3489
|
var M, N, G, Y, J;
|
|
3479
3490
|
const C = V("FmIcon"), l = V("FmButton"), a = V("FmMenuDivider"), u = V("FmTextField"), s = V("FmSelect");
|
|
3480
|
-
return (N = (M = e.value) == null ? void 0 : M.platform) != null && N.mappings ? (d(), D("div",
|
|
3481
|
-
t("div",
|
|
3482
|
-
t("div",
|
|
3491
|
+
return (N = (M = e.value) == null ? void 0 : M.platform) != null && N.mappings ? (d(), D("div", gn, [
|
|
3492
|
+
t("div", yn, [
|
|
3493
|
+
t("div", xn, [
|
|
3483
3494
|
b[4] || (b[4] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
|
|
3484
|
-
t("div",
|
|
3485
|
-
t("div",
|
|
3495
|
+
t("div", _n, [
|
|
3496
|
+
t("div", bn, [
|
|
3486
3497
|
i(C, {
|
|
3487
3498
|
name: "refresh",
|
|
3488
3499
|
class: "p-2 bg-gray-100 rounded-full",
|
|
3489
3500
|
onClick: c
|
|
3490
3501
|
}),
|
|
3491
|
-
t("span",
|
|
3502
|
+
t("span", wn, T(f(o)("report.integration.iflexiHrms.refreshTooltip")), 1)
|
|
3492
3503
|
]),
|
|
3493
3504
|
i(l, {
|
|
3494
3505
|
variant: "tertiary",
|
|
@@ -3504,20 +3515,20 @@ const ln = [
|
|
|
3504
3515
|
])
|
|
3505
3516
|
]),
|
|
3506
3517
|
i(a, { style: { margin: 0 } }),
|
|
3507
|
-
t("div",
|
|
3508
|
-
t("div",
|
|
3509
|
-
t("div",
|
|
3510
|
-
t("div",
|
|
3511
|
-
t("div",
|
|
3512
|
-
t("div",
|
|
3518
|
+
t("div", hn, [
|
|
3519
|
+
t("div", kn, [
|
|
3520
|
+
t("div", Vn, T(f(o)("report.integration.iflexiHrms.general")), 1),
|
|
3521
|
+
t("div", $n, [
|
|
3522
|
+
t("div", Sn, T(f(o)("report.common.name")), 1),
|
|
3523
|
+
t("div", Cn, [
|
|
3513
3524
|
i(u, {
|
|
3514
3525
|
modelValue: e.value.name,
|
|
3515
3526
|
"onUpdate:modelValue": b[0] || (b[0] = (O) => e.value.name = O)
|
|
3516
3527
|
}, null, 8, ["modelValue"])
|
|
3517
3528
|
])
|
|
3518
3529
|
]),
|
|
3519
|
-
t("div",
|
|
3520
|
-
t("div",
|
|
3530
|
+
t("div", Fn, [
|
|
3531
|
+
t("div", Dn, T(f(o)("report.integration.location")), 1),
|
|
3521
3532
|
i(s, {
|
|
3522
3533
|
"model-value": e.value.platform.locationIds[0],
|
|
3523
3534
|
multiselect: !1,
|
|
@@ -3533,43 +3544,43 @@ const ln = [
|
|
|
3533
3544
|
"onUpdate:modelValue": b[2] || (b[2] = (O) => e.value.platform = O),
|
|
3534
3545
|
label: f(o)("report.input.email")
|
|
3535
3546
|
}, null, 8, ["modelValue", "label"]),
|
|
3536
|
-
t("div",
|
|
3537
|
-
t("div",
|
|
3547
|
+
t("div", Un, [
|
|
3548
|
+
t("div", Tn, T(f(o)("report.integration.iflexiHrms.employee")), 1),
|
|
3538
3549
|
i(l, {
|
|
3539
3550
|
variant: "primary",
|
|
3540
3551
|
icon: "add",
|
|
3541
|
-
onClick: b[3] || (b[3] = () =>
|
|
3552
|
+
onClick: b[3] || (b[3] = () => y("employees"))
|
|
3542
3553
|
})
|
|
3543
3554
|
]),
|
|
3544
|
-
t("div",
|
|
3545
|
-
(d(!0), D(L, null,
|
|
3555
|
+
t("div", In, [
|
|
3556
|
+
(d(!0), D(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) => (d(), A(P, {
|
|
3546
3557
|
key: `employee-${j}`,
|
|
3547
3558
|
modelValue: e.value.platform.mappings.employees[j],
|
|
3548
|
-
"onUpdate:modelValue": (
|
|
3559
|
+
"onUpdate:modelValue": (E) => e.value.platform.mappings.employees[j] = E,
|
|
3549
3560
|
options: {
|
|
3550
3561
|
key: { placeholder: "Name", editable: !0 },
|
|
3551
3562
|
badgeNo: { placeholder: "Badge No", editable: !0 },
|
|
3552
3563
|
employeeNo: { placeholder: "Employee No", editable: !0 }
|
|
3553
3564
|
},
|
|
3554
3565
|
removable: !0,
|
|
3555
|
-
onRemove: () =>
|
|
3566
|
+
onRemove: () => g("employees", j)
|
|
3556
3567
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onRemove"]))), 128))
|
|
3557
3568
|
])
|
|
3558
3569
|
])
|
|
3559
3570
|
])) : R("", !0);
|
|
3560
3571
|
};
|
|
3561
3572
|
}
|
|
3562
|
-
}),
|
|
3573
|
+
}), Kn = { class: "h-full flex flex-col gap-16" }, An = { class: "flex flex-row gap-2 justify-between items-center" }, Pn = {
|
|
3563
3574
|
key: 0,
|
|
3564
3575
|
class: "flex gap-24 w-full h-full justify-center items-center overflow-scroll"
|
|
3565
|
-
},
|
|
3576
|
+
}, Nn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Rn = /* @__PURE__ */ H({
|
|
3566
3577
|
__name: "Preview",
|
|
3567
3578
|
props: {
|
|
3568
3579
|
modelValue: { required: !0 },
|
|
3569
3580
|
modelModifiers: {}
|
|
3570
3581
|
},
|
|
3571
3582
|
emits: ["update:modelValue"],
|
|
3572
|
-
setup(
|
|
3583
|
+
setup(v) {
|
|
3573
3584
|
const { t: o } = W(), e = B([]), n = [
|
|
3574
3585
|
{
|
|
3575
3586
|
accessorKey: "name",
|
|
@@ -3596,7 +3607,7 @@ const ln = [
|
|
|
3596
3607
|
header: () => I("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Time"),
|
|
3597
3608
|
enableSorting: !1
|
|
3598
3609
|
}
|
|
3599
|
-
], w =
|
|
3610
|
+
], w = Q(v, "modelValue"), x = B(!1), _ = fe(), { dateRange: S } = De(ue());
|
|
3600
3611
|
ge(
|
|
3601
3612
|
() => S.value,
|
|
3602
3613
|
async () => {
|
|
@@ -3623,9 +3634,9 @@ const ln = [
|
|
|
3623
3634
|
}
|
|
3624
3635
|
}
|
|
3625
3636
|
return (r, p) => {
|
|
3626
|
-
const k = V("FmButton"),
|
|
3627
|
-
return d(), D("div",
|
|
3628
|
-
t("div",
|
|
3637
|
+
const k = V("FmButton"), g = V("FmCircularProgress"), y = V("FmTable");
|
|
3638
|
+
return d(), D("div", Kn, [
|
|
3639
|
+
t("div", An, [
|
|
3629
3640
|
i(Ue, {
|
|
3630
3641
|
"date-range": f(S),
|
|
3631
3642
|
"onUpdate:dateRange": p[0] || (p[0] = (c) => he(S) ? S.value = c : null),
|
|
@@ -3638,10 +3649,10 @@ const ln = [
|
|
|
3638
3649
|
onClick: h
|
|
3639
3650
|
}, null, 8, ["loading", "label"])
|
|
3640
3651
|
]),
|
|
3641
|
-
x.value ? (d(), D("div",
|
|
3642
|
-
i(
|
|
3643
|
-
t("span",
|
|
3644
|
-
])) : e.value.length > 0 ? (d(), A(
|
|
3652
|
+
x.value ? (d(), D("div", Pn, [
|
|
3653
|
+
i(g, { size: "xl" }),
|
|
3654
|
+
t("span", Nn, T(f(o)("report.common.loading")), 1)
|
|
3655
|
+
])) : e.value.length > 0 ? (d(), A(y, {
|
|
3645
3656
|
key: 1,
|
|
3646
3657
|
class: "flex overflow-scroll",
|
|
3647
3658
|
"row-data": e.value,
|
|
@@ -3650,15 +3661,15 @@ const ln = [
|
|
|
3650
3661
|
]);
|
|
3651
3662
|
};
|
|
3652
3663
|
}
|
|
3653
|
-
}),
|
|
3664
|
+
}), On = { class: "h-full relative flex flex-col" }, Bn = { class: "py-16 px-16 overflow-hidden flex-grow relative" }, jn = /* @__PURE__ */ H({
|
|
3654
3665
|
__name: "IFlexiHRMS",
|
|
3655
3666
|
props: {
|
|
3656
3667
|
modelValue: {},
|
|
3657
3668
|
modelModifiers: {}
|
|
3658
3669
|
},
|
|
3659
3670
|
emits: ["update:modelValue"],
|
|
3660
|
-
setup(
|
|
3661
|
-
const { t: o } = W(), e =
|
|
3671
|
+
setup(v) {
|
|
3672
|
+
const { t: o } = W(), e = Q(v, "modelValue"), n = B("setting"), w = [
|
|
3662
3673
|
{
|
|
3663
3674
|
label: o("report.integration.setting"),
|
|
3664
3675
|
value: "setting",
|
|
@@ -3669,12 +3680,12 @@ const ln = [
|
|
|
3669
3680
|
value: "preview",
|
|
3670
3681
|
icon: "table"
|
|
3671
3682
|
}
|
|
3672
|
-
], x = pe(), _ =
|
|
3683
|
+
], x = pe(), _ = z(() => {
|
|
3673
3684
|
switch (n.value) {
|
|
3674
3685
|
case "preview":
|
|
3675
|
-
return
|
|
3686
|
+
return Rn;
|
|
3676
3687
|
case "setting":
|
|
3677
|
-
return
|
|
3688
|
+
return Mn;
|
|
3678
3689
|
default:
|
|
3679
3690
|
return null;
|
|
3680
3691
|
}
|
|
@@ -3682,7 +3693,7 @@ const ln = [
|
|
|
3682
3693
|
return (S, h) => {
|
|
3683
3694
|
var k;
|
|
3684
3695
|
const r = V("FmPageHead"), p = V("FmTabs");
|
|
3685
|
-
return d(), D("div",
|
|
3696
|
+
return d(), D("div", On, [
|
|
3686
3697
|
i(r, {
|
|
3687
3698
|
title: ((k = e.value) == null ? void 0 : k.name) || "AutoCount",
|
|
3688
3699
|
"back-button": !0,
|
|
@@ -3696,23 +3707,23 @@ const ln = [
|
|
|
3696
3707
|
}, 8, ["title", "onClick:back"]),
|
|
3697
3708
|
i(p, {
|
|
3698
3709
|
"model-value": n.value,
|
|
3699
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
3710
|
+
"onUpdate:modelValue": h[0] || (h[0] = (g) => n.value = g),
|
|
3700
3711
|
items: w
|
|
3701
3712
|
}, null, 8, ["model-value"]),
|
|
3702
|
-
t("div",
|
|
3713
|
+
t("div", Bn, [
|
|
3703
3714
|
(d(), A(be(_.value), {
|
|
3704
3715
|
modelValue: e.value,
|
|
3705
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
3716
|
+
"onUpdate:modelValue": h[1] || (h[1] = (g) => e.value = g)
|
|
3706
3717
|
}, null, 8, ["modelValue"]))
|
|
3707
3718
|
])
|
|
3708
3719
|
]);
|
|
3709
3720
|
};
|
|
3710
3721
|
}
|
|
3711
|
-
}),
|
|
3722
|
+
}), Ln = { class: "px-24 h-full relative" }, Jn = /* @__PURE__ */ H({
|
|
3712
3723
|
__name: "Integration",
|
|
3713
|
-
setup(
|
|
3714
|
-
const o = B(void 0), { params: e } =
|
|
3715
|
-
|
|
3724
|
+
setup(v) {
|
|
3725
|
+
const o = B(void 0), { params: e } = ze(), n = we(), w = B();
|
|
3726
|
+
Ee(async () => {
|
|
3716
3727
|
n.settings.length === 0 && await n.getSettings();
|
|
3717
3728
|
}), ge(
|
|
3718
3729
|
() => n.settings,
|
|
@@ -3723,25 +3734,25 @@ const ln = [
|
|
|
3723
3734
|
},
|
|
3724
3735
|
{ immediate: !0 }
|
|
3725
3736
|
);
|
|
3726
|
-
const x =
|
|
3737
|
+
const x = z(() => {
|
|
3727
3738
|
switch (o.value) {
|
|
3728
3739
|
case de.Xero:
|
|
3729
|
-
return
|
|
3740
|
+
return Zt;
|
|
3730
3741
|
case de.Bukku:
|
|
3731
|
-
return
|
|
3742
|
+
return zo;
|
|
3732
3743
|
case de.AutoCount:
|
|
3733
|
-
return
|
|
3744
|
+
return Sa;
|
|
3734
3745
|
case de.SQL:
|
|
3735
|
-
return
|
|
3746
|
+
return ml;
|
|
3736
3747
|
case de.iFlexi_HRMS:
|
|
3737
|
-
return
|
|
3748
|
+
return jn;
|
|
3738
3749
|
case de.Biztory:
|
|
3739
|
-
return
|
|
3750
|
+
return vn;
|
|
3740
3751
|
default:
|
|
3741
3752
|
return null;
|
|
3742
3753
|
}
|
|
3743
3754
|
});
|
|
3744
|
-
return (_, S) => (d(), D("div",
|
|
3755
|
+
return (_, S) => (d(), D("div", Ln, [
|
|
3745
3756
|
(d(), A(be(x.value), {
|
|
3746
3757
|
modelValue: w.value,
|
|
3747
3758
|
"onUpdate:modelValue": S[0] || (S[0] = (h) => w.value = h)
|
|
@@ -3750,5 +3761,5 @@ const ln = [
|
|
|
3750
3761
|
}
|
|
3751
3762
|
});
|
|
3752
3763
|
export {
|
|
3753
|
-
|
|
3764
|
+
Jn as default
|
|
3754
3765
|
};
|