@feedmepos/mf-report 5.27.11-beta.0 → 5.27.12-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-DI_Kzc-m.js → App-CMPj2pyu.js} +4 -4
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-DWV1lamo.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-C33_aLwU.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-D99iRpJO.js → Default.vue_vue_type_script_setup_true_lang-OCzomtqO.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DgM1kcya.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BqhNgiKc.js} +3 -3
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-vEwmwLei.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-42aT9n0M.js} +2 -2
- package/dist/{InsightView-COhNlMpl.js → InsightView-KKv1AQqL.js} +4 -4
- package/dist/{Integration-Ce0Jt0pQ.js → Integration-M9UvJd7C.js} +477 -470
- package/dist/{Integrations-6Srpzfgs.js → Integrations-BisBOJW2.js} +2 -2
- package/dist/{Layout-CsiWRIZC.js → Layout-B8cNTIR3.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CyqOskSO.js → MenuTab.vue_vue_type_script_setup_true_lang-Cyo5eI8Z.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-qpCko9Yh.js → NavigationTab.vue_vue_type_script_setup_true_lang-BEwGO0Sy.js} +3 -3
- package/dist/{OverviewView-D5UZFuCx.js → OverviewView-XTyR3ZlH.js} +4 -4
- package/dist/{Report-C63-3NS5.js → Report-OdxrY9Mj.js} +3 -3
- package/dist/{ReportEditor-DgCcZw3K.js → ReportEditor-DaKy522Q.js} +5 -5
- package/dist/{ReportView-CSfRTrYX.js → ReportView-DR_c5DbI.js} +6 -6
- package/dist/{Setting-C1hihU2n.js → Setting-CjdOre1G.js} +3 -3
- package/dist/{Template-fouiDujh.js → Template-gpl0Hr8m.js} +3 -3
- package/dist/{TileEditor-CwVqpqD2.js → TileEditor-3Kt6JPFT.js} +5 -5
- package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-DR8413sW.js → TileGrid.vue_vue_type_script_setup_true_lang-DOI4IELH.js} +1 -1
- package/dist/{TransitionFade-C9b5LlE5.js → TransitionFade-B685u1M7.js} +4 -4
- package/dist/{app-Cf4bn8z6.js → app-HuenPkky.js} +16 -16
- package/dist/app.js +1 -1
- package/dist/{useRestaurantPermission-yNEOpfOM.js → useRestaurantPermission-BBYlj9ps.js} +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as se, mergeModels as fe, useModel as re, computed as G, resolveComponent as D, createElementBlock as j, openBlock as w, createElementVNode as t, createCommentVNode as Y, normalizeClass as Je, Fragment as Ke, renderList as We, createBlock as Q, normalizeStyle as Ze, createVNode as l, withCtx as Se, renderSlot as pt, toDisplayString as
|
|
1
|
+
import { defineComponent as se, mergeModels as fe, useModel as re, computed as G, resolveComponent as D, createElementBlock as j, openBlock as w, createElementVNode as t, createCommentVNode as Y, normalizeClass as Je, Fragment as Ke, renderList as We, createBlock as Q, normalizeStyle as Ze, createVNode as l, withCtx as Se, renderSlot as pt, toDisplayString as k, unref as s, h as C, createTextVNode as mt, ref as Z, onUnmounted as je, watch as Fe, isRef as Re, resolveDynamicComponent as Ue, mergeProps as tt, withKeys as rt, withModifiers as ut, nextTick as ct, onMounted as nt } from "vue";
|
|
2
2
|
import { useRouter as ke, useRoute as ft } from "vue-router";
|
|
3
|
-
import { A as _e, y as et, d as Ve, z as gt, e as Ne, a as $e, B as ue, E as vt, l as yt, v as le, x as Le, G as Oe, H as Te, J as Ee, K as ot, L as xt, M as bt, N as wt, O as at, b as st, P as ht, Q as _t, m as Ct, I as Me, R as kt, S as St, T as $t } from "./app-
|
|
3
|
+
import { A as _e, y as et, d as Ve, z as gt, e as Ne, a as $e, B as ue, E as vt, l as yt, v as le, x as Le, G as Oe, H as Te, J as Ee, K as ot, L as xt, M as bt, N as wt, O as at, b as st, P as ht, Q as _t, m as Ct, I as Me, R as kt, S as St, T as $t } from "./app-HuenPkky.js";
|
|
4
4
|
import { u as de, a as Be, _ as At } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
5
5
|
import { u as Ye } from "./message-dialog-UoMWOnil.js";
|
|
6
6
|
import { useSnackbar as Ae } from "@feedmepos/ui-library";
|
|
7
|
-
import { s as it, _ as qe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as Pe, h as Ce } from "./useRestaurantPermission-
|
|
7
|
+
import { s as it, _ as qe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-C33_aLwU.js";
|
|
8
|
+
import { u as Pe, h as Ce } from "./useRestaurantPermission-BBYlj9ps.js";
|
|
9
9
|
import { storeToRefs as He } from "pinia";
|
|
10
10
|
const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, Vt = { class: "w-[100%] overflow-hidden" }, Ft = { class: "inline-flex max-w-full items-center gap-2 align-top" }, It = { class: "text-nowrap min-w-0 overflow-hidden text-ellipsis font-semibold" }, Kt = {
|
|
11
11
|
key: 0,
|
|
@@ -90,7 +90,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
90
90
|
default: Se(() => [
|
|
91
91
|
t("div", Vt, [
|
|
92
92
|
t("div", Ft, [
|
|
93
|
-
t("div", It,
|
|
93
|
+
t("div", It, k(e.value[A.key]), 1),
|
|
94
94
|
pt(M.$slots, "field-suffix", { field: A })
|
|
95
95
|
])
|
|
96
96
|
])
|
|
@@ -251,12 +251,12 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
251
251
|
}, m = [
|
|
252
252
|
{
|
|
253
253
|
accessorKey: "createdAt",
|
|
254
|
-
header: () =>
|
|
254
|
+
header: () => C("p", { class: "min-w-[70px] text-nowrap text-ellipsis" }, "Logged At"),
|
|
255
255
|
cell: (d) => Ve(d.getValue()).format("YYYY-MM-DD HH:mm:ss")
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
accessorKey: "startDate",
|
|
259
|
-
header: () =>
|
|
259
|
+
header: () => C("p", { class: "min-w-[270px] text-nowrap text-ellipsis" }, "Cron Info"),
|
|
260
260
|
cell: (d) => {
|
|
261
261
|
var r;
|
|
262
262
|
const n = (r = d.row) == null ? void 0 : r.original, b = [
|
|
@@ -289,13 +289,13 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
289
289
|
value: typeof (n == null ? void 0 : n.delayDays) == "number" && !Number.isNaN(n.delayDays) ? n.delayDays.toString() : "-"
|
|
290
290
|
}
|
|
291
291
|
];
|
|
292
|
-
return
|
|
292
|
+
return C(
|
|
293
293
|
"div",
|
|
294
294
|
{ class: "space-y-1 pt-2 pb-2 min-w-[260px]" },
|
|
295
295
|
b.map(
|
|
296
|
-
(a) =>
|
|
297
|
-
|
|
298
|
-
|
|
296
|
+
(a) => C("div", { class: "flex flex-row justify-between gap-4" }, [
|
|
297
|
+
C("span", { class: "font-semibold mr-2" }, a.label),
|
|
298
|
+
C("span", { class: "text-right" }, a.value)
|
|
299
299
|
])
|
|
300
300
|
)
|
|
301
301
|
);
|
|
@@ -304,20 +304,20 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
306
|
accessorKey: "messages",
|
|
307
|
-
header: () =>
|
|
307
|
+
header: () => C("p", { class: "min-w-[320px] text-nowrap" }, "Details"),
|
|
308
308
|
cell: (d) => {
|
|
309
309
|
const n = d.getValue();
|
|
310
|
-
return n.length > 0 ?
|
|
310
|
+
return n.length > 0 ? C(
|
|
311
311
|
"div",
|
|
312
312
|
{ class: "space-y-2 pt-2 pb-2" },
|
|
313
313
|
[...n].reverse().map(
|
|
314
|
-
(b) =>
|
|
315
|
-
|
|
316
|
-
b.status ?
|
|
317
|
-
|
|
314
|
+
(b) => C("div", { class: "min-w-[320px] whitespace-normal break-words flex items-center" }, [
|
|
315
|
+
C("span", { class: "mr-2" }, "•"),
|
|
316
|
+
b.status ? C("div", { class: y(b.status) }, b.status) : null,
|
|
317
|
+
C("span", {}, b.message.toString())
|
|
318
318
|
])
|
|
319
319
|
)
|
|
320
|
-
) :
|
|
320
|
+
) : C("p", { class: "min-w-[320px] whitespace-normal break-words" }, "No messages");
|
|
321
321
|
},
|
|
322
322
|
meta: {
|
|
323
323
|
cellSpanClass: "w-full whitespace-normal break-words"
|
|
@@ -333,12 +333,12 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
333
333
|
};
|
|
334
334
|
return (d, n) => {
|
|
335
335
|
var q, H, J, ne;
|
|
336
|
-
const b = D("FmBadge"), r = D("FmTable"), a = D("FmSideSheet"),
|
|
336
|
+
const b = D("FmBadge"), r = D("FmTable"), a = D("FmSideSheet"), $ = D("FmSwitch"), i = D("FmTooltip"), u = D("FmDatePicker"), R = D("FmTextField"), U = D("FmTabs"), V = D("FmSelect"), S = D("FmTimePicker");
|
|
337
337
|
return w(), j(Ke, null, [
|
|
338
338
|
t("div", Nt, [
|
|
339
|
-
t("div", Mt,
|
|
339
|
+
t("div", Mt, k(s(o)("report.integration.auto", { label: g.label })), 1),
|
|
340
340
|
t("div", Tt, [
|
|
341
|
-
g.label == "upload" ? (w(), j("div", Rt,
|
|
341
|
+
g.label == "upload" ? (w(), j("div", Rt, k(s(o)("report.integration.lastUploadDate")) + ": " + k(g.lastUploadDate ? s(Ve)(g.lastUploadDate).format("MMMM D, YYYY h:mm A") : "-"), 1)) : g.isAutoEmailMode ? (w(), j("div", Ut, k(s(o)("report.integration.lastEmailDate")) + ": " + k(g.lastUploadDate ? s(Ve)(g.lastUploadDate).format("MMMM D, YYYY h:mm A") : "-"), 1)) : Y("", !0),
|
|
342
342
|
l(a, {
|
|
343
343
|
header: "Cron Job Error Log",
|
|
344
344
|
"dismiss-away": "",
|
|
@@ -355,13 +355,13 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
355
355
|
default: Se(() => [
|
|
356
356
|
t("div", {
|
|
357
357
|
class: Je(["ms-3 fm-typo-en-body-md-400 p-1 border-solid border-2 rounded-md cursor-pointer max-w-[360px] md:max-w-[520px] lg:max-w-[640px] !truncate", c.value ? "text-fm-color-primary" : "text-fm-color-typo-secondary"])
|
|
358
|
-
},
|
|
358
|
+
}, k(p.errorLogs.length > 0 && p.errorLogs[0].messages && p.errorLogs[0].messages.length > 0 ? `${p.errorLogs[0].messages[p.errorLogs[0].messages.length - 1].status} - ${p.errorLogs[0].messages[p.errorLogs[0].messages.length - 1].message}` : s(o)("No error logs")), 3)
|
|
359
359
|
]),
|
|
360
360
|
_: 1
|
|
361
361
|
})) : (w(), j("div", {
|
|
362
362
|
key: 1,
|
|
363
363
|
class: Je(["ms-3 fm-typo-en-body-md-400 p-1 border-solid border-2 rounded-md cursor-pointer max-w-[360px] md:max-w-[520px] lg:max-w-[640px] !truncate", c.value ? "text-fm-color-primary" : "text-fm-color-typo-secondary"])
|
|
364
|
-
},
|
|
364
|
+
}, k(p.errorLogs.length > 0 && p.errorLogs[0].messages && p.errorLogs[0].messages.length > 0 ? `${p.errorLogs[0].messages[p.errorLogs[0].messages.length - 1].status} - ${p.errorLogs[0].messages[p.errorLogs[0].messages.length - 1].message}` : s(o)("No error logs")), 3))
|
|
365
365
|
])) : Y("", !0)
|
|
366
366
|
]),
|
|
367
367
|
default: Se(() => [
|
|
@@ -381,8 +381,8 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
381
381
|
]),
|
|
382
382
|
t("div", Ot, [
|
|
383
383
|
t("div", Et, [
|
|
384
|
-
t("div", Bt,
|
|
385
|
-
l(
|
|
384
|
+
t("div", Bt, k(s(o)("report.common.enable")), 1),
|
|
385
|
+
l($, {
|
|
386
386
|
modelValue: e.value.enable,
|
|
387
387
|
"onUpdate:modelValue": n[1] || (n[1] = (z) => e.value.enable = z),
|
|
388
388
|
style: { gap: "0px" }
|
|
@@ -390,7 +390,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
390
390
|
]),
|
|
391
391
|
g.label === "upload" || g.isAutoEmailMode && T.value === s(_e).Day ? (w(), j("div", Yt, [
|
|
392
392
|
t("div", qt, [
|
|
393
|
-
t("span", Ht,
|
|
393
|
+
t("span", Ht, k(s(o)("report.integration.startSyncDate")), 1),
|
|
394
394
|
l(i, {
|
|
395
395
|
content: p.lastUploadDate ? s(o)("report.integration.startSyncDateLocked") : s(o)("report.integration.startSyncDateHint")
|
|
396
396
|
}, {
|
|
@@ -409,7 +409,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
409
409
|
}, null, 8, ["disabled", "model-value"])
|
|
410
410
|
])) : Y("", !0),
|
|
411
411
|
g.isAutoEmailMode ? (w(), j("div", zt, [
|
|
412
|
-
t("div", Gt,
|
|
412
|
+
t("div", Gt, k(s(o)("report.common.email")), 1),
|
|
413
413
|
t("div", Qt, [
|
|
414
414
|
l(R, {
|
|
415
415
|
"model-value": (e.value.emails || []).join(","),
|
|
@@ -419,7 +419,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
419
419
|
})
|
|
420
420
|
}, null, 8, ["model-value"])
|
|
421
421
|
]),
|
|
422
|
-
t("p", Wt,
|
|
422
|
+
t("p", Wt, k(s(o)("report.input.separateEmailHelperText")), 1)
|
|
423
423
|
])) : Y("", !0),
|
|
424
424
|
x.value ? (w(), j("div", Xt, [
|
|
425
425
|
t("div", Jt, [
|
|
@@ -432,9 +432,9 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
432
432
|
])
|
|
433
433
|
]),
|
|
434
434
|
t("div", eo, [
|
|
435
|
-
t("div", to,
|
|
435
|
+
t("div", to, k(P.value), 1),
|
|
436
436
|
T.value === s(_e).Week ? (w(), j("div", oo, [
|
|
437
|
-
t("div", ao,
|
|
437
|
+
t("div", ao, k(s(o)("report.integration.schedule.weekday")), 1),
|
|
438
438
|
l(V, {
|
|
439
439
|
"model-value": M.value,
|
|
440
440
|
items: v.value,
|
|
@@ -443,20 +443,20 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
443
443
|
}, null, 8, ["model-value", "items"])
|
|
444
444
|
])) : Y("", !0),
|
|
445
445
|
T.value === s(_e).Month ? (w(), j("div", lo, [
|
|
446
|
-
t("div", no,
|
|
446
|
+
t("div", no, k(s(o)("report.integration.schedule.monthlyOption")), 1),
|
|
447
447
|
l(V, {
|
|
448
448
|
"model-value": f.value,
|
|
449
449
|
items: I.value,
|
|
450
450
|
multiselect: !1,
|
|
451
451
|
"onUpdate:modelValue": n[5] || (n[5] = (z) => f.value = z)
|
|
452
452
|
}, null, 8, ["model-value", "items"]),
|
|
453
|
-
t("div", so,
|
|
453
|
+
t("div", so, k(f.value === s(et).FirstDay ? s(o)("report.integration.schedule.firstDayHint") : s(o)("report.integration.schedule.lastDayHint")), 1)
|
|
454
454
|
])) : Y("", !0),
|
|
455
455
|
t("div", ro, [
|
|
456
456
|
t("div", io, [
|
|
457
|
-
t("div", po,
|
|
457
|
+
t("div", po, k(s(it)(g.label)) + " time ", 1),
|
|
458
458
|
t("div", mo, [
|
|
459
|
-
l(
|
|
459
|
+
l(S, {
|
|
460
460
|
class: "gap-[0px]",
|
|
461
461
|
"model-value": s(Ve)().hour(((q = e.value.triggerTime) == null ? void 0 : q.hour) ?? 0).minute(((H = e.value.triggerTime) == null ? void 0 : H.minute) ?? 0).format("HH:mm"),
|
|
462
462
|
"onUpdate:modelValue": n[6] || (n[6] = (z) => {
|
|
@@ -485,9 +485,9 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
485
485
|
])
|
|
486
486
|
])) : (w(), j("div", uo, [
|
|
487
487
|
t("div", co, [
|
|
488
|
-
t("div", fo,
|
|
488
|
+
t("div", fo, k(s(it)(g.label)) + " time ", 1),
|
|
489
489
|
t("div", go, [
|
|
490
|
-
l(
|
|
490
|
+
l(S, {
|
|
491
491
|
class: "gap-[0px]",
|
|
492
492
|
"model-value": s(Ve)().hour(((J = e.value.triggerTime) == null ? void 0 : J.hour) ?? 0).minute(((ne = e.value.triggerTime) == null ? void 0 : ne.minute) ?? 0).format("HH:mm"),
|
|
493
493
|
"onUpdate:modelValue": n[8] || (n[8] = (z) => {
|
|
@@ -604,7 +604,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
604
604
|
style: Ze(g.removable ? { width: F.value } : { width: "100%" })
|
|
605
605
|
}, {
|
|
606
606
|
default: Se(() => [
|
|
607
|
-
t("div", yo,
|
|
607
|
+
t("div", yo, k(T(c)), 1)
|
|
608
608
|
]),
|
|
609
609
|
_: 2
|
|
610
610
|
}, 1032, ["content", "style"]))
|
|
@@ -656,7 +656,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
656
656
|
style: Ze({ width: v.value })
|
|
657
657
|
}, [
|
|
658
658
|
f < p.value ? (w(), j(Ke, { key: 0 }, [
|
|
659
|
-
mt(
|
|
659
|
+
mt(k(x), 1)
|
|
660
660
|
], 64)) : Y("", !0)
|
|
661
661
|
], 4))), 128)),
|
|
662
662
|
I.removable ? (w(), j("div", wo)) : Y("", !0)
|
|
@@ -730,16 +730,16 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
730
730
|
emits: ["update:modelValue"],
|
|
731
731
|
setup(g) {
|
|
732
732
|
const { t: o } = de(), e = re(g, "modelValue"), p = Ae(), v = Ne(), F = ke(), { promptLoader: I } = Be(), { promptMessage: T } = Ye(), { restaurants: M } = $e(), { rules: f, notifyUnauthorized: x } = Pe(), h = Z(!1), P = G(
|
|
733
|
-
() => M.map((
|
|
733
|
+
() => M.map(($) => ({ label: $.name, value: $.id }))
|
|
734
734
|
), A = G(() => {
|
|
735
|
-
var
|
|
736
|
-
return h.value ? "Connecting" : (i = (
|
|
735
|
+
var $, i;
|
|
736
|
+
return h.value ? "Connecting" : (i = ($ = e.value) == null ? void 0 : $.platform) != null && i.accessToken ? "Disconnect" : "Connect";
|
|
737
737
|
}), y = Z(0);
|
|
738
738
|
async function m() {
|
|
739
|
-
var
|
|
739
|
+
var $;
|
|
740
740
|
if (h.value)
|
|
741
741
|
p.open({ type: "error", message: "Connecting in progress" });
|
|
742
|
-
else if ((
|
|
742
|
+
else if (($ = e.value.platform) != null && $.accessToken)
|
|
743
743
|
await T({
|
|
744
744
|
message: o("report.integration.xero.confirmDisconnect", { name: e.value.name }),
|
|
745
745
|
title: o("report.integration.xero.disconnectTitle")
|
|
@@ -766,9 +766,9 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
766
766
|
}
|
|
767
767
|
async function c() {
|
|
768
768
|
var R;
|
|
769
|
-
const
|
|
769
|
+
const $ = (R = e.value.platform) == null ? void 0 : R.locationIds;
|
|
770
770
|
if (Ce({
|
|
771
|
-
integrationRestaurantIds:
|
|
771
|
+
integrationRestaurantIds: $,
|
|
772
772
|
rules: f.value,
|
|
773
773
|
action: le.delete
|
|
774
774
|
})) {
|
|
@@ -788,9 +788,9 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
788
788
|
}
|
|
789
789
|
async function _() {
|
|
790
790
|
var u;
|
|
791
|
-
const
|
|
791
|
+
const $ = (u = e.value.platform) == null ? void 0 : u.locationIds;
|
|
792
792
|
if (Ce({
|
|
793
|
-
integrationRestaurantIds:
|
|
793
|
+
integrationRestaurantIds: $,
|
|
794
794
|
rules: f.value,
|
|
795
795
|
action: le.update
|
|
796
796
|
})) {
|
|
@@ -805,24 +805,24 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
805
805
|
}
|
|
806
806
|
});
|
|
807
807
|
}
|
|
808
|
-
function d(
|
|
809
|
-
const i = g.tenantOptions.data.find((u) => u.value ===
|
|
808
|
+
function d($) {
|
|
809
|
+
const i = g.tenantOptions.data.find((u) => u.value === $);
|
|
810
810
|
i && e.value.platform && (e.value.platform.tenant = {
|
|
811
811
|
id: i.value,
|
|
812
812
|
name: i.label
|
|
813
813
|
});
|
|
814
814
|
}
|
|
815
|
-
function n(
|
|
815
|
+
function n($, i) {
|
|
816
816
|
var u, R;
|
|
817
|
-
(R = (u = e.value.platform) == null ? void 0 : u.mappings) != null && R[
|
|
817
|
+
(R = (u = e.value.platform) == null ? void 0 : u.mappings) != null && R[$] && (e.value.platform.mappings[$] = e.value.platform.mappings[$].filter(
|
|
818
818
|
(U, V) => V !== i
|
|
819
819
|
));
|
|
820
820
|
}
|
|
821
|
-
function b(
|
|
821
|
+
function b($) {
|
|
822
822
|
var i, u;
|
|
823
|
-
(u = (i = e.value.platform) == null ? void 0 : i.mappings) != null && u[
|
|
824
|
-
...e.value.platform.mappings[
|
|
825
|
-
|
|
823
|
+
(u = (i = e.value.platform) == null ? void 0 : i.mappings) != null && u[$] && (e.value.platform.mappings[$] = [
|
|
824
|
+
...e.value.platform.mappings[$],
|
|
825
|
+
$ === "items" ? {
|
|
826
826
|
feedmeKey: "",
|
|
827
827
|
xeroAccount: null,
|
|
828
828
|
name: ""
|
|
@@ -836,8 +836,8 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
836
836
|
await I(async () => {
|
|
837
837
|
try {
|
|
838
838
|
await Te(e.value._id), await v.getSettings();
|
|
839
|
-
} catch (
|
|
840
|
-
p.open({ type: "error", message:
|
|
839
|
+
} catch ($) {
|
|
840
|
+
p.open({ type: "error", message: $.message });
|
|
841
841
|
}
|
|
842
842
|
});
|
|
843
843
|
}
|
|
@@ -857,9 +857,9 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
857
857
|
];
|
|
858
858
|
return je(async () => {
|
|
859
859
|
await v.getSettings();
|
|
860
|
-
}), (
|
|
860
|
+
}), ($, i) => {
|
|
861
861
|
var J, ne, z, ie, ce, ge, ve, ye, xe, be, we, oe, W, te, K, O, X, De, B, pe, he, ze, Ge, Qe, N, L;
|
|
862
|
-
const u = D("FmIcon"), R = D("FmButton"), U = D("FmMenuDivider"), V = D("FmCircularProgress"),
|
|
862
|
+
const u = D("FmIcon"), R = D("FmButton"), U = D("FmMenuDivider"), V = D("FmCircularProgress"), S = D("FmSelect"), q = D("FmTextField"), H = D("FmSwitch");
|
|
863
863
|
return (ne = (J = e.value) == null ? void 0 : J.platform) != null && ne.mappings ? (w(), j("div", ho, [
|
|
864
864
|
t("div", _o, [
|
|
865
865
|
t("div", Co, [
|
|
@@ -904,7 +904,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
904
904
|
key: 0,
|
|
905
905
|
size: "xl"
|
|
906
906
|
})) : Y("", !0),
|
|
907
|
-
l(
|
|
907
|
+
l(S, {
|
|
908
908
|
class: "flex-grow",
|
|
909
909
|
items: g.tenantOptions.data || [],
|
|
910
910
|
"model-value": (ie = e.value.platform.tenant) == null ? void 0 : ie.id,
|
|
@@ -926,7 +926,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
926
926
|
]),
|
|
927
927
|
t("div", No, [
|
|
928
928
|
i[23] || (i[23] = t("div", { class: "w-[25%] font-semibold" }, "Location", -1)),
|
|
929
|
-
l(
|
|
929
|
+
l(S, {
|
|
930
930
|
modelValue: e.value.platform.locationIds,
|
|
931
931
|
"onUpdate:modelValue": i[1] || (i[1] = (E) => e.value.platform.locationIds = E),
|
|
932
932
|
multiselect: !0,
|
|
@@ -936,8 +936,8 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
936
936
|
}, null, 8, ["modelValue", "items"])
|
|
937
937
|
]),
|
|
938
938
|
t("div", Mo, [
|
|
939
|
-
t("div", To,
|
|
940
|
-
l(
|
|
939
|
+
t("div", To, k(s(o)("report.integration.grouping.title")), 1),
|
|
940
|
+
l(S, {
|
|
941
941
|
modelValue: e.value.platform.grouping,
|
|
942
942
|
"onUpdate:modelValue": i[2] || (i[2] = (E) => e.value.platform.grouping = E),
|
|
943
943
|
multiselect: !1,
|
|
@@ -949,7 +949,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
949
949
|
e.value.platform.discountItem && e.value.platform.grouping !== s(ue).BY_DAY && e.value.platform.grouping !== s(ue).BY_INVOICE ? (w(), j("div", Ro, [
|
|
950
950
|
t("div", Uo, [
|
|
951
951
|
i[24] || (i[24] = t("span", { class: "text-gray-400 inline-block select-none leading-none me-2" }, "└", -1)),
|
|
952
|
-
t("span", null,
|
|
952
|
+
t("span", null, k(s(o)("report.integration.discountByGroupKey")), 1)
|
|
953
953
|
]),
|
|
954
954
|
t("div", Po, [
|
|
955
955
|
l(H, {
|
|
@@ -1206,12 +1206,12 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1206
1206
|
), v = [
|
|
1207
1207
|
{
|
|
1208
1208
|
accessorKey: "date",
|
|
1209
|
-
header: () =>
|
|
1209
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
|
|
1210
1210
|
enableSorting: !1
|
|
1211
1211
|
},
|
|
1212
1212
|
{
|
|
1213
1213
|
accessorKey: "status",
|
|
1214
|
-
header: () =>
|
|
1214
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Status"),
|
|
1215
1215
|
enableSorting: !1
|
|
1216
1216
|
},
|
|
1217
1217
|
{
|
|
@@ -1221,7 +1221,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1221
1221
|
},
|
|
1222
1222
|
{
|
|
1223
1223
|
accessorKey: "itemDescription",
|
|
1224
|
-
header: () =>
|
|
1224
|
+
header: () => C("p", { class: "min-w-[140px] text-nowrap text-ellipsis" }, "Item Description"),
|
|
1225
1225
|
enableSorting: !1
|
|
1226
1226
|
},
|
|
1227
1227
|
{
|
|
@@ -1231,7 +1231,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1231
1231
|
},
|
|
1232
1232
|
{
|
|
1233
1233
|
accessorKey: "itemAccount",
|
|
1234
|
-
header: () =>
|
|
1234
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Item Account"),
|
|
1235
1235
|
enableSorting: !1
|
|
1236
1236
|
},
|
|
1237
1237
|
{
|
|
@@ -1323,7 +1323,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1323
1323
|
]),
|
|
1324
1324
|
I.value ? (w(), j("div", la, [
|
|
1325
1325
|
l(A, { size: "xl" }),
|
|
1326
|
-
t("span", na,
|
|
1326
|
+
t("span", na, k(s(e)("report.common.isLoading")), 1)
|
|
1327
1327
|
])) : p.value.length > 0 ? (w(), Q(y, {
|
|
1328
1328
|
key: 1,
|
|
1329
1329
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
|
|
@@ -1509,7 +1509,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1509
1509
|
header: o("report.integration.category"),
|
|
1510
1510
|
cell: (v) => {
|
|
1511
1511
|
const F = v.getValue();
|
|
1512
|
-
return
|
|
1512
|
+
return C(
|
|
1513
1513
|
"div",
|
|
1514
1514
|
{
|
|
1515
1515
|
class: "font-medium text-[#194C97] bg-blue-700 bg-opacity-10 px-2 py-1 rounded-md inline-block"
|
|
@@ -1544,10 +1544,10 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1544
1544
|
default: Se(() => [
|
|
1545
1545
|
t("div", pa, [
|
|
1546
1546
|
t("ul", ma, [
|
|
1547
|
-
t("li", null,
|
|
1548
|
-
t("li", null,
|
|
1549
|
-
t("li", null,
|
|
1550
|
-
t("li", null,
|
|
1547
|
+
t("li", null, k(s(o)("report.integration.refNumGuide.1stPoint")), 1),
|
|
1548
|
+
t("li", null, k(s(o)("report.integration.refNumGuide.2ndPoint")), 1),
|
|
1549
|
+
t("li", null, k(s(o)("report.integration.refNumGuide.3rdPoint")), 1),
|
|
1550
|
+
t("li", null, k(s(o)("report.integration.refNumGuide.4thPoint")), 1)
|
|
1551
1551
|
])
|
|
1552
1552
|
]),
|
|
1553
1553
|
l(T, {
|
|
@@ -1600,8 +1600,8 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1600
1600
|
});
|
|
1601
1601
|
}
|
|
1602
1602
|
async function A() {
|
|
1603
|
-
var
|
|
1604
|
-
const r = (
|
|
1603
|
+
var $;
|
|
1604
|
+
const r = ($ = o.value.platform) == null ? void 0 : $.locationIds;
|
|
1605
1605
|
if (Ce({
|
|
1606
1606
|
integrationRestaurantIds: r,
|
|
1607
1607
|
rules: x.value,
|
|
@@ -1620,18 +1620,18 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1620
1620
|
}
|
|
1621
1621
|
function y(r, a) {
|
|
1622
1622
|
var u;
|
|
1623
|
-
const
|
|
1624
|
-
if (
|
|
1623
|
+
const $ = (u = o.value.platform) == null ? void 0 : u.mappings;
|
|
1624
|
+
if (!$) return;
|
|
1625
1625
|
if (["items", "taxes", "payments", "taxRoundingAdjustments"].includes(r)) {
|
|
1626
1626
|
const R = r;
|
|
1627
|
-
|
|
1627
|
+
$[R] && Array.isArray($[R]) && ($[R] = $[R].filter(
|
|
1628
1628
|
(U, V) => V !== a
|
|
1629
1629
|
));
|
|
1630
1630
|
}
|
|
1631
1631
|
}
|
|
1632
1632
|
function m(r) {
|
|
1633
|
-
var a,
|
|
1634
|
-
if ((
|
|
1633
|
+
var a, $;
|
|
1634
|
+
if (($ = (a = o.value.platform) == null ? void 0 : a.mappings) != null && $[r]) {
|
|
1635
1635
|
let i;
|
|
1636
1636
|
switch (r) {
|
|
1637
1637
|
case "items":
|
|
@@ -1697,8 +1697,8 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1697
1697
|
key: r,
|
|
1698
1698
|
value: a
|
|
1699
1699
|
}) {
|
|
1700
|
-
var
|
|
1701
|
-
(i = (
|
|
1700
|
+
var $, i;
|
|
1701
|
+
(i = ($ = o.value) == null ? void 0 : $.platform) != null && i.mappings && (o.value.platform.mappings[r] = a);
|
|
1702
1702
|
}
|
|
1703
1703
|
function n(r) {
|
|
1704
1704
|
return {
|
|
@@ -1718,20 +1718,20 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1718
1718
|
return je(async () => {
|
|
1719
1719
|
await p.getSettings();
|
|
1720
1720
|
}), (r, a) => {
|
|
1721
|
-
var V,
|
|
1722
|
-
const
|
|
1723
|
-
return (
|
|
1721
|
+
var V, S, q, H, J, ne, z, ie, ce, ge, ve, ye, xe, be, we, oe, W, te;
|
|
1722
|
+
const $ = D("FmIcon"), i = D("FmButton"), u = D("FmMenuDivider"), R = D("FmTextField"), U = D("FmSelect");
|
|
1723
|
+
return (S = (V = o.value) == null ? void 0 : V.platform) != null && S.mappings ? (w(), j("div", ua, [
|
|
1724
1724
|
t("div", ca, [
|
|
1725
1725
|
t("div", fa, [
|
|
1726
|
-
t("div", ga,
|
|
1726
|
+
t("div", ga, k(s(f)("report.integration.bukku.connect")), 1),
|
|
1727
1727
|
t("div", va, [
|
|
1728
1728
|
t("div", ya, [
|
|
1729
|
-
l(
|
|
1729
|
+
l($, {
|
|
1730
1730
|
name: "refresh",
|
|
1731
1731
|
class: "p-2 bg-gray-100 rounded-full",
|
|
1732
1732
|
onClick: b
|
|
1733
1733
|
}),
|
|
1734
|
-
t("span", xa,
|
|
1734
|
+
t("span", xa, k(s(f)("report.integration.refreshSetting")), 1)
|
|
1735
1735
|
]),
|
|
1736
1736
|
l(i, {
|
|
1737
1737
|
variant: "tertiary",
|
|
@@ -1750,9 +1750,9 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1750
1750
|
l(u, { style: { margin: 0 } }),
|
|
1751
1751
|
t("div", ba, [
|
|
1752
1752
|
t("div", wa, [
|
|
1753
|
-
t("div", ha,
|
|
1753
|
+
t("div", ha, k(s(f)("report.integration.bukku.authentication")), 1),
|
|
1754
1754
|
t("div", _a, [
|
|
1755
|
-
t("div", Ca,
|
|
1755
|
+
t("div", Ca, k(s(f)("report.integration.subdomain")), 1),
|
|
1756
1756
|
t("div", ka, [
|
|
1757
1757
|
l(R, {
|
|
1758
1758
|
modelValue: o.value.platform.subdomain,
|
|
@@ -1762,7 +1762,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1762
1762
|
])
|
|
1763
1763
|
]),
|
|
1764
1764
|
t("div", Sa, [
|
|
1765
|
-
t("div", $a,
|
|
1765
|
+
t("div", $a, k(s(f)("report.integration.token")), 1),
|
|
1766
1766
|
t("div", Aa, [
|
|
1767
1767
|
l(R, {
|
|
1768
1768
|
modelValue: o.value.platform.token,
|
|
@@ -1773,9 +1773,9 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1773
1773
|
]),
|
|
1774
1774
|
l(u, { style: { margin: 0 } }),
|
|
1775
1775
|
t("div", Da, [
|
|
1776
|
-
t("div", Va,
|
|
1776
|
+
t("div", Va, k(s(f)("report.integration.general")), 1),
|
|
1777
1777
|
t("div", Fa, [
|
|
1778
|
-
t("div", Ia,
|
|
1778
|
+
t("div", Ia, k(s(f)("report.common.name")), 1),
|
|
1779
1779
|
t("div", Ka, [
|
|
1780
1780
|
l(R, {
|
|
1781
1781
|
modelValue: o.value.name,
|
|
@@ -1784,7 +1784,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1784
1784
|
])
|
|
1785
1785
|
]),
|
|
1786
1786
|
t("div", Na, [
|
|
1787
|
-
t("div", Ma,
|
|
1787
|
+
t("div", Ma, k(s(f)("report.common.location")), 1),
|
|
1788
1788
|
l(U, {
|
|
1789
1789
|
modelValue: o.value.platform.locationIds,
|
|
1790
1790
|
"onUpdate:modelValue": a[3] || (a[3] = (K) => o.value.platform.locationIds = K),
|
|
@@ -1795,7 +1795,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1795
1795
|
}, null, 8, ["modelValue", "items"])
|
|
1796
1796
|
]),
|
|
1797
1797
|
t("div", Ta, [
|
|
1798
|
-
t("div", Ra,
|
|
1798
|
+
t("div", Ra, k(s(f)("report.integration.grouping.title")), 1),
|
|
1799
1799
|
l(U, {
|
|
1800
1800
|
modelValue: o.value.platform.grouping,
|
|
1801
1801
|
"onUpdate:modelValue": a[4] || (a[4] = (K) => o.value.platform.grouping = K),
|
|
@@ -1806,7 +1806,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1806
1806
|
}, null, 8, ["modelValue"])
|
|
1807
1807
|
]),
|
|
1808
1808
|
t("div", Ua, [
|
|
1809
|
-
a[25] || (a[25] = t("div", { class: "w-[25%] font-semibold" },
|
|
1809
|
+
a[25] || (a[25] = t("div", { class: "w-[25%] font-semibold" }, k("MyInvois Action"), -1)),
|
|
1810
1810
|
l(U, {
|
|
1811
1811
|
modelValue: o.value.platform.mappings.myinvoisAction,
|
|
1812
1812
|
"onUpdate:modelValue": a[5] || (a[5] = (K) => o.value.platform.mappings.myinvoisAction = K),
|
|
@@ -1870,7 +1870,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1870
1870
|
l(u, { style: { margin: 0 } }),
|
|
1871
1871
|
t("div", La, [
|
|
1872
1872
|
t("div", Oa, [
|
|
1873
|
-
t("div", Ea,
|
|
1873
|
+
t("div", Ea, k(s(f)("report.integration.refNumFormat")), 1),
|
|
1874
1874
|
l(lt)
|
|
1875
1875
|
]),
|
|
1876
1876
|
t("div", Ba, [
|
|
@@ -1919,7 +1919,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1919
1919
|
}, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
|
|
1920
1920
|
l(u, { style: { margin: 0 } }),
|
|
1921
1921
|
t("div", Ya, [
|
|
1922
|
-
t("div", qa,
|
|
1922
|
+
t("div", qa, k(s(f)("report.integration.items")), 1),
|
|
1923
1923
|
l(i, {
|
|
1924
1924
|
variant: "secondary",
|
|
1925
1925
|
"prepend-icon": "add",
|
|
@@ -1945,7 +1945,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1945
1945
|
}, null, 8, ["rows"]),
|
|
1946
1946
|
l(u, { style: { margin: 0 } }),
|
|
1947
1947
|
t("div", Ha, [
|
|
1948
|
-
t("div", za,
|
|
1948
|
+
t("div", za, k(s(f)("report.integration.taxes")), 1),
|
|
1949
1949
|
l(i, {
|
|
1950
1950
|
variant: "secondary",
|
|
1951
1951
|
"prepend-icon": "add",
|
|
@@ -1971,7 +1971,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1971
1971
|
}, null, 8, ["rows"]),
|
|
1972
1972
|
l(u, { style: { margin: 0 } }),
|
|
1973
1973
|
t("div", Ga, [
|
|
1974
|
-
t("div", Qa,
|
|
1974
|
+
t("div", Qa, k(s(f)("report.integration.taxRoundingAdjustments")), 1),
|
|
1975
1975
|
l(i, {
|
|
1976
1976
|
variant: "secondary",
|
|
1977
1977
|
"prepend-icon": "add",
|
|
@@ -1997,7 +1997,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1997
1997
|
}, null, 8, ["rows"]),
|
|
1998
1998
|
l(u, { style: { margin: 0 } }),
|
|
1999
1999
|
t("div", Wa, [
|
|
2000
|
-
t("div", Xa,
|
|
2000
|
+
t("div", Xa, k(s(f)("report.integration.payments")), 1),
|
|
2001
2001
|
l(i, {
|
|
2002
2002
|
variant: "secondary",
|
|
2003
2003
|
"prepend-icon": "add",
|
|
@@ -2096,7 +2096,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2096
2096
|
), { t: v } = de(), F = [
|
|
2097
2097
|
{
|
|
2098
2098
|
accessorKey: "date",
|
|
2099
|
-
header: () =>
|
|
2099
|
+
header: () => C(
|
|
2100
2100
|
"p",
|
|
2101
2101
|
{ class: "min-w-[90px] text-nowrap text-ellipsis" },
|
|
2102
2102
|
v("report.integration.table.date")
|
|
@@ -2105,17 +2105,17 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2105
2105
|
},
|
|
2106
2106
|
{
|
|
2107
2107
|
accessorKey: "no",
|
|
2108
|
-
header: () =>
|
|
2108
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, v("report.integration.table.no")),
|
|
2109
2109
|
enableSorting: !1
|
|
2110
2110
|
},
|
|
2111
2111
|
{
|
|
2112
2112
|
accessorKey: "contact",
|
|
2113
|
-
header: () =>
|
|
2113
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Contact"),
|
|
2114
2114
|
enableSorting: !1
|
|
2115
2115
|
},
|
|
2116
2116
|
{
|
|
2117
2117
|
accessorKey: "status",
|
|
2118
|
-
header: () =>
|
|
2118
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Status"),
|
|
2119
2119
|
enableSorting: !1
|
|
2120
2120
|
},
|
|
2121
2121
|
{
|
|
@@ -2125,7 +2125,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2125
2125
|
},
|
|
2126
2126
|
{
|
|
2127
2127
|
accessorKey: "itemDescription",
|
|
2128
|
-
header: () =>
|
|
2128
|
+
header: () => C("p", { class: "min-w-[140px] text-nowrap text-ellipsis" }, "Item Description"),
|
|
2129
2129
|
enableSorting: !1
|
|
2130
2130
|
},
|
|
2131
2131
|
{
|
|
@@ -2140,7 +2140,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2140
2140
|
},
|
|
2141
2141
|
{
|
|
2142
2142
|
accessorKey: "itemAccount",
|
|
2143
|
-
header: () =>
|
|
2143
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Item Account"),
|
|
2144
2144
|
enableSorting: !1
|
|
2145
2145
|
},
|
|
2146
2146
|
{
|
|
@@ -2155,7 +2155,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2155
2155
|
},
|
|
2156
2156
|
{
|
|
2157
2157
|
accessorKey: "paymentNo",
|
|
2158
|
-
header: () =>
|
|
2158
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Payment No"),
|
|
2159
2159
|
enableSorting: !1
|
|
2160
2160
|
},
|
|
2161
2161
|
{
|
|
@@ -2222,7 +2222,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2222
2222
|
]),
|
|
2223
2223
|
T.value ? (w(), j("div", tl, [
|
|
2224
2224
|
l(y, { size: "xl" }),
|
|
2225
|
-
t("span", ol,
|
|
2225
|
+
t("span", ol, k(s(v)("report.integration.table.loading")), 1)
|
|
2226
2226
|
])) : p.value.length > 0 ? (w(), Q(m, {
|
|
2227
2227
|
key: 1,
|
|
2228
2228
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
|
|
@@ -2381,20 +2381,20 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2381
2381
|
}
|
|
2382
2382
|
});
|
|
2383
2383
|
}
|
|
2384
|
-
function d(V,
|
|
2384
|
+
function d(V, S) {
|
|
2385
2385
|
var J;
|
|
2386
2386
|
const q = (J = e.value.platform) == null ? void 0 : J.mappings;
|
|
2387
2387
|
if (!q) return;
|
|
2388
2388
|
if (["items", "taxes", "payments", "taxRoundingAdjustments"].includes(V)) {
|
|
2389
2389
|
const ne = V;
|
|
2390
2390
|
q[ne] && Array.isArray(q[ne]) && (q[ne] = q[ne].filter(
|
|
2391
|
-
(z, ie) => ie !==
|
|
2391
|
+
(z, ie) => ie !== S
|
|
2392
2392
|
));
|
|
2393
2393
|
}
|
|
2394
2394
|
}
|
|
2395
2395
|
function n(V) {
|
|
2396
|
-
var
|
|
2397
|
-
(q = (
|
|
2396
|
+
var S, q;
|
|
2397
|
+
(q = (S = e.value.platform) == null ? void 0 : S.mappings) != null && q[V] && (e.value.platform.mappings[V] = [
|
|
2398
2398
|
...e.value.platform.mappings[V],
|
|
2399
2399
|
V === "items" ? {
|
|
2400
2400
|
key: "",
|
|
@@ -2406,16 +2406,16 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2406
2406
|
}
|
|
2407
2407
|
]);
|
|
2408
2408
|
}
|
|
2409
|
-
function b(V,
|
|
2409
|
+
function b(V, S) {
|
|
2410
2410
|
var H, J;
|
|
2411
2411
|
const q = (J = (H = e.value.platform) == null ? void 0 : H.apInvoice) == null ? void 0 : J.mappings;
|
|
2412
|
-
q && (q[V] = q[V].filter((ne, z) => z !==
|
|
2412
|
+
q && (q[V] = q[V].filter((ne, z) => z !== S));
|
|
2413
2413
|
}
|
|
2414
2414
|
function r(V) {
|
|
2415
2415
|
var q, H;
|
|
2416
|
-
const
|
|
2417
|
-
|
|
2418
|
-
|
|
2416
|
+
const S = (H = (q = e.value.platform) == null ? void 0 : q.apInvoice) == null ? void 0 : H.mappings;
|
|
2417
|
+
S && (S[V] = [
|
|
2418
|
+
...S[V],
|
|
2419
2419
|
V === "suppliers" ? { key: "", creditorCode: "" } : { key: "", name: "", itemCode: "", accNo: "" }
|
|
2420
2420
|
]);
|
|
2421
2421
|
}
|
|
@@ -2433,12 +2433,12 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2433
2433
|
value: ue.BY_DAY_CATEGORY
|
|
2434
2434
|
}
|
|
2435
2435
|
];
|
|
2436
|
-
function
|
|
2436
|
+
function $({
|
|
2437
2437
|
key: V,
|
|
2438
|
-
value:
|
|
2438
|
+
value: S
|
|
2439
2439
|
}) {
|
|
2440
2440
|
var q, H;
|
|
2441
|
-
(H = (q = e.value) == null ? void 0 : q.platform) != null && H.mappings && (e.value.platform.mappings[V] =
|
|
2441
|
+
(H = (q = e.value) == null ? void 0 : q.platform) != null && H.mappings && (e.value.platform.mappings[V] = S);
|
|
2442
2442
|
}
|
|
2443
2443
|
function i(V) {
|
|
2444
2444
|
return {
|
|
@@ -2448,12 +2448,12 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2448
2448
|
}
|
|
2449
2449
|
function u(V) {
|
|
2450
2450
|
var J, ne, z;
|
|
2451
|
-
const
|
|
2452
|
-
if (
|
|
2453
|
-
const q = new Set((((ne = e.value.platform) == null ? void 0 : ne.locationIds) || []).map(String)), H = (
|
|
2451
|
+
const S = (J = e.value.platform) == null ? void 0 : J.mappings;
|
|
2452
|
+
if (!S) return;
|
|
2453
|
+
const q = new Set((((ne = e.value.platform) == null ? void 0 : ne.locationIds) || []).map(String)), H = (S.projectByLocations || []).filter(
|
|
2454
2454
|
(ie) => !q.has(String(ie.locationId))
|
|
2455
2455
|
);
|
|
2456
|
-
|
|
2456
|
+
S.projectByLocations = [...H, ...V], S.project = ((z = V[0]) == null ? void 0 : z.project) || S.project || "";
|
|
2457
2457
|
}
|
|
2458
2458
|
async function R() {
|
|
2459
2459
|
var V;
|
|
@@ -2472,13 +2472,13 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2472
2472
|
}
|
|
2473
2473
|
return je(async () => {
|
|
2474
2474
|
y && clearTimeout(y), await v.getSettings();
|
|
2475
|
-
}), (V,
|
|
2475
|
+
}), (V, S) => {
|
|
2476
2476
|
var ce, ge, ve, ye, xe, be, we, oe, W, te, K, O, X, De, B, pe, he, ze, Ge, Qe;
|
|
2477
2477
|
const q = D("FmIcon"), H = D("FmButton"), J = D("FmMenuDivider"), ne = D("FmTextField"), z = D("FmSelect"), ie = D("FmSwitch");
|
|
2478
2478
|
return (ge = (ce = e.value) == null ? void 0 : ce.platform) != null && ge.mappings ? (w(), j("div", rl, [
|
|
2479
2479
|
t("div", il, [
|
|
2480
2480
|
t("div", dl, [
|
|
2481
|
-
|
|
2481
|
+
S[31] || (S[31] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
|
|
2482
2482
|
t("div", pl, [
|
|
2483
2483
|
t("div", ml, [
|
|
2484
2484
|
l(q, {
|
|
@@ -2486,7 +2486,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2486
2486
|
class: "p-2 bg-gray-100 rounded-full",
|
|
2487
2487
|
onClick: U
|
|
2488
2488
|
}),
|
|
2489
|
-
t("span", ul,
|
|
2489
|
+
t("span", ul, k(s(o)("report.integration.refreshSetting")), 1)
|
|
2490
2490
|
]),
|
|
2491
2491
|
l(H, {
|
|
2492
2492
|
variant: "tertiary",
|
|
@@ -2506,22 +2506,22 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2506
2506
|
t("div", cl, [
|
|
2507
2507
|
t("div", fl, [
|
|
2508
2508
|
t("div", gl, [
|
|
2509
|
-
t("div", vl,
|
|
2509
|
+
t("div", vl, k(s(o)("report.integration.general")), 1),
|
|
2510
2510
|
t("div", yl, [
|
|
2511
|
-
t("div", xl,
|
|
2511
|
+
t("div", xl, k(s(o)("report.common.name")), 1),
|
|
2512
2512
|
t("div", bl, [
|
|
2513
2513
|
l(ne, {
|
|
2514
2514
|
modelValue: e.value.name,
|
|
2515
|
-
"onUpdate:modelValue":
|
|
2515
|
+
"onUpdate:modelValue": S[0] || (S[0] = (N) => e.value.name = N)
|
|
2516
2516
|
}, null, 8, ["modelValue"])
|
|
2517
2517
|
])
|
|
2518
2518
|
]),
|
|
2519
2519
|
t("div", wl, [
|
|
2520
2520
|
t("div", hl, [
|
|
2521
|
-
t("div", _l,
|
|
2521
|
+
t("div", _l, k(s(o)("report.integration.location")), 1),
|
|
2522
2522
|
l(z, {
|
|
2523
2523
|
modelValue: e.value.platform.locationIds,
|
|
2524
|
-
"onUpdate:modelValue":
|
|
2524
|
+
"onUpdate:modelValue": S[1] || (S[1] = (N) => e.value.platform.locationIds = N),
|
|
2525
2525
|
multiselect: !0,
|
|
2526
2526
|
items: h.value,
|
|
2527
2527
|
placeholder: "Select location",
|
|
@@ -2537,8 +2537,8 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2537
2537
|
}, "flex flex-col gap-8 max-w-[100%]"])
|
|
2538
2538
|
}, [
|
|
2539
2539
|
t("div", Cl, [
|
|
2540
|
-
|
|
2541
|
-
t("div", kl,
|
|
2540
|
+
S[32] || (S[32] = t("span", { class: "text-gray-400 inline-block select-none leading-none me-2" }, "└", -1)),
|
|
2541
|
+
t("div", kl, k(s(o)("report.integration.autocount.projectByLocationTitle")), 1)
|
|
2542
2542
|
]),
|
|
2543
2543
|
l(ae, {
|
|
2544
2544
|
"header-items": [
|
|
@@ -2557,10 +2557,10 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2557
2557
|
], 2)
|
|
2558
2558
|
]),
|
|
2559
2559
|
t("div", Sl, [
|
|
2560
|
-
t("div", $l,
|
|
2560
|
+
t("div", $l, k(s(o)("report.integration.grouping.title")), 1),
|
|
2561
2561
|
l(z, {
|
|
2562
2562
|
modelValue: e.value.platform.grouping,
|
|
2563
|
-
"onUpdate:modelValue":
|
|
2563
|
+
"onUpdate:modelValue": S[2] || (S[2] = (N) => e.value.platform.grouping = N),
|
|
2564
2564
|
multiselect: !1,
|
|
2565
2565
|
items: a,
|
|
2566
2566
|
placeholder: "Select grouping",
|
|
@@ -2569,14 +2569,14 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2569
2569
|
]),
|
|
2570
2570
|
e.value.platform.grouping !== s(ue).BY_DAY && e.value.platform.grouping !== s(ue).BY_INVOICE ? (w(), j("div", Al, [
|
|
2571
2571
|
t("div", Dl, [
|
|
2572
|
-
|
|
2573
|
-
t("span", null,
|
|
2572
|
+
S[33] || (S[33] = t("span", { class: "text-gray-400 inline-block select-none leading-none me-2" }, "└", -1)),
|
|
2573
|
+
t("span", null, k(s(o)("report.integration.discountByGroupKey")), 1)
|
|
2574
2574
|
]),
|
|
2575
2575
|
t("div", Vl, [
|
|
2576
2576
|
l(ie, {
|
|
2577
2577
|
"model-value": e.value.platform.discountByGroupKey ?? !1,
|
|
2578
2578
|
style: { gap: 0 },
|
|
2579
|
-
"onUpdate:modelValue":
|
|
2579
|
+
"onUpdate:modelValue": S[3] || (S[3] = (N) => {
|
|
2580
2580
|
e.value.platform.discountByGroupKey = N;
|
|
2581
2581
|
})
|
|
2582
2582
|
}, null, 8, ["model-value"])
|
|
@@ -2588,7 +2588,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2588
2588
|
l(ee, {
|
|
2589
2589
|
"model-value": { key: "Debtor", account: e.value.platform.mappings.debtor },
|
|
2590
2590
|
options: i("Debtor"),
|
|
2591
|
-
"onUpdate:modelValue":
|
|
2591
|
+
"onUpdate:modelValue": S[4] || (S[4] = (N) => $({ key: "debtor", value: N.account }))
|
|
2592
2592
|
}, null, 8, ["model-value", "options"]),
|
|
2593
2593
|
l(ee, {
|
|
2594
2594
|
"model-value": {
|
|
@@ -2596,7 +2596,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2596
2596
|
account: e.value.platform.mappings.rounding.account
|
|
2597
2597
|
},
|
|
2598
2598
|
options: i("Rounding"),
|
|
2599
|
-
"onUpdate:modelValue":
|
|
2599
|
+
"onUpdate:modelValue": S[5] || (S[5] = (N) => {
|
|
2600
2600
|
var L, E, me;
|
|
2601
2601
|
(me = (E = (L = e.value) == null ? void 0 : L.platform) == null ? void 0 : E.mappings) != null && me.rounding && (e.value.platform.mappings.rounding.account = N.account);
|
|
2602
2602
|
})
|
|
@@ -2615,7 +2615,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2615
2615
|
l(J, { style: { margin: 0 } }),
|
|
2616
2616
|
t("div", Kl, [
|
|
2617
2617
|
t("div", Nl, [
|
|
2618
|
-
t("div", Ml,
|
|
2618
|
+
t("div", Ml, k(s(o)("report.integration.refNumFormat")), 1),
|
|
2619
2619
|
l(lt)
|
|
2620
2620
|
]),
|
|
2621
2621
|
t("div", Tl, [
|
|
@@ -2625,7 +2625,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2625
2625
|
account: e.value.platform.mappings.invoiceDocNo
|
|
2626
2626
|
},
|
|
2627
2627
|
options: i("Invoice no"),
|
|
2628
|
-
"onUpdate:modelValue":
|
|
2628
|
+
"onUpdate:modelValue": S[6] || (S[6] = (N) => $({ key: "invoiceDocNo", value: N.account }))
|
|
2629
2629
|
}, null, 8, ["model-value", "options"]),
|
|
2630
2630
|
l(ee, {
|
|
2631
2631
|
"model-value": {
|
|
@@ -2633,7 +2633,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2633
2633
|
account: e.value.platform.mappings.creditNoteDocNo
|
|
2634
2634
|
},
|
|
2635
2635
|
options: i("Credit note no"),
|
|
2636
|
-
"onUpdate:modelValue":
|
|
2636
|
+
"onUpdate:modelValue": S[7] || (S[7] = (N) => $({ key: "creditNoteDocNo", value: N.account }))
|
|
2637
2637
|
}, null, 8, ["model-value", "options"]),
|
|
2638
2638
|
l(ee, {
|
|
2639
2639
|
"model-value": {
|
|
@@ -2641,7 +2641,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2641
2641
|
account: e.value.platform.mappings.paymentDocNo
|
|
2642
2642
|
},
|
|
2643
2643
|
options: i("Payment no"),
|
|
2644
|
-
"onUpdate:modelValue":
|
|
2644
|
+
"onUpdate:modelValue": S[8] || (S[8] = (N) => $({ key: "paymentDocNo", value: N.account }))
|
|
2645
2645
|
}, null, 8, ["model-value", "options"]),
|
|
2646
2646
|
l(ee, {
|
|
2647
2647
|
"model-value": {
|
|
@@ -2649,14 +2649,14 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2649
2649
|
account: e.value.platform.mappings.refundDocNo
|
|
2650
2650
|
},
|
|
2651
2651
|
options: i("Refund no"),
|
|
2652
|
-
"onUpdate:modelValue":
|
|
2652
|
+
"onUpdate:modelValue": S[9] || (S[9] = (N) => $({ key: "refundDocNo", value: N.account }))
|
|
2653
2653
|
}, null, 8, ["model-value", "options"])
|
|
2654
2654
|
])
|
|
2655
2655
|
]),
|
|
2656
2656
|
l(J, { style: { margin: 0 } }),
|
|
2657
2657
|
l(Xe, {
|
|
2658
2658
|
modelValue: e.value.platform,
|
|
2659
|
-
"onUpdate:modelValue":
|
|
2659
|
+
"onUpdate:modelValue": S[10] || (S[10] = (N) => e.value.platform = N),
|
|
2660
2660
|
label: s(o)("report.input.email"),
|
|
2661
2661
|
"last-upload-date": (be = e.value.platform) == null ? void 0 : be.lastUploadDate,
|
|
2662
2662
|
"error-logs": V.errorLogs,
|
|
@@ -2665,12 +2665,12 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2665
2665
|
}, null, 8, ["modelValue", "label", "last-upload-date", "error-logs", "integration-id"]),
|
|
2666
2666
|
l(J, { style: { margin: 0 } }),
|
|
2667
2667
|
t("div", Rl, [
|
|
2668
|
-
t("div", Ul,
|
|
2668
|
+
t("div", Ul, k(s(o)("report.integration.items")), 1),
|
|
2669
2669
|
l(H, {
|
|
2670
2670
|
variant: "secondary",
|
|
2671
2671
|
"prepend-icon": "add",
|
|
2672
2672
|
label: "Add items",
|
|
2673
|
-
onClick:
|
|
2673
|
+
onClick: S[11] || (S[11] = () => n("items"))
|
|
2674
2674
|
})
|
|
2675
2675
|
]),
|
|
2676
2676
|
l(ae, {
|
|
@@ -2683,20 +2683,20 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2683
2683
|
key: { placeholder: "FeedMe Key", editable: !0 },
|
|
2684
2684
|
account: { placeholder: "Account Code", editable: !0 }
|
|
2685
2685
|
},
|
|
2686
|
-
onRemove:
|
|
2687
|
-
"onUpdate:rows":
|
|
2686
|
+
onRemove: S[12] || (S[12] = (N, L) => d(N, L)),
|
|
2687
|
+
"onUpdate:rows": S[13] || (S[13] = (N) => {
|
|
2688
2688
|
var L, E;
|
|
2689
2689
|
(E = (L = e.value) == null ? void 0 : L.platform) != null && E.mappings && (e.value.platform.mappings.items = N);
|
|
2690
2690
|
})
|
|
2691
2691
|
}, null, 8, ["rows"]),
|
|
2692
2692
|
l(J, { style: { margin: 0 } }),
|
|
2693
2693
|
t("div", Pl, [
|
|
2694
|
-
t("div", jl,
|
|
2694
|
+
t("div", jl, k(s(o)("report.integration.taxes")), 1),
|
|
2695
2695
|
l(H, {
|
|
2696
2696
|
variant: "secondary",
|
|
2697
2697
|
"prepend-icon": "add",
|
|
2698
2698
|
label: "Add taxes",
|
|
2699
|
-
onClick:
|
|
2699
|
+
onClick: S[14] || (S[14] = () => n("taxes"))
|
|
2700
2700
|
})
|
|
2701
2701
|
]),
|
|
2702
2702
|
l(ae, {
|
|
@@ -2709,20 +2709,20 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2709
2709
|
key: { placeholder: "FeedMe Key", editable: !0 },
|
|
2710
2710
|
account: { placeholder: "Account Code", editable: !0 }
|
|
2711
2711
|
},
|
|
2712
|
-
onRemove:
|
|
2713
|
-
"onUpdate:rows":
|
|
2712
|
+
onRemove: S[15] || (S[15] = (N, L) => d(N, L)),
|
|
2713
|
+
"onUpdate:rows": S[16] || (S[16] = (N) => {
|
|
2714
2714
|
var L, E;
|
|
2715
2715
|
(E = (L = e.value) == null ? void 0 : L.platform) != null && E.mappings && (e.value.platform.mappings.taxes = N);
|
|
2716
2716
|
})
|
|
2717
2717
|
}, null, 8, ["rows"]),
|
|
2718
2718
|
l(J, { style: { margin: 0 } }),
|
|
2719
2719
|
t("div", Ll, [
|
|
2720
|
-
t("div", Ol,
|
|
2720
|
+
t("div", Ol, k(s(o)("report.integration.taxRoundingAdjustments")), 1),
|
|
2721
2721
|
l(H, {
|
|
2722
2722
|
variant: "secondary",
|
|
2723
2723
|
"prepend-icon": "add",
|
|
2724
2724
|
label: "Add tax rounding adjustments",
|
|
2725
|
-
onClick:
|
|
2725
|
+
onClick: S[17] || (S[17] = () => n("taxRoundingAdjustments"))
|
|
2726
2726
|
})
|
|
2727
2727
|
]),
|
|
2728
2728
|
l(ae, {
|
|
@@ -2735,20 +2735,20 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2735
2735
|
key: { placeholder: "FeedMe Key", editable: !0 },
|
|
2736
2736
|
account: { placeholder: "Account Code", editable: !0 }
|
|
2737
2737
|
},
|
|
2738
|
-
onRemove:
|
|
2739
|
-
"onUpdate:rows":
|
|
2738
|
+
onRemove: S[18] || (S[18] = (N, L) => d(N, L)),
|
|
2739
|
+
"onUpdate:rows": S[19] || (S[19] = (N) => {
|
|
2740
2740
|
var L, E;
|
|
2741
2741
|
(E = (L = e.value) == null ? void 0 : L.platform) != null && E.mappings && (e.value.platform.mappings.taxRoundingAdjustments = N);
|
|
2742
2742
|
})
|
|
2743
2743
|
}, null, 8, ["rows"]),
|
|
2744
2744
|
l(J, { style: { margin: 0 } }),
|
|
2745
2745
|
t("div", El, [
|
|
2746
|
-
t("div", Bl,
|
|
2746
|
+
t("div", Bl, k(s(o)("report.integration.payments")), 1),
|
|
2747
2747
|
l(H, {
|
|
2748
2748
|
variant: "secondary",
|
|
2749
2749
|
"prepend-icon": "add",
|
|
2750
2750
|
label: "Add payments",
|
|
2751
|
-
onClick:
|
|
2751
|
+
onClick: S[20] || (S[20] = () => n("payments"))
|
|
2752
2752
|
})
|
|
2753
2753
|
]),
|
|
2754
2754
|
l(ae, {
|
|
@@ -2761,8 +2761,8 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2761
2761
|
key: { placeholder: "FeedMe Key", editable: !0 },
|
|
2762
2762
|
account: { placeholder: "Payment Name", editable: !0 }
|
|
2763
2763
|
},
|
|
2764
|
-
onRemove:
|
|
2765
|
-
"onUpdate:rows":
|
|
2764
|
+
onRemove: S[21] || (S[21] = (N, L) => d("payments", L)),
|
|
2765
|
+
"onUpdate:rows": S[22] || (S[22] = (N) => {
|
|
2766
2766
|
var L, E;
|
|
2767
2767
|
(E = (L = e.value) == null ? void 0 : L.platform) != null && E.mappings && (e.value.platform.mappings.payments = N);
|
|
2768
2768
|
})
|
|
@@ -2770,13 +2770,13 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2770
2770
|
l(J, { style: { margin: 0 } }),
|
|
2771
2771
|
t("div", Yl, [
|
|
2772
2772
|
t("div", ql, [
|
|
2773
|
-
t("div", Hl,
|
|
2774
|
-
t("div", zl,
|
|
2773
|
+
t("div", Hl, k(s(o)("report.integration.autocount.apInvoice.title")), 1),
|
|
2774
|
+
t("div", zl, k(s(o)("report.integration.autocount.apInvoice.description")), 1)
|
|
2775
2775
|
]),
|
|
2776
2776
|
l(ie, {
|
|
2777
2777
|
"model-value": ((Ge = e.value.platform.apInvoice) == null ? void 0 : Ge.enable) ?? !1,
|
|
2778
2778
|
style: { gap: 0 },
|
|
2779
|
-
"onUpdate:modelValue":
|
|
2779
|
+
"onUpdate:modelValue": S[23] || (S[23] = (N) => {
|
|
2780
2780
|
e.value.platform.apInvoice && (e.value.platform.apInvoice.enable = N);
|
|
2781
2781
|
})
|
|
2782
2782
|
}, null, 8, ["model-value"])
|
|
@@ -2792,7 +2792,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2792
2792
|
key: { placeholder: s(o)("report.integration.autocount.apInvoice.purchaseOrderNo"), editable: !1 },
|
|
2793
2793
|
account: { placeholder: s(o)("report.integration.autocount.apInvoice.purchaseOrderNo"), editable: !0 }
|
|
2794
2794
|
},
|
|
2795
|
-
"onUpdate:modelValue":
|
|
2795
|
+
"onUpdate:modelValue": S[24] || (S[24] = (N) => {
|
|
2796
2796
|
e.value.platform.apInvoice && (e.value.platform.apInvoice.mappings.purchaseOrderDocNo = N.account);
|
|
2797
2797
|
})
|
|
2798
2798
|
}, null, 8, ["model-value", "options"]),
|
|
@@ -2817,19 +2817,19 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2817
2817
|
}
|
|
2818
2818
|
}, {
|
|
2819
2819
|
"field-suffix": Se(({ field: N }) => [
|
|
2820
|
-
N.key === "key" ? (w(), j("span", Wl,
|
|
2820
|
+
N.key === "key" ? (w(), j("span", Wl, k(s(o)("report.integration.autocount.apInvoice.projectNoSharedHint")), 1)) : Y("", !0)
|
|
2821
2821
|
]),
|
|
2822
2822
|
_: 1
|
|
2823
2823
|
}, 8, ["model-value", "options"])
|
|
2824
2824
|
], 40, Ql)
|
|
2825
2825
|
]),
|
|
2826
2826
|
t("div", Xl, [
|
|
2827
|
-
t("div", Jl,
|
|
2827
|
+
t("div", Jl, k(s(o)("report.integration.autocount.apInvoice.suppliers")), 1),
|
|
2828
2828
|
l(H, {
|
|
2829
2829
|
variant: "secondary",
|
|
2830
2830
|
"prepend-icon": "add",
|
|
2831
2831
|
label: "Add suppliers",
|
|
2832
|
-
onClick:
|
|
2832
|
+
onClick: S[25] || (S[25] = () => r("suppliers"))
|
|
2833
2833
|
})
|
|
2834
2834
|
]),
|
|
2835
2835
|
l(ae, {
|
|
@@ -2842,18 +2842,18 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2842
2842
|
key: { placeholder: "FeedMe Key", editable: !0 },
|
|
2843
2843
|
creditorCode: { placeholder: s(o)("report.integration.autocount.apInvoice.creditorCode"), editable: !0 }
|
|
2844
2844
|
},
|
|
2845
|
-
onRemove:
|
|
2846
|
-
"onUpdate:rows":
|
|
2845
|
+
onRemove: S[26] || (S[26] = (N, L) => b("suppliers", L)),
|
|
2846
|
+
"onUpdate:rows": S[27] || (S[27] = (N) => {
|
|
2847
2847
|
e.value.platform.apInvoice && (e.value.platform.apInvoice.mappings.suppliers = N);
|
|
2848
2848
|
})
|
|
2849
2849
|
}, null, 8, ["header-items", "rows", "fields-options"]),
|
|
2850
2850
|
t("div", Zl, [
|
|
2851
|
-
t("div", en,
|
|
2851
|
+
t("div", en, k(s(o)("report.integration.autocount.apInvoice.inventoryItems")), 1),
|
|
2852
2852
|
l(H, {
|
|
2853
2853
|
variant: "secondary",
|
|
2854
2854
|
"prepend-icon": "add",
|
|
2855
2855
|
label: "Add inventory items",
|
|
2856
|
-
onClick:
|
|
2856
|
+
onClick: S[28] || (S[28] = () => r("skus"))
|
|
2857
2857
|
})
|
|
2858
2858
|
]),
|
|
2859
2859
|
l(ae, {
|
|
@@ -2873,8 +2873,8 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2873
2873
|
itemCode: { placeholder: s(o)("report.integration.autocount.apInvoice.itemCode"), editable: !0 },
|
|
2874
2874
|
accNo: { placeholder: s(o)("report.integration.autocount.apInvoice.accNo"), editable: !0 }
|
|
2875
2875
|
},
|
|
2876
|
-
onRemove:
|
|
2877
|
-
"onUpdate:rows":
|
|
2876
|
+
onRemove: S[29] || (S[29] = (N, L) => b("skus", L)),
|
|
2877
|
+
"onUpdate:rows": S[30] || (S[30] = (N) => {
|
|
2878
2878
|
e.value.platform.apInvoice && (e.value.platform.apInvoice.mappings.skus = N);
|
|
2879
2879
|
})
|
|
2880
2880
|
}, null, 8, ["header-items", "rows", "fields-options"])
|
|
@@ -2942,22 +2942,22 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2942
2942
|
), I = [
|
|
2943
2943
|
{
|
|
2944
2944
|
accessorKey: "date",
|
|
2945
|
-
header: () =>
|
|
2945
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
|
|
2946
2946
|
enableSorting: !1
|
|
2947
2947
|
},
|
|
2948
2948
|
{
|
|
2949
2949
|
accessorKey: "docNo",
|
|
2950
|
-
header: () =>
|
|
2950
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Doc No"),
|
|
2951
2951
|
enableSorting: !1
|
|
2952
2952
|
},
|
|
2953
2953
|
{
|
|
2954
2954
|
accessorKey: "projNo",
|
|
2955
|
-
header: () =>
|
|
2955
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Project No"),
|
|
2956
2956
|
enableSorting: !1
|
|
2957
2957
|
},
|
|
2958
2958
|
{
|
|
2959
2959
|
accessorKey: "debtor",
|
|
2960
|
-
header: () =>
|
|
2960
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Debtor"),
|
|
2961
2961
|
enableSorting: !1
|
|
2962
2962
|
},
|
|
2963
2963
|
{
|
|
@@ -2967,7 +2967,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2967
2967
|
},
|
|
2968
2968
|
{
|
|
2969
2969
|
accessorKey: "itemAccount",
|
|
2970
|
-
header: () =>
|
|
2970
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Item Account"),
|
|
2971
2971
|
enableSorting: !1
|
|
2972
2972
|
},
|
|
2973
2973
|
{
|
|
@@ -2977,7 +2977,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2977
2977
|
},
|
|
2978
2978
|
{
|
|
2979
2979
|
accessorKey: "itemDescription",
|
|
2980
|
-
header: () =>
|
|
2980
|
+
header: () => C("p", { class: "min-w-[140px] text-nowrap text-ellipsis" }, "Item Description"),
|
|
2981
2981
|
enableSorting: !1
|
|
2982
2982
|
},
|
|
2983
2983
|
{
|
|
@@ -3013,27 +3013,27 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3013
3013
|
], T = [
|
|
3014
3014
|
{
|
|
3015
3015
|
accessorKey: "DocNo",
|
|
3016
|
-
header: () =>
|
|
3016
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Doc No"),
|
|
3017
3017
|
enableSorting: !1
|
|
3018
3018
|
},
|
|
3019
3019
|
{
|
|
3020
3020
|
accessorKey: "DocDate",
|
|
3021
|
-
header: () =>
|
|
3021
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
|
|
3022
3022
|
enableSorting: !1
|
|
3023
3023
|
},
|
|
3024
3024
|
{
|
|
3025
3025
|
accessorKey: "CreditorCode",
|
|
3026
|
-
header: () =>
|
|
3026
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Creditor Code"),
|
|
3027
3027
|
enableSorting: !1
|
|
3028
3028
|
},
|
|
3029
3029
|
{
|
|
3030
3030
|
accessorKey: "SupplierInvoiceNo",
|
|
3031
|
-
header: () =>
|
|
3031
|
+
header: () => C("p", { class: "min-w-[120px] text-nowrap text-ellipsis" }, "Supplier Invoice No"),
|
|
3032
3032
|
enableSorting: !1
|
|
3033
3033
|
},
|
|
3034
3034
|
{
|
|
3035
3035
|
accessorKey: "ProjNo",
|
|
3036
|
-
header: () =>
|
|
3036
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Project No"),
|
|
3037
3037
|
enableSorting: !1
|
|
3038
3038
|
},
|
|
3039
3039
|
{
|
|
@@ -3043,12 +3043,12 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3043
3043
|
},
|
|
3044
3044
|
{
|
|
3045
3045
|
accessorKey: "AccNo",
|
|
3046
|
-
header: () =>
|
|
3046
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Account Code"),
|
|
3047
3047
|
enableSorting: !1
|
|
3048
3048
|
},
|
|
3049
3049
|
{
|
|
3050
3050
|
accessorKey: "DetailDescription",
|
|
3051
|
-
header: () =>
|
|
3051
|
+
header: () => C("p", { class: "min-w-[140px] text-nowrap text-ellipsis" }, "Detail Description"),
|
|
3052
3052
|
enableSorting: !1
|
|
3053
3053
|
},
|
|
3054
3054
|
{
|
|
@@ -3059,22 +3059,22 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3059
3059
|
], M = [
|
|
3060
3060
|
{
|
|
3061
3061
|
accessorKey: "DocNo",
|
|
3062
|
-
header: () =>
|
|
3062
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Doc No"),
|
|
3063
3063
|
enableSorting: !1
|
|
3064
3064
|
},
|
|
3065
3065
|
{
|
|
3066
3066
|
accessorKey: "DocDate",
|
|
3067
|
-
header: () =>
|
|
3067
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
|
|
3068
3068
|
enableSorting: !1
|
|
3069
3069
|
},
|
|
3070
3070
|
{
|
|
3071
3071
|
accessorKey: "CreditorCode",
|
|
3072
|
-
header: () =>
|
|
3072
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Creditor Code"),
|
|
3073
3073
|
enableSorting: !1
|
|
3074
3074
|
},
|
|
3075
3075
|
{
|
|
3076
3076
|
accessorKey: "CreditorName",
|
|
3077
|
-
header: () =>
|
|
3077
|
+
header: () => C("p", { class: "min-w-[140px] text-nowrap text-ellipsis" }, "Creditor Name"),
|
|
3078
3078
|
enableSorting: !1
|
|
3079
3079
|
},
|
|
3080
3080
|
{
|
|
@@ -3084,17 +3084,17 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3084
3084
|
},
|
|
3085
3085
|
{
|
|
3086
3086
|
accessorKey: "ItemCode",
|
|
3087
|
-
header: () =>
|
|
3087
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, o("report.integration.autocount.apInvoice.itemCode")),
|
|
3088
3088
|
enableSorting: !1
|
|
3089
3089
|
},
|
|
3090
3090
|
{
|
|
3091
3091
|
accessorKey: "DetailDescription",
|
|
3092
|
-
header: () =>
|
|
3092
|
+
header: () => C("p", { class: "min-w-[160px] text-nowrap text-ellipsis" }, "Detail Description"),
|
|
3093
3093
|
enableSorting: !1
|
|
3094
3094
|
},
|
|
3095
3095
|
{
|
|
3096
3096
|
accessorKey: "ProjNo",
|
|
3097
|
-
header: () =>
|
|
3097
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Project No"),
|
|
3098
3098
|
enableSorting: !1
|
|
3099
3099
|
},
|
|
3100
3100
|
{
|
|
@@ -3104,7 +3104,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3104
3104
|
},
|
|
3105
3105
|
{
|
|
3106
3106
|
accessorKey: "UnitPrice",
|
|
3107
|
-
header: () =>
|
|
3107
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Unit Price"),
|
|
3108
3108
|
enableSorting: !1
|
|
3109
3109
|
},
|
|
3110
3110
|
{
|
|
@@ -3191,7 +3191,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3191
3191
|
]),
|
|
3192
3192
|
x.value ? (w(), j("div", nn, [
|
|
3193
3193
|
l(n, { size: "xl" }),
|
|
3194
|
-
t("span", sn,
|
|
3194
|
+
t("span", sn, k(s(o)("report.common.isLoading")), 1)
|
|
3195
3195
|
])) : (w(), j("div", rn, [
|
|
3196
3196
|
l(b, {
|
|
3197
3197
|
"model-value": m.value,
|
|
@@ -3323,8 +3323,8 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3323
3323
|
});
|
|
3324
3324
|
}
|
|
3325
3325
|
async function A() {
|
|
3326
|
-
var
|
|
3327
|
-
const r = (
|
|
3326
|
+
var $;
|
|
3327
|
+
const r = ($ = e.value.platform) == null ? void 0 : $.locationIds;
|
|
3328
3328
|
if (Ce({
|
|
3329
3329
|
integrationRestaurantIds: r,
|
|
3330
3330
|
rules: f.value,
|
|
@@ -3341,9 +3341,9 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3341
3341
|
}
|
|
3342
3342
|
});
|
|
3343
3343
|
}
|
|
3344
|
-
function y(r, a,
|
|
3344
|
+
function y(r, a, $) {
|
|
3345
3345
|
var R;
|
|
3346
|
-
const i = (R = e.value.platform) == null ? void 0 : R[
|
|
3346
|
+
const i = (R = e.value.platform) == null ? void 0 : R[$];
|
|
3347
3347
|
if (!i) return;
|
|
3348
3348
|
if ([
|
|
3349
3349
|
"items",
|
|
@@ -3355,13 +3355,13 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3355
3355
|
].includes(r)) {
|
|
3356
3356
|
const U = r;
|
|
3357
3357
|
i[U] && Array.isArray(i[U]) && (i[U] = i[U].filter(
|
|
3358
|
-
(V,
|
|
3358
|
+
(V, S) => S !== a
|
|
3359
3359
|
));
|
|
3360
3360
|
}
|
|
3361
3361
|
}
|
|
3362
3362
|
function m(r, a) {
|
|
3363
|
-
var
|
|
3364
|
-
(
|
|
3363
|
+
var $;
|
|
3364
|
+
($ = e.value.platform) != null && $[r] && e.value.platform[r][a] && (e.value.platform[r][a] = [
|
|
3365
3365
|
...e.value.platform[r][a],
|
|
3366
3366
|
a === "items" ? {
|
|
3367
3367
|
key: "",
|
|
@@ -3378,8 +3378,8 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3378
3378
|
key: r,
|
|
3379
3379
|
value: a
|
|
3380
3380
|
}) {
|
|
3381
|
-
var
|
|
3382
|
-
(i = (
|
|
3381
|
+
var $, i;
|
|
3382
|
+
(i = ($ = e.value) == null ? void 0 : $.platform) != null && i.mappings && (e.value.platform.mappings[r] = a);
|
|
3383
3383
|
}
|
|
3384
3384
|
function _(r) {
|
|
3385
3385
|
return {
|
|
@@ -3424,20 +3424,20 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3424
3424
|
return je(async () => {
|
|
3425
3425
|
await v.getSettings();
|
|
3426
3426
|
}), (r, a) => {
|
|
3427
|
-
var
|
|
3428
|
-
const
|
|
3429
|
-
return (q = (
|
|
3427
|
+
var S, q, H, J, ne, z, ie, ce, ge, ve, ye, xe, be, we, oe, W, te, K, O, X, De, B, pe, he, ze, Ge, Qe;
|
|
3428
|
+
const $ = D("FmIcon"), i = D("FmButton"), u = D("FmMenuDivider"), R = D("FmTextField"), U = D("FmSelect"), V = D("FmSwitch");
|
|
3429
|
+
return (q = (S = e.value) == null ? void 0 : S.platform) != null && q.mappings ? (w(), j("div", cn, [
|
|
3430
3430
|
t("div", fn, [
|
|
3431
3431
|
t("div", gn, [
|
|
3432
3432
|
a[35] || (a[35] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
|
|
3433
3433
|
t("div", vn, [
|
|
3434
3434
|
t("div", yn, [
|
|
3435
|
-
l(
|
|
3435
|
+
l($, {
|
|
3436
3436
|
name: "refresh",
|
|
3437
3437
|
class: "p-2 bg-gray-100 rounded-full",
|
|
3438
3438
|
onClick: d
|
|
3439
3439
|
}),
|
|
3440
|
-
t("span", xn,
|
|
3440
|
+
t("span", xn, k(s(o)("report.integration.refreshSetting")), 1)
|
|
3441
3441
|
]),
|
|
3442
3442
|
l(i, {
|
|
3443
3443
|
variant: "tertiary",
|
|
@@ -3457,9 +3457,9 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3457
3457
|
t("div", bn, [
|
|
3458
3458
|
t("div", wn, [
|
|
3459
3459
|
t("div", hn, [
|
|
3460
|
-
t("div", _n,
|
|
3460
|
+
t("div", _n, k(s(o)("report.integration.general")), 1),
|
|
3461
3461
|
t("div", Cn, [
|
|
3462
|
-
t("div", kn,
|
|
3462
|
+
t("div", kn, k(s(o)("report.common.name")), 1),
|
|
3463
3463
|
t("div", Sn, [
|
|
3464
3464
|
l(R, {
|
|
3465
3465
|
modelValue: e.value.name,
|
|
@@ -3468,7 +3468,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3468
3468
|
])
|
|
3469
3469
|
]),
|
|
3470
3470
|
t("div", $n, [
|
|
3471
|
-
t("div", An,
|
|
3471
|
+
t("div", An, k(s(o)("report.integration.location")), 1),
|
|
3472
3472
|
l(U, {
|
|
3473
3473
|
modelValue: e.value.platform.locationIds,
|
|
3474
3474
|
"onUpdate:modelValue": a[1] || (a[1] = (N) => e.value.platform.locationIds = N),
|
|
@@ -3480,7 +3480,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3480
3480
|
}, null, 8, ["modelValue", "items", "rules"])
|
|
3481
3481
|
]),
|
|
3482
3482
|
t("div", Dn, [
|
|
3483
|
-
t("div", Vn,
|
|
3483
|
+
t("div", Vn, k(s(o)("report.integration.grouping.title")), 1),
|
|
3484
3484
|
l(U, {
|
|
3485
3485
|
modelValue: e.value.platform.grouping,
|
|
3486
3486
|
"onUpdate:modelValue": a[2] || (a[2] = (N) => e.value.platform.grouping = N),
|
|
@@ -3493,7 +3493,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3493
3493
|
e.value.platform.grouping !== s(ue).BY_DAY && e.value.platform.grouping !== s(ue).BY_INVOICE ? (w(), j("div", Fn, [
|
|
3494
3494
|
t("div", In, [
|
|
3495
3495
|
a[36] || (a[36] = t("span", { class: "text-gray-400 inline-block select-none leading-none me-2" }, "└", -1)),
|
|
3496
|
-
t("span", null,
|
|
3496
|
+
t("span", null, k(s(o)("report.integration.discountByGroupKey")), 1)
|
|
3497
3497
|
]),
|
|
3498
3498
|
t("div", Kn, [
|
|
3499
3499
|
l(V, {
|
|
@@ -3570,7 +3570,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3570
3570
|
l(u, { style: { margin: 0 } }),
|
|
3571
3571
|
t("div", Rn, [
|
|
3572
3572
|
t("div", Un, [
|
|
3573
|
-
t("div", Pn,
|
|
3573
|
+
t("div", Pn, k(s(o)("report.integration.refNumFormat")), 1),
|
|
3574
3574
|
l(lt)
|
|
3575
3575
|
]),
|
|
3576
3576
|
t("div", jn, [
|
|
@@ -3620,7 +3620,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3620
3620
|
}, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
|
|
3621
3621
|
l(u, { style: { margin: 0 } }),
|
|
3622
3622
|
t("div", Ln, [
|
|
3623
|
-
t("div", On,
|
|
3623
|
+
t("div", On, k(s(o)("report.integration.items")), 1),
|
|
3624
3624
|
l(i, {
|
|
3625
3625
|
variant: "secondary",
|
|
3626
3626
|
"prepend-icon": "add",
|
|
@@ -3647,7 +3647,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3647
3647
|
}, null, 8, ["rows"]),
|
|
3648
3648
|
l(u, { style: { margin: 0 } }),
|
|
3649
3649
|
t("div", En, [
|
|
3650
|
-
t("div", Bn,
|
|
3650
|
+
t("div", Bn, k(s(o)("report.integration.taxes")), 1),
|
|
3651
3651
|
l(i, {
|
|
3652
3652
|
variant: "secondary",
|
|
3653
3653
|
"prepend-icon": "add",
|
|
@@ -3673,7 +3673,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3673
3673
|
}, null, 8, ["rows"]),
|
|
3674
3674
|
l(u, { style: { margin: 0 } }),
|
|
3675
3675
|
t("div", Yn, [
|
|
3676
|
-
t("div", qn,
|
|
3676
|
+
t("div", qn, k(s(o)("report.integration.taxesForRefund")), 1),
|
|
3677
3677
|
l(i, {
|
|
3678
3678
|
variant: "secondary",
|
|
3679
3679
|
"prepend-icon": "add",
|
|
@@ -3699,7 +3699,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3699
3699
|
}, null, 8, ["rows"]),
|
|
3700
3700
|
l(u, { style: { margin: 0 } }),
|
|
3701
3701
|
t("div", Hn, [
|
|
3702
|
-
t("div", zn,
|
|
3702
|
+
t("div", zn, k(s(o)("report.integration.taxRoundingAdjustments")), 1),
|
|
3703
3703
|
l(i, {
|
|
3704
3704
|
variant: "secondary",
|
|
3705
3705
|
"prepend-icon": "add",
|
|
@@ -3725,7 +3725,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3725
3725
|
}, null, 8, ["rows"]),
|
|
3726
3726
|
l(u, { style: { margin: 0 } }),
|
|
3727
3727
|
t("div", Gn, [
|
|
3728
|
-
t("div", Qn,
|
|
3728
|
+
t("div", Qn, k(s(o)("report.integration.payments")), 1),
|
|
3729
3729
|
l(i, {
|
|
3730
3730
|
variant: "secondary",
|
|
3731
3731
|
"prepend-icon": "add",
|
|
@@ -3872,17 +3872,17 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3872
3872
|
), v = [
|
|
3873
3873
|
{
|
|
3874
3874
|
accessorKey: "date",
|
|
3875
|
-
header: () =>
|
|
3875
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
|
|
3876
3876
|
enableSorting: !1
|
|
3877
3877
|
},
|
|
3878
3878
|
{
|
|
3879
3879
|
accessorKey: "docNo",
|
|
3880
|
-
header: () =>
|
|
3880
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Doc No"),
|
|
3881
3881
|
enableSorting: !1
|
|
3882
3882
|
},
|
|
3883
3883
|
{
|
|
3884
3884
|
accessorKey: "debtor",
|
|
3885
|
-
header: () =>
|
|
3885
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Debtor"),
|
|
3886
3886
|
enableSorting: !1
|
|
3887
3887
|
},
|
|
3888
3888
|
{
|
|
@@ -3892,7 +3892,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3892
3892
|
},
|
|
3893
3893
|
{
|
|
3894
3894
|
accessorKey: "itemAccount",
|
|
3895
|
-
header: () =>
|
|
3895
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Item Account"),
|
|
3896
3896
|
enableSorting: !1
|
|
3897
3897
|
},
|
|
3898
3898
|
{
|
|
@@ -3902,7 +3902,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3902
3902
|
},
|
|
3903
3903
|
{
|
|
3904
3904
|
accessorKey: "itemDescription",
|
|
3905
|
-
header: () =>
|
|
3905
|
+
header: () => C("p", { class: "min-w-[140px] text-nowrap text-ellipsis" }, "Item Description"),
|
|
3906
3906
|
enableSorting: !1
|
|
3907
3907
|
},
|
|
3908
3908
|
{
|
|
@@ -3964,17 +3964,17 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3964
3964
|
), I = [
|
|
3965
3965
|
{
|
|
3966
3966
|
accessorKey: "date",
|
|
3967
|
-
header: () =>
|
|
3967
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
|
|
3968
3968
|
enableSorting: !1
|
|
3969
3969
|
},
|
|
3970
3970
|
{
|
|
3971
3971
|
accessorKey: "docNo",
|
|
3972
|
-
header: () =>
|
|
3972
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Doc No"),
|
|
3973
3973
|
enableSorting: !1
|
|
3974
3974
|
},
|
|
3975
3975
|
{
|
|
3976
3976
|
accessorKey: "supplierCode",
|
|
3977
|
-
header: () =>
|
|
3977
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Supplier Code"),
|
|
3978
3978
|
enableSorting: !1
|
|
3979
3979
|
},
|
|
3980
3980
|
{
|
|
@@ -3984,17 +3984,17 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3984
3984
|
},
|
|
3985
3985
|
{
|
|
3986
3986
|
accessorKey: "accountCode",
|
|
3987
|
-
header: () =>
|
|
3987
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Account Code"),
|
|
3988
3988
|
enableSorting: !1
|
|
3989
3989
|
},
|
|
3990
3990
|
{
|
|
3991
3991
|
accessorKey: "itemCode",
|
|
3992
|
-
header: () =>
|
|
3992
|
+
header: () => C("p", { class: "min-w-[100px] text-wrap text-ellipsis" }, "Inventory Item Code"),
|
|
3993
3993
|
enableSorting: !1
|
|
3994
3994
|
},
|
|
3995
3995
|
{
|
|
3996
3996
|
accessorKey: "itemDescription",
|
|
3997
|
-
header: () =>
|
|
3997
|
+
header: () => C("p", { class: "min-w-[140px] text-wrap text-ellipsis" }, "Inventory Item Description"),
|
|
3998
3998
|
enableSorting: !1
|
|
3999
3999
|
},
|
|
4000
4000
|
{
|
|
@@ -4084,7 +4084,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4084
4084
|
]),
|
|
4085
4085
|
M.value ? (w(), j("div", ts, [
|
|
4086
4086
|
l(d, { size: "xl" }),
|
|
4087
|
-
t("span", os,
|
|
4087
|
+
t("span", os, k(s(o)("report.common.isLoading")), 1)
|
|
4088
4088
|
])) : (w(), j("div", as, [
|
|
4089
4089
|
l(n, {
|
|
4090
4090
|
"model-value": y.value,
|
|
@@ -4209,9 +4209,9 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4209
4209
|
);
|
|
4210
4210
|
function P(r) {
|
|
4211
4211
|
var a;
|
|
4212
|
-
!((a = g.retrievedMethods) != null && a.data) || !Array.isArray(g.retrievedMethods.data) || r.forEach((
|
|
4213
|
-
const i = g.retrievedMethods.data.find((u) => u.value ==
|
|
4214
|
-
i && (
|
|
4212
|
+
!((a = g.retrievedMethods) != null && a.data) || !Array.isArray(g.retrievedMethods.data) || r.forEach(($) => {
|
|
4213
|
+
const i = g.retrievedMethods.data.find((u) => u.value == $.id);
|
|
4214
|
+
i && ($.cnId = i.cnId);
|
|
4215
4215
|
});
|
|
4216
4216
|
}
|
|
4217
4217
|
async function A() {
|
|
@@ -4237,8 +4237,8 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4237
4237
|
});
|
|
4238
4238
|
}
|
|
4239
4239
|
async function y() {
|
|
4240
|
-
var
|
|
4241
|
-
const r = (
|
|
4240
|
+
var $;
|
|
4241
|
+
const r = ($ = e.value.platform) == null ? void 0 : $.locationIds;
|
|
4242
4242
|
if (Ce({
|
|
4243
4243
|
integrationRestaurantIds: r,
|
|
4244
4244
|
rules: f.value,
|
|
@@ -4258,18 +4258,18 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4258
4258
|
}
|
|
4259
4259
|
function m(r, a) {
|
|
4260
4260
|
var u;
|
|
4261
|
-
const
|
|
4262
|
-
if (
|
|
4261
|
+
const $ = (u = e.value.platform) == null ? void 0 : u.mappings;
|
|
4262
|
+
if (!$) return;
|
|
4263
4263
|
if (["items", "taxes", "paymentMethods", "taxRoundingAdjustments"].includes(r)) {
|
|
4264
4264
|
const R = r;
|
|
4265
|
-
|
|
4265
|
+
$[R] && Array.isArray($[R]) && ($[R] = $[R].filter(
|
|
4266
4266
|
(U, V) => V !== a
|
|
4267
4267
|
));
|
|
4268
4268
|
}
|
|
4269
4269
|
}
|
|
4270
4270
|
function c(r) {
|
|
4271
|
-
var a,
|
|
4272
|
-
(
|
|
4271
|
+
var a, $;
|
|
4272
|
+
($ = (a = e.value.platform) == null ? void 0 : a.mappings) != null && $[r] && (e.value.platform.mappings[r] = [
|
|
4273
4273
|
...e.value.platform.mappings[r],
|
|
4274
4274
|
r === "items" ? {
|
|
4275
4275
|
key: "",
|
|
@@ -4294,8 +4294,8 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4294
4294
|
key: r,
|
|
4295
4295
|
value: a
|
|
4296
4296
|
}) {
|
|
4297
|
-
var
|
|
4298
|
-
(i = (
|
|
4297
|
+
var $, i;
|
|
4298
|
+
(i = ($ = e.value) == null ? void 0 : $.platform) != null && i.mappings && (e.value.platform.mappings[r] = a);
|
|
4299
4299
|
}
|
|
4300
4300
|
function n(r) {
|
|
4301
4301
|
return {
|
|
@@ -4305,11 +4305,11 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4305
4305
|
}
|
|
4306
4306
|
Fe(
|
|
4307
4307
|
() => {
|
|
4308
|
-
var r, a,
|
|
4309
|
-
return (
|
|
4308
|
+
var r, a, $;
|
|
4309
|
+
return ($ = (a = (r = e.value) == null ? void 0 : r.platform) == null ? void 0 : a.mappings) == null ? void 0 : $.taxes;
|
|
4310
4310
|
},
|
|
4311
4311
|
(r) => {
|
|
4312
|
-
r && r.forEach((a,
|
|
4312
|
+
r && r.forEach((a, $) => {
|
|
4313
4313
|
var R;
|
|
4314
4314
|
const i = a.key || "";
|
|
4315
4315
|
let u = a.account;
|
|
@@ -4325,7 +4325,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4325
4325
|
u = "SST-0";
|
|
4326
4326
|
break;
|
|
4327
4327
|
}
|
|
4328
|
-
(R = e.value.platform) != null && R.mappings && (e.value.platform.mappings.taxes[
|
|
4328
|
+
(R = e.value.platform) != null && R.mappings && (e.value.platform.mappings.taxes[$] = {
|
|
4329
4329
|
...a,
|
|
4330
4330
|
account: u
|
|
4331
4331
|
});
|
|
@@ -4335,12 +4335,12 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4335
4335
|
{ immediate: !0, deep: !0 }
|
|
4336
4336
|
), Fe(
|
|
4337
4337
|
() => {
|
|
4338
|
-
var r, a,
|
|
4339
|
-
return (
|
|
4338
|
+
var r, a, $;
|
|
4339
|
+
return ($ = (a = (r = e.value) == null ? void 0 : r.platform) == null ? void 0 : a.mappings) == null ? void 0 : $.version;
|
|
4340
4340
|
},
|
|
4341
4341
|
(r) => {
|
|
4342
|
-
var a,
|
|
4343
|
-
r === "v1" && !((i = (
|
|
4342
|
+
var a, $, i, u, R;
|
|
4343
|
+
r === "v1" && !((i = ($ = (a = e.value) == null ? void 0 : a.platform) == null ? void 0 : $.mappings) != null && i.payee) && (R = (u = e.value) == null ? void 0 : u.platform) != null && R.mappings && (e.value.platform.mappings.payee = {
|
|
4344
4344
|
id: 1,
|
|
4345
4345
|
name: ""
|
|
4346
4346
|
});
|
|
@@ -4359,21 +4359,21 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4359
4359
|
return je(async () => {
|
|
4360
4360
|
await v.getSettings();
|
|
4361
4361
|
}), (r, a) => {
|
|
4362
|
-
var
|
|
4363
|
-
const
|
|
4364
|
-
return (q = (
|
|
4362
|
+
var S, q, H, J, ne, z, ie, ce, ge, ve, ye, xe, be, we, oe, W, te;
|
|
4363
|
+
const $ = D("FmIcon"), i = D("FmButton"), u = D("FmSelect"), R = D("FmMenuDivider"), U = D("FmTextField"), V = D("FmCircularProgress");
|
|
4364
|
+
return (q = (S = e.value) == null ? void 0 : S.platform) != null && q.mappings ? (w(), j("div", is, [
|
|
4365
4365
|
t("div", ds, [
|
|
4366
4366
|
t("div", ps, [
|
|
4367
|
-
t("div", ms,
|
|
4367
|
+
t("div", ms, k(s(o)("report.integration.connect")), 1),
|
|
4368
4368
|
t("div", us, [
|
|
4369
4369
|
t("div", cs, [
|
|
4370
4370
|
t("div", fs, [
|
|
4371
|
-
l(
|
|
4371
|
+
l($, {
|
|
4372
4372
|
name: "refresh",
|
|
4373
4373
|
class: "p-2 bg-gray-100 rounded-full",
|
|
4374
4374
|
onClick: b
|
|
4375
4375
|
}),
|
|
4376
|
-
t("span", gs,
|
|
4376
|
+
t("span", gs, k(s(o)("report.integration.refreshSetting")), 1)
|
|
4377
4377
|
]),
|
|
4378
4378
|
l(i, {
|
|
4379
4379
|
variant: "tertiary",
|
|
@@ -4392,9 +4392,9 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4392
4392
|
]),
|
|
4393
4393
|
t("div", vs, [
|
|
4394
4394
|
t("div", ys, [
|
|
4395
|
-
t("div", xs,
|
|
4395
|
+
t("div", xs, k(s(o)("report.integration.biztory.authenticate")), 1),
|
|
4396
4396
|
t("div", bs, [
|
|
4397
|
-
t("div", ws, " Biztory " +
|
|
4397
|
+
t("div", ws, " Biztory " + k(s(o)("report.integration.biztory.version")), 1),
|
|
4398
4398
|
t("div", hs, [
|
|
4399
4399
|
l(u, {
|
|
4400
4400
|
modelValue: e.value.platform.mappings.version,
|
|
@@ -4410,7 +4410,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4410
4410
|
l(R, { style: { margin: 0 } }),
|
|
4411
4411
|
t("div", _s, [
|
|
4412
4412
|
t("div", Cs, [
|
|
4413
|
-
t("div", ks,
|
|
4413
|
+
t("div", ks, k(s(o)("report.integration.biztory.subdomain")), 1),
|
|
4414
4414
|
t("div", Ss, [
|
|
4415
4415
|
l(U, {
|
|
4416
4416
|
modelValue: e.value.platform.subdomain,
|
|
@@ -4420,7 +4420,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4420
4420
|
])
|
|
4421
4421
|
]),
|
|
4422
4422
|
t("div", $s, [
|
|
4423
|
-
t("div", As,
|
|
4423
|
+
t("div", As, k(s(o)("report.integration.biztory.apiKey")), 1),
|
|
4424
4424
|
t("div", Ds, [
|
|
4425
4425
|
l(U, {
|
|
4426
4426
|
modelValue: e.value.platform.api_key,
|
|
@@ -4430,9 +4430,9 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4430
4430
|
])
|
|
4431
4431
|
]),
|
|
4432
4432
|
t("div", Vs, [
|
|
4433
|
-
t("div", Fs,
|
|
4433
|
+
t("div", Fs, k(s(o)("report.integration.general")), 1),
|
|
4434
4434
|
t("div", Is, [
|
|
4435
|
-
t("div", Ks,
|
|
4435
|
+
t("div", Ks, k(s(o)("report.common.name")), 1),
|
|
4436
4436
|
t("div", Ns, [
|
|
4437
4437
|
l(U, {
|
|
4438
4438
|
modelValue: e.value.name,
|
|
@@ -4441,7 +4441,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4441
4441
|
])
|
|
4442
4442
|
]),
|
|
4443
4443
|
t("div", Ms, [
|
|
4444
|
-
t("div", Ts,
|
|
4444
|
+
t("div", Ts, k(s(o)("report.common.location")), 1),
|
|
4445
4445
|
l(u, {
|
|
4446
4446
|
modelValue: e.value.platform.locationIds,
|
|
4447
4447
|
"onUpdate:modelValue": a[4] || (a[4] = (K) => e.value.platform.locationIds = K),
|
|
@@ -4452,7 +4452,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4452
4452
|
}, null, 8, ["modelValue", "items", "placeholder"])
|
|
4453
4453
|
]),
|
|
4454
4454
|
t("div", Rs, [
|
|
4455
|
-
t("div", Us,
|
|
4455
|
+
t("div", Us, k(s(o)("report.integration.grouping.title")), 1),
|
|
4456
4456
|
l(u, {
|
|
4457
4457
|
modelValue: e.value.platform.grouping,
|
|
4458
4458
|
"onUpdate:modelValue": a[5] || (a[5] = (K) => e.value.platform.grouping = K),
|
|
@@ -4504,7 +4504,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4504
4504
|
l(R, { style: { margin: 0 } }),
|
|
4505
4505
|
t("div", Es, [
|
|
4506
4506
|
t("div", Bs, [
|
|
4507
|
-
t("div", Ys,
|
|
4507
|
+
t("div", Ys, k(s(o)("report.integration.refNumFormat")), 1),
|
|
4508
4508
|
l(lt)
|
|
4509
4509
|
]),
|
|
4510
4510
|
t("div", qs, [
|
|
@@ -4555,7 +4555,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4555
4555
|
}, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
|
|
4556
4556
|
l(R, { style: { margin: 0 } }),
|
|
4557
4557
|
t("div", Hs, [
|
|
4558
|
-
t("div", zs,
|
|
4558
|
+
t("div", zs, k(s(o)("report.integration.biztory.items")), 1),
|
|
4559
4559
|
l(i, {
|
|
4560
4560
|
variant: "secondary",
|
|
4561
4561
|
"prepend-icon": "add",
|
|
@@ -4581,7 +4581,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4581
4581
|
}, null, 8, ["rows"]),
|
|
4582
4582
|
l(R, { style: { margin: 0 } }),
|
|
4583
4583
|
t("div", Gs, [
|
|
4584
|
-
t("div", Qs,
|
|
4584
|
+
t("div", Qs, k(s(o)("report.integration.biztory.taxes")), 1),
|
|
4585
4585
|
l(i, {
|
|
4586
4586
|
variant: "secondary",
|
|
4587
4587
|
"prepend-icon": "add",
|
|
@@ -4607,7 +4607,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4607
4607
|
}, null, 8, ["rows"]),
|
|
4608
4608
|
l(R, { style: { margin: 0 } }),
|
|
4609
4609
|
t("div", Ws, [
|
|
4610
|
-
t("div", Xs,
|
|
4610
|
+
t("div", Xs, k(s(o)("report.integration.taxRoundingAdjustments")), 1),
|
|
4611
4611
|
l(i, {
|
|
4612
4612
|
variant: "secondary",
|
|
4613
4613
|
"prepend-icon": "add",
|
|
@@ -4633,7 +4633,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4633
4633
|
}, null, 8, ["rows"]),
|
|
4634
4634
|
l(R, { style: { margin: 0 } }),
|
|
4635
4635
|
t("div", Js, [
|
|
4636
|
-
t("div", Zs,
|
|
4636
|
+
t("div", Zs, k(s(o)("report.integration.biztory.payments")), 1),
|
|
4637
4637
|
l(i, {
|
|
4638
4638
|
variant: "secondary",
|
|
4639
4639
|
"prepend-icon": "add",
|
|
@@ -4656,13 +4656,13 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4656
4656
|
}, null, 8, ["modelValue"])
|
|
4657
4657
|
])
|
|
4658
4658
|
]),
|
|
4659
|
-
g.retrievedMethods.isError ? Y("", !0) : (w(), j("div", or,
|
|
4660
|
-
g.retrievedMethods.isLoaded && g.retrievedMethods.data && g.retrievedMethods.data.length == 0 && !g.retrievedMethods.isError ? (w(), j("span", ar,
|
|
4659
|
+
g.retrievedMethods.isError ? Y("", !0) : (w(), j("div", or, k(s(o)("report.integration.biztory.paymentTerm")), 1)),
|
|
4660
|
+
g.retrievedMethods.isLoaded && g.retrievedMethods.data && g.retrievedMethods.data.length == 0 && !g.retrievedMethods.isError ? (w(), j("span", ar, k(s(o)("report.integration.biztory.noPaymentMethods")), 1)) : Y("", !0),
|
|
4661
4661
|
g.retrievedMethods.isLoaded ? Y("", !0) : (w(), Q(V, {
|
|
4662
4662
|
key: 2,
|
|
4663
4663
|
size: "xl"
|
|
4664
4664
|
})),
|
|
4665
|
-
g.retrievedMethods.isError ? (w(), j("span", lr,
|
|
4665
|
+
g.retrievedMethods.isError ? (w(), j("span", lr, k(s(o)("report.integration.biztory.error")), 1)) : Y("", !0),
|
|
4666
4666
|
g.retrievedMethods.isLoaded && g.retrievedMethods.data && g.retrievedMethods.data.length != 0 ? (w(), Q(ae, {
|
|
4667
4667
|
key: 4,
|
|
4668
4668
|
"header-items": ["FeedMe Key", "Payment Name"],
|
|
@@ -4693,7 +4693,7 @@ const Dt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
4693
4693
|
});
|
|
4694
4694
|
function sr(g) {
|
|
4695
4695
|
return g.reduce((o, e) => {
|
|
4696
|
-
var F, I, T, M, f, x, h, P, A, y, m, c, _, d, n, b, r, a,
|
|
4696
|
+
var F, I, T, M, f, x, h, P, A, y, m, c, _, d, n, b, r, a, $, i, u, R;
|
|
4697
4697
|
const { invoice: p } = e, v = o.length;
|
|
4698
4698
|
o[v] = {
|
|
4699
4699
|
invoice_date: p.invoice_date,
|
|
@@ -4714,19 +4714,19 @@ function sr(g) {
|
|
|
4714
4714
|
for (let U = 1; U < Math.max(((m = p.items) == null ? void 0 : m.length) || 0, ((c = p.transactions) == null ? void 0 : c.length) || 0); U++) {
|
|
4715
4715
|
const V = v + U;
|
|
4716
4716
|
o[V] || (o[V] = {});
|
|
4717
|
-
const
|
|
4718
|
-
|
|
4717
|
+
const S = p.items[U];
|
|
4718
|
+
S ? o[V] = {
|
|
4719
4719
|
...o[V],
|
|
4720
|
-
item_code:
|
|
4721
|
-
item_desc:
|
|
4722
|
-
item_price:
|
|
4723
|
-
item_tax:
|
|
4724
|
-
item_tax_label:
|
|
4720
|
+
item_code: S.code,
|
|
4721
|
+
item_desc: S.description,
|
|
4722
|
+
item_price: S.price,
|
|
4723
|
+
item_tax: S.total_tax,
|
|
4724
|
+
item_tax_label: S.tax_label || "-",
|
|
4725
4725
|
payment_amount: ((d = (_ = p.transactions) == null ? void 0 : _[U]) == null ? void 0 : d.amount) || void 0,
|
|
4726
4726
|
payment_method: ((b = (n = p.transactions) == null ? void 0 : n[U]) == null ? void 0 : b.payment_method) || "-",
|
|
4727
4727
|
payment_term: ((r = p == null ? void 0 : p.payment_term) == null ? void 0 : r.name) || ""
|
|
4728
4728
|
} : o[V] = {
|
|
4729
|
-
payment_amount: ((
|
|
4729
|
+
payment_amount: (($ = (a = p.transactions) == null ? void 0 : a[U]) == null ? void 0 : $.amount) || void 0,
|
|
4730
4730
|
payment_method: ((u = (i = p.transactions) == null ? void 0 : i[U]) == null ? void 0 : u.payment_method) || "-",
|
|
4731
4731
|
payment_term: ((R = p == null ? void 0 : p.payment_term) == null ? void 0 : R.name) || ""
|
|
4732
4732
|
};
|
|
@@ -4737,17 +4737,17 @@ function sr(g) {
|
|
|
4737
4737
|
const rr = [
|
|
4738
4738
|
{
|
|
4739
4739
|
accessorKey: "invoice_date",
|
|
4740
|
-
header: () =>
|
|
4740
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
|
|
4741
4741
|
enableSorting: !1
|
|
4742
4742
|
},
|
|
4743
4743
|
{
|
|
4744
4744
|
accessorKey: "ref_num",
|
|
4745
|
-
header: () =>
|
|
4745
|
+
header: () => C("p", { class: "min-w-[130px] text-nowrap text-ellipsis" }, "Doc No"),
|
|
4746
4746
|
enableSorting: !1
|
|
4747
4747
|
},
|
|
4748
4748
|
{
|
|
4749
4749
|
accessorKey: "grandTotal",
|
|
4750
|
-
header: () =>
|
|
4750
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Total"),
|
|
4751
4751
|
enableSorting: !1
|
|
4752
4752
|
},
|
|
4753
4753
|
// {
|
|
@@ -4767,42 +4767,42 @@ const rr = [
|
|
|
4767
4767
|
// },
|
|
4768
4768
|
{
|
|
4769
4769
|
accessorKey: "item_code",
|
|
4770
|
-
header: () =>
|
|
4770
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Item Code"),
|
|
4771
4771
|
enableSorting: !1
|
|
4772
4772
|
},
|
|
4773
4773
|
{
|
|
4774
4774
|
accessorKey: "item_desc",
|
|
4775
|
-
header: () =>
|
|
4775
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Item Description"),
|
|
4776
4776
|
enableSorting: !1
|
|
4777
4777
|
},
|
|
4778
4778
|
{
|
|
4779
4779
|
accessorKey: "item_price",
|
|
4780
|
-
header: () =>
|
|
4780
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Item Price"),
|
|
4781
4781
|
enableSorting: !1
|
|
4782
4782
|
},
|
|
4783
4783
|
{
|
|
4784
4784
|
accessorKey: "item_tax",
|
|
4785
|
-
header: () =>
|
|
4785
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Item Tax"),
|
|
4786
4786
|
enableSorting: !1
|
|
4787
4787
|
},
|
|
4788
4788
|
{
|
|
4789
4789
|
accessorKey: "item_tax_label",
|
|
4790
|
-
header: () =>
|
|
4790
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Item Tax Label"),
|
|
4791
4791
|
enableSorting: !1
|
|
4792
4792
|
},
|
|
4793
4793
|
{
|
|
4794
4794
|
accessorKey: "payment_amount",
|
|
4795
|
-
header: () =>
|
|
4795
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Payment Amount"),
|
|
4796
4796
|
enableSorting: !1
|
|
4797
4797
|
},
|
|
4798
4798
|
{
|
|
4799
4799
|
accessorKey: "payment_term",
|
|
4800
|
-
header: () =>
|
|
4800
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Payment Term"),
|
|
4801
4801
|
enableSorting: !1
|
|
4802
4802
|
},
|
|
4803
4803
|
{
|
|
4804
4804
|
accessorKey: "payment_method",
|
|
4805
|
-
header: () =>
|
|
4805
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Payment Method"),
|
|
4806
4806
|
enableSorting: !1
|
|
4807
4807
|
}
|
|
4808
4808
|
];
|
|
@@ -4833,14 +4833,14 @@ function ir(g) {
|
|
|
4833
4833
|
for (let r = 1; r < I; r++) {
|
|
4834
4834
|
const a = F + r;
|
|
4835
4835
|
o[a] || (o[a] = {});
|
|
4836
|
-
const
|
|
4837
|
-
|
|
4836
|
+
const $ = p.items[r], i = v[r];
|
|
4837
|
+
$ ? o[a] = {
|
|
4838
4838
|
...o[a],
|
|
4839
|
-
item_code:
|
|
4840
|
-
item_description:
|
|
4841
|
-
item_price:
|
|
4842
|
-
item_tax_label:
|
|
4843
|
-
item_tax_amount:
|
|
4839
|
+
item_code: $.code,
|
|
4840
|
+
item_description: $.description,
|
|
4841
|
+
item_price: $.total,
|
|
4842
|
+
item_tax_label: $.tax_label == "?" ? "" : $.tax_label ?? "",
|
|
4843
|
+
item_tax_amount: $.total_tax ?? "",
|
|
4844
4844
|
payment_term_id: p.payment_term.name ?? "",
|
|
4845
4845
|
payment_term_amount: ((n = i == null ? void 0 : i.ids[0]) == null ? void 0 : n.amount) ?? "",
|
|
4846
4846
|
payment_method: (i == null ? void 0 : i.payment_method_name) || ""
|
|
@@ -4857,67 +4857,67 @@ function ir(g) {
|
|
|
4857
4857
|
const dr = [
|
|
4858
4858
|
{
|
|
4859
4859
|
accessorKey: "invoice_date",
|
|
4860
|
-
header: () =>
|
|
4860
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
|
|
4861
4861
|
enableSorting: !1
|
|
4862
4862
|
},
|
|
4863
4863
|
{
|
|
4864
4864
|
accessorKey: "ref_num",
|
|
4865
|
-
header: () =>
|
|
4865
|
+
header: () => C("p", { class: "min-w-[160px] text-nowrap text-ellipsis" }, "Doc No"),
|
|
4866
4866
|
enableSorting: !1
|
|
4867
4867
|
},
|
|
4868
4868
|
{
|
|
4869
4869
|
accessorKey: "total",
|
|
4870
|
-
header: () =>
|
|
4870
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Total"),
|
|
4871
4871
|
enableSorting: !1
|
|
4872
4872
|
},
|
|
4873
4873
|
{
|
|
4874
4874
|
accessorKey: "item_code",
|
|
4875
|
-
header: () =>
|
|
4875
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Item Code"),
|
|
4876
4876
|
enableSorting: !1
|
|
4877
4877
|
},
|
|
4878
4878
|
{
|
|
4879
4879
|
accessorKey: "item_description",
|
|
4880
|
-
header: () =>
|
|
4880
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Item Description"),
|
|
4881
4881
|
enableSorting: !1
|
|
4882
4882
|
},
|
|
4883
4883
|
{
|
|
4884
4884
|
accessorKey: "item_price",
|
|
4885
|
-
header: () =>
|
|
4885
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Price"),
|
|
4886
4886
|
enableSorting: !1
|
|
4887
4887
|
},
|
|
4888
4888
|
{
|
|
4889
4889
|
accessorKey: "item_tax_label",
|
|
4890
|
-
header: () =>
|
|
4890
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Tax Label"),
|
|
4891
4891
|
enableSorting: !1
|
|
4892
4892
|
},
|
|
4893
4893
|
{
|
|
4894
4894
|
accessorKey: "item_tax_amount",
|
|
4895
|
-
header: () =>
|
|
4895
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Tax Amount"),
|
|
4896
4896
|
enableSorting: !1
|
|
4897
4897
|
},
|
|
4898
4898
|
{
|
|
4899
4899
|
accessorKey: "service_charge_amount",
|
|
4900
|
-
header: () =>
|
|
4900
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Service Charge Amount"),
|
|
4901
4901
|
enableSorting: !1
|
|
4902
4902
|
},
|
|
4903
4903
|
{
|
|
4904
4904
|
accessorKey: "rounding",
|
|
4905
|
-
header: () =>
|
|
4905
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Rounding"),
|
|
4906
4906
|
enableSorting: !1
|
|
4907
4907
|
},
|
|
4908
4908
|
{
|
|
4909
4909
|
accessorKey: "payment_term_id",
|
|
4910
|
-
header: () =>
|
|
4910
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Payment Term"),
|
|
4911
4911
|
enableSorting: !1
|
|
4912
4912
|
},
|
|
4913
4913
|
{
|
|
4914
4914
|
accessorKey: "payment_term_amount",
|
|
4915
|
-
header: () =>
|
|
4915
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Payment Term Amount"),
|
|
4916
4916
|
enableSorting: !1
|
|
4917
4917
|
},
|
|
4918
4918
|
{
|
|
4919
4919
|
accessorKey: "payment_method",
|
|
4920
|
-
header: () =>
|
|
4920
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Payment Method (ID)"),
|
|
4921
4921
|
enableSorting: !1
|
|
4922
4922
|
}
|
|
4923
4923
|
], pr = { class: "h-full flex flex-col gap-16" }, mr = { class: "flex flex-row gap-2 justify-between items-center" }, ur = {
|
|
@@ -4992,7 +4992,7 @@ const dr = [
|
|
|
4992
4992
|
]),
|
|
4993
4993
|
p.value ? (w(), j("div", ur, [
|
|
4994
4994
|
l(A, { size: "xl" }),
|
|
4995
|
-
t("span", cr,
|
|
4995
|
+
t("span", cr, k(s(o)("report.common.isLoading")), 1)
|
|
4996
4996
|
])) : (w(), Q(y, {
|
|
4997
4997
|
key: 1,
|
|
4998
4998
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
|
|
@@ -5187,8 +5187,8 @@ const dr = [
|
|
|
5187
5187
|
return je(async () => {
|
|
5188
5188
|
await v.getSettings();
|
|
5189
5189
|
}), (_, d) => {
|
|
5190
|
-
var i, u, R, U, V,
|
|
5191
|
-
const n = D("FmIcon"), b = D("FmButton"), r = D("FmMenuDivider"), a = D("FmTextField"),
|
|
5190
|
+
var i, u, R, U, V, S;
|
|
5191
|
+
const n = D("FmIcon"), b = D("FmButton"), r = D("FmMenuDivider"), a = D("FmTextField"), $ = D("FmSelect");
|
|
5192
5192
|
return (u = (i = e.value) == null ? void 0 : i.platform) != null && u.mappings ? (w(), j("div", xr, [
|
|
5193
5193
|
t("div", br, [
|
|
5194
5194
|
t("div", wr, [
|
|
@@ -5200,7 +5200,7 @@ const dr = [
|
|
|
5200
5200
|
class: "p-2 bg-gray-100 rounded-full",
|
|
5201
5201
|
onClick: c
|
|
5202
5202
|
}),
|
|
5203
|
-
t("span", Cr,
|
|
5203
|
+
t("span", Cr, k(s(o)("report.integration.refreshSetting")), 1)
|
|
5204
5204
|
]),
|
|
5205
5205
|
l(b, {
|
|
5206
5206
|
variant: "tertiary",
|
|
@@ -5220,9 +5220,9 @@ const dr = [
|
|
|
5220
5220
|
t("div", kr, [
|
|
5221
5221
|
t("div", Sr, [
|
|
5222
5222
|
t("div", $r, [
|
|
5223
|
-
t("div", Ar,
|
|
5223
|
+
t("div", Ar, k(s(o)("report.integration.general")), 1),
|
|
5224
5224
|
t("div", Dr, [
|
|
5225
|
-
t("div", Vr,
|
|
5225
|
+
t("div", Vr, k(s(o)("report.common.name")), 1),
|
|
5226
5226
|
t("div", Fr, [
|
|
5227
5227
|
l(a, {
|
|
5228
5228
|
modelValue: e.value.name,
|
|
@@ -5231,8 +5231,8 @@ const dr = [
|
|
|
5231
5231
|
])
|
|
5232
5232
|
]),
|
|
5233
5233
|
t("div", Ir, [
|
|
5234
|
-
t("div", Kr,
|
|
5235
|
-
l(
|
|
5234
|
+
t("div", Kr, k(s(o)("report.integration.location")), 1),
|
|
5235
|
+
l($, {
|
|
5236
5236
|
"model-value": e.value.platform.locationIds[0],
|
|
5237
5237
|
multiselect: !1,
|
|
5238
5238
|
items: h.value,
|
|
@@ -5254,7 +5254,7 @@ const dr = [
|
|
|
5254
5254
|
}, null, 8, ["modelValue", "label", "last-upload-date", "error-logs", "integration-id"]),
|
|
5255
5255
|
l(r, { style: { margin: 0 } }),
|
|
5256
5256
|
t("div", Nr, [
|
|
5257
|
-
t("div", Mr,
|
|
5257
|
+
t("div", Mr, k(s(o)("report.integration.iflexiHrms.employee")), 1),
|
|
5258
5258
|
l(b, {
|
|
5259
5259
|
variant: "secondary",
|
|
5260
5260
|
"prepend-icon": "add",
|
|
@@ -5264,7 +5264,7 @@ const dr = [
|
|
|
5264
5264
|
]),
|
|
5265
5265
|
l(ae, {
|
|
5266
5266
|
"header-items": ["Name", "Badge No", "Employee No"],
|
|
5267
|
-
rows: ((
|
|
5267
|
+
rows: ((S = (V = (U = e.value) == null ? void 0 : U.platform) == null ? void 0 : V.mappings) == null ? void 0 : S.employees) || [],
|
|
5268
5268
|
"columns-per-row": 1,
|
|
5269
5269
|
removable: !0,
|
|
5270
5270
|
"mapping-type": "employees",
|
|
@@ -5298,27 +5298,27 @@ const dr = [
|
|
|
5298
5298
|
const { t: o } = de(), e = Z([]), p = [
|
|
5299
5299
|
{
|
|
5300
5300
|
accessorKey: "name",
|
|
5301
|
-
header: () =>
|
|
5301
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Name"),
|
|
5302
5302
|
enableSorting: !1
|
|
5303
5303
|
},
|
|
5304
5304
|
{
|
|
5305
5305
|
accessorKey: "badgeNo",
|
|
5306
|
-
header: () =>
|
|
5306
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Badge No"),
|
|
5307
5307
|
enableSorting: !1
|
|
5308
5308
|
},
|
|
5309
5309
|
{
|
|
5310
5310
|
accessorKey: "employeeNo",
|
|
5311
|
-
header: () =>
|
|
5311
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Employee No"),
|
|
5312
5312
|
enableSorting: !1
|
|
5313
5313
|
},
|
|
5314
5314
|
{
|
|
5315
5315
|
accessorKey: "date",
|
|
5316
|
-
header: () =>
|
|
5316
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
|
|
5317
5317
|
enableSorting: !1
|
|
5318
5318
|
},
|
|
5319
5319
|
{
|
|
5320
5320
|
accessorKey: "time",
|
|
5321
|
-
header: () =>
|
|
5321
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Time"),
|
|
5322
5322
|
enableSorting: !1
|
|
5323
5323
|
}
|
|
5324
5324
|
], v = re(g, "modelValue"), F = Z(!1), I = Ae(), { dateRange: T } = He($e());
|
|
@@ -5365,7 +5365,7 @@ const dr = [
|
|
|
5365
5365
|
]),
|
|
5366
5366
|
F.value ? (w(), j("div", Pr, [
|
|
5367
5367
|
l(P, { size: "xl" }),
|
|
5368
|
-
t("span", jr,
|
|
5368
|
+
t("span", jr, k(s(o)("report.common.isLoading")), 1)
|
|
5369
5369
|
])) : e.value.length > 0 ? (w(), Q(A, {
|
|
5370
5370
|
key: 1,
|
|
5371
5371
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
|
|
@@ -5529,8 +5529,8 @@ const dr = [
|
|
|
5529
5529
|
const R = (V = e.value.platform) == null ? void 0 : V.mappings;
|
|
5530
5530
|
if (!R) return;
|
|
5531
5531
|
if (["items", "taxes", "payments", "taxRoundingAdjustments"].includes(i)) {
|
|
5532
|
-
const
|
|
5533
|
-
R[
|
|
5532
|
+
const S = i;
|
|
5533
|
+
R[S] && Array.isArray(R[S]) && (R[S] = R[S].filter(
|
|
5534
5534
|
(q, H) => H !== u
|
|
5535
5535
|
));
|
|
5536
5536
|
}
|
|
@@ -5586,7 +5586,7 @@ const dr = [
|
|
|
5586
5586
|
je(async () => {
|
|
5587
5587
|
await v.getSettings();
|
|
5588
5588
|
});
|
|
5589
|
-
function
|
|
5589
|
+
function $(i) {
|
|
5590
5590
|
const u = g.retrievedDebtors.data.find(
|
|
5591
5591
|
(R) => R.valueAccNo === i || R.value === i
|
|
5592
5592
|
);
|
|
@@ -5606,11 +5606,11 @@ const dr = [
|
|
|
5606
5606
|
{ immediate: !0 }
|
|
5607
5607
|
), (i, u) => {
|
|
5608
5608
|
var ne, z, ie, ce, ge, ve, ye, xe, be, we, oe, W, te, K, O, X, De;
|
|
5609
|
-
const R = D("FmIcon"), U = D("FmButton"), V = D("FmMenuDivider"),
|
|
5609
|
+
const R = D("FmIcon"), U = D("FmButton"), V = D("FmMenuDivider"), S = D("FmTextField"), q = D("FmSelect"), H = D("FmSwitch"), J = D("FmCircularProgress");
|
|
5610
5610
|
return (z = (ne = e.value) == null ? void 0 : ne.platform) != null && z.mappings ? (w(), j("div", Yr, [
|
|
5611
5611
|
t("div", qr, [
|
|
5612
5612
|
t("div", Hr, [
|
|
5613
|
-
t("div", zr,
|
|
5613
|
+
t("div", zr, k(s(o)("report.integration.connect")), 1),
|
|
5614
5614
|
t("div", Gr, [
|
|
5615
5615
|
t("div", Qr, [
|
|
5616
5616
|
t("div", Wr, [
|
|
@@ -5619,7 +5619,7 @@ const dr = [
|
|
|
5619
5619
|
class: "p-2 bg-gray-100 rounded-full",
|
|
5620
5620
|
onClick: b
|
|
5621
5621
|
}),
|
|
5622
|
-
t("span", Xr,
|
|
5622
|
+
t("span", Xr, k(s(o)("report.integration.refreshSetting")), 1)
|
|
5623
5623
|
]),
|
|
5624
5624
|
l(U, {
|
|
5625
5625
|
variant: "tertiary",
|
|
@@ -5638,13 +5638,13 @@ const dr = [
|
|
|
5638
5638
|
]),
|
|
5639
5639
|
t("div", Jr, [
|
|
5640
5640
|
t("div", Zr, [
|
|
5641
|
-
t("div", ei,
|
|
5641
|
+
t("div", ei, k(s(o)("report.integration.authDescription")), 1),
|
|
5642
5642
|
l(V, { style: { margin: 0 } }),
|
|
5643
5643
|
t("div", ti, [
|
|
5644
5644
|
t("div", oi, [
|
|
5645
|
-
t("div", ai,
|
|
5645
|
+
t("div", ai, k(s(o)("report.integration.autocount.keyId")), 1),
|
|
5646
5646
|
t("div", li, [
|
|
5647
|
-
l(
|
|
5647
|
+
l(S, {
|
|
5648
5648
|
modelValue: e.value.platform.keyId,
|
|
5649
5649
|
"onUpdate:modelValue": u[0] || (u[0] = (B) => e.value.platform.keyId = B),
|
|
5650
5650
|
placeholder: s(o)("report.integration.autocount.keyId")
|
|
@@ -5652,9 +5652,9 @@ const dr = [
|
|
|
5652
5652
|
])
|
|
5653
5653
|
]),
|
|
5654
5654
|
t("div", ni, [
|
|
5655
|
-
t("div", si,
|
|
5655
|
+
t("div", si, k(s(o)("report.integration.apiKey")), 1),
|
|
5656
5656
|
t("div", ri, [
|
|
5657
|
-
l(
|
|
5657
|
+
l(S, {
|
|
5658
5658
|
modelValue: e.value.platform.apiKey,
|
|
5659
5659
|
"onUpdate:modelValue": u[1] || (u[1] = (B) => e.value.platform.apiKey = B),
|
|
5660
5660
|
placeholder: s(o)("report.integration.apiKey")
|
|
@@ -5662,9 +5662,9 @@ const dr = [
|
|
|
5662
5662
|
])
|
|
5663
5663
|
]),
|
|
5664
5664
|
t("div", ii, [
|
|
5665
|
-
t("div", di,
|
|
5665
|
+
t("div", di, k(s(o)("report.integration.autocount.accountBookId")), 1),
|
|
5666
5666
|
t("div", pi, [
|
|
5667
|
-
l(
|
|
5667
|
+
l(S, {
|
|
5668
5668
|
modelValue: e.value.platform.accountBookId,
|
|
5669
5669
|
"onUpdate:modelValue": u[2] || (u[2] = (B) => e.value.platform.accountBookId = B),
|
|
5670
5670
|
placeholder: s(o)("report.integration.autocount.accountBookId")
|
|
@@ -5674,19 +5674,19 @@ const dr = [
|
|
|
5674
5674
|
l(V, { style: { margin: 0 } }),
|
|
5675
5675
|
t("div", mi, [
|
|
5676
5676
|
t("div", ui, [
|
|
5677
|
-
t("div", ci,
|
|
5677
|
+
t("div", ci, k(s(o)("report.common.general")), 1)
|
|
5678
5678
|
]),
|
|
5679
5679
|
t("div", fi, [
|
|
5680
|
-
t("div", gi,
|
|
5680
|
+
t("div", gi, k(s(o)("report.common.name")), 1),
|
|
5681
5681
|
t("div", vi, [
|
|
5682
|
-
l(
|
|
5682
|
+
l(S, {
|
|
5683
5683
|
modelValue: e.value.name,
|
|
5684
5684
|
"onUpdate:modelValue": u[3] || (u[3] = (B) => e.value.name = B)
|
|
5685
5685
|
}, null, 8, ["modelValue"])
|
|
5686
5686
|
])
|
|
5687
5687
|
]),
|
|
5688
5688
|
t("div", yi, [
|
|
5689
|
-
t("div", xi,
|
|
5689
|
+
t("div", xi, k(s(o)("report.common.location")), 1),
|
|
5690
5690
|
l(q, {
|
|
5691
5691
|
modelValue: e.value.platform.locationIds,
|
|
5692
5692
|
"onUpdate:modelValue": u[4] || (u[4] = (B) => e.value.platform.locationIds = B),
|
|
@@ -5709,7 +5709,7 @@ const dr = [
|
|
|
5709
5709
|
])
|
|
5710
5710
|
]),
|
|
5711
5711
|
t("div", hi, [
|
|
5712
|
-
t("div", _i,
|
|
5712
|
+
t("div", _i, k(s(o)("report.integration.grouping.title")), 1),
|
|
5713
5713
|
l(q, {
|
|
5714
5714
|
modelValue: e.value.platform.grouping,
|
|
5715
5715
|
"onUpdate:modelValue": u[6] || (u[6] = (B) => e.value.platform.grouping = B),
|
|
@@ -5722,7 +5722,7 @@ const dr = [
|
|
|
5722
5722
|
e.value.platform.discountItem && e.value.platform.grouping !== s(ue).BY_DAY && e.value.platform.grouping !== s(ue).BY_INVOICE ? (w(), j("div", Ci, [
|
|
5723
5723
|
t("div", ki, [
|
|
5724
5724
|
u[35] || (u[35] = t("span", { class: "text-gray-400 inline-block select-none leading-none me-2" }, "└", -1)),
|
|
5725
|
-
t("span", null,
|
|
5725
|
+
t("span", null, k(s(o)("report.integration.discountByGroupKey")), 1)
|
|
5726
5726
|
]),
|
|
5727
5727
|
t("div", Si, [
|
|
5728
5728
|
l(H, {
|
|
@@ -5735,7 +5735,7 @@ const dr = [
|
|
|
5735
5735
|
])
|
|
5736
5736
|
])) : Y("", !0),
|
|
5737
5737
|
t("div", $i, [
|
|
5738
|
-
t("div", Ai,
|
|
5738
|
+
t("div", Ai, k(s(o)("report.integration.autocount.debtor")), 1),
|
|
5739
5739
|
g.retrievedDebtors.isLoaded ? Y("", !0) : (w(), Q(J, {
|
|
5740
5740
|
key: 0,
|
|
5741
5741
|
size: "xl"
|
|
@@ -5745,17 +5745,17 @@ const dr = [
|
|
|
5745
5745
|
modelValue: s(y),
|
|
5746
5746
|
"onUpdate:modelValue": [
|
|
5747
5747
|
u[8] || (u[8] = (B) => Re(y) ? y.value = B : y = B),
|
|
5748
|
-
|
|
5748
|
+
$
|
|
5749
5749
|
],
|
|
5750
5750
|
items: g.retrievedDebtors.data,
|
|
5751
5751
|
placeholder: s(o)("report.integration.autocount.selectDebtor"),
|
|
5752
5752
|
class: "flex-grow",
|
|
5753
5753
|
disabled: !g.retrievedDebtors.isLoaded
|
|
5754
5754
|
}, null, 8, ["modelValue", "items", "placeholder", "disabled"])
|
|
5755
|
-
])) : g.retrievedDebtors.isError ? (w(), j("div", Vi,
|
|
5755
|
+
])) : g.retrievedDebtors.isError ? (w(), j("div", Vi, k(s(o)("report.integration.errorFetchingDebtor")), 1)) : Y("", !0)
|
|
5756
5756
|
]),
|
|
5757
5757
|
t("div", Fi, [
|
|
5758
|
-
t("div", Ii,
|
|
5758
|
+
t("div", Ii, k(s(o)("report.integration.autocount.location")), 1),
|
|
5759
5759
|
g.retrievedLocations.isLoaded ? Y("", !0) : (w(), Q(J, {
|
|
5760
5760
|
key: 0,
|
|
5761
5761
|
size: "xl"
|
|
@@ -5769,14 +5769,14 @@ const dr = [
|
|
|
5769
5769
|
class: "flex-grow",
|
|
5770
5770
|
disabled: !g.retrievedLocations.isLoaded
|
|
5771
5771
|
}, null, 8, ["modelValue", "items", "placeholder", "disabled"])
|
|
5772
|
-
])) : g.retrievedLocations.isError ? (w(), j("div", Ni,
|
|
5772
|
+
])) : g.retrievedLocations.isError ? (w(), j("div", Ni, k(s(o)("report.integration.errorFetchingLocation")), 1)) : Y("", !0)
|
|
5773
5773
|
])
|
|
5774
5774
|
]),
|
|
5775
5775
|
l(V, { style: { margin: 0 } }),
|
|
5776
5776
|
t("div", Mi, [
|
|
5777
|
-
t("div", Ti,
|
|
5777
|
+
t("div", Ti, k(s(o)("report.integration.autocount.saveAndApprove")), 1),
|
|
5778
5778
|
t("div", Ri, [
|
|
5779
|
-
t("div", Ui,
|
|
5779
|
+
t("div", Ui, k(s(o)("report.integration.autocount.invoice")), 1),
|
|
5780
5780
|
l(H, {
|
|
5781
5781
|
modelValue: e.value.platform.mappings.saveApproveInvoice,
|
|
5782
5782
|
"onUpdate:modelValue": u[10] || (u[10] = (B) => e.value.platform.mappings.saveApproveInvoice = B),
|
|
@@ -5784,7 +5784,7 @@ const dr = [
|
|
|
5784
5784
|
}, null, 8, ["modelValue"])
|
|
5785
5785
|
]),
|
|
5786
5786
|
t("div", Pi, [
|
|
5787
|
-
t("div", ji,
|
|
5787
|
+
t("div", ji, k(s(o)("report.integration.autocount.creditNote")), 1),
|
|
5788
5788
|
l(H, {
|
|
5789
5789
|
modelValue: e.value.platform.mappings.saveApproveCreditNote,
|
|
5790
5790
|
"onUpdate:modelValue": u[11] || (u[11] = (B) => e.value.platform.mappings.saveApproveCreditNote = B),
|
|
@@ -5792,7 +5792,7 @@ const dr = [
|
|
|
5792
5792
|
}, null, 8, ["modelValue"])
|
|
5793
5793
|
]),
|
|
5794
5794
|
t("div", Li, [
|
|
5795
|
-
t("div", Oi,
|
|
5795
|
+
t("div", Oi, k(s(o)("report.integration.autocount.payment")), 1),
|
|
5796
5796
|
l(H, {
|
|
5797
5797
|
modelValue: e.value.platform.mappings.saveApprovePayment,
|
|
5798
5798
|
"onUpdate:modelValue": u[12] || (u[12] = (B) => e.value.platform.mappings.saveApprovePayment = B),
|
|
@@ -5803,7 +5803,7 @@ const dr = [
|
|
|
5803
5803
|
l(V, { style: { margin: 0 } }),
|
|
5804
5804
|
t("div", Ei, [
|
|
5805
5805
|
t("div", Bi, [
|
|
5806
|
-
t("div", Yi,
|
|
5806
|
+
t("div", Yi, k(s(o)("report.integration.refNumFormat")), 1),
|
|
5807
5807
|
l(lt)
|
|
5808
5808
|
]),
|
|
5809
5809
|
t("div", qi, [
|
|
@@ -5853,7 +5853,7 @@ const dr = [
|
|
|
5853
5853
|
}, null, 8, ["modelValue", "label", "last-upload-date", "error-logs", "integration-id", "is-auto-email-mode"]),
|
|
5854
5854
|
l(V, { style: { margin: 0 } }),
|
|
5855
5855
|
t("div", Hi, [
|
|
5856
|
-
t("div", zi,
|
|
5856
|
+
t("div", zi, k(s(o)("report.integration.items")), 1),
|
|
5857
5857
|
l(U, {
|
|
5858
5858
|
variant: "secondary",
|
|
5859
5859
|
"prepend-icon": "add",
|
|
@@ -5861,7 +5861,7 @@ const dr = [
|
|
|
5861
5861
|
onClick: u[18] || (u[18] = () => d("items"))
|
|
5862
5862
|
})
|
|
5863
5863
|
]),
|
|
5864
|
-
u[36] || (u[36] = t("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
5864
|
+
u[36] || (u[36] = t("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, k("`ROUNDING` items: Auto set `Product Code` to blank to support AutoCount Cloud syncing."), -1)),
|
|
5865
5865
|
l(ae, {
|
|
5866
5866
|
"header-items": [
|
|
5867
5867
|
s(o)("report.integration.autocount.feedmeKey"),
|
|
@@ -5894,7 +5894,7 @@ const dr = [
|
|
|
5894
5894
|
}, null, 8, ["header-items", "rows", "fields-options"]),
|
|
5895
5895
|
l(V, { style: { margin: 0 } }),
|
|
5896
5896
|
t("div", Gi, [
|
|
5897
|
-
t("div", Qi,
|
|
5897
|
+
t("div", Qi, k(s(o)("report.integration.taxes")), 1),
|
|
5898
5898
|
l(U, {
|
|
5899
5899
|
variant: "secondary",
|
|
5900
5900
|
"prepend-icon": "add",
|
|
@@ -5929,7 +5929,7 @@ const dr = [
|
|
|
5929
5929
|
}, null, 8, ["header-items", "rows", "fields-options"]),
|
|
5930
5930
|
l(V, { style: { margin: 0 } }),
|
|
5931
5931
|
t("div", Wi, [
|
|
5932
|
-
t("div", Xi,
|
|
5932
|
+
t("div", Xi, k(s(o)("report.integration.taxRoundingAdjustments")), 1),
|
|
5933
5933
|
l(U, {
|
|
5934
5934
|
variant: "secondary",
|
|
5935
5935
|
"prepend-icon": "add",
|
|
@@ -5964,7 +5964,7 @@ const dr = [
|
|
|
5964
5964
|
}, null, 8, ["header-items", "rows", "fields-options"]),
|
|
5965
5965
|
l(V, { style: { margin: 0 } }),
|
|
5966
5966
|
t("div", Ji, [
|
|
5967
|
-
t("div", Zi,
|
|
5967
|
+
t("div", Zi, k(s(o)("report.integration.payments")), 1),
|
|
5968
5968
|
l(U, {
|
|
5969
5969
|
variant: "secondary",
|
|
5970
5970
|
"prepend-icon": "add",
|
|
@@ -6045,7 +6045,7 @@ const dr = [
|
|
|
6045
6045
|
});
|
|
6046
6046
|
function od(g) {
|
|
6047
6047
|
return g.reduce((o, e) => {
|
|
6048
|
-
var T, M, f, x, h, P, A, y, m, c, _, d, n, b;
|
|
6048
|
+
var T, M, f, x, h, P, A, y, m, c, _, d, n, b, r;
|
|
6049
6049
|
const { invoice: p, payments: v } = e, F = o.length;
|
|
6050
6050
|
o[F] = {
|
|
6051
6051
|
docNo: p.master.docNo,
|
|
@@ -6059,38 +6059,40 @@ function od(g) {
|
|
|
6059
6059
|
discount: (h = p.details[0]) == null ? void 0 : h.discount,
|
|
6060
6060
|
taxCode: (P = p.details[0]) == null ? void 0 : P.taxCode,
|
|
6061
6061
|
creditTerm: p.master.creditTerm,
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6062
|
+
paymentDocNo: (A = v[0]) == null ? void 0 : A.master.docNo,
|
|
6063
|
+
docType: (y = v[0]) == null ? void 0 : y.master.docType,
|
|
6064
|
+
paymentMethod: (c = (m = v[0]) == null ? void 0 : m.paymentDetails[0]) == null ? void 0 : c.paymentMethod,
|
|
6065
|
+
amount: ((_ = v[0]) == null ? void 0 : _.details[0].amount) || 0,
|
|
6066
|
+
currencyCode: (d = v[0]) == null ? void 0 : d.master.currencyCode,
|
|
6067
|
+
journalType: (n = v[0]) == null ? void 0 : n.master.journalType
|
|
6067
6068
|
};
|
|
6068
6069
|
const I = Math.max(p.details.length, (v == null ? void 0 : v.length) || 0);
|
|
6069
|
-
for (let
|
|
6070
|
-
const
|
|
6071
|
-
o[
|
|
6072
|
-
const
|
|
6073
|
-
|
|
6074
|
-
...o[
|
|
6070
|
+
for (let a = 1; a < I; a++) {
|
|
6071
|
+
const $ = F + a;
|
|
6072
|
+
o[$] || (o[$] = {});
|
|
6073
|
+
const i = p.details[a], u = v[a];
|
|
6074
|
+
i && (o[$] = {
|
|
6075
|
+
...o[$],
|
|
6075
6076
|
debtorCode: p.master.debtorCode,
|
|
6076
6077
|
debtorName: p.master.debtorName,
|
|
6077
6078
|
creditTerm: p.master.creditTerm,
|
|
6078
|
-
itemProductCode:
|
|
6079
|
-
description:
|
|
6080
|
-
qty:
|
|
6081
|
-
unitPrice:
|
|
6082
|
-
discount:
|
|
6083
|
-
taxCode:
|
|
6084
|
-
}),
|
|
6085
|
-
...o[
|
|
6079
|
+
itemProductCode: i.productCode,
|
|
6080
|
+
description: i.description,
|
|
6081
|
+
qty: i.qty,
|
|
6082
|
+
unitPrice: i.unitPrice,
|
|
6083
|
+
discount: i.discount,
|
|
6084
|
+
taxCode: i.taxCode
|
|
6085
|
+
}), u && (o[$] = {
|
|
6086
|
+
...o[$],
|
|
6086
6087
|
debtorCode: p.master.debtorCode,
|
|
6087
6088
|
debtorName: p.master.debtorName,
|
|
6088
6089
|
creditTerm: p.master.creditTerm,
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6090
|
+
paymentDocNo: u.master.docNo,
|
|
6091
|
+
docType: u.master.docType,
|
|
6092
|
+
paymentMethod: (b = u.paymentDetails[0]) == null ? void 0 : b.paymentMethod,
|
|
6093
|
+
amount: ((r = u.details[0]) == null ? void 0 : r.amount) || 0,
|
|
6094
|
+
currencyCode: u.master.currencyCode,
|
|
6095
|
+
journalType: u.master.journalType
|
|
6094
6096
|
});
|
|
6095
6097
|
}
|
|
6096
6098
|
return o;
|
|
@@ -6099,77 +6101,82 @@ function od(g) {
|
|
|
6099
6101
|
const ad = [
|
|
6100
6102
|
{
|
|
6101
6103
|
accessorKey: "docNo",
|
|
6102
|
-
header: () =>
|
|
6104
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Doc No"),
|
|
6103
6105
|
enableSorting: !1
|
|
6104
6106
|
},
|
|
6105
6107
|
{
|
|
6106
6108
|
accessorKey: "debtorCode",
|
|
6107
|
-
header: () =>
|
|
6109
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Debtor Code"),
|
|
6108
6110
|
enableSorting: !1
|
|
6109
6111
|
},
|
|
6110
6112
|
{
|
|
6111
6113
|
accessorKey: "debtorName",
|
|
6112
|
-
header: () =>
|
|
6114
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Debtor Name"),
|
|
6113
6115
|
enableSorting: !1
|
|
6114
6116
|
},
|
|
6115
6117
|
{
|
|
6116
6118
|
accessorKey: "creditTerm",
|
|
6117
|
-
header: () =>
|
|
6119
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Credit Term"),
|
|
6118
6120
|
enableSorting: !1
|
|
6119
6121
|
},
|
|
6120
6122
|
{
|
|
6121
6123
|
accessorKey: "itemProductCode",
|
|
6122
|
-
header: () =>
|
|
6124
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Product Code"),
|
|
6123
6125
|
enableSorting: !1
|
|
6124
6126
|
},
|
|
6125
6127
|
{
|
|
6126
6128
|
accessorKey: "description",
|
|
6127
|
-
header: () =>
|
|
6129
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Description"),
|
|
6128
6130
|
enableSorting: !1
|
|
6129
6131
|
},
|
|
6130
6132
|
{
|
|
6131
6133
|
accessorKey: "taxCode",
|
|
6132
|
-
header: () =>
|
|
6134
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Tax Code"),
|
|
6133
6135
|
enableSorting: !1
|
|
6134
6136
|
},
|
|
6135
6137
|
{
|
|
6136
6138
|
accessorKey: "qty",
|
|
6137
|
-
header: () =>
|
|
6139
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Qty"),
|
|
6138
6140
|
enableSorting: !1
|
|
6139
6141
|
},
|
|
6140
6142
|
{
|
|
6141
6143
|
accessorKey: "unitPrice",
|
|
6142
|
-
header: () =>
|
|
6144
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Price"),
|
|
6143
6145
|
enableSorting: !1
|
|
6144
6146
|
},
|
|
6145
6147
|
{
|
|
6146
6148
|
accessorKey: "discount",
|
|
6147
|
-
header: () =>
|
|
6149
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Discount"),
|
|
6150
|
+
enableSorting: !1
|
|
6151
|
+
},
|
|
6152
|
+
{
|
|
6153
|
+
accessorKey: "paymentDocNo",
|
|
6154
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Payment Doc No"),
|
|
6148
6155
|
enableSorting: !1
|
|
6149
6156
|
},
|
|
6150
6157
|
{
|
|
6151
6158
|
accessorKey: "docType",
|
|
6152
|
-
header: () =>
|
|
6159
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Payment Doc Type"),
|
|
6153
6160
|
enableSorting: !1
|
|
6154
6161
|
},
|
|
6155
6162
|
{
|
|
6156
6163
|
accessorKey: "paymentMethod",
|
|
6157
|
-
header: () =>
|
|
6164
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Payment Method"),
|
|
6158
6165
|
enableSorting: !1
|
|
6159
6166
|
},
|
|
6160
6167
|
{
|
|
6161
6168
|
accessorKey: "amount",
|
|
6162
|
-
header: () =>
|
|
6169
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Amount"),
|
|
6163
6170
|
enableSorting: !1
|
|
6164
6171
|
},
|
|
6165
6172
|
{
|
|
6166
6173
|
accessorKey: "currencyCode",
|
|
6167
|
-
header: () =>
|
|
6174
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Currency Code"),
|
|
6168
6175
|
enableSorting: !1
|
|
6169
6176
|
},
|
|
6170
6177
|
{
|
|
6171
6178
|
accessorKey: "journalType",
|
|
6172
|
-
header: () =>
|
|
6179
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Journal Type"),
|
|
6173
6180
|
enableSorting: !1
|
|
6174
6181
|
}
|
|
6175
6182
|
], ld = { class: "h-full flex flex-col gap-16" }, nd = { class: "flex flex-row gap-2 justify-between items-center" }, sd = { class: "flex flex-row gap-5" }, rd = {
|
|
@@ -6252,7 +6259,7 @@ const ad = [
|
|
|
6252
6259
|
]),
|
|
6253
6260
|
p.value ? (w(), j("div", rd, [
|
|
6254
6261
|
l(_, { size: "xl" }),
|
|
6255
|
-
t("span", id,
|
|
6262
|
+
t("span", id, k(s(o)("report.common.isLoading")), 1)
|
|
6256
6263
|
])) : (w(), Q(d, {
|
|
6257
6264
|
key: 1,
|
|
6258
6265
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
|
|
@@ -6422,7 +6429,7 @@ const ad = [
|
|
|
6422
6429
|
if (!((r = e.value.platform) != null && r.mappings)) return;
|
|
6423
6430
|
n || (_ === "taxes" ? n = "invoice" : _ === "suppliers" ? n = "inventory" : n = "invoice");
|
|
6424
6431
|
const b = (a = e.value.platform.mappings[n]) == null ? void 0 : a[_];
|
|
6425
|
-
b && Array.isArray(b) && (e.value.platform.mappings[n][_] = b.filter((
|
|
6432
|
+
b && Array.isArray(b) && (e.value.platform.mappings[n][_] = b.filter(($, i) => i !== d));
|
|
6426
6433
|
}
|
|
6427
6434
|
function m(_, d) {
|
|
6428
6435
|
var b;
|
|
@@ -6445,8 +6452,8 @@ const ad = [
|
|
|
6445
6452
|
return je(async () => {
|
|
6446
6453
|
await v.getSettings();
|
|
6447
6454
|
}), (_, d) => {
|
|
6448
|
-
var i, u, R, U, V,
|
|
6449
|
-
const n = D("FmIcon"), b = D("FmButton"), r = D("FmMenuDivider"), a = D("FmTextField"),
|
|
6455
|
+
var i, u, R, U, V, S, q, H, J, ne, z, ie, ce, ge, ve, ye, xe, be, we;
|
|
6456
|
+
const n = D("FmIcon"), b = D("FmButton"), r = D("FmMenuDivider"), a = D("FmTextField"), $ = D("FmSelect");
|
|
6450
6457
|
return (u = (i = e.value) == null ? void 0 : i.platform) != null && u.mappings ? (w(), j("div", cd, [
|
|
6451
6458
|
t("div", fd, [
|
|
6452
6459
|
t("div", gd, [
|
|
@@ -6458,7 +6465,7 @@ const ad = [
|
|
|
6458
6465
|
class: "p-2 bg-gray-100 rounded-full",
|
|
6459
6466
|
onClick: c
|
|
6460
6467
|
}),
|
|
6461
|
-
t("span", xd,
|
|
6468
|
+
t("span", xd, k(s(o)("report.integration.refreshSetting")), 1)
|
|
6462
6469
|
]),
|
|
6463
6470
|
l(b, {
|
|
6464
6471
|
variant: "tertiary",
|
|
@@ -6478,9 +6485,9 @@ const ad = [
|
|
|
6478
6485
|
t("div", bd, [
|
|
6479
6486
|
t("div", wd, [
|
|
6480
6487
|
t("div", hd, [
|
|
6481
|
-
t("div", _d,
|
|
6488
|
+
t("div", _d, k(s(o)("report.integration.general")), 1),
|
|
6482
6489
|
t("div", Cd, [
|
|
6483
|
-
t("div", kd,
|
|
6490
|
+
t("div", kd, k(s(o)("report.common.name")), 1),
|
|
6484
6491
|
t("div", Sd, [
|
|
6485
6492
|
l(a, {
|
|
6486
6493
|
modelValue: e.value.name,
|
|
@@ -6489,8 +6496,8 @@ const ad = [
|
|
|
6489
6496
|
])
|
|
6490
6497
|
]),
|
|
6491
6498
|
t("div", $d, [
|
|
6492
|
-
t("div", Ad,
|
|
6493
|
-
l(
|
|
6499
|
+
t("div", Ad, k(s(o)("report.integration.location")), 1),
|
|
6500
|
+
l($, {
|
|
6494
6501
|
modelValue: e.value.platform.locationIds,
|
|
6495
6502
|
"onUpdate:modelValue": d[1] || (d[1] = (oe) => e.value.platform.locationIds = oe),
|
|
6496
6503
|
multiselect: !0,
|
|
@@ -6537,7 +6544,7 @@ const ad = [
|
|
|
6537
6544
|
(O = (K = (te = (W = e.value) == null ? void 0 : W.platform) == null ? void 0 : te.mappings) == null ? void 0 : K.invoice) != null && O.rounding && (e.value.platform.mappings.invoice.rounding.account = oe.account, e.value.platform.mappings.invoice.rounding.code = oe.code);
|
|
6538
6545
|
})
|
|
6539
6546
|
}, null, 8, ["model-value"]),
|
|
6540
|
-
(w(!0), j(Ke, null, We((q = (
|
|
6547
|
+
(w(!0), j(Ke, null, We((q = (S = (V = e.value) == null ? void 0 : V.platform) == null ? void 0 : S.mappings) == null ? void 0 : q.invoice.charges, (oe, W) => (w(), Q(ee, {
|
|
6541
6548
|
key: `charge-${W}`,
|
|
6542
6549
|
modelValue: e.value.platform.mappings.invoice.charges[W],
|
|
6543
6550
|
"onUpdate:modelValue": (te) => e.value.platform.mappings.invoice.charges[W] = te,
|
|
@@ -6589,7 +6596,7 @@ const ad = [
|
|
|
6589
6596
|
}, null, 8, ["rows"]),
|
|
6590
6597
|
l(r, { style: { margin: 0 } }),
|
|
6591
6598
|
t("div", Id, [
|
|
6592
|
-
t("div", Kd,
|
|
6599
|
+
t("div", Kd, k(s(o)("report.integration.taxes")), 1),
|
|
6593
6600
|
l(b, {
|
|
6594
6601
|
variant: "secondary",
|
|
6595
6602
|
"prepend-icon": "add",
|
|
@@ -6841,17 +6848,17 @@ const ad = [
|
|
|
6841
6848
|
], f = [
|
|
6842
6849
|
{
|
|
6843
6850
|
accessorKey: "rNo",
|
|
6844
|
-
header: () =>
|
|
6851
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Doc No"),
|
|
6845
6852
|
enableSorting: !1
|
|
6846
6853
|
},
|
|
6847
6854
|
{
|
|
6848
6855
|
accessorKey: "rDate",
|
|
6849
|
-
header: () =>
|
|
6856
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
|
|
6850
6857
|
enableSorting: !1
|
|
6851
6858
|
},
|
|
6852
6859
|
{
|
|
6853
6860
|
accessorKey: "debtorCode",
|
|
6854
|
-
header: () =>
|
|
6861
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Debtor Code"),
|
|
6855
6862
|
enableSorting: !1
|
|
6856
6863
|
},
|
|
6857
6864
|
{
|
|
@@ -6861,7 +6868,7 @@ const ad = [
|
|
|
6861
6868
|
},
|
|
6862
6869
|
{
|
|
6863
6870
|
accessorKey: "itemCode",
|
|
6864
|
-
header: () =>
|
|
6871
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Item Code"),
|
|
6865
6872
|
enableSorting: !1
|
|
6866
6873
|
},
|
|
6867
6874
|
{
|
|
@@ -6871,7 +6878,7 @@ const ad = [
|
|
|
6871
6878
|
},
|
|
6872
6879
|
{
|
|
6873
6880
|
accessorKey: "unitPrice",
|
|
6874
|
-
header: () =>
|
|
6881
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Unit Price"),
|
|
6875
6882
|
enableSorting: !1
|
|
6876
6883
|
},
|
|
6877
6884
|
{
|
|
@@ -6881,99 +6888,99 @@ const ad = [
|
|
|
6881
6888
|
},
|
|
6882
6889
|
{
|
|
6883
6890
|
accessorKey: "taxPer",
|
|
6884
|
-
header: () =>
|
|
6891
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Tax Per"),
|
|
6885
6892
|
enableSorting: !1
|
|
6886
6893
|
},
|
|
6887
6894
|
{
|
|
6888
6895
|
accessorKey: "qty",
|
|
6889
|
-
header: () =>
|
|
6896
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Qty"),
|
|
6890
6897
|
enableSorting: !1
|
|
6891
6898
|
},
|
|
6892
6899
|
{
|
|
6893
6900
|
accessorKey: "uom",
|
|
6894
|
-
header: () =>
|
|
6901
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "UOM"),
|
|
6895
6902
|
enableSorting: !1
|
|
6896
6903
|
},
|
|
6897
6904
|
{
|
|
6898
6905
|
accessorKey: "discper",
|
|
6899
|
-
header: () =>
|
|
6906
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Disc Per"),
|
|
6900
6907
|
enableSorting: !1
|
|
6901
6908
|
},
|
|
6902
6909
|
{
|
|
6903
6910
|
accessorKey: "discAmt",
|
|
6904
|
-
header: () =>
|
|
6911
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Disc Amt"),
|
|
6905
6912
|
enableSorting: !1
|
|
6906
6913
|
},
|
|
6907
6914
|
{
|
|
6908
6915
|
accessorKey: "taxInclusive",
|
|
6909
|
-
header: () =>
|
|
6916
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Tax Inclusive"),
|
|
6910
6917
|
enableSorting: !1
|
|
6911
6918
|
},
|
|
6912
6919
|
{
|
|
6913
6920
|
accessorKey: "totalAmt",
|
|
6914
|
-
header: () =>
|
|
6921
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Total Amt"),
|
|
6915
6922
|
enableSorting: !1
|
|
6916
6923
|
},
|
|
6917
6924
|
{
|
|
6918
6925
|
accessorKey: "taxAmt",
|
|
6919
|
-
header: () =>
|
|
6926
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Tax Amt"),
|
|
6920
6927
|
enableSorting: !1
|
|
6921
6928
|
},
|
|
6922
6929
|
{
|
|
6923
6930
|
accessorKey: "netAmt",
|
|
6924
|
-
header: () =>
|
|
6931
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Net Amt"),
|
|
6925
6932
|
enableSorting: !1
|
|
6926
6933
|
},
|
|
6927
6934
|
{
|
|
6928
6935
|
accessorKey: "accountCode",
|
|
6929
|
-
header: () =>
|
|
6936
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Account Code"),
|
|
6930
6937
|
enableSorting: !1
|
|
6931
6938
|
}
|
|
6932
6939
|
], x = [...f], h = [
|
|
6933
6940
|
{
|
|
6934
6941
|
accessorKey: "_date",
|
|
6935
|
-
header: () =>
|
|
6942
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
|
|
6936
6943
|
enableSorting: !1
|
|
6937
6944
|
},
|
|
6938
6945
|
{
|
|
6939
6946
|
accessorKey: "_no",
|
|
6940
|
-
header: () =>
|
|
6947
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "PO No"),
|
|
6941
6948
|
enableSorting: !1
|
|
6942
6949
|
},
|
|
6943
6950
|
{
|
|
6944
6951
|
accessorKey: "particular",
|
|
6945
|
-
header: () =>
|
|
6952
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Particular"),
|
|
6946
6953
|
enableSorting: !1
|
|
6947
6954
|
},
|
|
6948
6955
|
{
|
|
6949
6956
|
accessorKey: "qty",
|
|
6950
|
-
header: () =>
|
|
6957
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Qty"),
|
|
6951
6958
|
enableSorting: !1
|
|
6952
6959
|
},
|
|
6953
6960
|
{
|
|
6954
6961
|
accessorKey: "unitPrice",
|
|
6955
|
-
header: () =>
|
|
6962
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Unit Price"),
|
|
6956
6963
|
enableSorting: !1
|
|
6957
6964
|
}
|
|
6958
6965
|
], P = [
|
|
6959
6966
|
{
|
|
6960
6967
|
accessorKey: "rNo",
|
|
6961
|
-
header: () =>
|
|
6968
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "No"),
|
|
6962
6969
|
enableSorting: !1
|
|
6963
6970
|
},
|
|
6964
6971
|
{
|
|
6965
6972
|
accessorKey: "poNo",
|
|
6966
|
-
header: () =>
|
|
6973
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "PO, G/R"),
|
|
6967
6974
|
enableSorting: !1
|
|
6968
6975
|
},
|
|
6969
6976
|
{
|
|
6970
6977
|
accessorKey: "rDate",
|
|
6971
|
-
header: () =>
|
|
6978
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
|
|
6972
6979
|
enableSorting: !1
|
|
6973
6980
|
},
|
|
6974
6981
|
{
|
|
6975
6982
|
accessorKey: "debtorCode",
|
|
6976
|
-
header: () =>
|
|
6983
|
+
header: () => C("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Debtor Code"),
|
|
6977
6984
|
enableSorting: !1
|
|
6978
6985
|
},
|
|
6979
6986
|
{
|
|
@@ -6983,7 +6990,7 @@ const ad = [
|
|
|
6983
6990
|
},
|
|
6984
6991
|
{
|
|
6985
6992
|
accessorKey: "itemCode",
|
|
6986
|
-
header: () =>
|
|
6993
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Item Code"),
|
|
6987
6994
|
enableSorting: !1
|
|
6988
6995
|
},
|
|
6989
6996
|
{
|
|
@@ -6993,52 +7000,52 @@ const ad = [
|
|
|
6993
7000
|
},
|
|
6994
7001
|
{
|
|
6995
7002
|
accessorKey: "qty",
|
|
6996
|
-
header: () =>
|
|
7003
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Qty"),
|
|
6997
7004
|
enableSorting: !1
|
|
6998
7005
|
},
|
|
6999
7006
|
{
|
|
7000
7007
|
accessorKey: "uom",
|
|
7001
|
-
header: () =>
|
|
7008
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "UOM"),
|
|
7002
7009
|
enableSorting: !1
|
|
7003
7010
|
},
|
|
7004
7011
|
{
|
|
7005
7012
|
accessorKey: "unitPrice",
|
|
7006
|
-
header: () =>
|
|
7013
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Unit Price"),
|
|
7007
7014
|
enableSorting: !1
|
|
7008
7015
|
},
|
|
7009
7016
|
{
|
|
7010
7017
|
accessorKey: "discPer",
|
|
7011
|
-
header: () =>
|
|
7018
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Disc Per"),
|
|
7012
7019
|
enableSorting: !1
|
|
7013
7020
|
},
|
|
7014
7021
|
{
|
|
7015
7022
|
accessorKey: "discAmt",
|
|
7016
|
-
header: () =>
|
|
7023
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Disc Amt"),
|
|
7017
7024
|
enableSorting: !1
|
|
7018
7025
|
},
|
|
7019
7026
|
{
|
|
7020
7027
|
accessorKey: "taxInclusive",
|
|
7021
|
-
header: () =>
|
|
7028
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Tax Inclusive"),
|
|
7022
7029
|
enableSorting: !1
|
|
7023
7030
|
},
|
|
7024
7031
|
{
|
|
7025
7032
|
accessorKey: "taxPer",
|
|
7026
|
-
header: () =>
|
|
7033
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Tax Per"),
|
|
7027
7034
|
enableSorting: !1
|
|
7028
7035
|
},
|
|
7029
7036
|
{
|
|
7030
7037
|
accessorKey: "taxAmt",
|
|
7031
|
-
header: () =>
|
|
7038
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Tax Amt"),
|
|
7032
7039
|
enableSorting: !1
|
|
7033
7040
|
},
|
|
7034
7041
|
{
|
|
7035
7042
|
accessorKey: "totalAmt",
|
|
7036
|
-
header: () =>
|
|
7043
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Total Amt"),
|
|
7037
7044
|
enableSorting: !1
|
|
7038
7045
|
},
|
|
7039
7046
|
{
|
|
7040
7047
|
accessorKey: "netAmt",
|
|
7041
|
-
header: () =>
|
|
7048
|
+
header: () => C("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Net Amt"),
|
|
7042
7049
|
enableSorting: !1
|
|
7043
7050
|
}
|
|
7044
7051
|
], A = re(g, "modelValue"), y = Z(!1), m = Ae(), { dateRange: c } = He($e());
|
|
@@ -7095,7 +7102,7 @@ const ad = [
|
|
|
7095
7102
|
}
|
|
7096
7103
|
], n = Z(d[0].value);
|
|
7097
7104
|
return (b, r) => {
|
|
7098
|
-
const a = D("FmButton"),
|
|
7105
|
+
const a = D("FmButton"), $ = D("FmCircularProgress"), i = D("FmTabs"), u = D("FmTable");
|
|
7099
7106
|
return w(), j("div", Rd, [
|
|
7100
7107
|
t("div", Ud, [
|
|
7101
7108
|
l(qe, {
|
|
@@ -7111,8 +7118,8 @@ const ad = [
|
|
|
7111
7118
|
}, null, 8, ["loading", "label"])
|
|
7112
7119
|
]),
|
|
7113
7120
|
y.value ? (w(), j("div", Pd, [
|
|
7114
|
-
l(
|
|
7115
|
-
t("span", jd,
|
|
7121
|
+
l($, { size: "xl" }),
|
|
7122
|
+
t("span", jd, k(s(o)("report.common.isLoading")), 1)
|
|
7116
7123
|
])) : (w(), j("div", Ld, [
|
|
7117
7124
|
l(i, {
|
|
7118
7125
|
"model-value": n.value,
|
|
@@ -7302,18 +7309,18 @@ const ad = [
|
|
|
7302
7309
|
function _(d, n) {
|
|
7303
7310
|
var b, r;
|
|
7304
7311
|
(r = (b = e.value.platform) == null ? void 0 : b.mappings) != null && r[d] && (e.value.platform.mappings[d] = e.value.platform.mappings[d].filter(
|
|
7305
|
-
(a,
|
|
7312
|
+
(a, $) => $ !== n
|
|
7306
7313
|
));
|
|
7307
7314
|
}
|
|
7308
7315
|
return je(async () => {
|
|
7309
7316
|
await v.getSettings();
|
|
7310
7317
|
}), (d, n) => {
|
|
7311
7318
|
var u, R;
|
|
7312
|
-
const b = D("FmIcon"), r = D("FmButton"), a = D("FmTextField"),
|
|
7319
|
+
const b = D("FmIcon"), r = D("FmButton"), a = D("FmTextField"), $ = D("FmSelect"), i = D("FmMenuDivider");
|
|
7313
7320
|
return (R = (u = e.value) == null ? void 0 : u.platform) != null && R.mappings ? (w(), j("div", qd, [
|
|
7314
7321
|
t("div", Hd, [
|
|
7315
7322
|
t("div", zd, [
|
|
7316
|
-
t("div", Gd,
|
|
7323
|
+
t("div", Gd, k(s(o)("report.integration.connect")), 1),
|
|
7317
7324
|
t("div", Qd, [
|
|
7318
7325
|
t("div", Wd, [
|
|
7319
7326
|
l(b, {
|
|
@@ -7321,7 +7328,7 @@ const ad = [
|
|
|
7321
7328
|
class: "p-2 bg-gray-100 rounded-full",
|
|
7322
7329
|
onClick: m
|
|
7323
7330
|
}),
|
|
7324
|
-
t("span", Xd,
|
|
7331
|
+
t("span", Xd, k(s(o)("report.integration.refreshSetting")), 1)
|
|
7325
7332
|
]),
|
|
7326
7333
|
l(r, {
|
|
7327
7334
|
variant: "tertiary",
|
|
@@ -7341,17 +7348,17 @@ const ad = [
|
|
|
7341
7348
|
t("div", Zd, [
|
|
7342
7349
|
n[28] || (n[28] = t("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Authenticate with your CodeMax POS account to enable FeedMe to securely upload data. ", -1)),
|
|
7343
7350
|
t("div", ep, [
|
|
7344
|
-
t("div", tp,
|
|
7351
|
+
t("div", tp, k(s(o)("report.common.general")), 1),
|
|
7345
7352
|
t("div", op, [
|
|
7346
|
-
t("div", ap,
|
|
7353
|
+
t("div", ap, k(s(o)("report.common.name")), 1),
|
|
7347
7354
|
l(a, {
|
|
7348
7355
|
modelValue: e.value.name,
|
|
7349
7356
|
"onUpdate:modelValue": n[0] || (n[0] = (U) => e.value.name = U)
|
|
7350
7357
|
}, null, 8, ["modelValue"])
|
|
7351
7358
|
]),
|
|
7352
7359
|
t("div", lp, [
|
|
7353
|
-
t("div", np,
|
|
7354
|
-
l(
|
|
7360
|
+
t("div", np, k(s(o)("report.common.location")), 1),
|
|
7361
|
+
l($, {
|
|
7355
7362
|
modelValue: e.value.platform.locationIds,
|
|
7356
7363
|
"onUpdate:modelValue": n[1] || (n[1] = (U) => e.value.platform.locationIds = U),
|
|
7357
7364
|
items: h.value,
|
|
@@ -7361,8 +7368,8 @@ const ad = [
|
|
|
7361
7368
|
}, null, 8, ["modelValue", "items", "placeholder"])
|
|
7362
7369
|
]),
|
|
7363
7370
|
t("div", sp, [
|
|
7364
|
-
t("div", rp,
|
|
7365
|
-
l(
|
|
7371
|
+
t("div", rp, k(s(o)("report.integration.grouping.title")), 1),
|
|
7372
|
+
l($, {
|
|
7366
7373
|
modelValue: e.value.platform.grouping,
|
|
7367
7374
|
"onUpdate:modelValue": n[2] || (n[2] = (U) => e.value.platform.grouping = U),
|
|
7368
7375
|
items: P,
|
|
@@ -7596,7 +7603,7 @@ const ad = [
|
|
|
7596
7603
|
{ accessorKey: "itemCode", header: "Item Code", enableSorting: !1 },
|
|
7597
7604
|
{
|
|
7598
7605
|
accessorKey: "itemName",
|
|
7599
|
-
header: () =>
|
|
7606
|
+
header: () => C("p", { class: "min-w-[80px] text-nowrap text-ellipsis" }, "Item Name"),
|
|
7600
7607
|
enableSorting: !1
|
|
7601
7608
|
},
|
|
7602
7609
|
{ accessorKey: "qty", header: "Qty", enableSorting: !1 },
|
|
@@ -7636,7 +7643,7 @@ const ad = [
|
|
|
7636
7643
|
t("div", wp, [
|
|
7637
7644
|
p.value ? (w(), j("div", hp, [
|
|
7638
7645
|
l(A, { size: "xl" }),
|
|
7639
|
-
t("span", _p,
|
|
7646
|
+
t("span", _p, k(s(o)("report.common.isLoading")), 1)
|
|
7640
7647
|
])) : (w(), Q(y, {
|
|
7641
7648
|
key: 1,
|
|
7642
7649
|
class: "flex p-5 border border-fm-color-border-secondary rounded-lg h-auto min-w-full",
|