@feedmepos/mf-payment 1.4.4 → 1.4.5
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-Dsdll5NK.js} +1 -1
- package/dist/{OnboardForm-CLqBGQ_p.js → OnboardForm-B4I169iE.js} +2 -2
- package/dist/{OnboardForm-B_Ze9U5W.js → OnboardForm-D-aGpyum.js} +2 -2
- package/dist/{OnboardSubmission-DHyeu7LN.js → OnboardSubmission-B2FM1Lgp.js} +1 -1
- package/dist/{OnboardSubmission-DLKWGAJG.js → OnboardSubmission-BxU4f8ty.js} +1 -1
- package/dist/{PayoutAccount-Dr6DPRAv.js → PayoutAccount-CJrlEgb0.js} +1 -1
- package/dist/{PayoutAccount-D00VaBV8.js → PayoutAccount-D7hy7Gr3.js} +3 -3
- package/dist/{SettlementTransactions-CXAt4toA.js → SettlementTransactions-B7JOsgK7.js} +1 -1
- package/dist/{SettlementTransactions-BG1btImp.js → SettlementTransactions-Bplak-mJ.js} +1 -1
- package/dist/{Transaction-Cl6LzyIv.js → Transaction-BZf88GHK.js} +1 -1
- package/dist/{Transaction-BSsgVGax.js → Transaction-Do-YGJ3y.js} +65 -64
- package/dist/{TransactionOld-DqRQHymo.js → TransactionOld-DHV5RiSU.js} +2 -2
- package/dist/api/transaction/index.d.ts +1 -0
- package/dist/{app-D7e4SEMx.js → app-CKrGq14f.js} +11 -11
- package/dist/app.js +1 -1
- package/dist/{assets-B67WKlO6.js → assets-xISyp6tf.js} +1 -0
- package/dist/{index-BKu9F-6S.js → index-CLl4FZBO.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-DxMIfrtL.js → payout-account-BGOvaXlP.js} +2 -2
- package/dist/{plugins-BNCULwjc.js → plugins-BzpmeBez.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-xISyp6tf.js";
|
|
5
5
|
const C = /* @__PURE__ */ c({
|
|
6
6
|
__name: "Status",
|
|
7
7
|
props: {
|
|
@@ -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-CLl4FZBO.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-BGOvaXlP.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";
|
|
@@ -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-CLl4FZBO.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-BGOvaXlP.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",
|
|
@@ -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-CLl4FZBO.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-CLl4FZBO.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";
|
|
@@ -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-BGOvaXlP.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";
|
|
@@ -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-BGOvaXlP.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-CKrGq14f.js";
|
|
11
|
+
import "./plugins-BzpmeBez.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 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-xISyp6tf.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-xISyp6tf.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,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-xISyp6tf.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,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as G, ref as E, watch as R, onMounted as Q, resolveComponent as h, openBlock as A, createElementBlock as q, Fragment as O, unref as
|
|
2
|
-
import { t as C, c as P } from "./assets-
|
|
1
|
+
import { defineComponent as G, ref as E, watch as R, onMounted as Q, resolveComponent as h, openBlock as A, createElementBlock as q, Fragment as O, unref as t, createBlock as D, createCommentVNode as w, withCtx as K, createVNode as _, renderList as H, createElementVNode as V, isRef as N, h as k } from "vue";
|
|
2
|
+
import { t as C, c as P } from "./assets-xISyp6tf.js";
|
|
3
3
|
import { h as L } from "./moment-h96o7c8I.js";
|
|
4
4
|
import { useI18n as j, useCoreStore as z } from "@feedmepos/mf-common";
|
|
5
5
|
import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
@@ -11,7 +11,7 @@ import { p as te } from "./index-BWjmOoX3.js";
|
|
|
11
11
|
import { t as ne } from "./index-C8G7ruiF.js";
|
|
12
12
|
import { u as re, p as x } from "./index-C4FfKmPS.js";
|
|
13
13
|
import { useSnackbar as se, useDialog as oe } from "@feedmepos/ui-library";
|
|
14
|
-
import { _ as le, a as ie, b as ce, c as ue } from "./Actions.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import { _ as le, a as ie, b as ce, c as ue } from "./Actions.vue_vue_type_script_setup_true_lang-Dsdll5NK.js";
|
|
15
15
|
import { g as me } from "./grafana-BrdrOUM4.js";
|
|
16
16
|
import { w as B } from "./Modal-DB8M9o1T.js";
|
|
17
17
|
import { u as $ } from "./error-K1CakhA9.js";
|
|
@@ -24,28 +24,28 @@ const pe = /* @__PURE__ */ G({
|
|
|
24
24
|
},
|
|
25
25
|
emits: ["update:id", "update:by"],
|
|
26
26
|
setup(J, { emit: f }) {
|
|
27
|
-
const F = f, { t: c } = j(), { currentBusiness: s, readRestaurants: v } = z(), { isLoading: u, startAsyncCall:
|
|
27
|
+
const F = f, { t: c } = j(), { currentBusiness: s, readRestaurants: v } = z(), { isLoading: u, startAsyncCall: b } = re(!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
|
|
41
|
+
return b(async () => {
|
|
42
42
|
let d = await te.readBusinessPayoutAccounts();
|
|
43
43
|
if (d.length !== 0)
|
|
44
44
|
return d;
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
async function Y() {
|
|
48
|
-
return
|
|
48
|
+
return b(async () => {
|
|
49
49
|
let d = await ne.getBusinessTerminals();
|
|
50
50
|
if (d.length !== 0)
|
|
51
51
|
return d;
|
|
@@ -53,7 +53,7 @@ const pe = /* @__PURE__ */ G({
|
|
|
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
81
|
return Q(U), R(s, U), (d, p) => {
|
|
82
|
-
const
|
|
82
|
+
const g = h("FmCircularProgress"), o = h("FmChip"), a = h("FmSearch"), e = h("FmMenuItem"), r = h("FmMenu");
|
|
83
83
|
return A(), q(O, null, [
|
|
84
|
-
|
|
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(O, null, H(
|
|
112
|
-
onClick: (l) => i.value =
|
|
113
|
-
key:
|
|
114
|
-
label:
|
|
111
|
+
(A(!0), q(O, null, H(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
|
]),
|
|
@@ -123,8 +123,8 @@ const pe = /* @__PURE__ */ G({
|
|
|
123
123
|
}), ye = { class: "flex justify-between mb-6 items-center" }, fe = { class: "flex space-x-8 items-start" }, _e = { class: "flex space-x-4 self-center" }, ve = { class: "flex space-x-12 mb-6" }, Me = /* @__PURE__ */ G({
|
|
124
124
|
__name: "Transaction",
|
|
125
125
|
setup(J) {
|
|
126
|
-
var
|
|
127
|
-
const f = se(), F = oe(), { sessionUser: c } = z(), { t: s } = j(), v = E(), { dateRange: u, searchKey:
|
|
126
|
+
var g, o;
|
|
127
|
+
const f = se(), F = oe(), { sessionUser: c } = z(), { t: s } = j(), v = E(), { dateRange: u, searchKey: b, status: m, id: i, by: y } = X({
|
|
128
128
|
by: "",
|
|
129
129
|
id: "",
|
|
130
130
|
searchKey: "",
|
|
@@ -134,9 +134,9 @@ const pe = /* @__PURE__ */ G({
|
|
|
134
134
|
endDate: L().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,16 +168,16 @@ 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, P(
|
|
171
|
+
const n = await C.refetchTransaction({ transactionId: a.id });
|
|
172
|
+
(r = v.value) == null || r.replaceData(e, P(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: $(n)
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
}
|
|
@@ -189,20 +189,20 @@ const pe = /* @__PURE__ */ G({
|
|
|
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, P(
|
|
197
|
+
(r = v.value) == null || r.replaceData(e, P(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: $(n)
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
}
|
|
@@ -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
|
},
|
|
@@ -311,12 +311,12 @@ 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
322
|
cell: ({ row: a }) => k(ue, {
|
|
@@ -339,34 +339,34 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
339
339
|
}
|
|
340
340
|
})
|
|
341
341
|
}), (a, e) => {
|
|
342
|
-
const r = h("FmSearch"),
|
|
342
|
+
const r = h("FmSearch"), n = h("FmSelect");
|
|
343
343
|
return A(), D(W, {
|
|
344
|
-
title:
|
|
345
|
-
description:
|
|
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
349
|
V("div", ye, [
|
|
350
350
|
V("div", fe, [
|
|
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
368
|
_(ee, {
|
|
369
|
-
modelValue:
|
|
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"])
|
|
@@ -379,25 +379,25 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
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), l);
|
|
388
388
|
}
|
|
389
389
|
}, null, 8, ["button", "handler"])
|
|
390
390
|
])
|
|
391
391
|
]),
|
|
392
392
|
V("div", ve, [
|
|
393
393
|
_(pe, {
|
|
394
|
-
id:
|
|
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
399
|
_(ae, {
|
|
400
|
-
modelValue:
|
|
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
|
]),
|
|
@@ -405,15 +405,16 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
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(P),
|
|
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
|
]),
|
|
@@ -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-xISyp6tf.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-Dsdll5NK.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: {
|
|
@@ -383,7 +383,7 @@ const Gn = {
|
|
|
383
383
|
sidebarDisplay: "Payout Accounts",
|
|
384
384
|
section: "payment-gateway"
|
|
385
385
|
},
|
|
386
|
-
component: () => import("./PayoutAccount-
|
|
386
|
+
component: () => import("./PayoutAccount-CJrlEgb0.js")
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -401,7 +401,7 @@ const Gn = {
|
|
|
401
401
|
sidebarDisplay: "Payment Onboarding",
|
|
402
402
|
section: "payment-gateway"
|
|
403
403
|
},
|
|
404
|
-
component: () => import("./OnboardSubmission-
|
|
404
|
+
component: () => import("./OnboardSubmission-BxU4f8ty.js")
|
|
405
405
|
},
|
|
406
406
|
{
|
|
407
407
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -410,7 +410,7 @@ const Gn = {
|
|
|
410
410
|
meta: {
|
|
411
411
|
parent: "mf-payment-admin.onboard-submission"
|
|
412
412
|
},
|
|
413
|
-
component: () => import("./OnboardForm-
|
|
413
|
+
component: () => import("./OnboardForm-B4I169iE.js")
|
|
414
414
|
},
|
|
415
415
|
{
|
|
416
416
|
path: "/admin/terminal/pos",
|
|
@@ -481,7 +481,7 @@ const Gn = {
|
|
|
481
481
|
meta: {
|
|
482
482
|
sidebarDisplay: "Transactions"
|
|
483
483
|
},
|
|
484
|
-
component: () => import("./Transaction-
|
|
484
|
+
component: () => import("./Transaction-BZf88GHK.js")
|
|
485
485
|
},
|
|
486
486
|
{
|
|
487
487
|
path: "/admin/settlement",
|
|
@@ -498,7 +498,7 @@ const Gn = {
|
|
|
498
498
|
meta: {
|
|
499
499
|
parent: "mf-payment-admin.settlement"
|
|
500
500
|
},
|
|
501
|
-
component: () => import("./SettlementTransactions-
|
|
501
|
+
component: () => import("./SettlementTransactions-Bplak-mJ.js")
|
|
502
502
|
}
|
|
503
503
|
], We = [
|
|
504
504
|
{
|
|
@@ -508,7 +508,7 @@ const Gn = {
|
|
|
508
508
|
{
|
|
509
509
|
path: "/payout-account",
|
|
510
510
|
name: "mf-payment-payout-account",
|
|
511
|
-
component: () => import("./PayoutAccount-
|
|
511
|
+
component: () => import("./PayoutAccount-D7hy7Gr3.js"),
|
|
512
512
|
meta: {
|
|
513
513
|
sidebarDisplay: "i18n:payment.routes.payout_account"
|
|
514
514
|
}
|
|
@@ -516,7 +516,7 @@ const Gn = {
|
|
|
516
516
|
{
|
|
517
517
|
path: "/onboard-submission",
|
|
518
518
|
name: "mf-payment-onboard-submission",
|
|
519
|
-
component: () => import("./OnboardSubmission-
|
|
519
|
+
component: () => import("./OnboardSubmission-B2FM1Lgp.js"),
|
|
520
520
|
meta: {
|
|
521
521
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
522
522
|
region: { MY: !0 }
|
|
@@ -526,7 +526,7 @@ const Gn = {
|
|
|
526
526
|
path: "/onboard-submission/:type/:submission?",
|
|
527
527
|
name: "mf-payment-onboard-submission-form",
|
|
528
528
|
props: !0,
|
|
529
|
-
component: () => import("./OnboardForm-
|
|
529
|
+
component: () => import("./OnboardForm-D-aGpyum.js"),
|
|
530
530
|
meta: {
|
|
531
531
|
parent: "mf-payment-onboard-submission"
|
|
532
532
|
}
|
|
@@ -534,7 +534,7 @@ const Gn = {
|
|
|
534
534
|
{
|
|
535
535
|
path: "/transaction-old",
|
|
536
536
|
name: "mf-payment-old-transaction",
|
|
537
|
-
component: () => import("./TransactionOld-
|
|
537
|
+
component: () => import("./TransactionOld-DHV5RiSU.js"),
|
|
538
538
|
meta: {
|
|
539
539
|
sidebarDisplay: "i18n:payment.routes.transaction"
|
|
540
540
|
}
|
|
@@ -542,7 +542,7 @@ const Gn = {
|
|
|
542
542
|
{
|
|
543
543
|
path: "/transaction",
|
|
544
544
|
name: "mf-payment-transaction",
|
|
545
|
-
component: () => import("./Transaction-
|
|
545
|
+
component: () => import("./Transaction-Do-YGJ3y.js"),
|
|
546
546
|
meta: {
|
|
547
547
|
sidebarDisplay: "i18n:payment.routes.transaction-new",
|
|
548
548
|
sidebarNew: !0
|
|
@@ -560,7 +560,7 @@ const Gn = {
|
|
|
560
560
|
path: "/settlement/:settlementId",
|
|
561
561
|
name: "mf-payment-settlement-transaction",
|
|
562
562
|
props: !0,
|
|
563
|
-
component: () => import("./SettlementTransactions-
|
|
563
|
+
component: () => import("./SettlementTransactions-B7JOsgK7.js"),
|
|
564
564
|
meta: {
|
|
565
565
|
parent: "mf-payment-settlement"
|
|
566
566
|
}
|
package/dist/app.js
CHANGED
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as j } from "./plugins-
|
|
1
|
+
import { f as j } from "./plugins-BzpmeBez.js";
|
|
2
2
|
import { c as st, a as it, B as at, p as E } from "./index-C4FfKmPS.js";
|
|
3
3
|
import { useCoreStore as ut } from "@feedmepos/mf-common";
|
|
4
|
-
import { _ as ot } from "./app-
|
|
4
|
+
import { _ as ot } from "./app-CKrGq14f.js";
|
|
5
5
|
var Q = { exports: {} };
|
|
6
6
|
(function(i, a) {
|
|
7
7
|
(function(t, m) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as be, C as we, r as K, g as C, b as Te, c as ye, d as H, S as ke, e as Ee, F as Ae } from "./app-
|
|
1
|
+
import { a as be, C as we, r as K, g as C, b as Te, c as ye, d as H, S as ke, e as Ee, F as Ae } from "./app-CKrGq14f.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|