@feedmepos/mf-payment 1.4.26 → 1.4.28
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-DKeIpNIW.js → Actions.vue_vue_type_script_setup_true_lang-CLMalWxE.js} +2 -2
- package/dist/{Chargeback-BDRSyAmK.js → Chargeback-_-KfXEVv.js} +5 -5
- package/dist/{OnboardForm-BSOqOm95.js → OnboardForm-OsCSZD51.js} +4 -4
- package/dist/{OnboardForm-AB0mVuJ9.js → OnboardForm-hY9l_enH.js} +202 -196
- package/dist/{OnboardSubmission-DRWeuOKJ.js → OnboardSubmission-ByDceZ70.js} +5 -5
- package/dist/{OnboardSubmission-Dnk7gYO_.js → OnboardSubmission-CttvUQ4D.js} +2 -2
- package/dist/{PayoutAccount-xYdw-qwo.js → PayoutAccount-BdasKqjH.js} +5 -5
- package/dist/{PayoutAccount-_3rSThA1.js → PayoutAccount-eW-MqpMH.js} +5 -5
- package/dist/{PayoutAccountSetting-BkFPooSa.js → PayoutAccountSetting-LxWKmBOI.js} +3 -3
- package/dist/{Restaurant-7tDDS7PZ.js → Restaurant-CiaK6wV9.js} +4 -4
- package/dist/{RestaurantSetting-jsHDhjrj.js → RestaurantSetting-DOcVGjiD.js} +3 -3
- package/dist/{Settlement-BPeUovFo.js → Settlement-0g10njYN.js} +3 -3
- package/dist/{Settlement-BOQdhdzn.js → Settlement-CU8BlYx0.js} +3 -3
- package/dist/{SettlementTransactions-D7wfVl0P.js → SettlementTransactions-DsWWADGe.js} +4 -4
- package/dist/{SettlementTransactions-CmzgEQs0.js → SettlementTransactions-G9Q6Bi0g.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-D3aXDlnu.js → Status.vue_vue_type_script_setup_true_lang-COp6-_i4.js} +1 -1
- package/dist/{Terminal-Bk-fLvmw.js → Terminal-CetdabFy.js} +5 -5
- package/dist/TerminalSetting-MKI0jupT.js +1460 -0
- package/dist/{Transaction-CD3eAEsP.js → Transaction-BBGFc7jF.js} +146 -130
- package/dist/{Transaction-B5xuKV97.js → Transaction-CL0kwjHI.js} +162 -146
- package/dist/{TransactionOld-D8xULx8n.js → TransactionOld-_tvyK7TV.js} +6 -6
- package/dist/api/index.d.ts +2 -2
- package/dist/{app-BGLSsKgl.js → app--H8J5dFW.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/assets-DCTj0P5R.js +134 -0
- package/dist/{grafana-Dq_GUJiP.js → grafana-3qKGKghh.js} +1 -1
- package/dist/{index-BIKn02lu.js → index-BQwri7nC.js} +1 -1
- package/dist/{index-tbFfJPr9.js → index-BsbqgL6x.js} +2 -2
- package/dist/{index-DeG469p5.js → index-C3ZceSMT.js} +8255 -8114
- package/dist/{index-hkLk1b3K.js → index-CElp-4g_.js} +5 -4
- package/dist/{index-hAcBjD4I.js → index-DOLajImh.js} +1 -1
- package/dist/{index-0n1_opm-.js → index-DrP0JZhQ.js} +1 -1
- package/dist/{index-oXO2UZ2G.js → index-DvDscxQR.js} +1 -1
- package/dist/{index-CqAsZVgo.js → index-MQyL_1-a.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BJ9Ys3KF.js → index.vue_vue_type_script_setup_true_lang-D__Vi_FK.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-DRg9Hv9K.js → payout-account-BQpkiil1.js} +3 -3
- package/dist/{plugins-CXIAJ_yL.js → plugins-CMp8J-MM.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +24 -24
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +18 -4
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +18 -4
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +18 -4
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +18 -4
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +18 -4
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +18 -4
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +210 -0
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +18 -4
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +18 -4
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +18 -4
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +18 -4
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +18 -4
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +18 -4
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +18 -4
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +18 -4
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +18 -4
- package/dist/views/admin/transaction/cell/BillSeqNumber.vue.d.ts +7 -0
- package/dist/views/transaction/cell/BillSeqNumber.vue.d.ts +7 -0
- package/package.json +2 -2
- package/dist/TerminalSetting-BGtvOvPk.js +0 -1369
- package/dist/assets-BDZz71O5.js +0 -133
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { t as
|
|
3
|
-
import { h as
|
|
1
|
+
import { defineComponent as P, ref as E, watch as R, onMounted as J, resolveComponent as h, openBlock as A, createElementBlock as w, Fragment as B, unref as t, createBlock as I, createCommentVNode as q, withCtx as K, createVNode as _, renderList as Q, createTextVNode as H, toDisplayString as W, createElementVNode as k, isRef as F, h as C } from "vue";
|
|
2
|
+
import { t as x } from "./index-CElp-4g_.js";
|
|
3
|
+
import { h as L } from "./moment-h96o7c8I.js";
|
|
4
4
|
import { useI18n as G, useCoreStore as j } from "@feedmepos/mf-common";
|
|
5
|
-
import { _ as
|
|
6
|
-
import { t as
|
|
7
|
-
import { u as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { p as
|
|
12
|
-
import { t as
|
|
13
|
-
import { u as
|
|
14
|
-
import { useSnackbar as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { g as
|
|
17
|
-
import { w as
|
|
18
|
-
import { u as
|
|
19
|
-
import { _ as
|
|
20
|
-
const
|
|
5
|
+
import { _ as X } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
6
|
+
import { t as Z, b as ee } from "./assets-DCTj0P5R.js";
|
|
7
|
+
import { u as ae } from "./index-DrP0JZhQ.js";
|
|
8
|
+
import { _ as te } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
9
|
+
import { _ as ne } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
|
10
|
+
import { _ as re } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-XZ7OzGau.js";
|
|
11
|
+
import { p as se } from "./index-DvDscxQR.js";
|
|
12
|
+
import { t as oe } from "./index-BQwri7nC.js";
|
|
13
|
+
import { u as le, p as D } from "./index-C3ZceSMT.js";
|
|
14
|
+
import { useSnackbar as ie, useDialog as ce } from "@feedmepos/ui-library";
|
|
15
|
+
import { _ as ue, a as me, b as de, c as pe } from "./Actions.vue_vue_type_script_setup_true_lang-CLMalWxE.js";
|
|
16
|
+
import { g as ye } from "./grafana-3qKGKghh.js";
|
|
17
|
+
import { w as z } from "./Modal-DB8M9o1T.js";
|
|
18
|
+
import { u as Y } from "./error-K1CakhA9.js";
|
|
19
|
+
import { _ as fe } from "./index.vue_vue_type_script_setup_true_lang-D__Vi_FK.js";
|
|
20
|
+
const _e = /* @__PURE__ */ P({
|
|
21
21
|
__name: "SourceSelector",
|
|
22
22
|
props: {
|
|
23
23
|
id: {},
|
|
24
24
|
by: {}
|
|
25
25
|
},
|
|
26
26
|
emits: ["update:id", "update:by"],
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
29
|
-
let
|
|
30
|
-
R(
|
|
31
|
-
|
|
32
|
-
var d = new RegExp(
|
|
33
|
-
g.value = m.value.filter((
|
|
34
|
-
const T = JSON.stringify(
|
|
27
|
+
setup(O, { emit: p }) {
|
|
28
|
+
const S = p, { t: c } = G(), { currentBusiness: s, readRestaurants: v } = j(), { isLoading: u, startAsyncCall: b } = le(!0), m = E([]), i = E(), f = E(""), g = E([]);
|
|
29
|
+
let N;
|
|
30
|
+
R(f, async () => {
|
|
31
|
+
N && clearTimeout(N), N = setTimeout(() => {
|
|
32
|
+
var d = new RegExp(f.value, "i");
|
|
33
|
+
g.value = m.value.filter((y) => {
|
|
34
|
+
const T = JSON.stringify(y);
|
|
35
35
|
return d.test(T);
|
|
36
36
|
});
|
|
37
37
|
}, 700);
|
|
38
38
|
}), R(i, () => {
|
|
39
|
-
i.value && (
|
|
39
|
+
i.value && (S("update:id", i.value.value), S("update:by", i.value.by));
|
|
40
40
|
});
|
|
41
41
|
async function M() {
|
|
42
42
|
return b(async () => {
|
|
43
|
-
let d = await
|
|
43
|
+
let d = await se.readBusinessPayoutAccounts();
|
|
44
44
|
if (d.length !== 0)
|
|
45
45
|
return d;
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
async function $() {
|
|
49
49
|
return b(async () => {
|
|
50
|
-
let d = await
|
|
50
|
+
let d = await oe.getBusinessTerminals();
|
|
51
51
|
if (d.length !== 0)
|
|
52
52
|
return d;
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
async function U() {
|
|
56
56
|
u.value = !0;
|
|
57
|
-
const d = await M(),
|
|
57
|
+
const d = await M(), y = await v(), T = await $();
|
|
58
58
|
m.value = [
|
|
59
|
-
...(
|
|
59
|
+
...(y || []).map((o) => ({
|
|
60
60
|
by: "RESTAURANT",
|
|
61
61
|
prefix: c("payment.components.restaurant"),
|
|
62
62
|
label: "(RESTAURANT) " + o.profile.name,
|
|
@@ -79,40 +79,40 @@ const ye = /* @__PURE__ */ B({
|
|
|
79
79
|
})
|
|
80
80
|
], g.value = m.value, u.value = !1;
|
|
81
81
|
}
|
|
82
|
-
return J(U), R(s, U), (d,
|
|
83
|
-
const T = h("FmCircularProgress"), o = h("FmChip"), a = h("FmSearch"), e = h("FmMenuItem"),
|
|
84
|
-
return A(),
|
|
85
|
-
t(u) ? (A(),
|
|
82
|
+
return J(U), R(s, U), (d, y) => {
|
|
83
|
+
const T = h("FmCircularProgress"), o = h("FmChip"), a = h("FmSearch"), e = h("FmMenuItem"), r = h("FmMenu");
|
|
84
|
+
return A(), w(B, null, [
|
|
85
|
+
t(u) ? (A(), I(T, {
|
|
86
86
|
key: 0,
|
|
87
87
|
size: "md"
|
|
88
|
-
})) :
|
|
89
|
-
t(u) ?
|
|
88
|
+
})) : q("", !0),
|
|
89
|
+
t(u) ? q("", !0) : (A(), I(r, { key: 1 }, {
|
|
90
90
|
"menu-button": K(() => {
|
|
91
|
-
var
|
|
91
|
+
var n;
|
|
92
92
|
return [
|
|
93
93
|
_(o, {
|
|
94
94
|
icon: "account_box",
|
|
95
|
-
label: i.value ? i.value.prefix + " > " + ((
|
|
95
|
+
label: i.value ? i.value.prefix + " > " + ((n = i.value) == null ? void 0 : n.label) : t(c)("payment.components.select"),
|
|
96
96
|
removable: !!i.value,
|
|
97
|
-
onChipClosed:
|
|
97
|
+
onChipClosed: y[0] || (y[0] = (l) => i.value = void 0)
|
|
98
98
|
}, null, 8, ["label", "removable"])
|
|
99
99
|
];
|
|
100
100
|
}),
|
|
101
101
|
default: K(() => [
|
|
102
102
|
_(a, {
|
|
103
|
-
"model-value":
|
|
104
|
-
"onUpdate:modelValue":
|
|
103
|
+
"model-value": f.value,
|
|
104
|
+
"onUpdate:modelValue": y[1] || (y[1] = (n) => f.value = n),
|
|
105
105
|
placeholder: "Search Restaurants/Devices/Payout Accounts"
|
|
106
106
|
}, null, 8, ["model-value"]),
|
|
107
|
-
g.value.length === 0 ? (A(),
|
|
107
|
+
g.value.length === 0 ? (A(), I(e, {
|
|
108
108
|
key: 0,
|
|
109
109
|
disabled: !0,
|
|
110
110
|
label: "No result"
|
|
111
|
-
})) :
|
|
112
|
-
(A(!0),
|
|
113
|
-
onClick: (l) => i.value =
|
|
114
|
-
key:
|
|
115
|
-
label:
|
|
111
|
+
})) : q("", !0),
|
|
112
|
+
(A(!0), w(B, null, Q(g.value, (n) => (A(), I(e, {
|
|
113
|
+
onClick: (l) => i.value = n,
|
|
114
|
+
key: n.value,
|
|
115
|
+
label: n.label,
|
|
116
116
|
selectable: ""
|
|
117
117
|
}, null, 8, ["onClick", "label"]))), 128))
|
|
118
118
|
]),
|
|
@@ -121,18 +121,37 @@ const ye = /* @__PURE__ */ B({
|
|
|
121
121
|
], 64);
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
}),
|
|
124
|
+
}), ve = { class: "flex items-center gap-1" }, be = /* @__PURE__ */ P({
|
|
125
|
+
__name: "BillSeqNumber",
|
|
126
|
+
props: {
|
|
127
|
+
row: {},
|
|
128
|
+
data: {}
|
|
129
|
+
},
|
|
130
|
+
setup(O) {
|
|
131
|
+
return (p, S) => {
|
|
132
|
+
const c = h("FmIcon");
|
|
133
|
+
return A(), w("span", ve, [
|
|
134
|
+
H(W(p.row.original.seqNumber) + " ", 1),
|
|
135
|
+
_(c, {
|
|
136
|
+
size: "md",
|
|
137
|
+
name: "check",
|
|
138
|
+
color: "#16a34a"
|
|
139
|
+
})
|
|
140
|
+
]);
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
}), ge = { class: "flex justify-between mb-6 items-center" }, Te = { class: "flex space-x-8 items-start" }, Ae = { class: "flex space-x-4 self-center" }, he = { class: "flex space-x-12 mb-6" }, Oe = /* @__PURE__ */ P({
|
|
125
144
|
__name: "Transaction",
|
|
126
|
-
setup(
|
|
145
|
+
setup(O) {
|
|
127
146
|
var T, o;
|
|
128
|
-
const
|
|
147
|
+
const p = ie(), S = ce(), { sessionUser: c } = j(), { t: s } = G(), v = E(), { dateRange: u, searchKey: b, status: m, id: i, by: f } = ae({
|
|
129
148
|
by: "",
|
|
130
149
|
id: "",
|
|
131
150
|
searchKey: "",
|
|
132
|
-
status: [
|
|
151
|
+
status: [D.F_PAYMENT_TRANSACTION_STATUS.Enum.SUCCESS],
|
|
133
152
|
dateRange: {
|
|
134
|
-
startDate:
|
|
135
|
-
endDate:
|
|
153
|
+
startDate: L().startOf("day").format("YYYY-MM-DD"),
|
|
154
|
+
endDate: L().endOf("day").format("YYYY-MM-DD")
|
|
136
155
|
}
|
|
137
156
|
});
|
|
138
157
|
let g;
|
|
@@ -144,110 +163,110 @@ const ye = /* @__PURE__ */ B({
|
|
|
144
163
|
},
|
|
145
164
|
700
|
|
146
165
|
);
|
|
147
|
-
}), R([u, m, i,
|
|
166
|
+
}), R([u, m, i, f], () => {
|
|
148
167
|
var a;
|
|
149
168
|
(a = v.value) == null || a.reset();
|
|
150
169
|
});
|
|
151
|
-
const
|
|
170
|
+
const N = [
|
|
152
171
|
{
|
|
153
172
|
label: "Success",
|
|
154
|
-
value:
|
|
173
|
+
value: D.F_PAYMENT_TRANSACTION_STATUS.Enum.SUCCESS
|
|
155
174
|
},
|
|
156
175
|
{
|
|
157
176
|
label: "Refunded",
|
|
158
|
-
value:
|
|
177
|
+
value: D.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED
|
|
159
178
|
},
|
|
160
179
|
{
|
|
161
180
|
label: "Process",
|
|
162
|
-
value:
|
|
181
|
+
value: D.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING
|
|
163
182
|
},
|
|
164
183
|
{
|
|
165
184
|
label: "Failed",
|
|
166
|
-
value:
|
|
185
|
+
value: D.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED
|
|
167
186
|
}
|
|
168
187
|
];
|
|
169
188
|
async function M(a, e) {
|
|
170
|
-
var
|
|
189
|
+
var r;
|
|
171
190
|
try {
|
|
172
|
-
const
|
|
173
|
-
(
|
|
191
|
+
const n = await x.refetchTransaction({ transactionId: a.id });
|
|
192
|
+
(r = v.value) == null || r.replaceData(e, n), p.open({
|
|
174
193
|
type: "success",
|
|
175
194
|
title: "Transaction queried and updated successfully."
|
|
176
195
|
});
|
|
177
|
-
} catch (
|
|
178
|
-
|
|
196
|
+
} catch (n) {
|
|
197
|
+
p.open({
|
|
179
198
|
type: "error",
|
|
180
199
|
title: "Fail to query transaction.",
|
|
181
|
-
message:
|
|
200
|
+
message: Y(n)
|
|
182
201
|
});
|
|
183
202
|
}
|
|
184
203
|
}
|
|
185
204
|
async function $(a, e) {
|
|
186
|
-
|
|
187
|
-
|
|
205
|
+
z(
|
|
206
|
+
S,
|
|
188
207
|
"Refund Transaction",
|
|
189
208
|
"Are you sure to refund transaction? This action cannot be revert!",
|
|
190
209
|
async () => {
|
|
191
|
-
var
|
|
210
|
+
var r;
|
|
192
211
|
try {
|
|
193
|
-
const
|
|
212
|
+
const n = await x.refundTransaction({
|
|
194
213
|
transactionId: a.id,
|
|
195
214
|
reason: "portal transaction refund",
|
|
196
215
|
amount: a.fdoAmount
|
|
197
216
|
});
|
|
198
|
-
(
|
|
217
|
+
(r = v.value) == null || r.replaceData(e, n), p.open({
|
|
199
218
|
type: "success",
|
|
200
219
|
title: "Transaction refund request initiated."
|
|
201
220
|
});
|
|
202
|
-
} catch (
|
|
203
|
-
|
|
221
|
+
} catch (n) {
|
|
222
|
+
p.open({
|
|
204
223
|
type: "error",
|
|
205
224
|
title: "Fail to request refund transaction.",
|
|
206
|
-
message:
|
|
225
|
+
message: Y(n)
|
|
207
226
|
});
|
|
208
227
|
}
|
|
209
228
|
}
|
|
210
229
|
);
|
|
211
230
|
}
|
|
212
231
|
async function U(a, e) {
|
|
213
|
-
|
|
214
|
-
|
|
232
|
+
z(
|
|
233
|
+
S,
|
|
215
234
|
"Notify Transaction",
|
|
216
235
|
"Are you sure to perform notify transaction?",
|
|
217
236
|
async () => {
|
|
218
237
|
try {
|
|
219
|
-
await
|
|
238
|
+
await x.renotifyTransaction(a.id), p.open({
|
|
220
239
|
type: "success",
|
|
221
240
|
title: "Transaction notify successfully."
|
|
222
241
|
});
|
|
223
|
-
} catch (
|
|
224
|
-
|
|
242
|
+
} catch (r) {
|
|
243
|
+
p.open({
|
|
225
244
|
type: "error",
|
|
226
245
|
title: "Fail to notify transaction.",
|
|
227
|
-
message:
|
|
246
|
+
message: Y(r)
|
|
228
247
|
});
|
|
229
248
|
}
|
|
230
249
|
}
|
|
231
250
|
);
|
|
232
251
|
}
|
|
233
252
|
async function d(a, e) {
|
|
234
|
-
const
|
|
253
|
+
const r = ye([
|
|
235
254
|
{
|
|
236
255
|
type: "span",
|
|
237
256
|
queryKey: "transaction.id",
|
|
238
257
|
queryValue: a.id
|
|
239
258
|
}
|
|
240
259
|
], a.transactionAt);
|
|
241
|
-
window.open(
|
|
260
|
+
window.open(r, "_blank");
|
|
242
261
|
}
|
|
243
262
|
E("");
|
|
244
|
-
const
|
|
263
|
+
const y = [
|
|
245
264
|
{
|
|
246
265
|
header: () => s("payment.transactions.table.id"),
|
|
247
266
|
accessorKey: "id",
|
|
248
267
|
cell: ({ cell: a, row: e }) => {
|
|
249
|
-
var
|
|
250
|
-
return ((
|
|
268
|
+
var r, n;
|
|
269
|
+
return ((r = c.value) != null && r.role.isStaff || (n = c.value) != null && n.role.isAdmin) && e.original.transactionId ? e.original.id + `
|
|
251
270
|
ID: ` + e.original.transactionId : e.original.id;
|
|
252
271
|
}
|
|
253
272
|
},
|
|
@@ -262,10 +281,7 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
262
281
|
{
|
|
263
282
|
header: () => s("payment.transactions.table.bill_seq"),
|
|
264
283
|
accessorKey: "seqNumber",
|
|
265
|
-
cell: ({ cell: a, row: e }) => {
|
|
266
|
-
let n = "❌";
|
|
267
|
-
return e.original.seqNumberBinded && (n = "✅"), `${n} ${e.original.seqNumber}`;
|
|
268
|
-
}
|
|
284
|
+
cell: ({ cell: a, row: e }) => e.original.seqNumberBinded ? C(be, { row: e, data: a.getValue() }) : e.original.seqNumber
|
|
269
285
|
},
|
|
270
286
|
{
|
|
271
287
|
header: () => s("payment.transactions.table.gateway"),
|
|
@@ -273,7 +289,7 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
273
289
|
meta: {
|
|
274
290
|
textAlign: "center"
|
|
275
291
|
},
|
|
276
|
-
cell: ({ cell: a, row: e }) => e.original.gateway ?
|
|
292
|
+
cell: ({ cell: a, row: e }) => e.original.gateway ? C(ue, { row: e, data: a.getValue() }) : ""
|
|
277
293
|
},
|
|
278
294
|
{
|
|
279
295
|
header: () => s("payment.transactions.table.method"),
|
|
@@ -281,7 +297,7 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
281
297
|
meta: {
|
|
282
298
|
textAlign: "center"
|
|
283
299
|
},
|
|
284
|
-
cell: ({ cell: a, row: e }) => e.original.method ?
|
|
300
|
+
cell: ({ cell: a, row: e }) => e.original.method ? C(me, { row: e, data: a.getValue() }) : ""
|
|
285
301
|
},
|
|
286
302
|
{
|
|
287
303
|
header: () => s("payment.transactions.table.type"),
|
|
@@ -293,7 +309,7 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
293
309
|
{
|
|
294
310
|
header: () => s("payment.transactions.table.status"),
|
|
295
311
|
accessorKey: "status",
|
|
296
|
-
cell: ({ cell: a, row: e }) =>
|
|
312
|
+
cell: ({ cell: a, row: e }) => C(de, { row: e, data: a.getValue() })
|
|
297
313
|
},
|
|
298
314
|
{
|
|
299
315
|
header: () => s("payment.transactions.table.restaurant"),
|
|
@@ -316,25 +332,25 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
316
332
|
header: () => s("payment.transactions.table.sales_amount"),
|
|
317
333
|
accessorKey: "amount",
|
|
318
334
|
cell: ({ cell: a, row: e }) => {
|
|
319
|
-
var
|
|
320
|
-
return ((
|
|
335
|
+
var r, n;
|
|
336
|
+
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;
|
|
321
337
|
}
|
|
322
338
|
}
|
|
323
339
|
];
|
|
324
|
-
return ((T = c.value) != null && T.role.isStaff || (o = c.value) != null && o.role.isAdmin) &&
|
|
340
|
+
return ((T = c.value) != null && T.role.isStaff || (o = c.value) != null && o.role.isAdmin) && y.push({
|
|
325
341
|
header: () => s("payment.transactions.table.actions"),
|
|
326
342
|
accessorKey: "actions",
|
|
327
|
-
cell: ({ row: a }) =>
|
|
343
|
+
cell: ({ row: a }) => C(pe, {
|
|
328
344
|
transaction: a.original,
|
|
329
345
|
onAction: (e) => {
|
|
330
|
-
var
|
|
346
|
+
var r;
|
|
331
347
|
switch (e) {
|
|
332
348
|
case "notify":
|
|
333
349
|
return U(a.original, a.index);
|
|
334
350
|
case "query":
|
|
335
351
|
return M(a.original, a.index);
|
|
336
352
|
case "refund":
|
|
337
|
-
return (
|
|
353
|
+
return (r = c.value) != null && r.role.isStaff ? p.open({
|
|
338
354
|
type: "error",
|
|
339
355
|
title: "You are not allowed to refund transaction."
|
|
340
356
|
}) : $(a.original, a.index);
|
|
@@ -344,78 +360,78 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
344
360
|
}
|
|
345
361
|
})
|
|
346
362
|
}), (a, e) => {
|
|
347
|
-
const
|
|
348
|
-
return A(),
|
|
363
|
+
const r = h("FmSearch"), n = h("FmSelect");
|
|
364
|
+
return A(), I(X, {
|
|
349
365
|
title: t(s)("payment.transactions.title"),
|
|
350
366
|
description: t(s)("payment.transactions.description"),
|
|
351
367
|
loading: !1
|
|
352
368
|
}, {
|
|
353
369
|
default: K(() => [
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
_(
|
|
370
|
+
k("div", ge, [
|
|
371
|
+
k("div", Te, [
|
|
372
|
+
_(r, {
|
|
357
373
|
"model-value": t(b),
|
|
358
|
-
"onUpdate:modelValue": e[0] || (e[0] = (l) =>
|
|
374
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => F(b) ? b.value = l : null),
|
|
359
375
|
class: "mr-8",
|
|
360
376
|
label: t(s)("payment.transactions.search.title"),
|
|
361
377
|
placeholder: t(s)("payment.transactions.search.placeholder")
|
|
362
378
|
}, null, 8, ["model-value", "label", "placeholder"]),
|
|
363
|
-
_(
|
|
379
|
+
_(n, {
|
|
364
380
|
modelValue: t(m),
|
|
365
|
-
"onUpdate:modelValue": e[2] || (e[2] = (l) =>
|
|
381
|
+
"onUpdate:modelValue": e[2] || (e[2] = (l) => F(m) ? m.value = l : null),
|
|
366
382
|
class: "mr-6 w-[300px]",
|
|
367
383
|
label: t(s)("payment.transactions.status"),
|
|
368
384
|
"label-mark": "required",
|
|
369
385
|
multiselect: "",
|
|
370
|
-
items:
|
|
386
|
+
items: N
|
|
371
387
|
}, {
|
|
372
388
|
"prepend-menu": K(() => [
|
|
373
|
-
_(
|
|
389
|
+
_(ne, {
|
|
374
390
|
modelValue: t(m),
|
|
375
|
-
"onUpdate:modelValue": e[1] || (e[1] = (l) =>
|
|
376
|
-
items:
|
|
391
|
+
"onUpdate:modelValue": e[1] || (e[1] = (l) => F(m) ? m.value = l : null),
|
|
392
|
+
items: N
|
|
377
393
|
}, null, 8, ["modelValue"])
|
|
378
394
|
]),
|
|
379
395
|
_: 1
|
|
380
396
|
}, 8, ["modelValue", "label"])
|
|
381
397
|
]),
|
|
382
|
-
|
|
383
|
-
_(
|
|
398
|
+
k("div", Ae, [
|
|
399
|
+
_(te, {
|
|
384
400
|
button: {
|
|
385
401
|
appendIcon: "file_download",
|
|
386
402
|
variant: "primary",
|
|
387
403
|
label: t(s)("payment.transactions.button.export")
|
|
388
404
|
},
|
|
389
405
|
handler: async () => {
|
|
390
|
-
var
|
|
391
|
-
const l = await ((
|
|
392
|
-
l != null && await t(
|
|
406
|
+
var V;
|
|
407
|
+
const l = await ((V = v.value) == null ? void 0 : V.allData());
|
|
408
|
+
l != null && await t(x).downloadPortalTransactionReport(t(u), t(Z)(l));
|
|
393
409
|
}
|
|
394
410
|
}, null, 8, ["button", "handler"])
|
|
395
411
|
])
|
|
396
412
|
]),
|
|
397
|
-
|
|
398
|
-
_(
|
|
413
|
+
k("div", he, [
|
|
414
|
+
_(_e, {
|
|
399
415
|
id: t(i),
|
|
400
|
-
"onUpdate:id": e[3] || (e[3] = (l) =>
|
|
401
|
-
by: t(
|
|
402
|
-
"onUpdate:by": e[4] || (e[4] = (l) =>
|
|
416
|
+
"onUpdate:id": e[3] || (e[3] = (l) => F(i) ? i.value = l : null),
|
|
417
|
+
by: t(f),
|
|
418
|
+
"onUpdate:by": e[4] || (e[4] = (l) => F(f) ? f.value = l : null)
|
|
403
419
|
}, null, 8, ["id", "by"]),
|
|
404
|
-
_(
|
|
420
|
+
_(re, {
|
|
405
421
|
modelValue: t(u),
|
|
406
|
-
"onUpdate:modelValue": e[5] || (e[5] = (l) =>
|
|
422
|
+
"onUpdate:modelValue": e[5] || (e[5] = (l) => F(u) ? u.value = l : null)
|
|
407
423
|
}, null, 8, ["modelValue"])
|
|
408
424
|
]),
|
|
409
|
-
_(
|
|
425
|
+
_(fe, {
|
|
410
426
|
ref_key: "controller",
|
|
411
427
|
ref: v,
|
|
412
|
-
"column-defs":
|
|
413
|
-
"rows-defs": t(
|
|
414
|
-
paginate: (l,
|
|
428
|
+
"column-defs": y,
|
|
429
|
+
"rows-defs": t(ee),
|
|
430
|
+
paginate: (l, V) => t(x).readTransactionsV2({
|
|
415
431
|
limit: l,
|
|
416
|
-
cursor:
|
|
432
|
+
cursor: V,
|
|
417
433
|
status: t(m),
|
|
418
|
-
by: t(
|
|
434
|
+
by: t(f),
|
|
419
435
|
id: t(i),
|
|
420
436
|
search: t(b),
|
|
421
437
|
start: t(u).startDate,
|
|
@@ -429,5 +445,5 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
429
445
|
}
|
|
430
446
|
});
|
|
431
447
|
export {
|
|
432
|
-
|
|
448
|
+
Oe as default
|
|
433
449
|
};
|