@feedmepos/mf-payment 1.0.28 → 1.1.0-beta.1
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/{PDFViewer-xrBtzrlR.js → PDFViewer-BQfgFexr.js} +2 -1
- package/dist/{PayoutAccount-QybE7meK.js → PayoutAccount-BHJpjUqD.js} +5 -5
- package/dist/{PayoutAccount-C53rv89t.js → PayoutAccount-DCkf_1yL.js} +5 -4
- package/dist/PayoutAccountSetting-Bk-g7ucZ.js +723 -0
- package/dist/{Restaurant-B1ed_oVp.js → Restaurant-D2qq84VL.js} +56 -54
- package/dist/{RestaurantSetting-CKG5jn2J.js → RestaurantSetting-DAtrtX6S.js} +3 -3
- package/dist/{Settlement-SeGVEdZj.js → Settlement-BVIsszEJ.js} +37 -34
- package/dist/{Settlement-Fh86ozFD.js → Settlement-Cx1tc5wt.js} +9 -8
- package/dist/{SettlementTransactions-BSF2Jw-L.js → SettlementTransactions-C82DyYlO.js} +14 -14
- package/dist/{SettlementTransactions-CHRsIcoh.js → SettlementTransactions-CeN4SRWa.js} +39 -39
- package/dist/{Terminal-BUBkiYYw.js → Terminal-Az2k8E6F.js} +323 -342
- package/dist/{TerminalSetting-CfCa-6pK.js → TerminalSetting-C-xlLYXa.js} +27 -27
- package/dist/Transaction-CC8hc8_r.js +250 -0
- package/dist/{Transaction-DWzZ31qR.js → Transaction-Y_mc0yQv.js} +123 -105
- package/dist/{TransactionOld-Pj412ujb.js → TransactionOld-BxhI-wwm.js} +7 -7
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-dwwesT4_.js +304 -0
- package/dist/api/payout/index.d.ts +5 -1
- package/dist/api/terminal/index.d.ts +6 -10
- package/dist/api/transaction/index.d.ts +12 -11
- package/dist/{app-DC4HbItX.js → app-OBp4HaEY.js} +853 -791
- package/dist/app.js +1 -1
- package/dist/{assets-BySnqkmr.js → assets-pLBp82yE.js} +208 -56
- package/dist/components/SourceSelector.vue.d.ts +12 -0
- package/dist/{grafana-b2ht7XmY.js → grafana-hv7inD36.js} +2 -2
- package/dist/{index-d3nubgyT.js → index-1xF00w89.js} +1 -1
- package/dist/{index-CvJ2nft4.js → index-CFYD8Dv4.js} +1 -1
- package/dist/index-Cqq3p9PP.js +66 -0
- package/dist/{index-DXV5GQaF.js → index-DD5mEX0D.js} +1 -1
- package/dist/{index-iiG_kivD.js → index-DGKxdJVj.js} +8163 -8081
- package/dist/index-oM4Z9ffu.js +45 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-Du3twb8U.js → index.vue_vue_type_script_setup_true_lang-C9tnqgzY.js} +8 -7
- package/dist/model/payout-account.d.ts +1 -1
- package/dist/model/transaction.d.ts +13 -5
- package/dist/package.json +2 -2
- package/dist/{payout-account-DPdwKVTr.js → payout-account-DPaS3dIs.js} +2 -2
- package/dist/router/index.d.ts +1 -0
- package/dist/stores/payoutAccount.d.ts +4 -4
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +133 -0
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +133 -0
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/cell/Actions.vue.d.ts +8 -0
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +10 -23
- package/dist/views/admin/{terminal-transaction/TerminalTransaction.vue.d.ts → payout-account/tabs/gateway/MacauPassGateway.vue.d.ts} +1 -1
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/Terminal.vue.d.ts +4 -1
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +2 -2
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +2 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +16 -16
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +8 -8
- package/dist/views/{admin/terminal-transaction → transaction}/cell/Actions.vue.d.ts +3 -3
- package/package.json +2 -2
- package/dist/PayoutAccountSetting-Zhkm_GN8.js +0 -426
- package/dist/TerminalTransaction-DIM7WO_C.js +0 -589
- package/dist/TerminalTransaction-DQZnx7dy.js +0 -333
- package/dist/Transaction-DRYwBnHK.js +0 -247
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-B3FGhKjA.js +0 -159
- package/dist/components/PayoutAccountSelector.vue.d.ts +0 -23
- package/dist/index-BJpE0YhF.js +0 -52
- package/dist/index-BqzuW2qa.js +0 -40
- package/dist/index-Dwv1hbHU.js +0 -77
- package/dist/transaction-CzLoSCVe.js +0 -136
- package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +0 -50
- package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +0 -52
- package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +0 -7
- package/dist/views/admin/terminal-transaction/cell/Method.vue.d.ts +0 -7
- package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +0 -2
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/cell/Method.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +0 -7
@@ -1,12 +1,12 @@
|
|
1
|
-
import { defineComponent as F, ref as y, resolveComponent as g, openBlock as x, createBlock as A, withCtx as $, createVNode as f, createElementVNode as d, normalizeStyle as T, createElementBlock as R, Fragment as
|
2
|
-
import { u as O } from "./index-
|
1
|
+
import { defineComponent as F, ref as y, resolveComponent as g, openBlock as x, createBlock as A, withCtx as $, createVNode as f, createElementVNode as d, normalizeStyle as T, createElementBlock as R, Fragment as z, renderList as q, computed as C, watch as I, onMounted as N, unref as h, toDisplayString as B, normalizeClass as W, isRef as E, h as P } from "vue";
|
2
|
+
import { u as O } from "./index-1xF00w89.js";
|
3
3
|
import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
4
4
|
import "@feedmepos/ui-library";
|
5
|
-
import { u as G } from "./index-
|
5
|
+
import { u as G } from "./index-DGKxdJVj.js";
|
6
6
|
import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
7
|
-
import { r as H } from "./index-
|
7
|
+
import { r as H } from "./index-CFYD8Dv4.js";
|
8
8
|
import { useRouter as J } from "vue-router";
|
9
|
-
import { g as X } from "./grafana-
|
9
|
+
import { g as X } from "./grafana-hv7inD36.js";
|
10
10
|
const Y = ["id"], L = /* @__PURE__ */ F({
|
11
11
|
__name: "FmTableSelection",
|
12
12
|
props: {
|
@@ -17,8 +17,8 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
17
17
|
setup(p, { emit: l }) {
|
18
18
|
const m = l, u = p, s = y(!1);
|
19
19
|
return (v, c) => {
|
20
|
-
const
|
21
|
-
return x(), A(
|
20
|
+
const a = g("FmButton"), o = g("FmMenuItem"), b = g("FmMenu");
|
21
|
+
return x(), A(b, {
|
22
22
|
"max-height": 264,
|
23
23
|
shift: "",
|
24
24
|
onMenuChanged: c[0] || (c[0] = (e) => s.value = e)
|
@@ -26,7 +26,7 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
26
26
|
"menu-button": $(() => {
|
27
27
|
var e;
|
28
28
|
return [
|
29
|
-
f(
|
29
|
+
f(a, {
|
30
30
|
icon: s.value ? "expand_less" : "expand_more",
|
31
31
|
label: (e = v.items.find((t) => t.value === u.value)) == null ? void 0 : e.label,
|
32
32
|
"icon-position": "append",
|
@@ -41,7 +41,7 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
41
41
|
style: T({ maxHeight: `${e}px` }),
|
42
42
|
class: "bg-fm-color-neutral-white flex flex-col overflow-y-auto px-4 py-12 rounded-md shadow-light-300 w-[75px]"
|
43
43
|
}, [
|
44
|
-
(x(!0), R(
|
44
|
+
(x(!0), R(z, null, q(v.items, (t) => (x(), A(o, {
|
45
45
|
key: t.value,
|
46
46
|
label: t.label,
|
47
47
|
value: t.value,
|
@@ -54,9 +54,9 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
54
54
|
});
|
55
55
|
};
|
56
56
|
}
|
57
|
-
}), Z = { class: "basis-72 bg-white flex items-center justify-between px-24 pt-6" }, ee = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, te = { class: "flex gap-8 items-center" },
|
57
|
+
}), Z = { class: "basis-72 bg-white flex items-center justify-between px-24 pt-6" }, ee = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, te = { class: "flex gap-8 items-center" }, ae = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary xs:hidden xs:invisible" }, ne = {
|
58
58
|
class: /* @__PURE__ */ W(["flex gap-8 items-center"])
|
59
|
-
},
|
59
|
+
}, oe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, le = { class: "flex gap-8" }, se = /* @__PURE__ */ F({
|
60
60
|
__name: "index",
|
61
61
|
props: {
|
62
62
|
columnDefs: {
|
@@ -77,31 +77,32 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
77
77
|
const u = [10, 20, 30, 50, 100].map((_) => ({
|
78
78
|
label: _.toString(),
|
79
79
|
value: _
|
80
|
-
})), s = p, v = m, { isLoading: c, startLoading:
|
81
|
-
if (
|
80
|
+
})), s = p, v = m, { isLoading: c, startLoading: a, stopLoading: o } = G(!0), b = y(), e = y(), t = y(10), w = y(0), r = y(1), k = async function(_ = !1) {
|
81
|
+
if (a(), _ && (e.value = [], r.value != 1)) {
|
82
82
|
r.value = 1;
|
83
83
|
return;
|
84
84
|
}
|
85
|
-
const
|
86
|
-
e.value =
|
87
|
-
},
|
85
|
+
const n = await s.paginate(t.value, r.value);
|
86
|
+
e.value = n.resources, w.value = n.meta.totalPages ?? 1, o();
|
87
|
+
}, D = C(() => r.value > 1), K = C(() => r.value < w.value), U = C(() => {
|
88
88
|
var _;
|
89
89
|
return (_ = e.value) == null ? void 0 : _.map(s.rowsDefs);
|
90
90
|
});
|
91
91
|
return I(t, () => k(!0)), I(r, () => k()), N(() => k()), l({
|
92
92
|
reset: () => k(!0)
|
93
|
-
}), (_,
|
93
|
+
}), (_, n) => {
|
94
94
|
const M = g("FmTable"), S = g("FmButton");
|
95
|
-
return x(), R(
|
95
|
+
return x(), R(z, null, [
|
96
96
|
f(M, {
|
97
|
-
modelValue:
|
98
|
-
"onUpdate:modelValue":
|
99
|
-
loading:
|
97
|
+
modelValue: b.value,
|
98
|
+
"onUpdate:modelValue": n[0] || (n[0] = (i) => b.value = i),
|
99
|
+
loading: h(c),
|
100
100
|
"page-size": t.value,
|
101
|
-
"row-data":
|
101
|
+
"row-data": U.value,
|
102
102
|
"column-defs": p.columnDefs,
|
103
103
|
"hide-footer": !0,
|
104
|
-
|
104
|
+
"shrink-at": !1,
|
105
|
+
onRowClick: n[1] || (n[1] = (i) => {
|
105
106
|
var V;
|
106
107
|
return v("row-click", (V = e.value) == null ? void 0 : V.at(i.index));
|
107
108
|
})
|
@@ -109,16 +110,16 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
109
110
|
d("div", Z, [
|
110
111
|
d("div", ee, [
|
111
112
|
d("div", te, [
|
112
|
-
|
113
|
+
n[6] || (n[6] = d("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
|
113
114
|
f(L, {
|
114
|
-
items:
|
115
|
+
items: h(u),
|
115
116
|
value: t.value,
|
116
|
-
"onUpdate:modelValue":
|
117
|
+
"onUpdate:modelValue": n[2] || (n[2] = (i) => t.value = i)
|
117
118
|
}, null, 8, ["items", "value"])
|
118
119
|
]),
|
119
|
-
d("span",
|
120
|
+
d("span", ae, B((r.value - 1) * t.value) + " - " + B((r.value - 1) * t.value + t.value), 1)
|
120
121
|
]),
|
121
|
-
d("div",
|
122
|
+
d("div", ne, [
|
122
123
|
f(L, {
|
123
124
|
items: Array.from(Array(w.value), (i, V) => V + 1).map(
|
124
125
|
(i) => ({
|
@@ -127,23 +128,23 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
127
128
|
})
|
128
129
|
),
|
129
130
|
value: r.value,
|
130
|
-
"onUpdate:modelValue":
|
131
|
+
"onUpdate:modelValue": n[3] || (n[3] = (i) => r.value = i)
|
131
132
|
}, null, 8, ["items", "value"]),
|
132
|
-
d("span",
|
133
|
+
d("span", oe, " Page " + B(r.value) + " of " + B(w.value), 1),
|
133
134
|
d("div", le, [
|
134
135
|
f(S, {
|
135
|
-
disabled: !
|
136
|
+
disabled: !D.value,
|
136
137
|
icon: "chevron_left",
|
137
138
|
"icon-color": "neutral-black",
|
138
139
|
variant: "tertiary",
|
139
|
-
onClick:
|
140
|
+
onClick: n[4] || (n[4] = () => r.value -= 1)
|
140
141
|
}, null, 8, ["disabled"]),
|
141
142
|
f(S, {
|
142
|
-
disabled: !
|
143
|
+
disabled: !K.value,
|
143
144
|
icon: "chevron_right",
|
144
145
|
"icon-color": "neutral-black",
|
145
146
|
variant: "tertiary",
|
146
|
-
onClick:
|
147
|
+
onClick: n[5] || (n[5] = () => r.value += 1)
|
147
148
|
}, null, 8, ["disabled"])
|
148
149
|
])
|
149
150
|
])
|
@@ -205,34 +206,35 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
205
206
|
]);
|
206
207
|
};
|
207
208
|
}
|
208
|
-
}), ie = { class: "flex
|
209
|
+
}), ie = { class: "flex justify-between mb-6" }, xe = /* @__PURE__ */ F({
|
209
210
|
__name: "Restaurant",
|
210
211
|
setup(p) {
|
211
212
|
const { searchKey: l } = O({
|
212
|
-
searchKey: ""
|
213
|
+
searchKey: "",
|
214
|
+
crtbiz: !1
|
213
215
|
}), m = y(), u = J();
|
214
216
|
let s;
|
215
217
|
I(l, async () => {
|
216
218
|
s && clearTimeout(s), s = setTimeout(
|
217
219
|
() => {
|
218
|
-
var
|
219
|
-
return (
|
220
|
+
var a;
|
221
|
+
return (a = m.value) == null ? void 0 : a.reset();
|
220
222
|
},
|
221
223
|
700
|
222
224
|
);
|
223
225
|
});
|
224
|
-
const v = function(
|
225
|
-
const
|
226
|
+
const v = function(a) {
|
227
|
+
const o = a.payoutAccount;
|
226
228
|
return {
|
227
|
-
id:
|
228
|
-
name:
|
229
|
-
hasPayoutAccount: (
|
229
|
+
id: a._id,
|
230
|
+
name: a.profile.name,
|
231
|
+
hasPayoutAccount: (o == null ? void 0 : o.enable) && o.status != "NEW"
|
230
232
|
};
|
231
233
|
}, c = [
|
232
234
|
{
|
233
235
|
header: () => "ID",
|
234
236
|
accessorKey: "id",
|
235
|
-
cell: ({ cell:
|
237
|
+
cell: ({ cell: a }) => P(Q, { data: a.getValue() }),
|
236
238
|
meta: {
|
237
239
|
maxWidth: "72px",
|
238
240
|
textAlign: "right"
|
@@ -248,7 +250,7 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
248
250
|
meta: {
|
249
251
|
maxWidth: "64px"
|
250
252
|
},
|
251
|
-
cell: ({ cell:
|
253
|
+
cell: ({ cell: a, row: o }) => P(re, { row: o, data: a.getValue() })
|
252
254
|
},
|
253
255
|
{
|
254
256
|
header: () => "Actions",
|
@@ -256,20 +258,20 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
256
258
|
meta: {
|
257
259
|
maxWidth: "64px"
|
258
260
|
},
|
259
|
-
cell: ({ row:
|
261
|
+
cell: ({ row: a }) => P(ue, { id: a.original.id })
|
260
262
|
}
|
261
263
|
];
|
262
|
-
return (
|
263
|
-
const
|
264
|
+
return (a, o) => {
|
265
|
+
const b = g("FmSearch");
|
264
266
|
return x(), A(j, {
|
265
267
|
title: "Restaurants",
|
266
268
|
loading: !1
|
267
269
|
}, {
|
268
270
|
default: $(() => [
|
269
271
|
d("div", ie, [
|
270
|
-
f(
|
271
|
-
"model-value":
|
272
|
-
"onUpdate:modelValue":
|
272
|
+
f(b, {
|
273
|
+
"model-value": h(l),
|
274
|
+
"onUpdate:modelValue": o[0] || (o[0] = (e) => E(l) ? l.value = e : null),
|
273
275
|
class: "mr-8",
|
274
276
|
label: "Search",
|
275
277
|
placeholder: "Search Restaurants ..."
|
@@ -280,14 +282,14 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
280
282
|
ref: m,
|
281
283
|
"column-defs": c,
|
282
284
|
"rows-defs": v,
|
283
|
-
paginate: (e, t) =>
|
285
|
+
paginate: (e, t) => h(H).readRestaurantWithPagination({
|
284
286
|
limit: e,
|
285
287
|
skip: t - 1,
|
286
288
|
sortBy: "name",
|
287
|
-
search:
|
289
|
+
search: h(l),
|
288
290
|
descending: !1
|
289
291
|
}),
|
290
|
-
onRowClick:
|
292
|
+
onRowClick: o[1] || (o[1] = (e) => h(u).push({
|
291
293
|
name: "mf-payment-admin.restaurant-settings",
|
292
294
|
params: {
|
293
295
|
restaurantId: e._id
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as C, ref as I, resolveComponent as d, openBlock as f, createBlock as F, withCtx as k, createVNode as u, unref as a, createElementVNode as D, createCommentVNode as S, onMounted as P, computed as q, createElementBlock as K, Fragment as M, resolveDynamicComponent as O, normalizeProps as $, mergeProps as B, isRef as N } from "vue";
|
2
|
-
import { g as T, b as R, u as E, e as U } from "./index-
|
2
|
+
import { g as T, b as R, u as E, e as U } from "./index-DGKxdJVj.js";
|
3
3
|
import { _ as Y } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
4
4
|
import { useRouter as A } from "vue-router";
|
5
|
-
import { u as L } from "./index-
|
5
|
+
import { u as L } from "./index-1xF00w89.js";
|
6
6
|
import { z as p, a as v } from "./validator-D5jtpt9A.js";
|
7
7
|
import { useCoreStore as j } from "@feedmepos/mf-common";
|
8
|
-
import { r as z } from "./index-
|
8
|
+
import { r as z } from "./index-CFYD8Dv4.js";
|
9
9
|
const _ = {
|
10
10
|
async get(n) {
|
11
11
|
return T(
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import { defineComponent as T, ref as x, computed as R, resolveComponent as w, openBlock as V, createBlock as C, h as Y, watch as
|
2
|
-
import { u as j } from "./index-
|
1
|
+
import { defineComponent as T, ref as x, computed as R, resolveComponent as w, openBlock as V, createBlock as C, h as Y, watch as h, createElementBlock as P, Fragment as I, createElementVNode as a, createVNode as n, withCtx as p, createTextVNode as b, toDisplayString as v, unref as u, onMounted as U, isRef as N, createCommentVNode as _ } from "vue";
|
2
|
+
import { u as j } from "./index-DGKxdJVj.js";
|
3
3
|
import { h as D } from "./moment-h96o7c8I.js";
|
4
4
|
import { useCoreStore as q } from "@feedmepos/mf-common";
|
5
5
|
import { _ as z } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
6
|
-
import { s as K } from "./index-
|
6
|
+
import { s as K } from "./index-DD5mEX0D.js";
|
7
7
|
import { useDialogChild as E, useDialog as O } from "@feedmepos/ui-library";
|
8
|
-
import { d } from "./dinero-CIVmXLL-.js";
|
9
|
-
import { _ as
|
8
|
+
import { d as i } from "./dinero-CIVmXLL-.js";
|
9
|
+
import { _ as M } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
10
10
|
import { useRouter as L } from "vue-router";
|
11
|
-
import { u as H } from "./index-
|
11
|
+
import { u as H } from "./index-1xF00w89.js";
|
12
12
|
import { _ as J } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
13
13
|
import { _ as Q } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-p4qddIbp.js";
|
14
14
|
import { _ as W } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
@@ -26,11 +26,11 @@ const G = /* @__PURE__ */ T({
|
|
26
26
|
},
|
27
27
|
emits: ["row-click"],
|
28
28
|
setup(m, { emit: g }) {
|
29
|
-
const r = m, l = g,
|
29
|
+
const r = m, l = g, d = x(""), S = [
|
30
30
|
{
|
31
31
|
header: () => "Settlement ID",
|
32
32
|
accessorKey: "id",
|
33
|
-
cell: ({ cell: t }) => Y(
|
33
|
+
cell: ({ cell: t }) => Y(M, { data: t.getValue() })
|
34
34
|
},
|
35
35
|
{
|
36
36
|
header: () => "Bank",
|
@@ -64,16 +64,17 @@ const G = /* @__PURE__ */ T({
|
|
64
64
|
bank: t.beneficiaryBank.name,
|
65
65
|
accountNo: t.beneficiaryBank.accountNumber,
|
66
66
|
transactionAt: D(t.createdAt).format("YYYY-MM-DD"),
|
67
|
-
amount:
|
68
|
-
fee:
|
69
|
-
payout:
|
67
|
+
amount: i(t.totalAmount).toFormat("$0.00"),
|
68
|
+
fee: i(t.totalFee).toFormat("$0.00"),
|
69
|
+
payout: i(t.totalPayout).toFormat("$0.00")
|
70
70
|
})));
|
71
71
|
return (t, o) => {
|
72
72
|
const e = w("FmTable");
|
73
73
|
return V(), C(e, {
|
74
|
-
modelValue:
|
75
|
-
"onUpdate:modelValue": o[0] || (o[0] = (s) =>
|
74
|
+
modelValue: d.value,
|
75
|
+
"onUpdate:modelValue": o[0] || (o[0] = (s) => d.value = s),
|
76
76
|
"row-data": c.value,
|
77
|
+
"shrink-at": !1,
|
77
78
|
"column-defs": S,
|
78
79
|
loading: r.loading,
|
79
80
|
onRowClick: o[1] || (o[1] = (s) => l("row-click", r.data.at(s.index)))
|
@@ -94,11 +95,11 @@ const G = /* @__PURE__ */ T({
|
|
94
95
|
},
|
95
96
|
emits: ["row-click"],
|
96
97
|
setup(m, { emit: g }) {
|
97
|
-
const r = m, l = g,
|
98
|
+
const r = m, l = g, d = x(""), S = [
|
98
99
|
{
|
99
100
|
header: () => "Settlement ID",
|
100
101
|
accessorKey: "id",
|
101
|
-
cell: ({ cell: t }) => Y(
|
102
|
+
cell: ({ cell: t }) => Y(M, { data: t.getValue() })
|
102
103
|
},
|
103
104
|
{
|
104
105
|
header: () => "Bank",
|
@@ -132,16 +133,17 @@ const G = /* @__PURE__ */ T({
|
|
132
133
|
bank: t.summary.bank.name,
|
133
134
|
accountNo: t.summary.bank.accountNo,
|
134
135
|
transactionAt: D(t.summary.completedAt).format("YYYY-MM-DD"),
|
135
|
-
amount:
|
136
|
-
fee:
|
137
|
-
payout:
|
136
|
+
amount: i(t.summary.amount).toFormat("$0.00"),
|
137
|
+
fee: i(t.summary.commission).toFormat("$0.00"),
|
138
|
+
payout: i(t.summary.payout).toFormat("$0.00")
|
138
139
|
})));
|
139
140
|
return (t, o) => {
|
140
141
|
const e = w("FmTable");
|
141
142
|
return V(), C(e, {
|
142
|
-
modelValue:
|
143
|
-
"onUpdate:modelValue": o[0] || (o[0] = (s) =>
|
143
|
+
modelValue: d.value,
|
144
|
+
"onUpdate:modelValue": o[0] || (o[0] = (s) => d.value = s),
|
144
145
|
"row-data": c.value,
|
146
|
+
"shrink-at": !1,
|
145
147
|
"column-defs": S,
|
146
148
|
loading: r.loading,
|
147
149
|
onRowClick: o[1] || (o[1] = (s) => l("row-click", r.data.at(s.index)))
|
@@ -162,7 +164,7 @@ const G = /* @__PURE__ */ T({
|
|
162
164
|
setup(m) {
|
163
165
|
const g = m;
|
164
166
|
E();
|
165
|
-
const r = x(g.settlement.record), l = x(g.settlement.record),
|
167
|
+
const r = x(g.settlement.record), l = x(g.settlement.record), d = x(""), S = [
|
166
168
|
{
|
167
169
|
header: () => "Transaction ID",
|
168
170
|
accessorKey: "referenceNo"
|
@@ -181,21 +183,21 @@ const G = /* @__PURE__ */ T({
|
|
181
183
|
{
|
182
184
|
header: () => "Sales Amount",
|
183
185
|
accessorKey: "amount",
|
184
|
-
cell: ({ cell: o }) =>
|
186
|
+
cell: ({ cell: o }) => i(o.getValue()).toFormat("$0.00")
|
185
187
|
},
|
186
188
|
{
|
187
189
|
header: () => "Fee",
|
188
190
|
accessorKey: "commission",
|
189
|
-
cell: ({ cell: o }) =>
|
191
|
+
cell: ({ cell: o }) => i(o.getValue()).toFormat("$0.00")
|
190
192
|
},
|
191
193
|
{
|
192
194
|
header: () => "Settlement Amount",
|
193
195
|
accessorKey: "netAmount",
|
194
|
-
cell: ({ cell: o }) =>
|
196
|
+
cell: ({ cell: o }) => i(o.getValue()).toFormat("$0.00")
|
195
197
|
}
|
196
198
|
], c = x("");
|
197
199
|
let t;
|
198
|
-
return
|
200
|
+
return h(c, async () => {
|
199
201
|
t && clearTimeout(t), t = setTimeout(() => {
|
200
202
|
var o = new RegExp(c.value, "i");
|
201
203
|
l.value = r.value.filter((e) => {
|
@@ -287,13 +289,13 @@ const G = /* @__PURE__ */ T({
|
|
287
289
|
n(F, { class: "p-0" }, {
|
288
290
|
default: p(() => [
|
289
291
|
e[12] || (e[12] = a("b", null, "Amount", -1)),
|
290
|
-
b(": " + v(u(
|
292
|
+
b(": " + v(u(i)(m.settlement.summary.amount).toFormat("$0.00")), 1),
|
291
293
|
e[13] || (e[13] = a("br", null, null, -1)),
|
292
294
|
e[14] || (e[14] = a("b", null, "Fee", -1)),
|
293
|
-
b(": " + v(u(
|
295
|
+
b(": " + v(u(i)(m.settlement.summary.commission).toFormat("$0.00")), 1),
|
294
296
|
e[15] || (e[15] = a("br", null, null, -1)),
|
295
297
|
e[16] || (e[16] = a("b", null, "Payout", -1)),
|
296
|
-
b(": " + v(u(
|
298
|
+
b(": " + v(u(i)(m.settlement.summary.payout).toFormat("$0.00")), 1)
|
297
299
|
]),
|
298
300
|
_: 1
|
299
301
|
})
|
@@ -312,8 +314,9 @@ const G = /* @__PURE__ */ T({
|
|
312
314
|
}, null, 8, ["modelValue"])
|
313
315
|
]),
|
314
316
|
n(y, {
|
315
|
-
modelValue:
|
316
|
-
"onUpdate:modelValue": e[1] || (e[1] = (f) =>
|
317
|
+
modelValue: d.value,
|
318
|
+
"onUpdate:modelValue": e[1] || (e[1] = (f) => d.value = f),
|
319
|
+
"shrink-at": !1,
|
317
320
|
"search-value": c.value,
|
318
321
|
"row-data": l.value,
|
319
322
|
"column-defs": S
|
@@ -330,7 +333,7 @@ const G = /* @__PURE__ */ T({
|
|
330
333
|
startDate: D().startOf("day").format("YYYY-MM-DD"),
|
331
334
|
endDate: D().endOf("day").format("YYYY-MM-DD")
|
332
335
|
}
|
333
|
-
}), { isLoading:
|
336
|
+
}), { isLoading: d, startAsyncCall: S } = j(!0), { currentRestaurant: c } = q(), t = O(), o = x([]), e = x([]);
|
334
337
|
async function s() {
|
335
338
|
const y = await K.readRestaurantSettlements(
|
336
339
|
{
|
@@ -364,7 +367,7 @@ const G = /* @__PURE__ */ T({
|
|
364
367
|
contentComponentProps: { settlement: y }
|
365
368
|
});
|
366
369
|
}
|
367
|
-
return U(k),
|
370
|
+
return U(k), h([c, l], k), (y, f) => {
|
368
371
|
const B = w("FmTabs");
|
369
372
|
return V(), C(z, {
|
370
373
|
title: "Settlements",
|
@@ -418,13 +421,13 @@ const G = /* @__PURE__ */ T({
|
|
418
421
|
]),
|
419
422
|
u(r) === "fiuu" ? (V(), C(X, {
|
420
423
|
key: 0,
|
421
|
-
loading: u(
|
424
|
+
loading: u(d),
|
422
425
|
data: e.value,
|
423
426
|
onRowClick: $
|
424
427
|
}, null, 8, ["loading", "data"])) : _("", !0),
|
425
428
|
u(r) === "feedme" ? (V(), C(G, {
|
426
429
|
key: 1,
|
427
|
-
loading: u(
|
430
|
+
loading: u(d),
|
428
431
|
data: o.value,
|
429
432
|
onRowClick: f[2] || (f[2] = (A) => u(g).push({
|
430
433
|
name: "mf-payment-settlement-transaction",
|
@@ -1,16 +1,16 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { u as D } from "./index-
|
1
|
+
import { defineComponent as h, ref as C, computed as x, resolveComponent as d, openBlock as k, createBlock as A, h as B, watch as V, onMounted as I, unref as a, withCtx as b, createElementVNode as y, createVNode as s, isRef as $, createElementBlock as L, Fragment as K, renderList as E } from "vue";
|
2
|
+
import { u as D } from "./index-DGKxdJVj.js";
|
3
3
|
import { h as g } from "./moment-h96o7c8I.js";
|
4
|
-
import { s as c } from "./index-
|
4
|
+
import { s as c } from "./index-DD5mEX0D.js";
|
5
5
|
import { useSnackbar as T } from "@feedmepos/ui-library";
|
6
6
|
import { d as v } from "./dinero-CIVmXLL-.js";
|
7
7
|
import { _ as P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
8
8
|
import { useRouter as q } from "vue-router";
|
9
9
|
import { _ as N } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
10
|
-
import { u as O } from "./index-
|
10
|
+
import { u as O } from "./index-1xF00w89.js";
|
11
11
|
import { u as U } from "./error-K1CakhA9.js";
|
12
12
|
import { _ as j } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
13
|
-
const z = /* @__PURE__ */
|
13
|
+
const z = /* @__PURE__ */ h({
|
14
14
|
__name: "SettlementTable",
|
15
15
|
props: {
|
16
16
|
data: {
|
@@ -24,7 +24,7 @@ const z = /* @__PURE__ */ C({
|
|
24
24
|
},
|
25
25
|
emits: ["row-click"],
|
26
26
|
setup(w, { emit: u }) {
|
27
|
-
const r = w, i = u, o =
|
27
|
+
const r = w, i = u, o = C(""), p = [
|
28
28
|
{
|
29
29
|
header: () => "Settlement ID",
|
30
30
|
accessorKey: "id",
|
@@ -62,16 +62,17 @@ const z = /* @__PURE__ */ C({
|
|
62
62
|
modelValue: o.value,
|
63
63
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => o.value = l),
|
64
64
|
"row-data": f.value,
|
65
|
+
"shrink-at": !1,
|
65
66
|
"column-defs": p,
|
66
67
|
loading: r.loading,
|
67
68
|
onRowClick: n[1] || (n[1] = (l) => i("row-click", r.data.at(l.index)))
|
68
69
|
}, null, 8, ["modelValue", "row-data", "loading"]);
|
69
70
|
};
|
70
71
|
}
|
71
|
-
}), G = { class: "flex justify-between items-center mb-6" }, Q = { class: "flex space-x-4 items-center" }, H = { class: "flex space-x-4" }, ie = /* @__PURE__ */
|
72
|
+
}), G = { class: "flex justify-between items-center mb-6" }, Q = { class: "flex space-x-4 items-center" }, H = { class: "flex space-x-4" }, ie = /* @__PURE__ */ h({
|
72
73
|
__name: "Settlement",
|
73
74
|
setup(w) {
|
74
|
-
const { isLoading: u, startAsyncCall: r } = D(!0), i = D(!1), o =
|
75
|
+
const { isLoading: u, startAsyncCall: r } = D(!0), i = D(!1), o = C([]), p = q(), f = T(), { dateRange: e } = O({
|
75
76
|
dateRange: {
|
76
77
|
startDate: g().startOf("day").format("YYYY-MM-DD"),
|
77
78
|
endDate: g().endOf("day").format("YYYY-MM-DD")
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as
|
2
|
-
import { e as E, u as q } from "./index-
|
1
|
+
import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as B, normalizeClass as G, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as p, ref as x, onMounted as Y, watch as H, createVNode as n, createTextVNode as i, h as N } from "vue";
|
2
|
+
import { e as E, u as q } from "./index-DGKxdJVj.js";
|
3
3
|
import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
|
4
|
-
import { d as
|
5
|
-
import { g as W, a as X } from "./assets-
|
6
|
-
import { t as P, a as Z } from "./transaction-CzLoSCVe.js";
|
4
|
+
import { d as k } from "./dinero-CIVmXLL-.js";
|
5
|
+
import { g as W, a as X, t as P, b as Z } from "./assets-pLBp82yE.js";
|
7
6
|
import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
8
7
|
import { useRouter as te } from "vue-router";
|
9
|
-
import { s as ae } from "./index-
|
8
|
+
import { s as ae } from "./index-DD5mEX0D.js";
|
10
9
|
import { u as ne } from "./error-K1CakhA9.js";
|
11
10
|
import { w as oe } from "./Modal-DB8M9o1T.js";
|
12
11
|
const re = /* @__PURE__ */ w({
|
@@ -22,7 +21,7 @@ const re = /* @__PURE__ */ w({
|
|
22
21
|
}
|
23
22
|
return (A, _) => {
|
24
23
|
const b = g("FmBadge");
|
25
|
-
return F(),
|
24
|
+
return F(), B(b, {
|
26
25
|
inline: "",
|
27
26
|
class: G(m())
|
28
27
|
}, {
|
@@ -68,14 +67,14 @@ const re = /* @__PURE__ */ w({
|
|
68
67
|
const m = o;
|
69
68
|
return (A, _) => {
|
70
69
|
const b = g("FmButton");
|
71
|
-
return F(),
|
70
|
+
return F(), B(b, {
|
72
71
|
variant: "plain",
|
73
72
|
"prepend-icon": "delete",
|
74
73
|
onClick: _[0] || (_[0] = () => m("delete"))
|
75
74
|
});
|
76
75
|
};
|
77
76
|
}
|
78
|
-
}), de = { class: "flex mb-6" }, ce = { class: "my-6 w-[240px]" },
|
77
|
+
}), de = { class: "flex mb-6" }, ce = { class: "my-6 w-[240px]" }, Fe = /* @__PURE__ */ w({
|
79
78
|
__name: "SettlementTransactions",
|
80
79
|
props: {
|
81
80
|
settlementId: {
|
@@ -195,7 +194,7 @@ const re = /* @__PURE__ */ w({
|
|
195
194
|
}), (a, e) => {
|
196
195
|
var $;
|
197
196
|
const f = g("FmCardHeader"), v = g("FmCardSection"), C = g("FmCard"), j = g("FmSearch"), z = g("FmTable");
|
198
|
-
return F(),
|
197
|
+
return F(), B(ee, {
|
199
198
|
title: `Settlement Transactions (${($ = s.value) == null ? void 0 : $._id})`,
|
200
199
|
loading: p(m),
|
201
200
|
onBack: p(O).back
|
@@ -290,13 +289,13 @@ const re = /* @__PURE__ */ w({
|
|
290
289
|
var r, d, c;
|
291
290
|
return [
|
292
291
|
e[12] || (e[12] = t("b", null, "Amount", -1)),
|
293
|
-
i(": " + u(p(
|
292
|
+
i(": " + u(p(k)((r = s.value) == null ? void 0 : r.totalAmount).toFormat("$0.00")), 1),
|
294
293
|
e[13] || (e[13] = t("br", null, null, -1)),
|
295
294
|
e[14] || (e[14] = t("b", null, "Fee", -1)),
|
296
|
-
i(": " + u(p(
|
295
|
+
i(": " + u(p(k)((d = s.value) == null ? void 0 : d.totalFee).toFormat("$0.00")), 1),
|
297
296
|
e[15] || (e[15] = t("br", null, null, -1)),
|
298
297
|
e[16] || (e[16] = t("b", null, "Payout", -1)),
|
299
|
-
i(": " + u(p(
|
298
|
+
i(": " + u(p(k)((c = s.value) == null ? void 0 : c.totalPayout).toFormat("$0.00")), 1)
|
300
299
|
];
|
301
300
|
}),
|
302
301
|
_: 1
|
@@ -318,6 +317,7 @@ const re = /* @__PURE__ */ w({
|
|
318
317
|
n(z, {
|
319
318
|
modelValue: K.value,
|
320
319
|
"onUpdate:modelValue": e[1] || (e[1] = (r) => K.value = r),
|
320
|
+
"shrink-at": !1,
|
321
321
|
"search-value": T.value,
|
322
322
|
"row-data": I.value,
|
323
323
|
"column-defs": U,
|
@@ -330,5 +330,5 @@ const re = /* @__PURE__ */ w({
|
|
330
330
|
}
|
331
331
|
});
|
332
332
|
export {
|
333
|
-
|
333
|
+
Fe as default
|
334
334
|
};
|