@feedmepos/mf-payment 1.1.6 → 1.1.7
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/{PayoutAccount-CBGLfBag.js → PayoutAccount-C362ShA8.js} +5 -5
- package/dist/{PayoutAccount-Bl2-Th-5.js → PayoutAccount-CAdClj2Y.js} +3 -3
- package/dist/{PayoutAccountSetting-DiMwWLwY.js → PayoutAccountSetting-Cbl5b1Jr.js} +3 -3
- package/dist/{Restaurant-CdB7D9zA.js → Restaurant-ClDu-bSv.js} +4 -4
- package/dist/{RestaurantSetting-CQyXjYux.js → RestaurantSetting-D5h5RoHf.js} +3 -3
- package/dist/{Settlement-7WRCiiQ4.js → Settlement-B06tIr4_.js} +3 -3
- package/dist/Settlement-C2BVxmir.js +219 -0
- package/dist/{SettlementTransactions-B1dUvxhz.js → SettlementTransactions-Cpaq8K6x.js} +3 -3
- package/dist/{SettlementTransactions-CymvVBh8.js → SettlementTransactions-DIvLOEw6.js} +3 -3
- package/dist/{Terminal-DRKD8BO1.js → Terminal-Cmed6xrj.js} +5 -5
- package/dist/{TerminalSetting-DUVbknAn.js → TerminalSetting-BrTRbBF7.js} +3 -3
- package/dist/{Transaction-DQQI8kOT.js → Transaction-8m9pEyyX.js} +5 -5
- package/dist/{Transaction-DcQQ_4ku.js → Transaction-BQn5rvxe.js} +6 -6
- package/dist/{TransactionOld-DJJIQo-i.js → TransactionOld-CX-Odthg.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-C_3J1G8_.js → TransactionTable.vue_vue_type_script_setup_true_lang-BX7YIl4i.js} +3 -3
- package/dist/api/settlement/index.d.ts +1 -1
- package/dist/{app-B1ZoKtpx.js → app-QYQdqlqy.js} +172 -172
- package/dist/app.js +1 -1
- package/dist/{assets-ZXvnCE72.js → assets-Da-9jPqG.js} +1 -1
- package/dist/{grafana-tSaEG-rZ.js → grafana-BDr-LF8O.js} +1 -1
- package/dist/{index-D1dXyrdm.js → index-0Dl-qVTd.js} +29 -26
- package/dist/{index-DEEbas1_.js → index-DFq7xhNQ.js} +1 -1
- package/dist/{index-DQcz6kdU.js → index-DTH2dIPG.js} +1 -1
- package/dist/{index-kEMG4SWc.js → index-DbBsTEVS.js} +1 -1
- package/dist/{index-CGBOgV3E.js → index-Dg0Vf3qd.js} +1 -1
- package/dist/{index-DlvE9K3G.js → index-Dq07OgOJ.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CwHVO04q.js → index.vue_vue_type_script_setup_true_lang-JHB8s5dZ.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-BtTgqm7Q.js → payout-account--IA1DbB5.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/Settlement-BA09mDyG.js +0 -218
package/package.json
CHANGED
@@ -1,218 +0,0 @@
|
|
1
|
-
import { defineComponent as M, ref as h, computed as T, resolveComponent as d, openBlock as F, createBlock as Y, h as E, watch as C, onMounted as L, unref as r, withCtx as g, createElementVNode as k, createVNode as i, isRef as R, createElementBlock as N, Fragment as O, renderList as P } from "vue";
|
2
|
-
import { u as A } from "./index-DQcz6kdU.js";
|
3
|
-
import { h as S } from "./moment-h96o7c8I.js";
|
4
|
-
import { s as _ } from "./index-D1dXyrdm.js";
|
5
|
-
import { useSnackbar as U } from "@feedmepos/ui-library";
|
6
|
-
import { d as w } from "./dinero-CIVmXLL-.js";
|
7
|
-
import { _ as q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
8
|
-
import { useRouter as J } from "vue-router";
|
9
|
-
import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
10
|
-
import { u as z } from "./index-DEEbas1_.js";
|
11
|
-
import { u as G } from "./error-K1CakhA9.js";
|
12
|
-
import { _ as Q } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
13
|
-
const H = /* @__PURE__ */ M({
|
14
|
-
__name: "SettlementTable",
|
15
|
-
props: {
|
16
|
-
data: {
|
17
|
-
type: Array,
|
18
|
-
required: !0
|
19
|
-
},
|
20
|
-
loading: {
|
21
|
-
type: Boolean,
|
22
|
-
required: !0
|
23
|
-
}
|
24
|
-
},
|
25
|
-
emits: ["row-click"],
|
26
|
-
setup(D, { emit: p }) {
|
27
|
-
const m = D, f = p, n = h(""), u = [
|
28
|
-
{
|
29
|
-
header: () => "Settlement ID",
|
30
|
-
accessorKey: "id",
|
31
|
-
cell: ({ cell: a }) => E(q, { data: a.getValue() })
|
32
|
-
},
|
33
|
-
{
|
34
|
-
header: () => "Created At",
|
35
|
-
accessorKey: "transactionAt",
|
36
|
-
meta: {
|
37
|
-
width: "180px"
|
38
|
-
}
|
39
|
-
},
|
40
|
-
{
|
41
|
-
header: () => "Sales Amount",
|
42
|
-
accessorKey: "amount"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
header: () => "Fee",
|
46
|
-
accessorKey: "fee"
|
47
|
-
},
|
48
|
-
{
|
49
|
-
header: () => "Settlement Amount",
|
50
|
-
accessorKey: "payout"
|
51
|
-
}
|
52
|
-
], y = T(() => m.data.map((a) => ({
|
53
|
-
id: a._id,
|
54
|
-
transactionAt: S(a.createdAt).format("YYYY-MM-DD"),
|
55
|
-
amount: w(a.totalAmount).toFormat("$0.00"),
|
56
|
-
fee: w(a.totalFee).toFormat("$0.00"),
|
57
|
-
payout: w(a.totalPayout).toFormat("$0.00")
|
58
|
-
})));
|
59
|
-
return (a, e) => {
|
60
|
-
const l = d("FmTable");
|
61
|
-
return F(), Y(l, {
|
62
|
-
modelValue: n.value,
|
63
|
-
"onUpdate:modelValue": e[0] || (e[0] = (s) => n.value = s),
|
64
|
-
"row-data": y.value,
|
65
|
-
"shrink-at": !1,
|
66
|
-
"column-defs": u,
|
67
|
-
loading: m.loading,
|
68
|
-
onRowClick: e[1] || (e[1] = (s) => f("row-click", m.data.at(s.index)))
|
69
|
-
}, null, 8, ["modelValue", "row-data", "loading"]);
|
70
|
-
};
|
71
|
-
}
|
72
|
-
}), W = { class: "flex justify-between items-center mb-6" }, X = { class: "flex space-x-4 items-end" }, Z = { class: "flex space-x-4" }, pe = /* @__PURE__ */ M({
|
73
|
-
__name: "Settlement",
|
74
|
-
setup(D) {
|
75
|
-
const { isLoading: p, startAsyncCall: m } = A(!0), f = A(!1), n = h([]), u = h([]), y = J(), a = U(), { dateRange: e, searchKey: l } = z({
|
76
|
-
searchKey: "",
|
77
|
-
dateRange: {
|
78
|
-
startDate: S().startOf("day").format("YYYY-MM-DD"),
|
79
|
-
endDate: S().endOf("day").format("YYYY-MM-DD")
|
80
|
-
}
|
81
|
-
});
|
82
|
-
C(e, x);
|
83
|
-
let s;
|
84
|
-
C(l, async () => {
|
85
|
-
s && clearTimeout(s), s = setTimeout(() => {
|
86
|
-
var v = new RegExp(l.value, "i");
|
87
|
-
u.value = n.value.filter((o) => {
|
88
|
-
const c = JSON.stringify(o);
|
89
|
-
return v.test(c);
|
90
|
-
});
|
91
|
-
}, 700);
|
92
|
-
});
|
93
|
-
async function x() {
|
94
|
-
await m(async () => {
|
95
|
-
const v = await _.readByDate(
|
96
|
-
{
|
97
|
-
start: e.value.startDate,
|
98
|
-
end: e.value.endDate
|
99
|
-
}
|
100
|
-
);
|
101
|
-
if (n.value = v, u.value = n.value, l.value > "") {
|
102
|
-
var o = new RegExp(l.value, "i");
|
103
|
-
u.value = n.value.filter((c) => {
|
104
|
-
const b = JSON.stringify(c);
|
105
|
-
return o.test(b);
|
106
|
-
});
|
107
|
-
}
|
108
|
-
});
|
109
|
-
}
|
110
|
-
function V() {
|
111
|
-
x();
|
112
|
-
}
|
113
|
-
L(V);
|
114
|
-
const B = [
|
115
|
-
{
|
116
|
-
label: "Audit Report",
|
117
|
-
sublabel: "Full transactions details report from each payment providers.",
|
118
|
-
icon: "file_download",
|
119
|
-
value: "auditReport",
|
120
|
-
onClick: () => _.downloadSettlementReport({
|
121
|
-
start: e.value.startDate,
|
122
|
-
end: e.value.endDate
|
123
|
-
})
|
124
|
-
},
|
125
|
-
{
|
126
|
-
label: "Summary Report",
|
127
|
-
sublabel: "Summarized settlement information for each payout accounts.",
|
128
|
-
icon: "account_balance",
|
129
|
-
value: "summaryReport",
|
130
|
-
onClick: () => _.downloadSummaryReport(n.value, {
|
131
|
-
start: e.value.startDate,
|
132
|
-
end: e.value.endDate
|
133
|
-
})
|
134
|
-
},
|
135
|
-
{
|
136
|
-
label: "Bank Instruction File",
|
137
|
-
sublabel: "Generate bank instruction file based on bank formats.",
|
138
|
-
icon: "description",
|
139
|
-
value: "bankInstructionFile",
|
140
|
-
onClick: () => _.downloadBankInstructionFile(n.value)
|
141
|
-
}
|
142
|
-
];
|
143
|
-
return (v, o) => {
|
144
|
-
const c = d("FmSearch"), b = d("FmButton"), I = d("FmMenuItem"), $ = d("FmMenu");
|
145
|
-
return F(), Y(j, {
|
146
|
-
title: "Settlements",
|
147
|
-
loading: r(p)
|
148
|
-
}, {
|
149
|
-
default: g(() => [
|
150
|
-
k("div", W, [
|
151
|
-
k("div", X, [
|
152
|
-
i(c, {
|
153
|
-
"model-value": r(l),
|
154
|
-
"onUpdate:modelValue": o[0] || (o[0] = (t) => R(l) ? l.value = t : null),
|
155
|
-
class: "mr-8",
|
156
|
-
label: "Search",
|
157
|
-
placeholder: "Search Settlements ..."
|
158
|
-
}, null, 8, ["model-value"]),
|
159
|
-
i(Q, {
|
160
|
-
modelValue: r(e),
|
161
|
-
"onUpdate:modelValue": o[1] || (o[1] = (t) => R(e) ? e.value = t : null)
|
162
|
-
}, null, 8, ["modelValue"])
|
163
|
-
]),
|
164
|
-
k("div", Z, [
|
165
|
-
i($, { trigger: "click" }, {
|
166
|
-
"menu-button": g(() => [
|
167
|
-
i(b, {
|
168
|
-
variant: "primary",
|
169
|
-
"append-icon": "arrow_drop_down",
|
170
|
-
label: "Actions",
|
171
|
-
loading: r(f).isLoading.value
|
172
|
-
}, null, 8, ["loading"])
|
173
|
-
]),
|
174
|
-
default: g(() => [
|
175
|
-
(F(), N(O, null, P(B, (t) => i(I, {
|
176
|
-
key: t.value,
|
177
|
-
label: t.label,
|
178
|
-
icon: t.icon,
|
179
|
-
sublabel: t.sublabel,
|
180
|
-
selectable: !0,
|
181
|
-
onClick: (ee) => {
|
182
|
-
r(f).startAsyncCall(async () => {
|
183
|
-
try {
|
184
|
-
await t.onClick();
|
185
|
-
} catch (K) {
|
186
|
-
r(a).open({
|
187
|
-
type: "error",
|
188
|
-
title: "Error",
|
189
|
-
message: r(G)(K)
|
190
|
-
});
|
191
|
-
}
|
192
|
-
});
|
193
|
-
}
|
194
|
-
}, null, 8, ["label", "icon", "sublabel", "onClick"])), 64))
|
195
|
-
]),
|
196
|
-
_: 1
|
197
|
-
})
|
198
|
-
])
|
199
|
-
]),
|
200
|
-
i(H, {
|
201
|
-
loading: r(p),
|
202
|
-
data: u.value,
|
203
|
-
onRowClick: o[2] || (o[2] = (t) => r(y).push({
|
204
|
-
name: "mf-payment-admin.settlement-transaction",
|
205
|
-
params: {
|
206
|
-
settlementId: t._id
|
207
|
-
}
|
208
|
-
}))
|
209
|
-
}, null, 8, ["loading", "data"])
|
210
|
-
]),
|
211
|
-
_: 1
|
212
|
-
}, 8, ["loading"]);
|
213
|
-
};
|
214
|
-
}
|
215
|
-
});
|
216
|
-
export {
|
217
|
-
pe as default
|
218
|
-
};
|