@feedmepos/mf-report 5.19.6 → 5.19.7-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-D7NSK2zi.js → App-h-tDKQlA.js} +60 -60
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-DfR1HrUp.js → BaseDialog.vue_vue_type_script_setup_true_lang-ODTkggPg.js} +1 -1
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BpCkJzaq.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-D1KEawaw.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-B8b1OCgz.js → Default.vue_vue_type_script_setup_true_lang-piRZPnBL.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-Bzw8sJ-w.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BsH90tAb.js} +5 -5
- package/dist/{InsightView-DnD3Dt8d.js → InsightView-BfUgwaQG.js} +5 -5
- package/dist/{Integration-DV-CQvW4.js → Integration-Ck5SytHF.js} +229 -222
- package/dist/{Integrations-Dnic66XZ.js → Integrations-CN2VLJyH.js} +3 -3
- package/dist/{Layout-H0oFnIYY.js → Layout-Ctex8ogt.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BX2fKZyD.js → MenuTab.vue_vue_type_script_setup_true_lang-Cu22qdoM.js} +6 -6
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CJVrtl8d.js → NavigationTab.vue_vue_type_script_setup_true_lang-K2OuicKC.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-0mEmUOOq.js → NoData.vue_vue_type_script_setup_true_lang-CYlrI2O9.js} +1 -1
- package/dist/{OverviewView-bWfXrthv.js → OverviewView-B-UnBjtq.js} +5 -5
- package/dist/{Report-B1IBM-d-.js → Report-BqacDpGo.js} +4 -4
- package/dist/{ReportEditor-Bgq6jEcP.js → ReportEditor-Bq94ZeJe.js} +6 -6
- package/dist/{ReportView-A4T05vk9.js → ReportView-B4KxY9_Q.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CGdKRai5.js → SelectComponent.vue_vue_type_script_setup_true_lang-BrTCEJlK.js} +1 -1
- package/dist/{Setting-Bm_rIqyC.js → Setting-BNhk0ns2.js} +4 -4
- package/dist/{TileEditor-B3lFfGa9.js → TileEditor-DE5XDX9P.js} +7 -7
- package/dist/{TransitionFade-Cbphw-78.js → TransitionFade-CvpWXkrp.js} +5 -5
- package/dist/app.js +11 -11
- package/dist/{helper-C7kR1yOO.js → helper-mE0Q3YSh.js} +1 -1
- package/dist/{vue-i18n-CKknhZn2.js → vue-i18n-B27SDmEk.js} +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as J, mergeModels as Se, useModel as te, computed as q, resolveComponent as A, createElementBlock as I, openBlock as w, createElementVNode as t, createCommentVNode as L, normalizeClass as Ne, Fragment as ke, createBlock as j, withCtx as xe, toDisplayString as C, renderList as De, createVNode as l, unref as d, h as k, normalizeStyle as tt, createTextVNode as ot, ref as z, onUnmounted as Ie, watch as Ce, isRef as Ke, resolveDynamicComponent as Te, mergeProps as Qe, onMounted as Ge } from "vue";
|
|
2
2
|
import { useRouter as be, useRoute as at } from "vue-router";
|
|
3
|
-
import { u as oe, I as he, d as Ve, w as lt, z as nt, e as Ae, f as Re, b as we, A as ve, B as st, n as rt, y as Pe, E as Me, G as je, H as Le, J as ze, K as it, L as dt, M as mt, N as qe, c as Ze, O as pt, P as ut, Q as ct, R as ft, S as gt } from "./vue-i18n-
|
|
3
|
+
import { u as oe, I as he, d as Ve, w as lt, z as nt, e as Ae, f as Re, b as we, A as ve, B as st, n as rt, y as Pe, E as Me, G as je, H as Le, J as ze, K as it, L as dt, M as mt, N as qe, c as Ze, O as pt, P as ut, Q as ct, R as ft, S as gt } from "./vue-i18n-B27SDmEk.js";
|
|
4
4
|
import { u as Oe } from "./message-dialog-UoMWOnil.js";
|
|
5
5
|
import { useSnackbar as _e } from "@feedmepos/ui-library";
|
|
6
6
|
import { storeToRefs as Ee } from "pinia";
|
|
7
|
-
import { _ as Be } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as Be } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-D1KEawaw.js";
|
|
8
8
|
const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, yt = { class: "w-[100%]" }, xt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, bt = { class: "w-[100%] flex flex-row gap-[4px]" }, wt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, _t = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, ht = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "w-[24px] flex items-center"
|
|
@@ -57,7 +57,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
57
57
|
const V = a;
|
|
58
58
|
return (N, p) => {
|
|
59
59
|
var $;
|
|
60
|
-
const x = A("FmTextField"),
|
|
60
|
+
const x = A("FmTextField"), h = A("FmTooltip"), T = A("FmIcon");
|
|
61
61
|
return w(), I("div", vt, [
|
|
62
62
|
t("div", {
|
|
63
63
|
class: Ne(`${f.removable ? "w-[calc(100%-24px)]" : "w-[100%]"} flex flex-col items-start gap-[4px]`)
|
|
@@ -71,7 +71,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
71
71
|
type: f.type,
|
|
72
72
|
rules: f.rules,
|
|
73
73
|
"onUpdate:modelValue": p[0] || (p[0] = (g) => K(y.value[0].key, g))
|
|
74
|
-
}, null, 8, ["model-value", "placeholder", "type", "rules"])) : (w(), j(
|
|
74
|
+
}, null, 8, ["model-value", "placeholder", "type", "rules"])) : (w(), j(h, {
|
|
75
75
|
key: 1,
|
|
76
76
|
content: ($ = e.value[y.value[0].key]) == null ? void 0 : $.toString(),
|
|
77
77
|
class: "w-[100%]"
|
|
@@ -96,7 +96,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
96
96
|
type: f.type,
|
|
97
97
|
rules: f.rules,
|
|
98
98
|
"onUpdate:modelValue": (m) => K(g.key, m)
|
|
99
|
-
}, null, 8, ["model-value", "placeholder", "type", "rules", "onUpdate:modelValue"])) : (w(), j(
|
|
99
|
+
}, null, 8, ["model-value", "placeholder", "type", "rules", "onUpdate:modelValue"])) : (w(), j(h, {
|
|
100
100
|
key: 1,
|
|
101
101
|
content: (u = e.value[g.key]) == null ? void 0 : u.toString(),
|
|
102
102
|
class: "w-[100%]"
|
|
@@ -129,7 +129,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
129
129
|
rules: f.rules,
|
|
130
130
|
"onUpdate:modelValue": (m) => K(g.key, m)
|
|
131
131
|
}, null, 8, ["model-value", "placeholder", "type", "rules", "onUpdate:modelValue"])
|
|
132
|
-
], 2)) : (w(), j(
|
|
132
|
+
], 2)) : (w(), j(h, {
|
|
133
133
|
key: 1,
|
|
134
134
|
content: (u = e.value[g.key]) == null ? void 0 : u.toString(),
|
|
135
135
|
class: "w-[50%]"
|
|
@@ -249,7 +249,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
249
249
|
};
|
|
250
250
|
return (p, x) => {
|
|
251
251
|
var c, v;
|
|
252
|
-
const
|
|
252
|
+
const h = A("FmBadge"), T = A("FmTable"), $ = A("FmSideSheet"), g = A("FmSwitch"), u = A("FmTextField"), m = A("FmTimePicker");
|
|
253
253
|
return w(), I(ke, null, [
|
|
254
254
|
t("div", kt, [
|
|
255
255
|
t("div", Ct, C(d(a)("report.integration.auto", { label: f.label })), 1),
|
|
@@ -264,7 +264,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
264
264
|
}, {
|
|
265
265
|
"side-sheet-button": xe(() => [
|
|
266
266
|
f.label == "upload" ? (w(), I("div", Vt, [
|
|
267
|
-
V.value ? (w(), j(
|
|
267
|
+
V.value ? (w(), j(h, {
|
|
268
268
|
key: 0,
|
|
269
269
|
variant: "critical"
|
|
270
270
|
}, {
|
|
@@ -303,7 +303,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
303
303
|
t("div", Ft, C(d(a)("report.common.enable")), 1),
|
|
304
304
|
l(g, {
|
|
305
305
|
modelValue: e.value.enable,
|
|
306
|
-
"onUpdate:modelValue": x[1] || (x[1] = (
|
|
306
|
+
"onUpdate:modelValue": x[1] || (x[1] = (_) => e.value.enable = _),
|
|
307
307
|
style: { gap: "0px" }
|
|
308
308
|
}, null, 8, ["modelValue"])
|
|
309
309
|
])
|
|
@@ -314,12 +314,12 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
314
314
|
l(u, {
|
|
315
315
|
"model-value": (e.value.emails || []).join(","),
|
|
316
316
|
placeholder: "Email",
|
|
317
|
-
"onUpdate:modelValue": x[2] || (x[2] = (
|
|
317
|
+
"onUpdate:modelValue": x[2] || (x[2] = (_) => {
|
|
318
318
|
switch (e.value.name) {
|
|
319
319
|
case d(he).AutoCount:
|
|
320
320
|
case d(he).SQL:
|
|
321
321
|
case d(he).iFlexi_HRMS:
|
|
322
|
-
e.value.emails =
|
|
322
|
+
e.value.emails = _.split(",");
|
|
323
323
|
break;
|
|
324
324
|
}
|
|
325
325
|
})
|
|
@@ -333,8 +333,8 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
333
333
|
l(m, {
|
|
334
334
|
class: "gap-[0px]",
|
|
335
335
|
"model-value": d(Ve)().hour(((c = e.value.triggerTime) == null ? void 0 : c.hour) ?? 0).minute(((v = e.value.triggerTime) == null ? void 0 : v.minute) ?? 0).format("HH:mm"),
|
|
336
|
-
"onUpdate:modelValue": x[3] || (x[3] = (
|
|
337
|
-
|
|
336
|
+
"onUpdate:modelValue": x[3] || (x[3] = (_) => {
|
|
337
|
+
_ && (e.value.triggerTime.hour = Number(_.split(":")[0]), e.value.triggerTime.minute = Number(_.split(":")[1]));
|
|
338
338
|
})
|
|
339
339
|
}, null, 8, ["model-value"])
|
|
340
340
|
])
|
|
@@ -349,9 +349,9 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
349
349
|
label: { placeholder: d(a)("report.integration.delayDay"), editable: !1 },
|
|
350
350
|
delayDay: { placeholder: d(a)("report.integration.delayDay"), editable: !0 }
|
|
351
351
|
},
|
|
352
|
-
rules: [(
|
|
353
|
-
"onUpdate:modelValue": x[4] || (x[4] = (
|
|
354
|
-
e.value.delayDay =
|
|
352
|
+
rules: [(_) => _ > 0 || "Delay days must be greater than 0"],
|
|
353
|
+
"onUpdate:modelValue": x[4] || (x[4] = (_) => {
|
|
354
|
+
e.value.delayDay = _.delayDay;
|
|
355
355
|
})
|
|
356
356
|
}, null, 8, ["model-value", "options", "rules"])
|
|
357
357
|
])
|
|
@@ -392,24 +392,24 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
392
392
|
setup(f, { emit: a }) {
|
|
393
393
|
const e = te(f, "modelValue"), i = f, y = q(
|
|
394
394
|
() => Object.keys(i.options).map((x) => {
|
|
395
|
-
const
|
|
395
|
+
const h = i.options[x];
|
|
396
396
|
return {
|
|
397
|
-
placeholder:
|
|
397
|
+
placeholder: h.placeholder,
|
|
398
398
|
key: x,
|
|
399
|
-
editable:
|
|
400
|
-
dropdownOptions:
|
|
399
|
+
editable: h.editable,
|
|
400
|
+
dropdownOptions: h.dropdownOptions
|
|
401
401
|
};
|
|
402
402
|
})
|
|
403
|
-
), K = (x,
|
|
404
|
-
i.singleValueMode ? e.value = i.type === "number" ? Number(x) : x :
|
|
403
|
+
), K = (x, h) => {
|
|
404
|
+
i.singleValueMode ? e.value = i.type === "number" ? Number(x) : x : h && (e.value = {
|
|
405
405
|
...e.value,
|
|
406
|
-
[
|
|
406
|
+
[h]: i.type === "number" ? Number(x) : x
|
|
407
407
|
});
|
|
408
408
|
}, V = (x) => {
|
|
409
|
-
var
|
|
410
|
-
return i.singleValueMode ? i.options.key.placeholder : (
|
|
409
|
+
var h;
|
|
410
|
+
return i.singleValueMode ? i.options.key.placeholder : (h = e.value[x.key]) == null ? void 0 : h.toString();
|
|
411
411
|
}, N = (x) => i.singleValueMode ? e.value : e.value[x.key], p = a;
|
|
412
|
-
return (x,
|
|
412
|
+
return (x, h) => {
|
|
413
413
|
const T = A("FmSelect"), $ = A("FmTextField"), g = A("FmTooltip"), u = A("FmIcon");
|
|
414
414
|
return w(), I("div", Lt, [
|
|
415
415
|
t("div", {
|
|
@@ -455,7 +455,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
455
455
|
class: "cursor-pointer text-fm-color-neutral-gray-400",
|
|
456
456
|
name: "delete",
|
|
457
457
|
size: "md",
|
|
458
|
-
onClick:
|
|
458
|
+
onClick: h[0] || (h[0] = (m) => p("remove"))
|
|
459
459
|
})
|
|
460
460
|
])) : L("", !0)
|
|
461
461
|
]);
|
|
@@ -491,8 +491,8 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
491
491
|
"flex flex-row items-center w-full font-medium text-gray-600 mb-2"
|
|
492
492
|
])
|
|
493
493
|
}, [
|
|
494
|
-
(w(!0), I(ke, null, De(e.headerItems, (x,
|
|
495
|
-
key: `header-item-${
|
|
494
|
+
(w(!0), I(ke, null, De(e.headerItems, (x, h) => (w(), I("div", {
|
|
495
|
+
key: `header-item-${h}`,
|
|
496
496
|
class: "w-[50%]"
|
|
497
497
|
}, [
|
|
498
498
|
p < i.value ? (w(), I(ke, { key: 0 }, [
|
|
@@ -508,8 +508,8 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
508
508
|
"is-take-whole-row": !1,
|
|
509
509
|
removable: e.removable,
|
|
510
510
|
"onUpdate:modelValue": (x) => {
|
|
511
|
-
const
|
|
512
|
-
|
|
511
|
+
const h = [...e.rows];
|
|
512
|
+
h[p] = x, y("update:rows", h);
|
|
513
513
|
},
|
|
514
514
|
onRemove: () => y("remove", e.mappingType || "", p)
|
|
515
515
|
}, null, 8, ["model-value", "options", "removable", "onUpdate:modelValue", "onRemove"])) : (w(), j(et, {
|
|
@@ -518,8 +518,8 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
518
518
|
options: e.fieldsOptions || {},
|
|
519
519
|
removable: e.removable,
|
|
520
520
|
"onUpdate:modelValue": (x) => {
|
|
521
|
-
const
|
|
522
|
-
|
|
521
|
+
const h = [...e.rows];
|
|
522
|
+
h[p] = x, y("update:rows", h);
|
|
523
523
|
},
|
|
524
524
|
onRemove: () => y("remove", e.mappingType || "", p)
|
|
525
525
|
}, null, 8, ["model-value", "options", "removable", "onUpdate:modelValue", "onRemove"]))
|
|
@@ -566,7 +566,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
566
566
|
}),
|
|
567
567
|
emits: ["update:modelValue"],
|
|
568
568
|
setup(f) {
|
|
569
|
-
const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Re(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = z(!1),
|
|
569
|
+
const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Re(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = z(!1), h = q(
|
|
570
570
|
() => p.map((s) => ({ label: s.name, value: s.id }))
|
|
571
571
|
), T = q(() => {
|
|
572
572
|
var s, n;
|
|
@@ -635,7 +635,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
635
635
|
(M, Y) => Y !== n
|
|
636
636
|
));
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function _(s) {
|
|
639
639
|
var n, D;
|
|
640
640
|
(D = (n = e.value.platform) == null ? void 0 : n.mappings) != null && D[s] && (e.value.platform.mappings[s] = [
|
|
641
641
|
...e.value.platform.mappings[s],
|
|
@@ -747,7 +747,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
747
747
|
modelValue: e.value.platform.locationIds,
|
|
748
748
|
"onUpdate:modelValue": n[1] || (n[1] = (ee) => e.value.platform.locationIds = ee),
|
|
749
749
|
multiselect: !0,
|
|
750
|
-
items:
|
|
750
|
+
items: h.value,
|
|
751
751
|
placeholder: "Select location",
|
|
752
752
|
class: "flex-grow"
|
|
753
753
|
}, null, 8, ["modelValue", "items"])
|
|
@@ -829,7 +829,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
829
829
|
variant: "secondary",
|
|
830
830
|
"prepend-icon": "add",
|
|
831
831
|
label: "Add taxes",
|
|
832
|
-
onClick: n[8] || (n[8] = () =>
|
|
832
|
+
onClick: n[8] || (n[8] = () => _("taxes"))
|
|
833
833
|
})
|
|
834
834
|
]),
|
|
835
835
|
f.taxOptions.isError || e.value.platform.accessToken == null ? (w(), I("div", vo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : L("", !0),
|
|
@@ -865,7 +865,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
865
865
|
variant: "secondary",
|
|
866
866
|
"prepend-icon": "add",
|
|
867
867
|
label: "Add tax rounding adjustments",
|
|
868
|
-
onClick: n[11] || (n[11] = () =>
|
|
868
|
+
onClick: n[11] || (n[11] = () => _("taxRoundingAdjustments"))
|
|
869
869
|
})
|
|
870
870
|
]),
|
|
871
871
|
f.taxOptions.isError || e.value.platform.accessToken == null ? (w(), I("div", xo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : L("", !0),
|
|
@@ -901,7 +901,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
901
901
|
variant: "secondary",
|
|
902
902
|
"prepend-icon": "add",
|
|
903
903
|
label: "Add items",
|
|
904
|
-
onClick: n[14] || (n[14] = () =>
|
|
904
|
+
onClick: n[14] || (n[14] = () => _("items"))
|
|
905
905
|
})
|
|
906
906
|
]),
|
|
907
907
|
f.accountCodeOptions.isError || e.value.platform.accessToken == null ? (w(), I("div", wo, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : L("", !0),
|
|
@@ -937,7 +937,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
937
937
|
variant: "secondary",
|
|
938
938
|
"prepend-icon": "add",
|
|
939
939
|
label: "Add payments",
|
|
940
|
-
onClick: n[17] || (n[17] = () =>
|
|
940
|
+
onClick: n[17] || (n[17] = () => _("payments"))
|
|
941
941
|
})
|
|
942
942
|
]),
|
|
943
943
|
f.accountCodeOptions.isError || e.value.platform.accessToken == null ? (w(), I("div", ho, " Error connecting xero. Please connect to your Xero account to view the setting options. ")) : L("", !0),
|
|
@@ -984,9 +984,9 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
984
984
|
emits: ["update:modelValue"],
|
|
985
985
|
setup(f) {
|
|
986
986
|
const a = z([]), { t: e } = oe(), i = q(
|
|
987
|
-
() => a.value.reduce((
|
|
988
|
-
const $ =
|
|
989
|
-
|
|
987
|
+
() => a.value.reduce((h, T) => {
|
|
988
|
+
const $ = h.length, { invoice: g, payments: u } = T;
|
|
989
|
+
h[$] = {
|
|
990
990
|
date: g.Date,
|
|
991
991
|
contact: g.Contact.ContactID,
|
|
992
992
|
status: g.Status,
|
|
@@ -994,8 +994,8 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
994
994
|
};
|
|
995
995
|
for (let m = 0; m < Math.max(g.LineItems.length, u.length); m++) {
|
|
996
996
|
const c = $ + m;
|
|
997
|
-
|
|
998
|
-
...
|
|
997
|
+
h[c] || (h[c] = {}), g.LineItems[m] && (h[c] = {
|
|
998
|
+
...h[c],
|
|
999
999
|
itemDescription: g.LineItems[m].Description,
|
|
1000
1000
|
itemQuantity: g.LineItems[m].Quantity,
|
|
1001
1001
|
itemUnitAmount: g.LineItems[m].UnitAmount,
|
|
@@ -1005,14 +1005,14 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1005
1005
|
itemTaxType: g.LineItems[m].TaxType,
|
|
1006
1006
|
itemLineAmount: g.LineItems[m].LineAmount,
|
|
1007
1007
|
itemDiscount: g.LineItems[m].DiscountAmount
|
|
1008
|
-
}), u[m] && (
|
|
1009
|
-
...
|
|
1008
|
+
}), u[m] && (h[c] = {
|
|
1009
|
+
...h[c],
|
|
1010
1010
|
paymentAccount: u[m].Account.Code,
|
|
1011
1011
|
paymentReference: u[m].Reference,
|
|
1012
1012
|
paymentAmount: u[m].Amount
|
|
1013
1013
|
});
|
|
1014
1014
|
}
|
|
1015
|
-
return
|
|
1015
|
+
return h;
|
|
1016
1016
|
}, [])
|
|
1017
1017
|
), y = [
|
|
1018
1018
|
{
|
|
@@ -1097,8 +1097,8 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1097
1097
|
if (K.value._id)
|
|
1098
1098
|
try {
|
|
1099
1099
|
V.value = !0, a.value = await Le(K.value._id);
|
|
1100
|
-
} catch (
|
|
1101
|
-
N.open({ message:
|
|
1100
|
+
} catch (h) {
|
|
1101
|
+
N.open({ message: h.message, type: "error" });
|
|
1102
1102
|
} finally {
|
|
1103
1103
|
V.value = !1;
|
|
1104
1104
|
}
|
|
@@ -1110,13 +1110,13 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1110
1110
|
async function x() {
|
|
1111
1111
|
try {
|
|
1112
1112
|
K.value._id ? (V.value = !0, await ze(K.value._id), N.open({ message: "Upload successful", type: "success" })) : N.open({ message: "Invalid accounting setting", type: "error" });
|
|
1113
|
-
} catch (
|
|
1114
|
-
|
|
1113
|
+
} catch (h) {
|
|
1114
|
+
h.message && N.open({ message: h.message, type: "error" }), h.errors && h.errors.forEach((T) => N.open({ message: T.Message, type: "error" }));
|
|
1115
1115
|
} finally {
|
|
1116
1116
|
V.value = !1;
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
|
-
return (
|
|
1119
|
+
return (h, T) => {
|
|
1120
1120
|
const $ = A("FmButton"), g = A("FmCircularProgress"), u = A("FmTable");
|
|
1121
1121
|
return w(), I("div", Co, [
|
|
1122
1122
|
t("div", $o, [
|
|
@@ -1180,7 +1180,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1180
1180
|
return null;
|
|
1181
1181
|
}
|
|
1182
1182
|
});
|
|
1183
|
-
async function
|
|
1183
|
+
async function h() {
|
|
1184
1184
|
if (e.value._id)
|
|
1185
1185
|
try {
|
|
1186
1186
|
const g = await it(e.value._id);
|
|
@@ -1229,11 +1229,11 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1229
1229
|
},
|
|
1230
1230
|
(g) => {
|
|
1231
1231
|
var u, m;
|
|
1232
|
-
g && (
|
|
1232
|
+
g && (h(), (m = (u = e.value.platform) == null ? void 0 : u.tenant) != null && m.id && y.value.isLoaded && (T(), $()));
|
|
1233
1233
|
},
|
|
1234
1234
|
{ immediate: !0 }
|
|
1235
1235
|
), (g, u) => {
|
|
1236
|
-
var v,
|
|
1236
|
+
var v, _, r;
|
|
1237
1237
|
const m = A("FmPageHead"), c = A("FmTabs");
|
|
1238
1238
|
return w(), I("div", Do, [
|
|
1239
1239
|
l(m, {
|
|
@@ -1253,7 +1253,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1253
1253
|
items: N
|
|
1254
1254
|
}, null, 8, ["model-value"]),
|
|
1255
1255
|
t("div", Ko, [
|
|
1256
|
-
(w(), j(Te((
|
|
1256
|
+
(w(), j(Te((_ = x.value) == null ? void 0 : _.component), Qe({
|
|
1257
1257
|
modelValue: e.value,
|
|
1258
1258
|
"onUpdate:modelValue": u[2] || (u[2] = (o) => e.value = o)
|
|
1259
1259
|
}, (r = x.value) == null ? void 0 : r.props), null, 16, ["modelValue"]))
|
|
@@ -1385,7 +1385,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1385
1385
|
const a = te(f, "modelValue"), e = _e(), i = Ae(), y = be(), { promptLoader: K } = Re(), { promptMessage: V } = Oe(), { restaurants: N } = we(), p = q(
|
|
1386
1386
|
() => N.map((r) => ({ label: r.name, value: r.id }))
|
|
1387
1387
|
), { t: x } = oe();
|
|
1388
|
-
async function
|
|
1388
|
+
async function h() {
|
|
1389
1389
|
await V({
|
|
1390
1390
|
message: x("report.messages.confirmDelete", { name: a.value.name }),
|
|
1391
1391
|
title: x("report.common.delete")
|
|
@@ -1494,7 +1494,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1494
1494
|
account: { placeholder: r, editable: !0 }
|
|
1495
1495
|
};
|
|
1496
1496
|
}
|
|
1497
|
-
async function
|
|
1497
|
+
async function _() {
|
|
1498
1498
|
await K(async () => {
|
|
1499
1499
|
try {
|
|
1500
1500
|
await je(a.value._id), await i.getSettings();
|
|
@@ -1517,14 +1517,14 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1517
1517
|
l(s, {
|
|
1518
1518
|
name: "refresh",
|
|
1519
1519
|
class: "p-2 bg-gray-100 rounded-full",
|
|
1520
|
-
onClick:
|
|
1520
|
+
onClick: _
|
|
1521
1521
|
}),
|
|
1522
1522
|
t("span", Lo, C(d(x)("report.integration.refreshSetting")), 1)
|
|
1523
1523
|
]),
|
|
1524
1524
|
l(n, {
|
|
1525
1525
|
variant: "tertiary",
|
|
1526
1526
|
label: d(x)("report.common.delete"),
|
|
1527
|
-
onClick:
|
|
1527
|
+
onClick: h
|
|
1528
1528
|
}, null, 8, ["label"]),
|
|
1529
1529
|
l(n, {
|
|
1530
1530
|
variant: "primary",
|
|
@@ -1833,8 +1833,8 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1833
1833
|
const g = new Date(T.date);
|
|
1834
1834
|
if (isNaN(g.getTime())) return $;
|
|
1835
1835
|
const u = String(g.getFullYear()), m = String(g.getMonth() + 1).padStart(2, "0"), c = String(g.getDate()).padStart(2, "0");
|
|
1836
|
-
return $.replace(/\[(YYYY|MM|DD)\]/g, (v,
|
|
1837
|
-
switch (
|
|
1836
|
+
return $.replace(/\[(YYYY|MM|DD)\]/g, (v, _) => {
|
|
1837
|
+
switch (_) {
|
|
1838
1838
|
case "YYYY":
|
|
1839
1839
|
return u;
|
|
1840
1840
|
case "MM":
|
|
@@ -1859,15 +1859,15 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1859
1859
|
for (let c = 0; c < Math.max(u.form_items.length, m.length); c++) {
|
|
1860
1860
|
const v = g + c;
|
|
1861
1861
|
T[v] || (T[v] = {});
|
|
1862
|
-
const
|
|
1863
|
-
|
|
1862
|
+
const _ = u.form_items[c];
|
|
1863
|
+
_ && (T[v] = {
|
|
1864
1864
|
...T[v],
|
|
1865
|
-
itemDescription:
|
|
1866
|
-
itemQuantity:
|
|
1867
|
-
itemUnitPrice:
|
|
1868
|
-
itemAccount:
|
|
1869
|
-
itemTaxCode:
|
|
1870
|
-
itemDiscount:
|
|
1865
|
+
itemDescription: _.description,
|
|
1866
|
+
itemQuantity: _.quantity,
|
|
1867
|
+
itemUnitPrice: _.unit_price,
|
|
1868
|
+
itemAccount: _._account_name,
|
|
1869
|
+
itemTaxCode: _._tax_code_name,
|
|
1870
|
+
itemDiscount: _.discount
|
|
1871
1871
|
});
|
|
1872
1872
|
const r = m[c];
|
|
1873
1873
|
r && (T[v] = {
|
|
@@ -1983,7 +1983,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
1983
1983
|
immediate: !0
|
|
1984
1984
|
}
|
|
1985
1985
|
);
|
|
1986
|
-
async function
|
|
1986
|
+
async function h() {
|
|
1987
1987
|
try {
|
|
1988
1988
|
V.value._id ? (N.value = !0, await ze(V.value._id), p.open({ message: y("report.integration.uploadSuccess"), type: "success" })) : p.open({ message: y("report.integration.error.invalid"), type: "error" });
|
|
1989
1989
|
} catch (T) {
|
|
@@ -2005,7 +2005,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2005
2005
|
loading: N.value,
|
|
2006
2006
|
variant: "primary",
|
|
2007
2007
|
label: d(y)("report.common.upload"),
|
|
2008
|
-
onClick:
|
|
2008
|
+
onClick: h
|
|
2009
2009
|
}, null, 8, ["loading", "label"])
|
|
2010
2010
|
]),
|
|
2011
2011
|
N.value ? (w(), I("div", ka, [
|
|
@@ -2051,7 +2051,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2051
2051
|
});
|
|
2052
2052
|
return (N, p) => {
|
|
2053
2053
|
var T;
|
|
2054
|
-
const x = A("FmPageHead"),
|
|
2054
|
+
const x = A("FmPageHead"), h = A("FmTabs");
|
|
2055
2055
|
return w(), I("div", Sa, [
|
|
2056
2056
|
l(x, {
|
|
2057
2057
|
title: ((T = e.value) == null ? void 0 : T.name) || "Bukku",
|
|
@@ -2064,7 +2064,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2064
2064
|
])),
|
|
2065
2065
|
_: 1
|
|
2066
2066
|
}, 8, ["title"]),
|
|
2067
|
-
l(
|
|
2067
|
+
l(h, {
|
|
2068
2068
|
"model-value": i.value,
|
|
2069
2069
|
"onUpdate:modelValue": p[1] || (p[1] = ($) => i.value = $),
|
|
2070
2070
|
items: y
|
|
@@ -2092,9 +2092,9 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2092
2092
|
emits: ["update:modelValue"],
|
|
2093
2093
|
setup(f) {
|
|
2094
2094
|
const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Re(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
|
|
2095
|
-
() => p.map((
|
|
2095
|
+
() => p.map((_) => ({ label: _.name, value: _.id }))
|
|
2096
2096
|
);
|
|
2097
|
-
async function
|
|
2097
|
+
async function h() {
|
|
2098
2098
|
await N({
|
|
2099
2099
|
message: a("report.messages.confirmDelete", { name: e.value.name }),
|
|
2100
2100
|
title: a("report.common.delete")
|
|
@@ -2110,27 +2110,27 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2110
2110
|
await V(async () => {
|
|
2111
2111
|
try {
|
|
2112
2112
|
await Me(e.value._id, e.value), await y.getSettings();
|
|
2113
|
-
} catch (
|
|
2114
|
-
i.open({ type: "error", message:
|
|
2113
|
+
} catch (_) {
|
|
2114
|
+
i.open({ type: "error", message: _.message });
|
|
2115
2115
|
}
|
|
2116
2116
|
});
|
|
2117
2117
|
}
|
|
2118
|
-
function $(
|
|
2118
|
+
function $(_, r) {
|
|
2119
2119
|
var n;
|
|
2120
2120
|
const o = (n = e.value.platform) == null ? void 0 : n.mappings;
|
|
2121
2121
|
if (!o) return;
|
|
2122
|
-
if (["items", "taxes", "payments", "taxRoundingAdjustments"].includes(
|
|
2123
|
-
const D =
|
|
2122
|
+
if (["items", "taxes", "payments", "taxRoundingAdjustments"].includes(_)) {
|
|
2123
|
+
const D = _;
|
|
2124
2124
|
o[D] && Array.isArray(o[D]) && (o[D] = o[D].filter(
|
|
2125
2125
|
(F, M) => M !== r
|
|
2126
2126
|
));
|
|
2127
2127
|
}
|
|
2128
2128
|
}
|
|
2129
|
-
function g(
|
|
2129
|
+
function g(_) {
|
|
2130
2130
|
var r, o;
|
|
2131
|
-
(o = (r = e.value.platform) == null ? void 0 : r.mappings) != null && o[
|
|
2132
|
-
...e.value.platform.mappings[
|
|
2133
|
-
|
|
2131
|
+
(o = (r = e.value.platform) == null ? void 0 : r.mappings) != null && o[_] && (e.value.platform.mappings[_] = [
|
|
2132
|
+
...e.value.platform.mappings[_],
|
|
2133
|
+
_ === "items" ? {
|
|
2134
2134
|
key: "",
|
|
2135
2135
|
account: "",
|
|
2136
2136
|
description: ""
|
|
@@ -2155,30 +2155,30 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2155
2155
|
}
|
|
2156
2156
|
];
|
|
2157
2157
|
function m({
|
|
2158
|
-
key:
|
|
2158
|
+
key: _,
|
|
2159
2159
|
value: r
|
|
2160
2160
|
}) {
|
|
2161
2161
|
var o, s;
|
|
2162
|
-
(s = (o = e.value) == null ? void 0 : o.platform) != null && s.mappings && (e.value.platform.mappings[
|
|
2162
|
+
(s = (o = e.value) == null ? void 0 : o.platform) != null && s.mappings && (e.value.platform.mappings[_] = r);
|
|
2163
2163
|
}
|
|
2164
|
-
function c(
|
|
2164
|
+
function c(_) {
|
|
2165
2165
|
return {
|
|
2166
|
-
key: { placeholder:
|
|
2167
|
-
account: { placeholder:
|
|
2166
|
+
key: { placeholder: _, editable: !1 },
|
|
2167
|
+
account: { placeholder: _, editable: !0 }
|
|
2168
2168
|
};
|
|
2169
2169
|
}
|
|
2170
2170
|
async function v() {
|
|
2171
2171
|
await V(async () => {
|
|
2172
2172
|
try {
|
|
2173
2173
|
await je(e.value._id), await y.getSettings();
|
|
2174
|
-
} catch (
|
|
2175
|
-
i.open({ type: "error", message:
|
|
2174
|
+
} catch (_) {
|
|
2175
|
+
i.open({ type: "error", message: _.message });
|
|
2176
2176
|
}
|
|
2177
2177
|
});
|
|
2178
2178
|
}
|
|
2179
2179
|
return Ie(async () => {
|
|
2180
2180
|
await y.getSettings();
|
|
2181
|
-
}), (
|
|
2181
|
+
}), (_, r) => {
|
|
2182
2182
|
var M, Y, E, G, W, ae, le, ne, se, re, ie, de, me, pe, ue, ce, fe;
|
|
2183
2183
|
const o = A("FmIcon"), s = A("FmButton"), n = A("FmMenuDivider"), D = A("FmTextField"), F = A("FmSelect");
|
|
2184
2184
|
return (Y = (M = e.value) == null ? void 0 : M.platform) != null && Y.mappings ? (w(), I("div", Da, [
|
|
@@ -2197,7 +2197,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2197
2197
|
l(s, {
|
|
2198
2198
|
variant: "tertiary",
|
|
2199
2199
|
label: d(a)("report.common.remove"),
|
|
2200
|
-
onClick:
|
|
2200
|
+
onClick: h
|
|
2201
2201
|
}, null, 8, ["label"]),
|
|
2202
2202
|
l(s, {
|
|
2203
2203
|
variant: "primary",
|
|
@@ -2326,7 +2326,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2326
2326
|
modelValue: e.value.platform,
|
|
2327
2327
|
"onUpdate:modelValue": r[10] || (r[10] = (U) => e.value.platform = U),
|
|
2328
2328
|
label: d(a)("report.input.email"),
|
|
2329
|
-
"error-logs":
|
|
2329
|
+
"error-logs": _.errorLogs,
|
|
2330
2330
|
"integration-id": e.value._id
|
|
2331
2331
|
}, null, 8, ["modelValue", "label", "error-logs", "integration-id"]),
|
|
2332
2332
|
l(n, { style: { margin: 0 } }),
|
|
@@ -2450,9 +2450,9 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2450
2450
|
emits: ["update:modelValue"],
|
|
2451
2451
|
setup(f) {
|
|
2452
2452
|
const { t: a } = oe(), e = z([]), i = q(
|
|
2453
|
-
() => e.value.reduce((
|
|
2454
|
-
const $ =
|
|
2455
|
-
|
|
2453
|
+
() => e.value.reduce((h, T) => {
|
|
2454
|
+
const $ = h.length, { invoice: g, payments: u } = T;
|
|
2455
|
+
h[$] = {
|
|
2456
2456
|
date: g.DocDate,
|
|
2457
2457
|
docNo: g.DocNo,
|
|
2458
2458
|
projNo: g.ProjNo,
|
|
@@ -2461,22 +2461,22 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2461
2461
|
};
|
|
2462
2462
|
for (let m = 0; m < Math.max(g._items.length, u.length); m++) {
|
|
2463
2463
|
const c = $ + m;
|
|
2464
|
-
|
|
2465
|
-
...
|
|
2464
|
+
h[c] || (h[c] = {}), g._items[m] && (h[c] = {
|
|
2465
|
+
...h[c],
|
|
2466
2466
|
itemDescription: g._items[m].DetailDescription,
|
|
2467
2467
|
itemUnitPrice: g._items[m].Amount,
|
|
2468
2468
|
itemAccount: g._items[m].AccNo,
|
|
2469
2469
|
itemTaxCode: g._items[m].TaxType,
|
|
2470
2470
|
itemTax: g._items[m].Tax
|
|
2471
|
-
}), u[m] && (
|
|
2472
|
-
...
|
|
2471
|
+
}), u[m] && (h[c] = {
|
|
2472
|
+
...h[c],
|
|
2473
2473
|
paymentDocNo: u[m].DocNo,
|
|
2474
2474
|
paymentMethod: u[m].paymentMethod,
|
|
2475
2475
|
paymentDescription: u[m].Description,
|
|
2476
2476
|
paymentAmount: u[m].PaymentAmt
|
|
2477
2477
|
});
|
|
2478
2478
|
}
|
|
2479
|
-
return
|
|
2479
|
+
return h;
|
|
2480
2480
|
}, [])
|
|
2481
2481
|
), y = [
|
|
2482
2482
|
{
|
|
@@ -2556,8 +2556,8 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2556
2556
|
if (K.value._id)
|
|
2557
2557
|
try {
|
|
2558
2558
|
V.value = !0, e.value = await Le(K.value._id);
|
|
2559
|
-
} catch (
|
|
2560
|
-
N.open({ message:
|
|
2559
|
+
} catch (h) {
|
|
2560
|
+
N.open({ message: h.message, type: "error" });
|
|
2561
2561
|
} finally {
|
|
2562
2562
|
V.value = !1;
|
|
2563
2563
|
}
|
|
@@ -2569,13 +2569,13 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2569
2569
|
async function x() {
|
|
2570
2570
|
try {
|
|
2571
2571
|
K.value._id ? (V.value = !0, await qe(K.value._id)) : N.open({ message: "Invalid accounting setting", type: "error" });
|
|
2572
|
-
} catch (
|
|
2573
|
-
N.open({ message:
|
|
2572
|
+
} catch (h) {
|
|
2573
|
+
N.open({ message: h.message, type: "error" });
|
|
2574
2574
|
} finally {
|
|
2575
2575
|
V.value = !1;
|
|
2576
2576
|
}
|
|
2577
2577
|
}
|
|
2578
|
-
return (
|
|
2578
|
+
return (h, T) => {
|
|
2579
2579
|
const $ = A("FmButton"), g = A("FmCircularProgress"), u = A("FmTable");
|
|
2580
2580
|
return w(), I("div", rl, [
|
|
2581
2581
|
t("div", il, [
|
|
@@ -2634,7 +2634,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2634
2634
|
});
|
|
2635
2635
|
return (N, p) => {
|
|
2636
2636
|
var T;
|
|
2637
|
-
const x = A("FmPageHead"),
|
|
2637
|
+
const x = A("FmPageHead"), h = A("FmTabs");
|
|
2638
2638
|
return w(), I("div", ul, [
|
|
2639
2639
|
l(x, {
|
|
2640
2640
|
title: ((T = e.value) == null ? void 0 : T.name) || "AutoCount",
|
|
@@ -2647,7 +2647,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2647
2647
|
])),
|
|
2648
2648
|
_: 1
|
|
2649
2649
|
}, 8, ["title"]),
|
|
2650
|
-
l(
|
|
2650
|
+
l(h, {
|
|
2651
2651
|
"model-value": i.value,
|
|
2652
2652
|
"onUpdate:modelValue": p[1] || (p[1] = ($) => i.value = $),
|
|
2653
2653
|
items: y
|
|
@@ -2675,7 +2675,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2675
2675
|
const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Re(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
|
|
2676
2676
|
() => p.map((r) => ({ label: r.name, value: r.id }))
|
|
2677
2677
|
);
|
|
2678
|
-
async function
|
|
2678
|
+
async function h() {
|
|
2679
2679
|
await N({
|
|
2680
2680
|
message: a("report.messages.confirmDelete", { name: e.value.name }),
|
|
2681
2681
|
title: a("report.common.delete")
|
|
@@ -2749,7 +2749,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2749
2749
|
return r.some(
|
|
2750
2750
|
(o) => o.key === "report_portal_integration_custom_sql" && o.value === !0
|
|
2751
2751
|
);
|
|
2752
|
-
}),
|
|
2752
|
+
}), _ = q(() => [
|
|
2753
2753
|
{
|
|
2754
2754
|
label: "By day",
|
|
2755
2755
|
value: ve.BY_DAY
|
|
@@ -2790,7 +2790,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2790
2790
|
l(n, {
|
|
2791
2791
|
variant: "tertiary",
|
|
2792
2792
|
label: d(a)("report.common.delete"),
|
|
2793
|
-
onClick:
|
|
2793
|
+
onClick: h
|
|
2794
2794
|
}, null, 8, ["label"]),
|
|
2795
2795
|
l(n, {
|
|
2796
2796
|
variant: "primary",
|
|
@@ -2833,7 +2833,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
2833
2833
|
modelValue: e.value.platform.grouping,
|
|
2834
2834
|
"onUpdate:modelValue": o[2] || (o[2] = (O) => e.value.platform.grouping = O),
|
|
2835
2835
|
multiselect: !1,
|
|
2836
|
-
items:
|
|
2836
|
+
items: _.value,
|
|
2837
2837
|
placeholder: "Select grouping",
|
|
2838
2838
|
class: "flex-grow"
|
|
2839
2839
|
}, null, 8, ["modelValue", "items"])
|
|
@@ -3064,7 +3064,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3064
3064
|
})
|
|
3065
3065
|
]),
|
|
3066
3066
|
l(X, {
|
|
3067
|
-
"header-items": ["Key", "Account Code", "UOM"],
|
|
3067
|
+
"header-items": ["Key", "Account Code", "Item Code", "UOM"],
|
|
3068
3068
|
rows: ((P = (b = (R = e.value) == null ? void 0 : R.platform) == null ? void 0 : b.inventoryMappings) == null ? void 0 : P.items) || [],
|
|
3069
3069
|
"columns-per-row": 1,
|
|
3070
3070
|
removable: !0,
|
|
@@ -3072,6 +3072,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3072
3072
|
"fields-options": {
|
|
3073
3073
|
key: { placeholder: "Key", editable: !0 },
|
|
3074
3074
|
account: { placeholder: "Account code", editable: !0 },
|
|
3075
|
+
code: { placeholder: "Item code", editable: !0 },
|
|
3075
3076
|
uom: { placeholder: "UOM", editable: !0 }
|
|
3076
3077
|
},
|
|
3077
3078
|
onRemove: o[26] || (o[26] = (O, H) => {
|
|
@@ -3144,22 +3145,22 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3144
3145
|
deliveryOrders: []
|
|
3145
3146
|
}), i = q(
|
|
3146
3147
|
() => e.value.invoices.reduce((m, c) => {
|
|
3147
|
-
const v = m.length, { invoice:
|
|
3148
|
+
const v = m.length, { invoice: _, payments: r } = c;
|
|
3148
3149
|
m[v] = {
|
|
3149
|
-
date:
|
|
3150
|
-
docNo:
|
|
3151
|
-
debtor:
|
|
3152
|
-
description:
|
|
3150
|
+
date: _.DocDate,
|
|
3151
|
+
docNo: _.DocNo,
|
|
3152
|
+
debtor: _.Code,
|
|
3153
|
+
description: _.Description_HDR
|
|
3153
3154
|
};
|
|
3154
|
-
for (let o = 0; o < Math.max(
|
|
3155
|
+
for (let o = 0; o < Math.max(_._items.length, r.length); o++) {
|
|
3155
3156
|
const s = v + o;
|
|
3156
|
-
m[s] || (m[s] = {}),
|
|
3157
|
+
m[s] || (m[s] = {}), _._items[o] && (m[s] = {
|
|
3157
3158
|
...m[s],
|
|
3158
|
-
itemDescription:
|
|
3159
|
-
itemUnitPrice:
|
|
3160
|
-
itemAccount:
|
|
3161
|
-
itemTaxCode:
|
|
3162
|
-
itemTax:
|
|
3159
|
+
itemDescription: _._items[o].Description_DTL,
|
|
3160
|
+
itemUnitPrice: _._items[o].UnitPrice,
|
|
3161
|
+
itemAccount: _._items[o].ACCOUNT,
|
|
3162
|
+
itemTaxCode: _._items[o].Tax,
|
|
3163
|
+
itemTax: _._items[o].TaxAmt
|
|
3163
3164
|
}), r[o] && (m[s] = {
|
|
3164
3165
|
...m[s],
|
|
3165
3166
|
paymentDocNo: r[o].DOCNO_Header,
|
|
@@ -3239,23 +3240,24 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3239
3240
|
}
|
|
3240
3241
|
], K = q(
|
|
3241
3242
|
() => e.value.deliveryOrders.reduce((m, c) => {
|
|
3242
|
-
const v = m.length, { _items:
|
|
3243
|
+
const v = m.length, { _items: _ } = c;
|
|
3243
3244
|
m[v] = {
|
|
3244
3245
|
date: c.DocDate,
|
|
3245
3246
|
docNo: c.DocNo,
|
|
3246
3247
|
supplierCode: c.Code,
|
|
3247
3248
|
description: c.Description_HDR
|
|
3248
3249
|
};
|
|
3249
|
-
for (let r = 0; r <
|
|
3250
|
+
for (let r = 0; r < _.length; r++) {
|
|
3250
3251
|
const o = v + r;
|
|
3251
|
-
m[o] || (m[o] = {}),
|
|
3252
|
+
m[o] || (m[o] = {}), _[r] && (m[o] = {
|
|
3252
3253
|
...m[o],
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3254
|
+
accountCode: _[r].ACCOUNT,
|
|
3255
|
+
itemCode: _[r].ItemCode,
|
|
3256
|
+
itemDescription: _[r].Description_DTL,
|
|
3257
|
+
itemUnitPrice: _[r].UnitPrice,
|
|
3258
|
+
itemQuantity: _[r].Qty,
|
|
3259
|
+
itemUom: _[r].UOM,
|
|
3260
|
+
itemAmount: _[r].Amount
|
|
3259
3261
|
// itemTaxCode: _items[i].Tax,
|
|
3260
3262
|
// itemTax: _items[i].TaxAmt
|
|
3261
3263
|
});
|
|
@@ -3283,14 +3285,19 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3283
3285
|
header: "Description",
|
|
3284
3286
|
enableSorting: !1
|
|
3285
3287
|
},
|
|
3288
|
+
{
|
|
3289
|
+
accessorKey: "accountCode",
|
|
3290
|
+
header: () => k("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Account Code"),
|
|
3291
|
+
enableSorting: !1
|
|
3292
|
+
},
|
|
3286
3293
|
{
|
|
3287
3294
|
accessorKey: "itemCode",
|
|
3288
|
-
header: () => k("p", { class: "min-w-[100px] text-
|
|
3295
|
+
header: () => k("p", { class: "min-w-[100px] text-wrap text-ellipsis" }, "Inventory Item Code"),
|
|
3289
3296
|
enableSorting: !1
|
|
3290
3297
|
},
|
|
3291
3298
|
{
|
|
3292
3299
|
accessorKey: "itemDescription",
|
|
3293
|
-
header: () => k("p", { class: "min-w-[140px] text-
|
|
3300
|
+
header: () => k("p", { class: "min-w-[140px] text-wrap text-ellipsis" }, "Inventory Item Description"),
|
|
3294
3301
|
enableSorting: !1
|
|
3295
3302
|
},
|
|
3296
3303
|
{
|
|
@@ -3313,9 +3320,9 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3313
3320
|
header: "Item Amount",
|
|
3314
3321
|
enableSorting: !1
|
|
3315
3322
|
}
|
|
3316
|
-
], N = te(f, "modelValue"), p = z(!1), x = _e(), { dateRange:
|
|
3323
|
+
], N = te(f, "modelValue"), p = z(!1), x = _e(), { dateRange: h } = Ee(we());
|
|
3317
3324
|
Ce(
|
|
3318
|
-
() =>
|
|
3325
|
+
() => h.value,
|
|
3319
3326
|
async () => {
|
|
3320
3327
|
if (N.value._id)
|
|
3321
3328
|
try {
|
|
@@ -3363,12 +3370,12 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3363
3370
|
] : []
|
|
3364
3371
|
], u = z(g[0].value);
|
|
3365
3372
|
return (m, c) => {
|
|
3366
|
-
const v = A("FmButton"),
|
|
3373
|
+
const v = A("FmButton"), _ = A("FmCircularProgress"), r = A("FmTabs"), o = A("FmTable");
|
|
3367
3374
|
return w(), I("div", Xl, [
|
|
3368
3375
|
t("div", Wl, [
|
|
3369
3376
|
l(Be, {
|
|
3370
|
-
"date-range": d(
|
|
3371
|
-
"onUpdate:dateRange": c[0] || (c[0] = (s) => Ke(
|
|
3377
|
+
"date-range": d(h),
|
|
3378
|
+
"onUpdate:dateRange": c[0] || (c[0] = (s) => Ke(h) ? h.value = s : null),
|
|
3372
3379
|
compare: !1
|
|
3373
3380
|
}, null, 8, ["date-range"]),
|
|
3374
3381
|
l(v, {
|
|
@@ -3379,7 +3386,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3379
3386
|
}, null, 8, ["loading", "label"])
|
|
3380
3387
|
]),
|
|
3381
3388
|
p.value ? (w(), I("div", Jl, [
|
|
3382
|
-
l(
|
|
3389
|
+
l(_, { size: "xl" }),
|
|
3383
3390
|
t("span", Zl, C(d(a)("report.common.isLoading")), 1)
|
|
3384
3391
|
])) : (w(), I("div", en, [
|
|
3385
3392
|
l(r, {
|
|
@@ -3434,7 +3441,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3434
3441
|
});
|
|
3435
3442
|
return (N, p) => {
|
|
3436
3443
|
var T;
|
|
3437
|
-
const x = A("FmPageHead"),
|
|
3444
|
+
const x = A("FmPageHead"), h = A("FmTabs");
|
|
3438
3445
|
return w(), I("div", on, [
|
|
3439
3446
|
l(x, {
|
|
3440
3447
|
title: ((T = e.value) == null ? void 0 : T.name) || "SQL",
|
|
@@ -3447,7 +3454,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3447
3454
|
])),
|
|
3448
3455
|
_: 1
|
|
3449
3456
|
}, 8, ["title"]),
|
|
3450
|
-
l(
|
|
3457
|
+
l(h, {
|
|
3451
3458
|
"model-value": i.value,
|
|
3452
3459
|
"onUpdate:modelValue": p[1] || (p[1] = ($) => i.value = $),
|
|
3453
3460
|
items: y
|
|
@@ -3500,7 +3507,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3500
3507
|
const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Re(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
|
|
3501
3508
|
() => p.map((r) => ({ label: r.name, value: r.id }))
|
|
3502
3509
|
);
|
|
3503
|
-
function
|
|
3510
|
+
function h(r) {
|
|
3504
3511
|
var o;
|
|
3505
3512
|
!((o = f.retrievedMethods) != null && o.data) || !Array.isArray(f.retrievedMethods.data) || r.forEach((s) => {
|
|
3506
3513
|
const n = f.retrievedMethods.data.find((D) => D.value == s.id);
|
|
@@ -3523,7 +3530,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3523
3530
|
await V(async () => {
|
|
3524
3531
|
var r, o, s;
|
|
3525
3532
|
try {
|
|
3526
|
-
(s = (o = (r = e.value) == null ? void 0 : r.platform) == null ? void 0 : o.mappings) != null && s.paymentMethods &&
|
|
3533
|
+
(s = (o = (r = e.value) == null ? void 0 : r.platform) == null ? void 0 : o.mappings) != null && s.paymentMethods && h(e.value.platform.mappings.paymentMethods), await Me(e.value._id, e.value), await y.getSettings();
|
|
3527
3534
|
} catch (n) {
|
|
3528
3535
|
i.open({ type: "error", message: n.message });
|
|
3529
3536
|
}
|
|
@@ -3620,7 +3627,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3620
3627
|
},
|
|
3621
3628
|
{ immediate: !0 }
|
|
3622
3629
|
);
|
|
3623
|
-
async function
|
|
3630
|
+
async function _() {
|
|
3624
3631
|
await V(async () => {
|
|
3625
3632
|
try {
|
|
3626
3633
|
await je(e.value._id), await y.getSettings();
|
|
@@ -3644,7 +3651,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3644
3651
|
l(s, {
|
|
3645
3652
|
name: "refresh",
|
|
3646
3653
|
class: "p-2 bg-gray-100 rounded-full",
|
|
3647
|
-
onClick:
|
|
3654
|
+
onClick: _
|
|
3648
3655
|
}),
|
|
3649
3656
|
t("span", cn, C(d(a)("report.integration.refreshSetting")), 1)
|
|
3650
3657
|
]),
|
|
@@ -3966,7 +3973,7 @@ const vt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
|
|
|
3966
3973
|
});
|
|
3967
3974
|
function ls(f) {
|
|
3968
3975
|
return f.reduce((a, e) => {
|
|
3969
|
-
var K, V, N, p, x,
|
|
3976
|
+
var K, V, N, p, x, h, T, $, g, u, m, c, v, _, r, o, s, n, D, F, M, Y;
|
|
3970
3977
|
const { invoice: i } = e, y = a.length;
|
|
3971
3978
|
a[y] = {
|
|
3972
3979
|
invoice_date: i.invoice_date,
|
|
@@ -3980,7 +3987,7 @@ function ls(f) {
|
|
|
3980
3987
|
item_price: (N = i.items[0]) == null ? void 0 : N.price,
|
|
3981
3988
|
item_tax: (p = i.items[0]) == null ? void 0 : p.total_tax,
|
|
3982
3989
|
item_tax_label: ((x = i.items[0]) == null ? void 0 : x.tax_label) || "-",
|
|
3983
|
-
payment_amount: ((T = (
|
|
3990
|
+
payment_amount: ((T = (h = i.transactions) == null ? void 0 : h[0]) == null ? void 0 : T.amount) || void 0,
|
|
3984
3991
|
payment_method: ((g = ($ = i.transactions) == null ? void 0 : $[0]) == null ? void 0 : g.payment_method) || "-",
|
|
3985
3992
|
payment_term: ((u = i == null ? void 0 : i.payment_term) == null ? void 0 : u.name) || ""
|
|
3986
3993
|
};
|
|
@@ -3995,7 +4002,7 @@ function ls(f) {
|
|
|
3995
4002
|
item_price: W.price,
|
|
3996
4003
|
item_tax: W.total_tax,
|
|
3997
4004
|
item_tax_label: W.tax_label || "-",
|
|
3998
|
-
payment_amount: ((
|
|
4005
|
+
payment_amount: ((_ = (v = i.transactions) == null ? void 0 : v[E]) == null ? void 0 : _.amount) || void 0,
|
|
3999
4006
|
payment_method: ((o = (r = i.transactions) == null ? void 0 : r[E]) == null ? void 0 : o.payment_method) || "-",
|
|
4000
4007
|
payment_term: ((s = i == null ? void 0 : i.payment_term) == null ? void 0 : s.name) || ""
|
|
4001
4008
|
} : a[G] = {
|
|
@@ -4081,7 +4088,7 @@ const ns = [
|
|
|
4081
4088
|
];
|
|
4082
4089
|
function ss(f) {
|
|
4083
4090
|
return f.reduce((a, e) => {
|
|
4084
|
-
var N, p, x,
|
|
4091
|
+
var N, p, x, h, T, $, g, u, m, c, v, _, r, o;
|
|
4085
4092
|
const { invoice: i, payments: y } = e, K = a.length;
|
|
4086
4093
|
a[K] = {
|
|
4087
4094
|
invoice_date: i.invoice_date,
|
|
@@ -4089,7 +4096,7 @@ function ss(f) {
|
|
|
4089
4096
|
total: i.total,
|
|
4090
4097
|
item_code: (p = i.items[0]) == null ? void 0 : p.code,
|
|
4091
4098
|
item_description: (x = i.items[0]) == null ? void 0 : x.description,
|
|
4092
|
-
item_price: (
|
|
4099
|
+
item_price: (h = i.items[0]) == null ? void 0 : h.price,
|
|
4093
4100
|
item_tax_label: ((T = i.items[0]) == null ? void 0 : T.tax_label) ?? "",
|
|
4094
4101
|
item_tax_amount: (($ = i.items[0]) == null ? void 0 : $.total_tax) ?? "",
|
|
4095
4102
|
service_charge_amount: ((g = i.service_charges[0]) == null ? void 0 : g.total) ?? "",
|
|
@@ -4100,7 +4107,7 @@ function ss(f) {
|
|
|
4100
4107
|
};
|
|
4101
4108
|
const V = Math.max(
|
|
4102
4109
|
((v = i.items) == null ? void 0 : v.length) || 0,
|
|
4103
|
-
((
|
|
4110
|
+
((_ = i.terms) == null ? void 0 : _.length) || 0,
|
|
4104
4111
|
(y == null ? void 0 : y.length) || 0
|
|
4105
4112
|
);
|
|
4106
4113
|
for (let s = 1; s < V; s++) {
|
|
@@ -4211,8 +4218,8 @@ const rs = [
|
|
|
4211
4218
|
if (e.value._id)
|
|
4212
4219
|
try {
|
|
4213
4220
|
i.value = !0, V.value = await Le(e.value._id);
|
|
4214
|
-
} catch (
|
|
4215
|
-
y.open({ message:
|
|
4221
|
+
} catch (h) {
|
|
4222
|
+
y.open({ message: h.message, type: "error" });
|
|
4216
4223
|
} finally {
|
|
4217
4224
|
i.value = !1;
|
|
4218
4225
|
}
|
|
@@ -4241,13 +4248,13 @@ const rs = [
|
|
|
4241
4248
|
async function x() {
|
|
4242
4249
|
try {
|
|
4243
4250
|
e.value._id && e.value.platform.subdomain && e.value.platform.api_key ? (i.value = !0, await ze(e.value._id), y.open({ message: "Upload successful", type: "success" })) : y.open({ message: "Invalid accounting setting", type: "error" });
|
|
4244
|
-
} catch (
|
|
4245
|
-
|
|
4251
|
+
} catch (h) {
|
|
4252
|
+
h.message && y.open({ message: h.message, type: "error" }), h.errors && h.errors.forEach((T) => y.open({ message: T, type: "error" }));
|
|
4246
4253
|
} finally {
|
|
4247
4254
|
i.value = !1;
|
|
4248
4255
|
}
|
|
4249
4256
|
}
|
|
4250
|
-
return (
|
|
4257
|
+
return (h, T) => {
|
|
4251
4258
|
const $ = A("FmButton"), g = A("FmCircularProgress"), u = A("FmTable");
|
|
4252
4259
|
return w(), I("div", is, [
|
|
4253
4260
|
t("div", ds, [
|
|
@@ -4314,16 +4321,16 @@ const rs = [
|
|
|
4314
4321
|
default:
|
|
4315
4322
|
return null;
|
|
4316
4323
|
}
|
|
4317
|
-
}), p = z({}), x = z({}),
|
|
4324
|
+
}), p = z({}), x = z({}), h = (m, c) => m.map((v) => ({
|
|
4318
4325
|
label: c.length > 2 ? `ID:${v[c[2]]} [${v[c[0]]}] ${v[c[1]]}` : `[${v[c[0]]}] ${v[c[1]]}`,
|
|
4319
4326
|
value: v.id,
|
|
4320
4327
|
cnId: v.cnId ? v.cnId : null
|
|
4321
|
-
})), T = (m) =>
|
|
4328
|
+
})), T = (m) => h(m, ["wallet", "name"]), $ = (m) => h(m, ["id", "name"]), g = async (m, c, v, _) => {
|
|
4322
4329
|
try {
|
|
4323
4330
|
const r = await m(e.value._id);
|
|
4324
4331
|
v.value.data = c(r);
|
|
4325
4332
|
} catch (r) {
|
|
4326
|
-
console.error(
|
|
4333
|
+
console.error(_, r), v.value.isError = !0;
|
|
4327
4334
|
} finally {
|
|
4328
4335
|
v.value.isLoaded = !0;
|
|
4329
4336
|
}
|
|
@@ -4346,7 +4353,7 @@ const rs = [
|
|
|
4346
4353
|
return (m = e.value.platform.mappings) == null ? void 0 : m.version;
|
|
4347
4354
|
}, u), (m, c) => {
|
|
4348
4355
|
var r, o, s;
|
|
4349
|
-
const v = A("FmPageHead"),
|
|
4356
|
+
const v = A("FmPageHead"), _ = A("FmTabs");
|
|
4350
4357
|
return w(), I("div", cs, [
|
|
4351
4358
|
l(v, {
|
|
4352
4359
|
title: ((r = e.value) == null ? void 0 : r.name) || "Biztory",
|
|
@@ -4359,7 +4366,7 @@ const rs = [
|
|
|
4359
4366
|
])),
|
|
4360
4367
|
_: 1
|
|
4361
4368
|
}, 8, ["title"]),
|
|
4362
|
-
l(
|
|
4369
|
+
l(_, {
|
|
4363
4370
|
"model-value": y.value,
|
|
4364
4371
|
"onUpdate:modelValue": c[1] || (c[1] = (n) => y.value = n),
|
|
4365
4372
|
items: K
|
|
@@ -4387,7 +4394,7 @@ const rs = [
|
|
|
4387
4394
|
const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Re(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
|
|
4388
4395
|
() => p.map((m) => ({ label: m.name, value: m.id }))
|
|
4389
4396
|
);
|
|
4390
|
-
async function
|
|
4397
|
+
async function h() {
|
|
4391
4398
|
await N({
|
|
4392
4399
|
message: a("report.messages.confirmDelete", { name: e.value.name }),
|
|
4393
4400
|
title: a("report.common.delete")
|
|
@@ -4409,8 +4416,8 @@ const rs = [
|
|
|
4409
4416
|
});
|
|
4410
4417
|
}
|
|
4411
4418
|
function $(m, c) {
|
|
4412
|
-
var v,
|
|
4413
|
-
(
|
|
4419
|
+
var v, _;
|
|
4420
|
+
(_ = (v = e.value.platform) == null ? void 0 : v.mappings) != null && _[m] && (e.value.platform.mappings[m] = e.value.platform.mappings[m].filter(
|
|
4414
4421
|
(r, o) => o !== c
|
|
4415
4422
|
));
|
|
4416
4423
|
}
|
|
@@ -4439,7 +4446,7 @@ const rs = [
|
|
|
4439
4446
|
await y.getSettings();
|
|
4440
4447
|
}), (m, c) => {
|
|
4441
4448
|
var n, D, F, M, Y;
|
|
4442
|
-
const v = A("FmIcon"),
|
|
4449
|
+
const v = A("FmIcon"), _ = A("FmButton"), r = A("FmMenuDivider"), o = A("FmTextField"), s = A("FmSelect");
|
|
4443
4450
|
return (D = (n = e.value) == null ? void 0 : n.platform) != null && D.mappings ? (w(), I("div", vs, [
|
|
4444
4451
|
t("div", ys, [
|
|
4445
4452
|
t("div", xs, [
|
|
@@ -4453,12 +4460,12 @@ const rs = [
|
|
|
4453
4460
|
}),
|
|
4454
4461
|
t("span", _s, C(d(a)("report.integration.refreshSetting")), 1)
|
|
4455
4462
|
]),
|
|
4456
|
-
l(
|
|
4463
|
+
l(_, {
|
|
4457
4464
|
variant: "tertiary",
|
|
4458
4465
|
label: d(a)("report.common.delete"),
|
|
4459
|
-
onClick:
|
|
4466
|
+
onClick: h
|
|
4460
4467
|
}, null, 8, ["label"]),
|
|
4461
|
-
l(
|
|
4468
|
+
l(_, {
|
|
4462
4469
|
variant: "primary",
|
|
4463
4470
|
label: d(a)("report.common.update"),
|
|
4464
4471
|
"prepend-icon": "update",
|
|
@@ -4502,7 +4509,7 @@ const rs = [
|
|
|
4502
4509
|
l(r, { style: { margin: 0 } }),
|
|
4503
4510
|
t("div", Ts, [
|
|
4504
4511
|
t("div", Fs, C(d(a)("report.integration.iflexiHrms.employee")), 1),
|
|
4505
|
-
l(
|
|
4512
|
+
l(_, {
|
|
4506
4513
|
variant: "secondary",
|
|
4507
4514
|
"prepend-icon": "add",
|
|
4508
4515
|
label: "Add employees",
|
|
@@ -4594,13 +4601,13 @@ const rs = [
|
|
|
4594
4601
|
K.value = !1;
|
|
4595
4602
|
}
|
|
4596
4603
|
}
|
|
4597
|
-
return (x,
|
|
4604
|
+
return (x, h) => {
|
|
4598
4605
|
const T = A("FmButton"), $ = A("FmCircularProgress"), g = A("FmTable");
|
|
4599
4606
|
return w(), I("div", Us, [
|
|
4600
4607
|
t("div", Is, [
|
|
4601
4608
|
l(Be, {
|
|
4602
4609
|
"date-range": d(N),
|
|
4603
|
-
"onUpdate:dateRange":
|
|
4610
|
+
"onUpdate:dateRange": h[0] || (h[0] = (u) => Ke(N) ? N.value = u : null),
|
|
4604
4611
|
compare: !1
|
|
4605
4612
|
}, null, 8, ["date-range"]),
|
|
4606
4613
|
l(T, {
|
|
@@ -4653,7 +4660,7 @@ const rs = [
|
|
|
4653
4660
|
});
|
|
4654
4661
|
return (N, p) => {
|
|
4655
4662
|
var T;
|
|
4656
|
-
const x = A("FmPageHead"),
|
|
4663
|
+
const x = A("FmPageHead"), h = A("FmTabs");
|
|
4657
4664
|
return w(), I("div", js, [
|
|
4658
4665
|
l(x, {
|
|
4659
4666
|
title: ((T = e.value) == null ? void 0 : T.name) || "AutoCount",
|
|
@@ -4666,7 +4673,7 @@ const rs = [
|
|
|
4666
4673
|
])),
|
|
4667
4674
|
_: 1
|
|
4668
4675
|
}, 8, ["title"]),
|
|
4669
|
-
l(
|
|
4676
|
+
l(h, {
|
|
4670
4677
|
"model-value": i.value,
|
|
4671
4678
|
"onUpdate:modelValue": p[1] || (p[1] = ($) => i.value = $),
|
|
4672
4679
|
items: y
|
|
@@ -4719,7 +4726,7 @@ const rs = [
|
|
|
4719
4726
|
const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Re(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
|
|
4720
4727
|
() => p.map((o) => ({ label: o.name, value: o.id }))
|
|
4721
4728
|
);
|
|
4722
|
-
let
|
|
4729
|
+
let h = z("");
|
|
4723
4730
|
async function T() {
|
|
4724
4731
|
await N({
|
|
4725
4732
|
message: a("report.messages.confirmDelete", { name: e.value.name }),
|
|
@@ -4794,7 +4801,7 @@ const rs = [
|
|
|
4794
4801
|
var n, D;
|
|
4795
4802
|
(D = (n = e.value) == null ? void 0 : n.platform) != null && D.mappings && (e.value.platform.mappings[o] = s);
|
|
4796
4803
|
}
|
|
4797
|
-
function
|
|
4804
|
+
function _(o) {
|
|
4798
4805
|
return {
|
|
4799
4806
|
key: { placeholder: o, editable: !1 },
|
|
4800
4807
|
account: { placeholder: o, editable: !0 }
|
|
@@ -4807,7 +4814,7 @@ const rs = [
|
|
|
4807
4814
|
const s = f.retrievedDebtors.data.find(
|
|
4808
4815
|
(n) => n.valueAccNo === o || n.value === o
|
|
4809
4816
|
);
|
|
4810
|
-
s && (
|
|
4817
|
+
s && (h.value = o, e.value.platform.mappings.debtorCode = s.valueAccNo, e.value.platform.mappings.debtorName = s.valueCompanyName);
|
|
4811
4818
|
}
|
|
4812
4819
|
return Ce(
|
|
4813
4820
|
() => f.retrievedDebtors.isLoaded,
|
|
@@ -4817,7 +4824,7 @@ const rs = [
|
|
|
4817
4824
|
const n = f.retrievedDebtors.data.find(
|
|
4818
4825
|
(D) => D.valueAccNo === e.value.platform.mappings.debtorCode
|
|
4819
4826
|
);
|
|
4820
|
-
n != null && (
|
|
4827
|
+
n != null && (h.value = n.value);
|
|
4821
4828
|
}
|
|
4822
4829
|
},
|
|
4823
4830
|
{ immediate: !0 }
|
|
@@ -4944,9 +4951,9 @@ const rs = [
|
|
|
4944
4951
|
})),
|
|
4945
4952
|
f.retrievedDebtors.isLoaded && f.retrievedDebtors.data && ((le = f.retrievedDebtors.data) == null ? void 0 : le.length) != 0 && !f.retrievedDebtors.isError ? (w(), I("div", kr, [
|
|
4946
4953
|
l(Y, {
|
|
4947
|
-
modelValue: d(
|
|
4954
|
+
modelValue: d(h),
|
|
4948
4955
|
"onUpdate:modelValue": [
|
|
4949
|
-
s[7] || (s[7] = (S) => Ke(
|
|
4956
|
+
s[7] || (s[7] = (S) => Ke(h) ? h.value = S : h = S),
|
|
4950
4957
|
r
|
|
4951
4958
|
],
|
|
4952
4959
|
items: f.retrievedDebtors.data,
|
|
@@ -5014,7 +5021,7 @@ const rs = [
|
|
|
5014
5021
|
key: "Invoice no",
|
|
5015
5022
|
account: e.value.platform.mappings.invoiceDocNo
|
|
5016
5023
|
},
|
|
5017
|
-
options:
|
|
5024
|
+
options: _("Invoice no"),
|
|
5018
5025
|
"onUpdate:modelValue": s[12] || (s[12] = (S) => v({ key: "invoiceDocNo", value: S.account }))
|
|
5019
5026
|
}, null, 8, ["model-value", "options"]),
|
|
5020
5027
|
l(B, {
|
|
@@ -5022,7 +5029,7 @@ const rs = [
|
|
|
5022
5029
|
key: "Credit note no",
|
|
5023
5030
|
account: e.value.platform.mappings.creditNoteDocNo
|
|
5024
5031
|
},
|
|
5025
|
-
options:
|
|
5032
|
+
options: _("Credit note no"),
|
|
5026
5033
|
"onUpdate:modelValue": s[13] || (s[13] = (S) => v({ key: "creditNoteDocNo", value: S.account }))
|
|
5027
5034
|
}, null, 8, ["model-value", "options"]),
|
|
5028
5035
|
l(B, {
|
|
@@ -5030,7 +5037,7 @@ const rs = [
|
|
|
5030
5037
|
key: "Payment no",
|
|
5031
5038
|
account: e.value.platform.mappings.paymentDocNo
|
|
5032
5039
|
},
|
|
5033
|
-
options:
|
|
5040
|
+
options: _("Payment no"),
|
|
5034
5041
|
"onUpdate:modelValue": s[14] || (s[14] = (S) => v({ key: "paymentDocNo", value: S.account }))
|
|
5035
5042
|
}, null, 8, ["model-value", "options"]),
|
|
5036
5043
|
l(B, {
|
|
@@ -5038,7 +5045,7 @@ const rs = [
|
|
|
5038
5045
|
key: "Refund no",
|
|
5039
5046
|
account: e.value.platform.mappings.refundDocNo
|
|
5040
5047
|
},
|
|
5041
|
-
options:
|
|
5048
|
+
options: _("Refund no"),
|
|
5042
5049
|
"onUpdate:modelValue": s[15] || (s[15] = (S) => v({ key: "refundDocNo", value: S.account }))
|
|
5043
5050
|
}, null, 8, ["model-value", "options"])
|
|
5044
5051
|
])
|
|
@@ -5179,7 +5186,7 @@ const rs = [
|
|
|
5179
5186
|
key: "Credit Term",
|
|
5180
5187
|
account: e.value.platform.mappings.creditTerm
|
|
5181
5188
|
},
|
|
5182
|
-
options:
|
|
5189
|
+
options: _("creditTerm"),
|
|
5183
5190
|
"onUpdate:modelValue": s[27] || (s[27] = (S) => v({ key: "creditTerm", value: S.account }))
|
|
5184
5191
|
}, null, 8, ["model-value", "options"]),
|
|
5185
5192
|
l(B, {
|
|
@@ -5187,7 +5194,7 @@ const rs = [
|
|
|
5187
5194
|
key: "Currency Code",
|
|
5188
5195
|
account: e.value.platform.mappings.currencyCode
|
|
5189
5196
|
},
|
|
5190
|
-
options:
|
|
5197
|
+
options: _("currencyCode"),
|
|
5191
5198
|
"onUpdate:modelValue": s[28] || (s[28] = (S) => v({ key: "currencyCode", value: S.account }))
|
|
5192
5199
|
}, null, 8, ["model-value", "options"]),
|
|
5193
5200
|
l(B, {
|
|
@@ -5195,7 +5202,7 @@ const rs = [
|
|
|
5195
5202
|
key: "Journal Type",
|
|
5196
5203
|
account: e.value.platform.mappings.journalType
|
|
5197
5204
|
},
|
|
5198
|
-
options:
|
|
5205
|
+
options: _("journalType"),
|
|
5199
5206
|
"onUpdate:modelValue": s[29] || (s[29] = (S) => v({ key: "journalType", value: S.account }))
|
|
5200
5207
|
}, null, 8, ["model-value", "options"]),
|
|
5201
5208
|
l(B, {
|
|
@@ -5203,7 +5210,7 @@ const rs = [
|
|
|
5203
5210
|
key: "Currency Rate",
|
|
5204
5211
|
account: e.value.platform.mappings.currencyRate
|
|
5205
5212
|
},
|
|
5206
|
-
options:
|
|
5213
|
+
options: _("currencyRate"),
|
|
5207
5214
|
"onUpdate:modelValue": s[30] || (s[30] = (S) => v({ key: "currencyRate", value: S.account }))
|
|
5208
5215
|
}, null, 8, ["model-value", "options"])
|
|
5209
5216
|
]),
|
|
@@ -5246,7 +5253,7 @@ const rs = [
|
|
|
5246
5253
|
});
|
|
5247
5254
|
function Wr(f) {
|
|
5248
5255
|
return f.reduce((a, e) => {
|
|
5249
|
-
var N, p, x,
|
|
5256
|
+
var N, p, x, h, T, $, g, u, m, c, v, _, r, o;
|
|
5250
5257
|
const { invoice: i, payments: y } = e, K = a.length;
|
|
5251
5258
|
a[K] = {
|
|
5252
5259
|
docNo: i.master.docNo,
|
|
@@ -5255,7 +5262,7 @@ function Wr(f) {
|
|
|
5255
5262
|
itemProductCode: (N = i.details[0]) == null ? void 0 : N.productCode,
|
|
5256
5263
|
description: (p = i.details[0]) == null ? void 0 : p.description,
|
|
5257
5264
|
qty: (x = i.details[0]) == null ? void 0 : x.qty,
|
|
5258
|
-
unitPrice: (
|
|
5265
|
+
unitPrice: (h = i.details[0]) == null ? void 0 : h.unitPrice,
|
|
5259
5266
|
roundAdj: i.master.roundAdj,
|
|
5260
5267
|
discount: (T = i.details[0]) == null ? void 0 : T.discount,
|
|
5261
5268
|
taxCode: ($ = i.details[0]) == null ? void 0 : $.taxCode,
|
|
@@ -5264,7 +5271,7 @@ function Wr(f) {
|
|
|
5264
5271
|
paymentMethod: (m = (u = y[0]) == null ? void 0 : u.paymentDetails[0]) == null ? void 0 : m.paymentMethod,
|
|
5265
5272
|
amount: ((c = y[0]) == null ? void 0 : c.details[0].amount) || 0,
|
|
5266
5273
|
currencyCode: (v = y[0]) == null ? void 0 : v.master.currencyCode,
|
|
5267
|
-
journalType: (
|
|
5274
|
+
journalType: (_ = y[0]) == null ? void 0 : _.master.journalType
|
|
5268
5275
|
};
|
|
5269
5276
|
const V = Math.max(i.details.length, (y == null ? void 0 : y.length) || 0);
|
|
5270
5277
|
for (let s = 1; s < V; s++) {
|
|
@@ -5401,7 +5408,7 @@ const Jr = [
|
|
|
5401
5408
|
immediate: !0
|
|
5402
5409
|
}
|
|
5403
5410
|
);
|
|
5404
|
-
const x = q(() => Wr(p.value)),
|
|
5411
|
+
const x = q(() => Wr(p.value)), h = q(() => Jr), T = q(() => {
|
|
5405
5412
|
var m;
|
|
5406
5413
|
const u = (m = V.find(
|
|
5407
5414
|
(c) => c.platform === he.AutoCountCloud
|
|
@@ -5427,7 +5434,7 @@ const Jr = [
|
|
|
5427
5434
|
}
|
|
5428
5435
|
}
|
|
5429
5436
|
return (u, m) => {
|
|
5430
|
-
const c = A("FmButton"), v = A("FmCircularProgress"),
|
|
5437
|
+
const c = A("FmButton"), v = A("FmCircularProgress"), _ = A("FmTable");
|
|
5431
5438
|
return w(), I("div", Zr, [
|
|
5432
5439
|
t("div", ei, [
|
|
5433
5440
|
l(Be, {
|
|
@@ -5454,11 +5461,11 @@ const Jr = [
|
|
|
5454
5461
|
i.value ? (w(), I("div", oi, [
|
|
5455
5462
|
l(v, { size: "xl" }),
|
|
5456
5463
|
t("span", ai, C(d(a)("report.common.isLoading")), 1)
|
|
5457
|
-
])) : (w(), j(
|
|
5464
|
+
])) : (w(), j(_, {
|
|
5458
5465
|
key: 1,
|
|
5459
5466
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg h-auto",
|
|
5460
5467
|
"row-data": x.value,
|
|
5461
|
-
"column-defs":
|
|
5468
|
+
"column-defs": h.value
|
|
5462
5469
|
}, null, 8, ["row-data", "column-defs"]))
|
|
5463
5470
|
]);
|
|
5464
5471
|
};
|
|
@@ -5502,7 +5509,7 @@ const Jr = [
|
|
|
5502
5509
|
}), N = z({}), p = z({}), x = (g) => g.data.map((u) => ({
|
|
5503
5510
|
label: u.location + " - " + u.description,
|
|
5504
5511
|
value: u.location
|
|
5505
|
-
})),
|
|
5512
|
+
})), h = (g) => g.data.map((u) => ({
|
|
5506
5513
|
label: u.AccNo + " - " + u.CompanyName,
|
|
5507
5514
|
value: u.AccNo + " - " + u.CompanyName,
|
|
5508
5515
|
valueAccNo: u.AccNo,
|
|
@@ -5519,7 +5526,7 @@ const Jr = [
|
|
|
5519
5526
|
}, $ = async () => {
|
|
5520
5527
|
await T(
|
|
5521
5528
|
ct,
|
|
5522
|
-
|
|
5529
|
+
h,
|
|
5523
5530
|
p,
|
|
5524
5531
|
"Failed to fetch debtors:"
|
|
5525
5532
|
), await T(
|
|
@@ -5532,7 +5539,7 @@ const Jr = [
|
|
|
5532
5539
|
return Ge(() => {
|
|
5533
5540
|
e.value.platform.apiKey && e.value.platform.accountBookId && e.value.platform.keyId ? $() : (N.value.isLoaded = !0, p.value.isLoaded = !0, N.value.isError = !0, p.value.isError = !0);
|
|
5534
5541
|
}), (g, u) => {
|
|
5535
|
-
var v,
|
|
5542
|
+
var v, _, r;
|
|
5536
5543
|
const m = A("FmPageHead"), c = A("FmTabs");
|
|
5537
5544
|
return w(), I("div", ni, [
|
|
5538
5545
|
l(m, {
|
|
@@ -5552,7 +5559,7 @@ const Jr = [
|
|
|
5552
5559
|
items: y
|
|
5553
5560
|
}, null, 8, ["model-value"]),
|
|
5554
5561
|
t("div", si, [
|
|
5555
|
-
(w(), j(Te((
|
|
5562
|
+
(w(), j(Te((_ = V.value) == null ? void 0 : _.component), Qe({
|
|
5556
5563
|
modelValue: e.value,
|
|
5557
5564
|
"onUpdate:modelValue": u[2] || (u[2] = (o) => e.value = o)
|
|
5558
5565
|
}, (r = V.value) == null ? void 0 : r.props), null, 16, ["modelValue"]))
|
|
@@ -5574,7 +5581,7 @@ const Jr = [
|
|
|
5574
5581
|
const { t: a } = oe(), e = te(f, "modelValue"), i = _e(), y = Ae(), K = be(), { promptLoader: V } = Re(), { promptMessage: N } = Oe(), { restaurants: p } = we(), x = q(
|
|
5575
5582
|
() => p.map((c) => ({ label: c.name, value: c.id }))
|
|
5576
5583
|
);
|
|
5577
|
-
async function
|
|
5584
|
+
async function h() {
|
|
5578
5585
|
await N({
|
|
5579
5586
|
message: a("report.messages.confirmDelete", { name: e.value.name }),
|
|
5580
5587
|
title: a("report.common.delete")
|
|
@@ -5595,16 +5602,16 @@ const Jr = [
|
|
|
5595
5602
|
}
|
|
5596
5603
|
});
|
|
5597
5604
|
}
|
|
5598
|
-
function $(c, v,
|
|
5605
|
+
function $(c, v, _) {
|
|
5599
5606
|
var o, s;
|
|
5600
5607
|
if (!((o = e.value.platform) != null && o.mappings)) return;
|
|
5601
|
-
|
|
5602
|
-
const r = (s = e.value.platform.mappings[
|
|
5603
|
-
r && Array.isArray(r) && (e.value.platform.mappings[
|
|
5608
|
+
_ || (c === "taxes" ? _ = "invoice" : c === "suppliers" ? _ = "inventory" : _ = "invoice");
|
|
5609
|
+
const r = (s = e.value.platform.mappings[_]) == null ? void 0 : s[c];
|
|
5610
|
+
r && Array.isArray(r) && (e.value.platform.mappings[_][c] = r.filter((n, D) => D !== v));
|
|
5604
5611
|
}
|
|
5605
5612
|
function g(c, v) {
|
|
5606
|
-
var
|
|
5607
|
-
(
|
|
5613
|
+
var _;
|
|
5614
|
+
(_ = e.value.platform.mappings) != null && _[c] && (e.value.platform.mappings[c][v] = [
|
|
5608
5615
|
...e.value.platform.mappings[c][v],
|
|
5609
5616
|
{
|
|
5610
5617
|
key: "",
|
|
@@ -5631,14 +5638,14 @@ const Jr = [
|
|
|
5631
5638
|
await y.getSettings();
|
|
5632
5639
|
}), (c, v) => {
|
|
5633
5640
|
var D, F, M, Y, E, G, W, ae, le, ne, se, re, ie, de, me, pe, ue, ce, fe;
|
|
5634
|
-
const
|
|
5641
|
+
const _ = A("FmIcon"), r = A("FmButton"), o = A("FmMenuDivider"), s = A("FmTextField"), n = A("FmSelect");
|
|
5635
5642
|
return (F = (D = e.value) == null ? void 0 : D.platform) != null && F.mappings ? (w(), I("div", ii, [
|
|
5636
5643
|
t("div", di, [
|
|
5637
5644
|
t("div", mi, [
|
|
5638
5645
|
v[17] || (v[17] = t("div", { class: "fm-typo-en-title-sm-800" }, null, -1)),
|
|
5639
5646
|
t("div", pi, [
|
|
5640
5647
|
t("div", ui, [
|
|
5641
|
-
l(
|
|
5648
|
+
l(_, {
|
|
5642
5649
|
name: "refresh",
|
|
5643
5650
|
class: "p-2 bg-gray-100 rounded-full",
|
|
5644
5651
|
onClick: m
|
|
@@ -5648,7 +5655,7 @@ const Jr = [
|
|
|
5648
5655
|
l(r, {
|
|
5649
5656
|
variant: "tertiary",
|
|
5650
5657
|
label: d(a)("report.common.delete"),
|
|
5651
|
-
onClick:
|
|
5658
|
+
onClick: h
|
|
5652
5659
|
}, null, 8, ["label"]),
|
|
5653
5660
|
l(r, {
|
|
5654
5661
|
variant: "primary",
|
|
@@ -6126,7 +6133,7 @@ const Jr = [
|
|
|
6126
6133
|
header: () => k("p", { class: "min-w-[100px] text-nowrap text-ellipsis" }, "Account Code"),
|
|
6127
6134
|
enableSorting: !1
|
|
6128
6135
|
}
|
|
6129
|
-
],
|
|
6136
|
+
], h = [...x], T = [
|
|
6130
6137
|
{
|
|
6131
6138
|
accessorKey: "_date",
|
|
6132
6139
|
header: () => k("p", { class: "min-w-[90px] text-nowrap text-ellipsis" }, "Date"),
|
|
@@ -6269,7 +6276,7 @@ const Jr = [
|
|
|
6269
6276
|
u.value = !1;
|
|
6270
6277
|
}
|
|
6271
6278
|
}
|
|
6272
|
-
const
|
|
6279
|
+
const _ = [
|
|
6273
6280
|
{
|
|
6274
6281
|
label: "Sales Invoices",
|
|
6275
6282
|
value: "INVOICE"
|
|
@@ -6295,7 +6302,7 @@ const Jr = [
|
|
|
6295
6302
|
value: "RAW_INVOICE"
|
|
6296
6303
|
/* RAW_INVOICE */
|
|
6297
6304
|
}
|
|
6298
|
-
], r = z(
|
|
6305
|
+
], r = z(_[0].value);
|
|
6299
6306
|
return (o, s) => {
|
|
6300
6307
|
const n = A("FmButton"), D = A("FmCircularProgress"), F = A("FmTabs"), M = A("FmTable");
|
|
6301
6308
|
return w(), I("div", Ni, [
|
|
@@ -6319,7 +6326,7 @@ const Jr = [
|
|
|
6319
6326
|
l(F, {
|
|
6320
6327
|
"model-value": r.value,
|
|
6321
6328
|
"onUpdate:modelValue": s[1] || (s[1] = (Y) => r.value = Y),
|
|
6322
|
-
items:
|
|
6329
|
+
items: _
|
|
6323
6330
|
}, null, 8, ["model-value"]),
|
|
6324
6331
|
r.value === "INVOICE" ? (w(), j(M, {
|
|
6325
6332
|
key: 0,
|
|
@@ -6331,7 +6338,7 @@ const Jr = [
|
|
|
6331
6338
|
key: 1,
|
|
6332
6339
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg",
|
|
6333
6340
|
"row-data": K.value,
|
|
6334
|
-
"column-defs":
|
|
6341
|
+
"column-defs": h
|
|
6335
6342
|
}, null, 8, ["row-data"])) : r.value === "DELIVERY_ORDER" ? (w(), j(M, {
|
|
6336
6343
|
key: 2,
|
|
6337
6344
|
class: "flex overflow-y-auto p-5 border border-fm-color-border-secondary rounded-lg",
|
|
@@ -6384,7 +6391,7 @@ const Jr = [
|
|
|
6384
6391
|
});
|
|
6385
6392
|
return (N, p) => {
|
|
6386
6393
|
var T;
|
|
6387
|
-
const x = A("FmPageHead"),
|
|
6394
|
+
const x = A("FmPageHead"), h = A("FmTabs");
|
|
6388
6395
|
return w(), I("div", ji, [
|
|
6389
6396
|
l(x, {
|
|
6390
6397
|
title: ((T = e.value) == null ? void 0 : T.name) || "Synergy",
|
|
@@ -6397,7 +6404,7 @@ const Jr = [
|
|
|
6397
6404
|
])),
|
|
6398
6405
|
_: 1
|
|
6399
6406
|
}, 8, ["title"]),
|
|
6400
|
-
l(
|
|
6407
|
+
l(h, {
|
|
6401
6408
|
"model-value": i.value,
|
|
6402
6409
|
"onUpdate:modelValue": p[1] || (p[1] = ($) => i.value = $),
|
|
6403
6410
|
items: y
|
|
@@ -6421,7 +6428,7 @@ const Jr = [
|
|
|
6421
6428
|
() => i.settings,
|
|
6422
6429
|
async (N) => {
|
|
6423
6430
|
var x;
|
|
6424
|
-
const p = N.find((
|
|
6431
|
+
const p = N.find((h) => h._id === e.id);
|
|
6425
6432
|
p && (y.value = p, a.value = (x = y.value.platform) == null ? void 0 : x.name, y.value._id && (K.value = await gt(y.value._id)));
|
|
6426
6433
|
},
|
|
6427
6434
|
{ immediate: !0 }
|