@feedmepos/mf-payment 1.0.0-beta.2 → 1.0.0-beta.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{PayoutAccount-ip4hKBE0.js → PayoutAccount-5-rCbHbF.js} +1 -1
- package/dist/{PayoutAccount-Ce_7sGf-.js → PayoutAccount-BJJ26W9b.js} +1 -1
- package/dist/{Settlement-Crdfq22j.js → Settlement-C49oMOGR.js} +29 -29
- package/dist/{Settlement-JHOJNkhd.js → Settlement-CHwtH6hm.js} +27 -27
- package/dist/{SettlementTransactions-BxuLXUR-.js → SettlementTransactions-B17SVmmg.js} +1 -1
- package/dist/{SettlementTransactions-daWMAmtz.js → SettlementTransactions-C_4u7wU1.js} +1 -1
- package/dist/{TerminalTransaction-CCfrLWpi.js → TerminalTransaction-CfCURihE.js} +35 -35
- package/dist/TerminalTransaction-DdESjZJo.js +483 -0
- package/dist/{Transaction-DRQ_uZ30.js → Transaction-CP0EdPdb.js} +48 -50
- package/dist/{Transaction-8LlOLPeZ.js → Transaction-Cl5vz12a.js} +23 -23
- package/dist/{app-DQNKrzQz.js → app-z59f3ZZg.js} +149 -149
- package/dist/app.js +1 -1
- package/dist/helpers/idToDate.d.ts +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-DVoSXsW7.js → payout-account-C4SX3RTt.js} +1 -1
- package/dist/{transaction-CQiT7Y_s.js → transaction-B8q7vuqN.js} +19 -12
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/terminal-transaction/cell/Timestamp.vue.d.ts +10 -0
- package/package.json +1 -1
- package/dist/TerminalTransaction-B2RjE2Y0.js +0 -435
@@ -2,7 +2,7 @@ import { defineComponent as g, resolveComponent as i, openBlock as h, createBloc
|
|
2
2
|
import { u as S } from "./index-7KNaibcq.js";
|
3
3
|
import { _ as O } from "./index-CWaKb7bG.js";
|
4
4
|
import { _ as K } 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-C4SX3RTt.js";
|
6
6
|
import { p as $ } from "./index-BwcJZFsi.js";
|
7
7
|
import "@feedmepos/ui-library";
|
8
8
|
import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js";
|
@@ -3,7 +3,7 @@ import { p as z } from "./index-BwcJZFsi.js";
|
|
3
3
|
import { _ as y, u as S, e as K } from "./index-CWaKb7bG.js";
|
4
4
|
import { defineStore as _ } from "pinia";
|
5
5
|
import { useCoreStore as $ } from "@feedmepos/mf-common";
|
6
|
-
import { c as AA, P as v } from "./payout-account-
|
6
|
+
import { c as AA, P as v } from "./payout-account-C4SX3RTt.js";
|
7
7
|
import { useDialogChild as sA, useDialog as eA } from "@feedmepos/ui-library";
|
8
8
|
import { z as X, a as x } from "./validator-D5jtpt9A.js";
|
9
9
|
import { P as J } from "./PDFViewer-CjH_C1uT.js";
|
@@ -1,16 +1,16 @@
|
|
1
|
-
import { defineComponent as w, ref as
|
2
|
-
import { u as
|
1
|
+
import { defineComponent as w, ref as D, computed as R, resolveComponent as h, openBlock as v, createBlock as S, h as Y, onMounted as A, watch as k, unref as n, withCtx as F, createElementVNode as p, createVNode as i, isRef as V } from "vue";
|
2
|
+
import { u as C } from "./index-CWaKb7bG.js";
|
3
3
|
import { h as _ } from "./moment-h96o7c8I.js";
|
4
|
-
import { useCoreStore as
|
5
|
-
import { _ as
|
4
|
+
import { useCoreStore as $ } from "@feedmepos/mf-common";
|
5
|
+
import { _ as b } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
6
6
|
import { s as g } from "./index-CojhNtuG.js";
|
7
7
|
import "@feedmepos/ui-library";
|
8
8
|
import { d as f } from "./dinero-CIVmXLL-.js";
|
9
|
-
import { _ as
|
10
|
-
import { useRouter as
|
11
|
-
import { u as
|
12
|
-
import { _ as
|
13
|
-
import { _ as
|
9
|
+
import { _ as M } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js";
|
10
|
+
import { useRouter as K } from "vue-router";
|
11
|
+
import { u as P } from "./index-7KNaibcq.js";
|
12
|
+
import { _ as B } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
13
|
+
import { _ as I } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
|
14
14
|
const L = /* @__PURE__ */ w({
|
15
15
|
__name: "SettlementTable",
|
16
16
|
props: {
|
@@ -25,11 +25,11 @@ const L = /* @__PURE__ */ w({
|
|
25
25
|
},
|
26
26
|
emits: ["row-click"],
|
27
27
|
setup(y, { emit: d }) {
|
28
|
-
const e = y, r = d, s =
|
28
|
+
const e = y, r = d, s = D(""), c = [
|
29
29
|
{
|
30
30
|
header: () => "Settlement ID",
|
31
31
|
accessorKey: "id",
|
32
|
-
cell: ({ cell: t }) =>
|
32
|
+
cell: ({ cell: t }) => Y(M, { data: t.getValue() })
|
33
33
|
},
|
34
34
|
{
|
35
35
|
header: () => "Created At",
|
@@ -50,7 +50,7 @@ const L = /* @__PURE__ */ w({
|
|
50
50
|
header: () => "Settlement Amount",
|
51
51
|
accessorKey: "payout"
|
52
52
|
}
|
53
|
-
], l =
|
53
|
+
], l = R(() => e.data.map((t) => ({
|
54
54
|
id: t._id,
|
55
55
|
transactionAt: _(t.createdAt).format("YYYY-MM-DD"),
|
56
56
|
amount: f(t.totalAmount).toFormat("$0.00"),
|
@@ -59,7 +59,7 @@ const L = /* @__PURE__ */ w({
|
|
59
59
|
})));
|
60
60
|
return (t, o) => {
|
61
61
|
const m = h("FmTable");
|
62
|
-
return v(),
|
62
|
+
return v(), S(m, {
|
63
63
|
modelValue: s.value,
|
64
64
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => s.value = a),
|
65
65
|
"row-data": l.value,
|
@@ -69,15 +69,15 @@ const L = /* @__PURE__ */ w({
|
|
69
69
|
}, null, 8, ["modelValue", "row-data", "loading"]);
|
70
70
|
};
|
71
71
|
}
|
72
|
-
}),
|
72
|
+
}), T = { class: "flex justify-between items-center mb-6" }, q = { class: "flex space-x-8 items-center" }, E = { class: "flex space-x-4 items-center" }, te = /* @__PURE__ */ w({
|
73
73
|
__name: "Settlement",
|
74
74
|
setup(y) {
|
75
|
-
const d =
|
75
|
+
const d = K(), { dateRange: e } = P({
|
76
76
|
dateRange: {
|
77
|
-
startDate: _().startOf("day").
|
78
|
-
endDate: _().endOf("day").
|
77
|
+
startDate: _().startOf("day").format("YYYY-MM-DD"),
|
78
|
+
endDate: _().endOf("day").format("YYYY-MM-DD")
|
79
79
|
}
|
80
|
-
}), { isLoading: r, startAsyncCall: s } =
|
80
|
+
}), { isLoading: r, startAsyncCall: s } = C(!0), { currentRestaurant: c } = $(), l = D([]);
|
81
81
|
async function t() {
|
82
82
|
await s(async () => {
|
83
83
|
const m = await g.readRestaurantSettlements(
|
@@ -92,28 +92,28 @@ const L = /* @__PURE__ */ w({
|
|
92
92
|
function o() {
|
93
93
|
t();
|
94
94
|
}
|
95
|
-
return
|
96
|
-
const
|
97
|
-
return v(),
|
95
|
+
return A(o), k(c, o), (m, a) => {
|
96
|
+
const x = h("FmSimpleDateRangePicker");
|
97
|
+
return v(), S(b, {
|
98
98
|
title: "Settlements",
|
99
99
|
description: "Settlements are the finalization of financial transactions, transferring funds to complete payments.",
|
100
100
|
loading: n(r)
|
101
101
|
}, {
|
102
|
-
default:
|
103
|
-
p("div",
|
104
|
-
p("div",
|
105
|
-
i(
|
106
|
-
i(
|
102
|
+
default: F(() => [
|
103
|
+
p("div", T, [
|
104
|
+
p("div", q, [
|
105
|
+
i(I),
|
106
|
+
i(x, {
|
107
107
|
modelValue: n(e),
|
108
108
|
"onUpdate:modelValue": [
|
109
|
-
a[0] || (a[0] = (u) =>
|
109
|
+
a[0] || (a[0] = (u) => V(e) ? e.value = u : null),
|
110
110
|
t
|
111
111
|
],
|
112
112
|
"show-predefined-range": ""
|
113
113
|
}, null, 8, ["modelValue"])
|
114
114
|
]),
|
115
|
-
p("div",
|
116
|
-
i(
|
115
|
+
p("div", E, [
|
116
|
+
i(B, {
|
117
117
|
button: {
|
118
118
|
appendIcon: "file_download",
|
119
119
|
variant: "primary",
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { defineComponent as h, ref as C, computed as
|
2
|
-
import { u as
|
3
|
-
import { h as
|
1
|
+
import { defineComponent as h, ref as C, computed as B, resolveComponent as i, openBlock as v, createBlock as R, h as V, watch as I, onMounted as $, unref as a, withCtx as b, createElementVNode as y, createVNode as s, isRef as L, createElementBlock as K, Fragment as P, renderList as E } from "vue";
|
2
|
+
import { u as D } from "./index-CWaKb7bG.js";
|
3
|
+
import { h as g } from "./moment-h96o7c8I.js";
|
4
4
|
import { s as d } from "./index-CojhNtuG.js";
|
5
5
|
import { useSnackbar as T } from "@feedmepos/ui-library";
|
6
|
-
import { d as
|
7
|
-
import { _ as
|
8
|
-
import { useRouter as
|
9
|
-
import { _ as
|
6
|
+
import { d as k } from "./dinero-CIVmXLL-.js";
|
7
|
+
import { _ as q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js";
|
8
|
+
import { useRouter as N } from "vue-router";
|
9
|
+
import { _ as O } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
10
10
|
import { u as U } from "./index-7KNaibcq.js";
|
11
11
|
import { u as j } from "./error-K1CakhA9.js";
|
12
12
|
const z = /* @__PURE__ */ h({
|
@@ -27,7 +27,7 @@ const z = /* @__PURE__ */ h({
|
|
27
27
|
{
|
28
28
|
header: () => "Settlement ID",
|
29
29
|
accessorKey: "id",
|
30
|
-
cell: ({ cell: e }) =>
|
30
|
+
cell: ({ cell: e }) => V(q, { data: e.getValue() })
|
31
31
|
},
|
32
32
|
{
|
33
33
|
header: () => "Created At",
|
@@ -48,16 +48,16 @@ const z = /* @__PURE__ */ h({
|
|
48
48
|
header: () => "Settlement Amount",
|
49
49
|
accessorKey: "payout"
|
50
50
|
}
|
51
|
-
], f =
|
51
|
+
], f = B(() => r.data.map((e) => ({
|
52
52
|
id: e._id,
|
53
|
-
transactionAt:
|
54
|
-
amount:
|
55
|
-
fee:
|
56
|
-
payout:
|
53
|
+
transactionAt: g(e.createdAt).format("YYYY-MM-DD"),
|
54
|
+
amount: k(e.totalAmount).toFormat("$0.00"),
|
55
|
+
fee: k(e.totalFee).toFormat("$0.00"),
|
56
|
+
payout: k(e.totalPayout).toFormat("$0.00")
|
57
57
|
})));
|
58
58
|
return (e, n) => {
|
59
59
|
const _ = i("FmTable");
|
60
|
-
return
|
60
|
+
return v(), R(_, {
|
61
61
|
modelValue: o.value,
|
62
62
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => o.value = l),
|
63
63
|
"row-data": f.value,
|
@@ -70,13 +70,13 @@ const z = /* @__PURE__ */ h({
|
|
70
70
|
}), G = { class: "flex justify-between items-center mb-6" }, Q = { class: "flex space-x-4 items-center" }, H = { class: "flex space-x-4 items-center" }, ie = /* @__PURE__ */ h({
|
71
71
|
__name: "Settlement",
|
72
72
|
setup(w) {
|
73
|
-
const { isLoading: u, startAsyncCall: r } =
|
73
|
+
const { isLoading: u, startAsyncCall: r } = D(!0), m = D(!1), o = C([]), p = N(), f = T(), { dateRange: e } = U({
|
74
74
|
dateRange: {
|
75
|
-
startDate:
|
76
|
-
endDate:
|
75
|
+
startDate: g().startOf("day").format("YYYY-MM-DD"),
|
76
|
+
endDate: g().endOf("day").format("YYYY-MM-DD")
|
77
77
|
}
|
78
78
|
});
|
79
|
-
|
79
|
+
I(e, n);
|
80
80
|
async function n() {
|
81
81
|
await r(async () => {
|
82
82
|
const F = await d.readByDate(
|
@@ -91,7 +91,7 @@ const z = /* @__PURE__ */ h({
|
|
91
91
|
function _() {
|
92
92
|
n();
|
93
93
|
}
|
94
|
-
|
94
|
+
$(_);
|
95
95
|
const l = [
|
96
96
|
{
|
97
97
|
label: "Audit Report",
|
@@ -122,22 +122,22 @@ const z = /* @__PURE__ */ h({
|
|
122
122
|
}
|
123
123
|
];
|
124
124
|
return (F, c) => {
|
125
|
-
const
|
126
|
-
return
|
125
|
+
const S = i("FmSimpleDateRangePicker"), A = i("FmButton"), M = i("FmMenuItem"), Y = i("FmMenu");
|
126
|
+
return v(), R(O, {
|
127
127
|
title: "Settlements",
|
128
128
|
loading: a(u)
|
129
129
|
}, {
|
130
130
|
default: b(() => [
|
131
131
|
y("div", G, [
|
132
132
|
y("div", Q, [
|
133
|
-
s(
|
133
|
+
s(S, {
|
134
134
|
modelValue: a(e),
|
135
|
-
"onUpdate:modelValue": c[0] || (c[0] = (t) =>
|
135
|
+
"onUpdate:modelValue": c[0] || (c[0] = (t) => L(e) ? e.value = t : null),
|
136
136
|
"show-predefined-range": ""
|
137
137
|
}, null, 8, ["modelValue"])
|
138
138
|
]),
|
139
139
|
y("div", H, [
|
140
|
-
s(
|
140
|
+
s(Y, { trigger: "click" }, {
|
141
141
|
"menu-button": b(() => [
|
142
142
|
s(A, {
|
143
143
|
class: "w-full mt-6",
|
@@ -148,7 +148,7 @@ const z = /* @__PURE__ */ h({
|
|
148
148
|
}, null, 8, ["loading"])
|
149
149
|
]),
|
150
150
|
default: b(() => [
|
151
|
-
(
|
151
|
+
(v(), K(P, null, E(l, (t) => s(M, {
|
152
152
|
key: t.value,
|
153
153
|
label: t.label,
|
154
154
|
icon: t.icon,
|
@@ -158,11 +158,11 @@ const z = /* @__PURE__ */ h({
|
|
158
158
|
a(m).startAsyncCall(async () => {
|
159
159
|
try {
|
160
160
|
await t.onClick();
|
161
|
-
} catch (
|
161
|
+
} catch (x) {
|
162
162
|
a(f).open({
|
163
163
|
type: "error",
|
164
164
|
title: "Error",
|
165
|
-
message: a(j)(
|
165
|
+
message: a(j)(x)
|
166
166
|
});
|
167
167
|
}
|
168
168
|
});
|
@@ -3,7 +3,7 @@ import { e as E, u as j } from "./index-CWaKb7bG.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
4
4
|
import { d as h } from "./dinero-CIVmXLL-.js";
|
5
5
|
import { g as Y, a as H } from "./assets-NrCec-W0.js";
|
6
|
-
import { t as q, a as J } from "./transaction-
|
6
|
+
import { t as q, a as J } from "./transaction-B8q7vuqN.js";
|
7
7
|
import { _ as Q } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
8
8
|
import { useRouter as W } from "vue-router";
|
9
9
|
import { s as X } from "./index-CojhNtuG.js";
|
@@ -3,7 +3,7 @@ import { e as E, u as q } from "./index-CWaKb7bG.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
5
|
import { g as W, a as X } from "./assets-NrCec-W0.js";
|
6
|
-
import { t as P, a as Z } from "./transaction-
|
6
|
+
import { t as P, a as Z } from "./transaction-B8q7vuqN.js";
|
7
7
|
import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
8
8
|
import { useRouter as te } from "vue-router";
|
9
9
|
import { s as ae } from "./index-CojhNtuG.js";
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { defineComponent as N, openBlock as f, createElementBlock as
|
1
|
+
import { defineComponent as N, openBlock as f, createElementBlock as R, Fragment as F, unref as r, createCommentVNode as D, createElementVNode as d, resolveComponent as _, createBlock as S, normalizeClass as V, withCtx as y, toDisplayString as k, ref as M, watch as g, createVNode as c, isRef as p, h } from "vue";
|
2
2
|
import { c as m } from "./index-CWaKb7bG.js";
|
3
|
-
import { h } from "./moment-h96o7c8I.js";
|
4
|
-
import { u as
|
5
|
-
import { _ as
|
3
|
+
import { h as I } from "./moment-h96o7c8I.js";
|
4
|
+
import { u as Y } from "./index-7KNaibcq.js";
|
5
|
+
import { _ as K } from "./index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js";
|
6
6
|
import "@feedmepos/ui-library";
|
7
|
-
import { g as
|
8
|
-
import { E as
|
9
|
-
import { d as
|
10
|
-
import { _ as
|
11
|
-
import { useCoreStore as
|
12
|
-
import { _ as
|
7
|
+
import { g as $ } from "./assets-NrCec-W0.js";
|
8
|
+
import { E as L, t as C } from "./index-DbJpbpSs.js";
|
9
|
+
import { d as B } from "./dinero-CIVmXLL-.js";
|
10
|
+
import { _ as G } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
|
11
|
+
import { useCoreStore as P } from "@feedmepos/mf-common";
|
12
|
+
import { _ as U } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
13
13
|
import { _ as W } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js";
|
14
14
|
import { _ as j } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
15
15
|
import { _ as q } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
@@ -20,15 +20,15 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
20
20
|
data: {}
|
21
21
|
},
|
22
22
|
setup(A) {
|
23
|
-
return (o, s) => (f(),
|
24
|
-
o.row.original.ecrGateway ? (f(),
|
23
|
+
return (o, s) => (f(), R(F, null, [
|
24
|
+
o.row.original.ecrGateway ? (f(), R("img", {
|
25
25
|
key: 0,
|
26
26
|
class: "bg-fm-color-overlay-background rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
27
|
-
src: r(
|
28
|
-
}, null, 8, z)) :
|
27
|
+
src: r(L)
|
28
|
+
}, null, 8, z)) : D("", !0),
|
29
29
|
d("img", {
|
30
30
|
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
31
|
-
src: r(
|
31
|
+
src: r($)(o.row.original.gateway)
|
32
32
|
}, null, 8, Q)
|
33
33
|
], 64));
|
34
34
|
}
|
@@ -45,12 +45,12 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
45
45
|
}
|
46
46
|
return (l, n) => {
|
47
47
|
const i = _("FmBadge");
|
48
|
-
return f(),
|
48
|
+
return f(), S(i, {
|
49
49
|
inline: "",
|
50
|
-
class:
|
50
|
+
class: V(s())
|
51
51
|
}, {
|
52
52
|
default: y(() => [
|
53
|
-
d("div", null,
|
53
|
+
d("div", null, k(l.data.toUpperCase()), 1)
|
54
54
|
]),
|
55
55
|
_: 1
|
56
56
|
}, 8, ["class"]);
|
@@ -59,12 +59,12 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
59
59
|
}), X = { class: "flex justify-between mb-6 items-start" }, Z = { class: "flex space-x-8 items-start" }, ee = { class: "flex space-x-4" }, Ae = /* @__PURE__ */ N({
|
60
60
|
__name: "TerminalTransaction",
|
61
61
|
setup(A) {
|
62
|
-
const { currentRestaurant: o } =
|
62
|
+
const { currentRestaurant: o } = P(), s = M(), { dateRange: l, status: n, searchKey: i } = Y({
|
63
63
|
searchKey: "",
|
64
64
|
status: [m.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
|
65
65
|
dateRange: {
|
66
|
-
startDate:
|
67
|
-
endDate:
|
66
|
+
startDate: I().startOf("day").format("YYYY-MM-DD"),
|
67
|
+
endDate: I().endOf("day").format("YYYY-MM-DD")
|
68
68
|
}
|
69
69
|
});
|
70
70
|
g([l, n], () => {
|
@@ -104,12 +104,12 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
104
104
|
], v = function(e) {
|
105
105
|
const a = e;
|
106
106
|
let u = "-";
|
107
|
-
return a.details && a.details.amount && (u =
|
107
|
+
return a.details && a.details.amount && (u = B(a.details.amount).toFormat("$0.00")), {
|
108
108
|
id: e._id,
|
109
109
|
orderId: e.orderId,
|
110
110
|
refId: e.refId,
|
111
111
|
terminalId: e.terminalId,
|
112
|
-
transactionAt:
|
112
|
+
transactionAt: I(e.transactionAt).format("YYYY-MM-DD hh:mm:ss"),
|
113
113
|
action: e.action,
|
114
114
|
gateway: e.gateway,
|
115
115
|
ecrGateway: e.ecrGateway,
|
@@ -122,7 +122,7 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
122
122
|
meta: {
|
123
123
|
textAlign: "left"
|
124
124
|
},
|
125
|
-
cell: ({ cell: e }) =>
|
125
|
+
cell: ({ cell: e }) => h(W, { data: e.getValue() })
|
126
126
|
},
|
127
127
|
{
|
128
128
|
accessorKey: "orderId",
|
@@ -145,7 +145,7 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
145
145
|
textAlign: "center",
|
146
146
|
maxWidth: "128px"
|
147
147
|
},
|
148
|
-
cell: ({ cell: e, row: a }) =>
|
148
|
+
cell: ({ cell: e, row: a }) => h(H, { row: a, data: e.getValue() })
|
149
149
|
},
|
150
150
|
{
|
151
151
|
accessorKey: "action",
|
@@ -154,7 +154,7 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
154
154
|
textAlign: "right",
|
155
155
|
maxWidth: "132px"
|
156
156
|
},
|
157
|
-
cell: ({ cell: e, row: a }) =>
|
157
|
+
cell: ({ cell: e, row: a }) => h(J, { row: a, data: e.getValue() })
|
158
158
|
},
|
159
159
|
{
|
160
160
|
accessorKey: "amount",
|
@@ -179,8 +179,8 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
179
179
|
}
|
180
180
|
];
|
181
181
|
return (e, a) => {
|
182
|
-
const u = _("FmSearch"), w = _("FmSelect"),
|
183
|
-
return f(),
|
182
|
+
const u = _("FmSearch"), w = _("FmSelect"), b = _("FmSimpleDateRangePicker");
|
183
|
+
return f(), S(j, {
|
184
184
|
title: "Offline Transactions",
|
185
185
|
description: "Transactions are purchases or payments made in retail using electronic devices such as POS systems, kiosks, terminals, or ECRs.",
|
186
186
|
loading: !1
|
@@ -188,7 +188,7 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
188
188
|
default: y(() => [
|
189
189
|
d("div", X, [
|
190
190
|
d("div", Z, [
|
191
|
-
c(
|
191
|
+
c(G),
|
192
192
|
c(u, {
|
193
193
|
"model-value": r(i),
|
194
194
|
"onUpdate:modelValue": a[0] || (a[0] = (t) => p(i) ? i.value = t : null),
|
@@ -214,14 +214,14 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
214
214
|
]),
|
215
215
|
_: 1
|
216
216
|
}, 8, ["modelValue"]),
|
217
|
-
c(
|
217
|
+
c(b, {
|
218
218
|
modelValue: r(l),
|
219
219
|
"onUpdate:modelValue": a[3] || (a[3] = (t) => p(l) ? l.value = t : null),
|
220
220
|
"show-predefined-range": ""
|
221
221
|
}, null, 8, ["modelValue"])
|
222
222
|
]),
|
223
223
|
d("div", ee, [
|
224
|
-
c(
|
224
|
+
c(U, {
|
225
225
|
button: {
|
226
226
|
appendIcon: "file_download",
|
227
227
|
variant: "primary",
|
@@ -229,21 +229,21 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
229
229
|
},
|
230
230
|
handler: () => {
|
231
231
|
var t;
|
232
|
-
return r(
|
232
|
+
return r(C).downloadTransactions(((t = s.value) == null ? void 0 : t.data()) ?? []);
|
233
233
|
}
|
234
234
|
}, null, 8, ["handler"])
|
235
235
|
])
|
236
236
|
]),
|
237
|
-
c(
|
237
|
+
c(K, {
|
238
238
|
ref_key: "controller",
|
239
239
|
ref: s,
|
240
240
|
"column-defs": E,
|
241
241
|
"rows-defs": v,
|
242
|
-
paginate: (t,
|
242
|
+
paginate: (t, O) => r(C).readRestaurantTransactions({
|
243
243
|
status: r(n),
|
244
244
|
searchKey: r(i),
|
245
245
|
limit: t,
|
246
|
-
cursor:
|
246
|
+
cursor: O,
|
247
247
|
start: r(l).startDate,
|
248
248
|
end: r(l).endDate
|
249
249
|
})
|