@feedmepos/mf-payment 1.4.4 → 1.4.6
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/{Actions.vue_vue_type_script_setup_true_lang-CqIt6ELp.js → Actions.vue_vue_type_script_setup_true_lang-CZYcJMXD.js} +1 -1
- package/dist/{OnboardForm-B_Ze9U5W.js → OnboardForm-BnEsmB6-.js} +2 -2
- package/dist/{OnboardForm-CLqBGQ_p.js → OnboardForm-DVoedJb5.js} +2 -2
- package/dist/{OnboardSubmission-DHyeu7LN.js → OnboardSubmission-CKpuKyX9.js} +1 -1
- package/dist/{OnboardSubmission-DLKWGAJG.js → OnboardSubmission-Clsu15St.js} +1 -1
- package/dist/{PayoutAccount-D00VaBV8.js → PayoutAccount-BXmpbXZF.js} +3 -3
- package/dist/{PayoutAccount-Dr6DPRAv.js → PayoutAccount-DnquoPir.js} +1 -1
- package/dist/{SettlementTransactions-CXAt4toA.js → SettlementTransactions-BdDILkFA.js} +1 -1
- package/dist/{SettlementTransactions-BG1btImp.js → SettlementTransactions-CnRbyrp1.js} +1 -1
- package/dist/{Transaction-BSsgVGax.js → Transaction-BIPXYUK1.js} +109 -108
- package/dist/{Transaction-Cl6LzyIv.js → Transaction-LkD5KPuT.js} +1 -1
- package/dist/{TransactionOld-DqRQHymo.js → TransactionOld-O97RNWZC.js} +2 -2
- package/dist/api/transaction/index.d.ts +1 -0
- package/dist/{app-D7e4SEMx.js → app-jNTBSL7v.js} +11 -11
- package/dist/app.js +1 -1
- package/dist/{assets-B67WKlO6.js → assets-BuMkWZHi.js} +4 -1
- package/dist/{index-BKu9F-6S.js → index-BXHzQczz.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-DxMIfrtL.js → payout-account-BzhKzNjn.js} +2 -2
- package/dist/{plugins-BNCULwjc.js → plugins-uSgLqBxN.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as c, resolveComponent as a, openBlock as r, createBlock as l, normalizeClass as w, withCtx as i, createElementVNode as m, toDisplayString as h, unref as f, createElementBlock as d, createVNode as b, Fragment as F, renderList as T } from "vue";
|
|
2
2
|
import { e as p } from "./index-C4FfKmPS.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
|
-
import { g as y, a as A } from "./assets-
|
|
4
|
+
import { g as y, a as A } from "./assets-BuMkWZHi.js";
|
|
5
5
|
const C = /* @__PURE__ */ c({
|
|
6
6
|
__name: "Status",
|
|
7
7
|
props: {
|
|
@@ -2,12 +2,12 @@ import { defineComponent as U, ref as D, computed as vf, resolveComponent as w,
|
|
|
2
2
|
import { z as d, a as s } from "./validator-D5jtpt9A.js";
|
|
3
3
|
import { P as jf, _ as bf } from "./PDFViewer-DlSCBBxr.js";
|
|
4
4
|
import { useCoreStore as xf } from "@feedmepos/mf-common";
|
|
5
|
-
import { o as F } from "./index-
|
|
5
|
+
import { o as F } from "./index-BXHzQczz.js";
|
|
6
6
|
import { p as af } from "./index-BWjmOoX3.js";
|
|
7
7
|
import { useSnackbar as df } from "@feedmepos/ui-library";
|
|
8
8
|
import { u as Af } from "./index-C4FfKmPS.js";
|
|
9
9
|
import { s as sf } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
10
|
-
import { P as Lf } from "./payout-account-
|
|
10
|
+
import { P as Lf } from "./payout-account-BzhKzNjn.js";
|
|
11
11
|
import { useRouter as yf } from "vue-router";
|
|
12
12
|
const uf = { class: "flex" }, pf = { class: "justify-self-center" }, Df = ["src"], o = /* @__PURE__ */ U({
|
|
13
13
|
__name: "UploadButton",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as $, ref as P, computed as O, resolveComponent as f, openBlock as y, createElementBlock as q, createElementVNode as s, toDisplayString as I, Fragment as z, createBlock as j, withCtx as c, createVNode as o, createCommentVNode as B, unref as e, createTextVNode as D, onMounted as X, resolveDynamicComponent as Z } from "vue";
|
|
2
|
-
import { o as T } from "./index-
|
|
2
|
+
import { o as T } from "./index-BXHzQczz.js";
|
|
3
3
|
import { u as M } from "./index-C4FfKmPS.js";
|
|
4
4
|
import { useRouter as h } from "vue-router";
|
|
5
5
|
import { z as u, a as d } from "./validator-D5jtpt9A.js";
|
|
6
|
-
import { P as ee } from "./payout-account-
|
|
6
|
+
import { P as ee } from "./payout-account-BzhKzNjn.js";
|
|
7
7
|
import { P as le } from "./PDFViewer-DlSCBBxr.js";
|
|
8
8
|
import { s as te } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
9
9
|
import { _ as ae } from "./Status.vue_vue_type_script_setup_true_lang-B7a304Y6.js";
|
|
@@ -3,7 +3,7 @@ import { _ as q } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js
|
|
|
3
3
|
import { u as G, p as J, e as L } from "./index-C4FfKmPS.js";
|
|
4
4
|
import { useI18n as K, useCoreStore as Q } from "@feedmepos/mf-common";
|
|
5
5
|
import { _ as X } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-DyLnqQYe.js";
|
|
6
|
-
import { o as Z } from "./index-
|
|
6
|
+
import { o as Z } from "./index-BXHzQczz.js";
|
|
7
7
|
import { useRouter as w } from "vue-router";
|
|
8
8
|
import { i as ss } from "./softspace-25X2bjBx.js";
|
|
9
9
|
const es = { class: "flex justify-left items-center mb-6" }, ts = { class: "grid grid-cols-3 gap-6" }, os = { class: "flex items-center" }, ns = ["src"], is = { class: "px-16 text-sm flex-grow" }, rs = { class: "list-disc pl-6" }, ms = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as A, ref as V, watch as v, computed as p, resolveComponent as x, openBlock as h, createBlock as w, withCtx as f, createElementVNode as S, createVNode as r, unref as l, isRef as n, h as k } from "vue";
|
|
2
|
-
import { o as K } from "./index-
|
|
2
|
+
import { o as K } from "./index-BXHzQczz.js";
|
|
3
3
|
import { p as m } from "./index-C4FfKmPS.js";
|
|
4
4
|
import { _ as O } from "./index.vue_vue_type_script_setup_true_lang-v7o6C5Pg.js";
|
|
5
5
|
import { useRouter as F } from "vue-router";
|
|
@@ -3,12 +3,12 @@ import { p as K } from "./index-BWjmOoX3.js";
|
|
|
3
3
|
import { p as U, u as gA, e as lA } from "./index-C4FfKmPS.js";
|
|
4
4
|
import { defineStore as rA } from "pinia";
|
|
5
5
|
import { useI18n as R, useCoreStore as eA } from "@feedmepos/mf-common";
|
|
6
|
-
import { c as cA, a as _, P as J } from "./payout-account-
|
|
6
|
+
import { c as cA, a as _, P as J } from "./payout-account-BzhKzNjn.js";
|
|
7
7
|
import { useDialogChild as nA, useDialog as BA } from "@feedmepos/ui-library";
|
|
8
8
|
import { z as F, a as H } from "./validator-D5jtpt9A.js";
|
|
9
9
|
import { P as $ } from "./PDFViewer-DlSCBBxr.js";
|
|
10
|
-
import "./app-
|
|
11
|
-
import "./plugins-
|
|
10
|
+
import "./app-jNTBSL7v.js";
|
|
11
|
+
import "./plugins-uSgLqBxN.js";
|
|
12
12
|
import { _ as uA } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
13
13
|
function wA() {
|
|
14
14
|
return {
|
|
@@ -2,7 +2,7 @@ import { defineComponent as y, resolveComponent as u, openBlock as h, createBloc
|
|
|
2
2
|
import { u as O } from "./index-ILoz50zh.js";
|
|
3
3
|
import { p as K } from "./index-C4FfKmPS.js";
|
|
4
4
|
import { _ as A } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
|
5
|
-
import { P as V } from "./payout-account-
|
|
5
|
+
import { P as V } from "./payout-account-BzhKzNjn.js";
|
|
6
6
|
import { p as D } from "./index-BWjmOoX3.js";
|
|
7
7
|
import "@feedmepos/ui-library";
|
|
8
8
|
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-v7o6C5Pg.js";
|
|
@@ -2,7 +2,7 @@ import { defineComponent as x, resolveComponent as f, openBlock as F, createBloc
|
|
|
2
2
|
import { e as E, u as G } from "./index-C4FfKmPS.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
import { d as k } from "./dinero-CIVmXLL-.js";
|
|
5
|
-
import { g as H, a as q, t as J, b as Q } from "./assets-
|
|
5
|
+
import { g as H, a as q, t as J, b as Q } from "./assets-BuMkWZHi.js";
|
|
6
6
|
import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
7
7
|
import { useRouter as X } from "vue-router";
|
|
8
8
|
import { s as Z } from "./index-j0nww2Hf.js";
|
|
@@ -2,7 +2,7 @@ import { defineComponent as x, resolveComponent as d, openBlock as A, createBloc
|
|
|
2
2
|
import { e as k, u as q } from "./index-C4FfKmPS.js";
|
|
3
3
|
import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
|
|
4
4
|
import { d as B } from "./dinero-CIVmXLL-.js";
|
|
5
|
-
import { g as W, a as X, t as P, b as Z } from "./assets-
|
|
5
|
+
import { g as W, a as X, t as P, b as Z } from "./assets-BuMkWZHi.js";
|
|
6
6
|
import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
7
7
|
import { useRouter as te } from "vue-router";
|
|
8
8
|
import { s as ae } from "./index-j0nww2Hf.js";
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { t as C, c as
|
|
3
|
-
import { h as
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { p as
|
|
11
|
-
import { t as
|
|
12
|
-
import { u as
|
|
13
|
-
import { useSnackbar as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { g as
|
|
16
|
-
import { w as
|
|
17
|
-
import { u as
|
|
18
|
-
import { _ as
|
|
19
|
-
const
|
|
1
|
+
import { defineComponent as B, ref as E, watch as R, onMounted as J, resolveComponent as h, openBlock as A, createElementBlock as $, Fragment as q, unref as t, createBlock as D, createCommentVNode as w, withCtx as K, createVNode as _, renderList as Q, createElementVNode as V, isRef as N, h as k } from "vue";
|
|
2
|
+
import { t as C, b as H, c as W } from "./assets-BuMkWZHi.js";
|
|
3
|
+
import { h as O } from "./moment-h96o7c8I.js";
|
|
4
|
+
import { useI18n as G, useCoreStore as j } from "@feedmepos/mf-common";
|
|
5
|
+
import { _ as X } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
6
|
+
import { u as Z } from "./index-ILoz50zh.js";
|
|
7
|
+
import { _ as ee } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
8
|
+
import { _ as ae } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
|
9
|
+
import { _ as te } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
|
10
|
+
import { p as ne } from "./index-BWjmOoX3.js";
|
|
11
|
+
import { t as re } from "./index-C8G7ruiF.js";
|
|
12
|
+
import { u as se, p as x } from "./index-C4FfKmPS.js";
|
|
13
|
+
import { useSnackbar as oe, useDialog as le } from "@feedmepos/ui-library";
|
|
14
|
+
import { _ as ie, a as ce, b as ue, c as me } from "./Actions.vue_vue_type_script_setup_true_lang-CZYcJMXD.js";
|
|
15
|
+
import { g as de } from "./grafana-BrdrOUM4.js";
|
|
16
|
+
import { w as L } from "./Modal-DB8M9o1T.js";
|
|
17
|
+
import { u as P } from "./error-K1CakhA9.js";
|
|
18
|
+
import { _ as pe } from "./index.vue_vue_type_script_setup_true_lang-v7o6C5Pg.js";
|
|
19
|
+
const ye = /* @__PURE__ */ B({
|
|
20
20
|
__name: "SourceSelector",
|
|
21
21
|
props: {
|
|
22
22
|
id: {},
|
|
23
23
|
by: {}
|
|
24
24
|
},
|
|
25
25
|
emits: ["update:id", "update:by"],
|
|
26
|
-
setup(
|
|
27
|
-
const F = f, { t: c } =
|
|
26
|
+
setup(z, { emit: f }) {
|
|
27
|
+
const F = f, { t: c } = G(), { currentBusiness: s, readRestaurants: v } = j(), { isLoading: u, startAsyncCall: b } = se(!0), m = E([]), i = E(), y = E(""), T = E([]);
|
|
28
28
|
let S;
|
|
29
29
|
R(y, async () => {
|
|
30
30
|
S && clearTimeout(S), S = setTimeout(() => {
|
|
31
31
|
var d = new RegExp(y.value, "i");
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
return d.test(
|
|
32
|
+
T.value = m.value.filter((p) => {
|
|
33
|
+
const g = JSON.stringify(p);
|
|
34
|
+
return d.test(g);
|
|
35
35
|
});
|
|
36
36
|
}, 700);
|
|
37
37
|
}), R(i, () => {
|
|
38
38
|
i.value && (F("update:id", i.value.value), F("update:by", i.value.by));
|
|
39
39
|
});
|
|
40
40
|
async function M() {
|
|
41
|
-
return
|
|
42
|
-
let d = await
|
|
41
|
+
return b(async () => {
|
|
42
|
+
let d = await ne.readBusinessPayoutAccounts();
|
|
43
43
|
if (d.length !== 0)
|
|
44
44
|
return d;
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
async function Y() {
|
|
48
|
-
return
|
|
49
|
-
let d = await
|
|
48
|
+
return b(async () => {
|
|
49
|
+
let d = await re.getBusinessTerminals();
|
|
50
50
|
if (d.length !== 0)
|
|
51
51
|
return d;
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
async function U() {
|
|
55
55
|
u.value = !0;
|
|
56
|
-
const d = await M(), p = await v(),
|
|
56
|
+
const d = await M(), p = await v(), g = await Y();
|
|
57
57
|
m.value = [
|
|
58
58
|
...(p || []).map((o) => ({
|
|
59
59
|
by: "RESTAURANT",
|
|
@@ -61,7 +61,7 @@ const pe = /* @__PURE__ */ G({
|
|
|
61
61
|
label: "(RESTAURANT) " + o.profile.name,
|
|
62
62
|
value: o._id
|
|
63
63
|
})),
|
|
64
|
-
...(
|
|
64
|
+
...(g || []).map((o) => ({
|
|
65
65
|
by: "DEVICE",
|
|
66
66
|
prefix: c("payment.components.device"),
|
|
67
67
|
label: "(" + o.deviceType + ") " + (o.deviceType === "TERMINAL" ? o.name : o.restaurant.profile.name),
|
|
@@ -76,22 +76,22 @@ const pe = /* @__PURE__ */ G({
|
|
|
76
76
|
value: o._id
|
|
77
77
|
};
|
|
78
78
|
})
|
|
79
|
-
],
|
|
79
|
+
], T.value = m.value, u.value = !1;
|
|
80
80
|
}
|
|
81
|
-
return
|
|
82
|
-
const
|
|
83
|
-
return A(), q
|
|
84
|
-
|
|
81
|
+
return J(U), R(s, U), (d, p) => {
|
|
82
|
+
const g = h("FmCircularProgress"), o = h("FmChip"), a = h("FmSearch"), e = h("FmMenuItem"), r = h("FmMenu");
|
|
83
|
+
return A(), $(q, null, [
|
|
84
|
+
t(u) ? (A(), D(g, {
|
|
85
85
|
key: 0,
|
|
86
86
|
size: "md"
|
|
87
87
|
})) : w("", !0),
|
|
88
|
-
|
|
88
|
+
t(u) ? w("", !0) : (A(), D(r, { key: 1 }, {
|
|
89
89
|
"menu-button": K(() => {
|
|
90
|
-
var
|
|
90
|
+
var n;
|
|
91
91
|
return [
|
|
92
92
|
_(o, {
|
|
93
93
|
icon: "account_box",
|
|
94
|
-
label: i.value ? i.value.prefix + " > " + ((
|
|
94
|
+
label: i.value ? i.value.prefix + " > " + ((n = i.value) == null ? void 0 : n.label) : t(c)("payment.components.select"),
|
|
95
95
|
removable: !!i.value,
|
|
96
96
|
onChipClosed: p[0] || (p[0] = (l) => i.value = void 0)
|
|
97
97
|
}, null, 8, ["label", "removable"])
|
|
@@ -100,18 +100,18 @@ const pe = /* @__PURE__ */ G({
|
|
|
100
100
|
default: K(() => [
|
|
101
101
|
_(a, {
|
|
102
102
|
"model-value": y.value,
|
|
103
|
-
"onUpdate:modelValue": p[1] || (p[1] = (
|
|
103
|
+
"onUpdate:modelValue": p[1] || (p[1] = (n) => y.value = n),
|
|
104
104
|
placeholder: "Search Restaurants/Devices/Payout Accounts"
|
|
105
105
|
}, null, 8, ["model-value"]),
|
|
106
|
-
|
|
106
|
+
T.value.length === 0 ? (A(), D(e, {
|
|
107
107
|
key: 0,
|
|
108
108
|
disabled: !0,
|
|
109
109
|
label: "No result"
|
|
110
110
|
})) : w("", !0),
|
|
111
|
-
(A(!0), q
|
|
112
|
-
onClick: (l) => i.value =
|
|
113
|
-
key:
|
|
114
|
-
label:
|
|
111
|
+
(A(!0), $(q, null, Q(T.value, (n) => (A(), D(e, {
|
|
112
|
+
onClick: (l) => i.value = n,
|
|
113
|
+
key: n.value,
|
|
114
|
+
label: n.label,
|
|
115
115
|
selectable: ""
|
|
116
116
|
}, null, 8, ["onClick", "label"]))), 128))
|
|
117
117
|
]),
|
|
@@ -120,23 +120,23 @@ const pe = /* @__PURE__ */ G({
|
|
|
120
120
|
], 64);
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
}),
|
|
123
|
+
}), fe = { class: "flex justify-between mb-6 items-center" }, _e = { class: "flex space-x-8 items-start" }, ve = { class: "flex space-x-4 self-center" }, be = { class: "flex space-x-12 mb-6" }, Ye = /* @__PURE__ */ B({
|
|
124
124
|
__name: "Transaction",
|
|
125
|
-
setup(
|
|
126
|
-
var
|
|
127
|
-
const f =
|
|
125
|
+
setup(z) {
|
|
126
|
+
var g, o;
|
|
127
|
+
const f = oe(), F = le(), { sessionUser: c } = j(), { t: s } = G(), v = E(), { dateRange: u, searchKey: b, status: m, id: i, by: y } = Z({
|
|
128
128
|
by: "",
|
|
129
129
|
id: "",
|
|
130
130
|
searchKey: "",
|
|
131
131
|
status: [x.F_PAYMENT_TRANSACTION_STATUS.Enum.SUCCESS],
|
|
132
132
|
dateRange: {
|
|
133
|
-
startDate:
|
|
134
|
-
endDate:
|
|
133
|
+
startDate: O().startOf("day").format("YYYY-MM-DD"),
|
|
134
|
+
endDate: O().endOf("day").format("YYYY-MM-DD")
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
|
-
let
|
|
138
|
-
R(
|
|
139
|
-
|
|
137
|
+
let T;
|
|
138
|
+
R(b, async () => {
|
|
139
|
+
T && clearTimeout(T), T = setTimeout(
|
|
140
140
|
() => {
|
|
141
141
|
var a;
|
|
142
142
|
return (a = v.value) == null ? void 0 : a.reset();
|
|
@@ -168,48 +168,48 @@ const pe = /* @__PURE__ */ G({
|
|
|
168
168
|
async function M(a, e) {
|
|
169
169
|
var r;
|
|
170
170
|
try {
|
|
171
|
-
const
|
|
172
|
-
(r = v.value) == null || r.replaceData(e,
|
|
171
|
+
const n = await C.refetchTransaction({ transactionId: a.id });
|
|
172
|
+
(r = v.value) == null || r.replaceData(e, n), f.open({
|
|
173
173
|
type: "success",
|
|
174
174
|
title: "Transaction queried and updated successfully."
|
|
175
175
|
});
|
|
176
|
-
} catch (
|
|
176
|
+
} catch (n) {
|
|
177
177
|
f.open({
|
|
178
178
|
type: "error",
|
|
179
179
|
title: "Fail to query transaction.",
|
|
180
|
-
message:
|
|
180
|
+
message: P(n)
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
async function Y(a, e) {
|
|
185
|
-
|
|
185
|
+
L(
|
|
186
186
|
F,
|
|
187
187
|
"Refund Transaction",
|
|
188
188
|
"Are you sure to refund transaction? This action cannot be revert!",
|
|
189
189
|
async () => {
|
|
190
190
|
var r;
|
|
191
191
|
try {
|
|
192
|
-
const
|
|
192
|
+
const n = await C.refundTransaction({
|
|
193
193
|
transactionId: a.id,
|
|
194
194
|
reason: "portal transaction refund",
|
|
195
195
|
amount: a.fdoAmount
|
|
196
196
|
});
|
|
197
|
-
(r = v.value) == null || r.replaceData(e,
|
|
197
|
+
(r = v.value) == null || r.replaceData(e, n), f.open({
|
|
198
198
|
type: "success",
|
|
199
199
|
title: "Transaction refund request initiated."
|
|
200
200
|
});
|
|
201
|
-
} catch (
|
|
201
|
+
} catch (n) {
|
|
202
202
|
f.open({
|
|
203
203
|
type: "error",
|
|
204
204
|
title: "Fail to request refund transaction.",
|
|
205
|
-
message:
|
|
205
|
+
message: P(n)
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
);
|
|
210
210
|
}
|
|
211
211
|
async function U(a, e) {
|
|
212
|
-
|
|
212
|
+
L(
|
|
213
213
|
F,
|
|
214
214
|
"Notify Transaction",
|
|
215
215
|
"Are you sure to perform notify transaction?",
|
|
@@ -223,14 +223,14 @@ const pe = /* @__PURE__ */ G({
|
|
|
223
223
|
f.open({
|
|
224
224
|
type: "error",
|
|
225
225
|
title: "Fail to notify transaction.",
|
|
226
|
-
message:
|
|
226
|
+
message: P(r)
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
232
|
async function d(a, e) {
|
|
233
|
-
const r =
|
|
233
|
+
const r = de([
|
|
234
234
|
{
|
|
235
235
|
type: "span",
|
|
236
236
|
queryKey: "transaction.id",
|
|
@@ -245,8 +245,8 @@ const pe = /* @__PURE__ */ G({
|
|
|
245
245
|
header: () => s("payment.transactions.table.id"),
|
|
246
246
|
accessorKey: "id",
|
|
247
247
|
cell: ({ cell: a, row: e }) => {
|
|
248
|
-
var r,
|
|
249
|
-
return ((r = c.value) != null && r.role.isStaff || (
|
|
248
|
+
var r, n;
|
|
249
|
+
return ((r = c.value) != null && r.role.isStaff || (n = c.value) != null && n.role.isAdmin) && e.original.transactionId ? e.original.id + `
|
|
250
250
|
ID: ` + e.original.transactionId : e.original.id;
|
|
251
251
|
}
|
|
252
252
|
},
|
|
@@ -268,7 +268,7 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
268
268
|
meta: {
|
|
269
269
|
textAlign: "center"
|
|
270
270
|
},
|
|
271
|
-
cell: ({ cell: a, row: e }) => e.original.gateway ? k(
|
|
271
|
+
cell: ({ cell: a, row: e }) => e.original.gateway ? k(ie, { row: e, data: a.getValue() }) : ""
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
274
|
header: () => s("payment.transactions.table.method"),
|
|
@@ -276,7 +276,7 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
276
276
|
meta: {
|
|
277
277
|
textAlign: "center"
|
|
278
278
|
},
|
|
279
|
-
cell: ({ cell: a, row: e }) => e.original.method ? k(
|
|
279
|
+
cell: ({ cell: a, row: e }) => e.original.method ? k(ce, { row: e, data: a.getValue() }) : ""
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
282
|
header: () => s("payment.transactions.table.type"),
|
|
@@ -288,7 +288,7 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
288
288
|
{
|
|
289
289
|
header: () => s("payment.transactions.table.status"),
|
|
290
290
|
accessorKey: "status",
|
|
291
|
-
cell: ({ cell: a, row: e }) => k(
|
|
291
|
+
cell: ({ cell: a, row: e }) => k(ue, { row: e, data: a.getValue() })
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
294
|
header: () => s("payment.transactions.table.restaurant"),
|
|
@@ -311,15 +311,15 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
311
311
|
header: () => s("payment.transactions.table.sales_amount"),
|
|
312
312
|
accessorKey: "amount",
|
|
313
313
|
cell: ({ cell: a, row: e }) => {
|
|
314
|
-
var r,
|
|
315
|
-
return ((r = c.value) != null && r.role.isStaff || (
|
|
314
|
+
var r, n;
|
|
315
|
+
return ((r = c.value) != null && r.role.isStaff || (n = c.value) != null && n.role.isAdmin) && e.original.flags.isDelivery ? e.original.amount + "( " + e.original.gatewayAmount + ")" : e.original.amount;
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
];
|
|
319
|
-
return ((
|
|
319
|
+
return ((g = c.value) != null && g.role.isStaff || (o = c.value) != null && o.role.isAdmin) && p.push({
|
|
320
320
|
header: () => s("payment.transactions.table.actions"),
|
|
321
321
|
accessorKey: "actions",
|
|
322
|
-
cell: ({ row: a }) => k(
|
|
322
|
+
cell: ({ row: a }) => k(me, {
|
|
323
323
|
transaction: a.original,
|
|
324
324
|
onAction: (e) => {
|
|
325
325
|
var r;
|
|
@@ -339,34 +339,34 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
339
339
|
}
|
|
340
340
|
})
|
|
341
341
|
}), (a, e) => {
|
|
342
|
-
const r = h("FmSearch"),
|
|
343
|
-
return A(), D(
|
|
344
|
-
title:
|
|
345
|
-
description:
|
|
342
|
+
const r = h("FmSearch"), n = h("FmSelect");
|
|
343
|
+
return A(), D(X, {
|
|
344
|
+
title: t(s)("payment.transactions.title"),
|
|
345
|
+
description: t(s)("payment.transactions.description"),
|
|
346
346
|
loading: !1
|
|
347
347
|
}, {
|
|
348
348
|
default: K(() => [
|
|
349
|
-
V("div",
|
|
350
|
-
V("div",
|
|
349
|
+
V("div", fe, [
|
|
350
|
+
V("div", _e, [
|
|
351
351
|
_(r, {
|
|
352
|
-
"model-value":
|
|
353
|
-
"onUpdate:modelValue": e[0] || (e[0] = (l) => N(
|
|
352
|
+
"model-value": t(b),
|
|
353
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => N(b) ? b.value = l : null),
|
|
354
354
|
class: "mr-8",
|
|
355
|
-
label:
|
|
356
|
-
placeholder:
|
|
355
|
+
label: t(s)("payment.transactions.search.title"),
|
|
356
|
+
placeholder: t(s)("payment.transactions.search.placeholder")
|
|
357
357
|
}, null, 8, ["model-value", "label", "placeholder"]),
|
|
358
|
-
_(
|
|
359
|
-
modelValue:
|
|
358
|
+
_(n, {
|
|
359
|
+
modelValue: t(m),
|
|
360
360
|
"onUpdate:modelValue": e[2] || (e[2] = (l) => N(m) ? m.value = l : null),
|
|
361
361
|
class: "mr-6 w-[300px]",
|
|
362
|
-
label:
|
|
362
|
+
label: t(s)("payment.transactions.status"),
|
|
363
363
|
"label-mark": "required",
|
|
364
364
|
multiselect: "",
|
|
365
365
|
items: S
|
|
366
366
|
}, {
|
|
367
367
|
"prepend-menu": K(() => [
|
|
368
|
-
_(
|
|
369
|
-
modelValue:
|
|
368
|
+
_(ae, {
|
|
369
|
+
modelValue: t(m),
|
|
370
370
|
"onUpdate:modelValue": e[1] || (e[1] = (l) => N(m) ? m.value = l : null),
|
|
371
371
|
items: S
|
|
372
372
|
}, null, 8, ["modelValue"])
|
|
@@ -374,46 +374,47 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
374
374
|
_: 1
|
|
375
375
|
}, 8, ["modelValue", "label"])
|
|
376
376
|
]),
|
|
377
|
-
V("div",
|
|
378
|
-
_(
|
|
377
|
+
V("div", ve, [
|
|
378
|
+
_(ee, {
|
|
379
379
|
button: {
|
|
380
380
|
appendIcon: "file_download",
|
|
381
381
|
variant: "primary",
|
|
382
|
-
label:
|
|
382
|
+
label: t(s)("payment.transactions.button.export")
|
|
383
383
|
},
|
|
384
384
|
handler: async () => {
|
|
385
385
|
var I;
|
|
386
386
|
const l = await ((I = v.value) == null ? void 0 : I.allData());
|
|
387
|
-
l != null && await
|
|
387
|
+
l != null && await t(C).downloadPortalTransactionReport(t(u), t(H)(l));
|
|
388
388
|
}
|
|
389
389
|
}, null, 8, ["button", "handler"])
|
|
390
390
|
])
|
|
391
391
|
]),
|
|
392
|
-
V("div",
|
|
393
|
-
_(
|
|
394
|
-
id:
|
|
392
|
+
V("div", be, [
|
|
393
|
+
_(ye, {
|
|
394
|
+
id: t(i),
|
|
395
395
|
"onUpdate:id": e[3] || (e[3] = (l) => N(i) ? i.value = l : null),
|
|
396
|
-
by:
|
|
396
|
+
by: t(y),
|
|
397
397
|
"onUpdate:by": e[4] || (e[4] = (l) => N(y) ? y.value = l : null)
|
|
398
398
|
}, null, 8, ["id", "by"]),
|
|
399
|
-
_(
|
|
400
|
-
modelValue:
|
|
399
|
+
_(te, {
|
|
400
|
+
modelValue: t(u),
|
|
401
401
|
"onUpdate:modelValue": e[5] || (e[5] = (l) => N(u) ? u.value = l : null)
|
|
402
402
|
}, null, 8, ["modelValue"])
|
|
403
403
|
]),
|
|
404
|
-
_(
|
|
404
|
+
_(pe, {
|
|
405
405
|
ref_key: "controller",
|
|
406
406
|
ref: v,
|
|
407
407
|
"column-defs": p,
|
|
408
|
-
"rows-defs":
|
|
409
|
-
paginate: (l, I) =>
|
|
408
|
+
"rows-defs": t(W),
|
|
409
|
+
paginate: (l, I) => t(C).readTransactionsV2({
|
|
410
410
|
limit: l,
|
|
411
411
|
cursor: I,
|
|
412
|
-
status:
|
|
413
|
-
by:
|
|
414
|
-
id:
|
|
415
|
-
|
|
416
|
-
|
|
412
|
+
status: t(m),
|
|
413
|
+
by: t(y),
|
|
414
|
+
id: t(i),
|
|
415
|
+
search: t(b),
|
|
416
|
+
start: t(u).startDate,
|
|
417
|
+
end: t(u).endDate
|
|
417
418
|
})
|
|
418
419
|
}, null, 8, ["rows-defs", "paginate"])
|
|
419
420
|
]),
|
|
@@ -423,5 +424,5 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
423
424
|
}
|
|
424
425
|
});
|
|
425
426
|
export {
|
|
426
|
-
|
|
427
|
+
Ye as default
|
|
427
428
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as T, resolveComponent as f, openBlock as y, createBlock as b, normalizeClass as C, withCtx as _, createElementVNode as p, toDisplayString as V, unref as m, createElementBlock as I, createVNode as g, Fragment as Y, renderList as O, ref as P, watch as x, isRef as N, h } from "vue";
|
|
2
|
-
import { g as U, a as B, t as w, b as G, c as k } from "./assets-
|
|
2
|
+
import { g as U, a as B, t as w, b as G, c as k } from "./assets-BuMkWZHi.js";
|
|
3
3
|
import { h as A } from "./moment-h96o7c8I.js";
|
|
4
4
|
import { u as L } from "./index-ILoz50zh.js";
|
|
5
5
|
import { _ as Q } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as S, ref as K, watch as x, resolveComponent as F, openBlock as Y, createBlock as C, h as A, onMounted as M, unref as i, withCtx as O, createElementVNode as w, createVNode as _, isRef as R } from "vue";
|
|
2
|
-
import { t as v, c as $, b as U } from "./assets-
|
|
2
|
+
import { t as v, c as $, b as U } from "./assets-BuMkWZHi.js";
|
|
3
3
|
import { u as L } from "./index-C4FfKmPS.js";
|
|
4
4
|
import { useSnackbar as P, useDialog as B } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as J, a as j, b as G, c as Q } from "./Actions.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as J, a as j, b as G, c as Q } from "./Actions.vue_vue_type_script_setup_true_lang-CZYcJMXD.js";
|
|
6
6
|
import { g as z } from "./grafana-BrdrOUM4.js";
|
|
7
7
|
import { w as k } from "./Modal-DB8M9o1T.js";
|
|
8
8
|
import { u as V } from "./error-K1CakhA9.js";
|
|
@@ -28,6 +28,7 @@ export declare const transactionApi: {
|
|
|
28
28
|
end: string;
|
|
29
29
|
limit: number;
|
|
30
30
|
cursor: string;
|
|
31
|
+
search: string;
|
|
31
32
|
}): Promise<PaginatedResult<FdoPaymentTransactionV2Output>>;
|
|
32
33
|
readRestaurantTransactionsBySettlementId(settlementId: string): Promise<FdoPaymentTransactionV2Output[]>;
|
|
33
34
|
downloadPortalTransactionReport(dateRange: {
|