@feedmepos/mf-payment 0.0.0-beta.11 → 0.0.0-beta.13
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/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
- package/dist/Modal-DB8M9o1T.js +13 -0
- package/dist/{PayoutAccount-uqw305f2.js → PayoutAccount-CIKS18wv.js} +37 -34
- package/dist/{PayoutAccount-h58IN5jz.js → PayoutAccount-Daxv1Djz.js} +288 -3160
- package/dist/{PayoutAccountSetting-CIeos0md.js → PayoutAccountSetting-CnjAKH1q.js} +3 -3
- package/dist/Settlement-C7X_gzIk.js +142 -0
- package/dist/Settlement-DxQ9WNy-.js +146 -0
- package/dist/{SettlementTransactions-Bqw7WbtT.js → SettlementTransactions-Bne5lD30.js} +4 -4
- package/dist/{SettlementTransactions-De_DYXFh.js → SettlementTransactions-RqT0OWUX.js} +100 -107
- package/dist/Terminal-CddS-zgz.js +318 -0
- package/dist/TerminalSetting-B2aM1gW-.js +176 -0
- package/dist/{TerminalTransaction-D_lILlqx.js → TerminalTransaction-XrqXeZZH.js} +18 -18
- package/dist/{Transaction-CiFh9jYU.js → Transaction-B16xeZ39.js} +80 -74
- package/dist/Transaction-CpOhK6md.js +249 -0
- package/dist/api/index.d.ts +7 -0
- package/dist/api/settlement/index.d.ts +7 -13
- package/dist/api/terminal/index.d.ts +8 -1
- package/dist/api/transaction/index.d.ts +6 -2
- package/dist/app.js +68 -62
- package/dist/{assets-DZoIWoOi.js → assets-nIQ0r4oP.js} +49 -49
- package/dist/components/AsyncButton.vue.d.ts +21 -0
- package/dist/components/CursorTable/index.vue.d.ts +16 -5
- package/dist/{index-Bmka-1lQ.js → index-CIIojtd5.js} +1 -1
- package/dist/index-CxYMbN69.js +37 -0
- package/dist/index-DflgpHga.js +55560 -0
- package/dist/{index-Coz5aeIO.js → index-DhPhiNvt.js} +13 -23
- package/dist/{index-CF56zGyu.js → index-DqQBDo_Y.js} +1 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js +155 -0
- package/dist/package.json +3 -3
- package/dist/{payout-account-D_lGAP8q.js → payout-account-C4iFFgWi.js} +262 -262
- package/dist/{transaction-vRrBf3FN.js → transaction-B4rEbejx.js} +28 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/validator-D5jtpt9A.js +2877 -0
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +61 -0
- package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +58 -9
- package/dist/views/admin/terminal/tabs/Fiuu.vue.d.ts +72 -0
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +63 -0
- package/package.json +3 -3
- package/dist/Settlement-BVGACeme.js +0 -136
- package/dist/Settlement-Ce48KHrc.js +0 -132
- package/dist/Terminal-ByKV2Rof.js +0 -204
- package/dist/Transaction-DWJ4TWTQ.js +0 -242
- package/dist/index-DCPNrUDq.js +0 -40075
- package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as S, resolveComponent as i, openBlock as v, createElementBlock as C, Fragment as B, createElementVNode as o, createVNode as u, withCtx as b, createTextVNode as g, toDisplayString as F, createCommentVNode as V, createBlock as P, ref as w, watch as E, computed as R, unref as k, isRef as h, h as T, onMounted as q, resolveDynamicComponent as _, normalizeProps as D, mergeProps as z } from "vue";
|
2
|
-
import { p as $ } from "./index-
|
3
|
-
import { u as H } from "./index-
|
2
|
+
import { p as $ } from "./index-DqQBDo_Y.js";
|
3
|
+
import { u as H } from "./index-DflgpHga.js";
|
4
4
|
import { _ as K } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
5
5
|
import { useRouter as O } from "vue-router";
|
6
|
-
import { u as M } from "./index-
|
6
|
+
import { u as M } from "./index-CIIojtd5.js";
|
7
7
|
import { P as U } from "./PDFViewer-CjH_C1uT.js";
|
8
8
|
import { useSnackbar as G } from "@feedmepos/ui-library";
|
9
9
|
import { u as L } from "./error-K1CakhA9.js";
|
@@ -0,0 +1,142 @@
|
|
1
|
+
import { defineComponent as w, ref as v, computed as S, resolveComponent as h, openBlock as x, createBlock as D, watch as A, onMounted as k, unref as o, withCtx as F, createElementVNode as u, createVNode as p, isRef as R } from "vue";
|
2
|
+
import { u as V } from "./index-DflgpHga.js";
|
3
|
+
import { h as _ } from "./moment-h96o7c8I.js";
|
4
|
+
import { s as g } from "./index-DhPhiNvt.js";
|
5
|
+
import "@feedmepos/ui-library";
|
6
|
+
import { d as f } from "./dinero-CIVmXLL-.js";
|
7
|
+
import { useRouter as b } from "vue-router";
|
8
|
+
import { _ as C } from "./AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js";
|
9
|
+
import { u as $ } from "./index-CIIojtd5.js";
|
10
|
+
import { _ as I } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
11
|
+
const K = /* @__PURE__ */ w({
|
12
|
+
__name: "SettlementTable",
|
13
|
+
props: {
|
14
|
+
data: {
|
15
|
+
type: Array,
|
16
|
+
required: !0
|
17
|
+
},
|
18
|
+
loading: {
|
19
|
+
type: Boolean,
|
20
|
+
required: !0
|
21
|
+
}
|
22
|
+
},
|
23
|
+
emits: ["row-click"],
|
24
|
+
setup(y, { emit: l }) {
|
25
|
+
const r = y, d = l, m = v(""), e = [
|
26
|
+
{
|
27
|
+
header: () => "Settlement ID",
|
28
|
+
accessorKey: "id"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
header: () => "Created At",
|
32
|
+
accessorKey: "transactionAt",
|
33
|
+
meta: {
|
34
|
+
width: "180px"
|
35
|
+
}
|
36
|
+
},
|
37
|
+
{
|
38
|
+
header: () => "Sales Amount",
|
39
|
+
accessorKey: "amount"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
header: () => "Fee",
|
43
|
+
accessorKey: "fee"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
header: () => "Settlement Amount",
|
47
|
+
accessorKey: "payout"
|
48
|
+
}
|
49
|
+
], i = S(() => r.data.map((t) => ({
|
50
|
+
id: t._id,
|
51
|
+
transactionAt: _(t.createdAt).format("YYYY-MM-DD"),
|
52
|
+
amount: f(t.totalAmount).toFormat("$0.00"),
|
53
|
+
fee: f(t.totalFee).toFormat("$0.00"),
|
54
|
+
payout: f(t.totalPayout).toFormat("$0.00")
|
55
|
+
})));
|
56
|
+
return (t, a) => {
|
57
|
+
const n = h("FmTable");
|
58
|
+
return x(), D(n, {
|
59
|
+
modelValue: m.value,
|
60
|
+
"onUpdate:modelValue": a[0] || (a[0] = (s) => m.value = s),
|
61
|
+
"row-data": i.value,
|
62
|
+
"column-defs": e,
|
63
|
+
loading: r.loading,
|
64
|
+
onRowClick: a[1] || (a[1] = (s) => d("row-click", r.data.at(s.index)))
|
65
|
+
}, null, 8, ["modelValue", "row-data", "loading"]);
|
66
|
+
};
|
67
|
+
}
|
68
|
+
}), P = { class: "flex justify-between items-center mb-6" }, B = { class: "flex space-x-4 items-center" }, O = { class: "flex space-x-4 items-center" }, z = /* @__PURE__ */ w({
|
69
|
+
__name: "Settlement",
|
70
|
+
setup(y) {
|
71
|
+
const { isLoading: l, startAsyncCall: r } = V(!0), d = v([]), m = b(), { dateRange: e } = $({
|
72
|
+
dateRange: {
|
73
|
+
startDate: _().startOf("day").toISOString(),
|
74
|
+
endDate: _().endOf("day").toISOString()
|
75
|
+
}
|
76
|
+
});
|
77
|
+
A(e, i);
|
78
|
+
async function i() {
|
79
|
+
await r(async () => {
|
80
|
+
const a = await g.readByDate(
|
81
|
+
{
|
82
|
+
start: e.value.startDate,
|
83
|
+
end: e.value.endDate
|
84
|
+
}
|
85
|
+
);
|
86
|
+
d.value = a;
|
87
|
+
});
|
88
|
+
}
|
89
|
+
function t() {
|
90
|
+
i();
|
91
|
+
}
|
92
|
+
return k(t), (a, n) => {
|
93
|
+
const s = h("FmDateRangePicker");
|
94
|
+
return x(), D(C, {
|
95
|
+
title: "Settlements",
|
96
|
+
loading: o(l)
|
97
|
+
}, {
|
98
|
+
default: F(() => [
|
99
|
+
u("div", P, [
|
100
|
+
u("div", B, [
|
101
|
+
p(s, {
|
102
|
+
modelValue: o(e),
|
103
|
+
"onUpdate:modelValue": n[0] || (n[0] = (c) => R(e) ? e.value = c : null),
|
104
|
+
compare: "",
|
105
|
+
"show-predefined-range": ""
|
106
|
+
}, null, 8, ["modelValue"])
|
107
|
+
]),
|
108
|
+
u("div", O, [
|
109
|
+
p(I, {
|
110
|
+
button: {
|
111
|
+
appendIcon: "file_download",
|
112
|
+
variant: "primary",
|
113
|
+
label: "Export"
|
114
|
+
},
|
115
|
+
handler: async () => {
|
116
|
+
await o(g).downloadSettlementReport({
|
117
|
+
start: o(e).startDate,
|
118
|
+
end: o(e).endDate
|
119
|
+
});
|
120
|
+
}
|
121
|
+
}, null, 8, ["handler"])
|
122
|
+
])
|
123
|
+
]),
|
124
|
+
p(K, {
|
125
|
+
loading: o(l),
|
126
|
+
data: d.value,
|
127
|
+
onRowClick: n[1] || (n[1] = (c) => o(m).push({
|
128
|
+
name: "mf-payment-admin.settlement-transaction",
|
129
|
+
params: {
|
130
|
+
settlementId: c._id
|
131
|
+
}
|
132
|
+
}))
|
133
|
+
}, null, 8, ["loading", "data"])
|
134
|
+
]),
|
135
|
+
_: 1
|
136
|
+
}, 8, ["loading"]);
|
137
|
+
};
|
138
|
+
}
|
139
|
+
});
|
140
|
+
export {
|
141
|
+
z as default
|
142
|
+
};
|
@@ -0,0 +1,146 @@
|
|
1
|
+
import { defineComponent as w, ref as S, computed as D, resolveComponent as h, openBlock as v, createBlock as x, onMounted as A, watch as k, unref as n, withCtx as F, createElementVNode as u, createVNode as p, isRef as C } from "vue";
|
2
|
+
import { u as V } from "./index-DflgpHga.js";
|
3
|
+
import { h as _ } from "./moment-h96o7c8I.js";
|
4
|
+
import { useCoreStore as b } from "@feedmepos/mf-common";
|
5
|
+
import { _ as $ } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
6
|
+
import { s as g } from "./index-DhPhiNvt.js";
|
7
|
+
import "@feedmepos/ui-library";
|
8
|
+
import { d as f } from "./dinero-CIVmXLL-.js";
|
9
|
+
import { useRouter as I } from "vue-router";
|
10
|
+
import { u as K } from "./index-CIIojtd5.js";
|
11
|
+
import { _ as P } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
12
|
+
const O = /* @__PURE__ */ w({
|
13
|
+
__name: "SettlementTable",
|
14
|
+
props: {
|
15
|
+
data: {
|
16
|
+
type: Array,
|
17
|
+
required: !0
|
18
|
+
},
|
19
|
+
loading: {
|
20
|
+
type: Boolean,
|
21
|
+
required: !0
|
22
|
+
}
|
23
|
+
},
|
24
|
+
emits: ["row-click"],
|
25
|
+
setup(y, { emit: i }) {
|
26
|
+
const e = y, r = i, s = S(""), m = [
|
27
|
+
{
|
28
|
+
header: () => "Settlement ID",
|
29
|
+
accessorKey: "id"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
header: () => "Created At",
|
33
|
+
accessorKey: "transactionAt",
|
34
|
+
meta: {
|
35
|
+
width: "180px"
|
36
|
+
}
|
37
|
+
},
|
38
|
+
{
|
39
|
+
header: () => "Sales Amount",
|
40
|
+
accessorKey: "amount"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
header: () => "Fee",
|
44
|
+
accessorKey: "fee"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
header: () => "Settlement Amount",
|
48
|
+
accessorKey: "payout"
|
49
|
+
}
|
50
|
+
], l = D(() => e.data.map((t) => ({
|
51
|
+
id: t._id,
|
52
|
+
transactionAt: _(t.createdAt).format("YYYY-MM-DD"),
|
53
|
+
amount: f(t.totalAmount).toFormat("$0.00"),
|
54
|
+
fee: f(t.totalFee).toFormat("$0.00"),
|
55
|
+
payout: f(t.totalPayout).toFormat("$0.00")
|
56
|
+
})));
|
57
|
+
return (t, o) => {
|
58
|
+
const d = h("FmTable");
|
59
|
+
return v(), x(d, {
|
60
|
+
modelValue: s.value,
|
61
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => s.value = a),
|
62
|
+
"row-data": l.value,
|
63
|
+
"column-defs": m,
|
64
|
+
loading: e.loading,
|
65
|
+
onRowClick: o[1] || (o[1] = (a) => r("row-click", e.data.at(a.index)))
|
66
|
+
}, null, 8, ["modelValue", "row-data", "loading"]);
|
67
|
+
};
|
68
|
+
}
|
69
|
+
}), Y = { class: "flex justify-between items-center mb-6" }, B = { class: "flex space-x-4 items-center" }, L = { class: "flex space-x-4 items-center" }, J = /* @__PURE__ */ w({
|
70
|
+
__name: "Settlement",
|
71
|
+
setup(y) {
|
72
|
+
const i = I(), { dateRange: e } = K({
|
73
|
+
dateRange: {
|
74
|
+
startDate: _().startOf("day").toISOString(),
|
75
|
+
endDate: _().endOf("day").toISOString()
|
76
|
+
}
|
77
|
+
}), { isLoading: r, startAsyncCall: s } = V(!0), { currentRestaurant: m } = b(), l = S([]);
|
78
|
+
async function t() {
|
79
|
+
await s(async () => {
|
80
|
+
const d = await g.readRestaurantSettlements(
|
81
|
+
{
|
82
|
+
start: e.value.startDate,
|
83
|
+
end: e.value.endDate
|
84
|
+
}
|
85
|
+
);
|
86
|
+
l.value = d;
|
87
|
+
});
|
88
|
+
}
|
89
|
+
function o() {
|
90
|
+
t();
|
91
|
+
}
|
92
|
+
return A(o), k(m, o), (d, a) => {
|
93
|
+
const R = h("FmDateRangePicker");
|
94
|
+
return v(), x($, {
|
95
|
+
title: "Settlements",
|
96
|
+
description: "Settlements are the finalization of financial transactions, transferring funds to complete payments.",
|
97
|
+
loading: n(r)
|
98
|
+
}, {
|
99
|
+
default: F(() => [
|
100
|
+
u("div", Y, [
|
101
|
+
u("div", B, [
|
102
|
+
p(R, {
|
103
|
+
modelValue: n(e),
|
104
|
+
"onUpdate:modelValue": [
|
105
|
+
a[0] || (a[0] = (c) => C(e) ? e.value = c : null),
|
106
|
+
t
|
107
|
+
],
|
108
|
+
compare: "",
|
109
|
+
"show-predefined-range": ""
|
110
|
+
}, null, 8, ["modelValue"])
|
111
|
+
]),
|
112
|
+
u("div", L, [
|
113
|
+
p(P, {
|
114
|
+
button: {
|
115
|
+
appendIcon: "file_download",
|
116
|
+
variant: "primary",
|
117
|
+
label: "Export"
|
118
|
+
},
|
119
|
+
handler: async () => {
|
120
|
+
await n(g).downloadRestaurantSettlementReport({
|
121
|
+
start: n(e).startDate,
|
122
|
+
end: n(e).endDate
|
123
|
+
});
|
124
|
+
}
|
125
|
+
}, null, 8, ["handler"])
|
126
|
+
])
|
127
|
+
]),
|
128
|
+
p(O, {
|
129
|
+
loading: n(r),
|
130
|
+
data: l.value,
|
131
|
+
onRowClick: a[1] || (a[1] = (c) => n(i).push({
|
132
|
+
name: "mf-payment-settlement-transaction",
|
133
|
+
params: {
|
134
|
+
settlementId: c._id
|
135
|
+
}
|
136
|
+
}))
|
137
|
+
}, null, 8, ["loading", "data"])
|
138
|
+
]),
|
139
|
+
_: 1
|
140
|
+
}, 8, ["loading"]);
|
141
|
+
};
|
142
|
+
}
|
143
|
+
});
|
144
|
+
export {
|
145
|
+
J as default
|
146
|
+
};
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent as F, resolveComponent as p, openBlock as S, createBlock as w, normalizeClass as U, withCtx as r, createElementVNode as t, toDisplayString as u, unref as c, ref as _, onMounted as z, watch as L, createVNode as a, createTextVNode as i, h as C } from "vue";
|
2
|
-
import { e as E, u as G } from "./index-
|
2
|
+
import { e as E, u as G } from "./index-DflgpHga.js";
|
3
3
|
import "@feedmepos/ui-library";
|
4
4
|
import { d as B } from "./dinero-CIVmXLL-.js";
|
5
|
-
import { g as j, a as Y } from "./assets-
|
6
|
-
import { t as H, a as q } from "./transaction-
|
5
|
+
import { g as j, a as Y } from "./assets-nIQ0r4oP.js";
|
6
|
+
import { t as H, a as q } from "./transaction-B4rEbejx.js";
|
7
7
|
import { _ as J } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
8
8
|
import { useRouter as Q } from "vue-router";
|
9
|
-
import { s as W } from "./index-
|
9
|
+
import { s as W } from "./index-DhPhiNvt.js";
|
10
10
|
import { useCoreStore as X } from "@feedmepos/mf-common";
|
11
11
|
const Z = /* @__PURE__ */ F({
|
12
12
|
__name: "Status",
|