@feedmepos/mf-payment 1.1.7-beta.2 → 1.1.7-beta.3
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-CTGMi_PX.js → PayoutAccount-CnTCZExr.js} +5 -5
- package/dist/{PayoutAccount-CmdOJR3H.js → PayoutAccount-Crwu1h-c.js} +3 -3
- package/dist/{PayoutAccountSetting-CjrCD_d1.js → PayoutAccountSetting-PyIESuN8.js} +3 -3
- package/dist/{Restaurant-OdusOWQW.js → Restaurant-BF1J35Ic.js} +4 -4
- package/dist/{RestaurantSetting-Ex1C9Sm0.js → RestaurantSetting-Dg7cfqKF.js} +3 -3
- package/dist/Settlement-B-TQCdB4.js +219 -0
- package/dist/{Settlement-B7HpwvU5.js → Settlement-BPrjfDMN.js} +3 -3
- package/dist/{SettlementTransactions--0nVkfix.js → SettlementTransactions-C13T6n0z.js} +3 -3
- package/dist/{SettlementTransactions-Can9YWKo.js → SettlementTransactions-CpRADd8a.js} +20 -16
- package/dist/{Terminal-Bk9PaUWE.js → Terminal-DgKJ9zSL.js} +5 -5
- package/dist/{TerminalSetting-DY91cG8K.js → TerminalSetting-Boh1fu6s.js} +3 -3
- package/dist/{Transaction-B0mm21J6.js → Transaction-BvvhqS95.js} +5 -5
- package/dist/{Transaction-4VcaNM-I.js → Transaction-CsAF2AXj.js} +6 -6
- package/dist/{TransactionOld-BBjyfmEP.js → TransactionOld-DsC0R1Qe.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-CFxM2Kdo.js → TransactionTable.vue_vue_type_script_setup_true_lang-CtrMBxwz.js} +3 -3
- package/dist/api/settlement/index.d.ts +1 -1
- package/dist/{app-BqfjZZ5M.js → app-D6rd6uvO.js} +152 -150
- package/dist/app.d.ts +2 -0
- package/dist/app.js +1 -1
- package/dist/{assets-Dt65qI3E.js → assets-B41ScDuA.js} +1 -1
- package/dist/{grafana-DYfiInW0.js → grafana-CdozbaJn.js} +1 -1
- package/dist/{index-BLk57IkI.js → index-3u2VZ6Ni.js} +29 -26
- package/dist/{index-DUS0JnIE.js → index-BIObbzAP.js} +1 -1
- package/dist/{index-CqPoOkrc.js → index-CCBZtmwy.js} +1 -1
- package/dist/{index-Cg9oAjSw.js → index-CEU5ybp0.js} +1 -1
- package/dist/{index-OxQY2Y3u.js → index-Cnf4HsQx.js} +1 -1
- package/dist/{index-CLm4m9aq.js → index-D1_hIXoR.js} +812 -812
- package/dist/{index.vue_vue_type_script_setup_true_lang-Bp8Y1T2v.js → index.vue_vue_type_script_setup_true_lang-i3Lcf2Mj.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-7HSkCqOD.js → payout-account-C80nPFWJ.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/Settlement-BzqXBGs7.js +0 -194
package/package.json
CHANGED
@@ -1,194 +0,0 @@
|
|
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-CLm4m9aq.js";
|
3
|
-
import { h as g } from "./moment-h96o7c8I.js";
|
4
|
-
import { s as c } from "./index-BLk57IkI.js";
|
5
|
-
import { useSnackbar as T } from "@feedmepos/ui-library";
|
6
|
-
import { d as v } from "./dinero-CIVmXLL-.js";
|
7
|
-
import { _ as P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
8
|
-
import { useRouter as q } from "vue-router";
|
9
|
-
import { _ as N } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
10
|
-
import { u as O } from "./index-CqPoOkrc.js";
|
11
|
-
import { u as U } from "./error-K1CakhA9.js";
|
12
|
-
import { _ as j } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
13
|
-
const z = /* @__PURE__ */ h({
|
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(w, { emit: u }) {
|
27
|
-
const r = w, i = u, o = C(""), p = [
|
28
|
-
{
|
29
|
-
header: () => "Settlement ID",
|
30
|
-
accessorKey: "id",
|
31
|
-
cell: ({ cell: e }) => B(P, { data: e.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
|
-
], f = x(() => r.data.map((e) => ({
|
53
|
-
id: e._id,
|
54
|
-
transactionAt: g(e.createdAt).format("YYYY-MM-DD"),
|
55
|
-
amount: v(e.totalAmount).toFormat("$0.00"),
|
56
|
-
fee: v(e.totalFee).toFormat("$0.00"),
|
57
|
-
payout: v(e.totalPayout).toFormat("$0.00")
|
58
|
-
})));
|
59
|
-
return (e, n) => {
|
60
|
-
const _ = d("FmTable");
|
61
|
-
return k(), A(_, {
|
62
|
-
modelValue: o.value,
|
63
|
-
"onUpdate:modelValue": n[0] || (n[0] = (l) => o.value = l),
|
64
|
-
"row-data": f.value,
|
65
|
-
"shrink-at": !1,
|
66
|
-
"column-defs": p,
|
67
|
-
loading: r.loading,
|
68
|
-
onRowClick: n[1] || (n[1] = (l) => i("row-click", r.data.at(l.index)))
|
69
|
-
}, null, 8, ["modelValue", "row-data", "loading"]);
|
70
|
-
};
|
71
|
-
}
|
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({
|
73
|
-
__name: "Settlement",
|
74
|
-
setup(w) {
|
75
|
-
const { isLoading: u, startAsyncCall: r } = D(!0), i = D(!1), o = C([]), p = q(), f = T(), { dateRange: e } = O({
|
76
|
-
dateRange: {
|
77
|
-
startDate: g().startOf("day").format("YYYY-MM-DD"),
|
78
|
-
endDate: g().endOf("day").format("YYYY-MM-DD")
|
79
|
-
}
|
80
|
-
});
|
81
|
-
V(e, n);
|
82
|
-
async function n() {
|
83
|
-
await r(async () => {
|
84
|
-
const F = await c.readByDate(
|
85
|
-
{
|
86
|
-
start: e.value.startDate,
|
87
|
-
end: e.value.endDate
|
88
|
-
}
|
89
|
-
);
|
90
|
-
o.value = F;
|
91
|
-
});
|
92
|
-
}
|
93
|
-
function _() {
|
94
|
-
n();
|
95
|
-
}
|
96
|
-
I(_);
|
97
|
-
const l = [
|
98
|
-
{
|
99
|
-
label: "Audit Report",
|
100
|
-
sublabel: "Full transactions details report from each payment providers.",
|
101
|
-
icon: "file_download",
|
102
|
-
value: "auditReport",
|
103
|
-
onClick: () => c.downloadSettlementReport({
|
104
|
-
start: e.value.startDate,
|
105
|
-
end: e.value.endDate
|
106
|
-
})
|
107
|
-
},
|
108
|
-
{
|
109
|
-
label: "Summary Report",
|
110
|
-
sublabel: "Summarized settlement information for each payout accounts.",
|
111
|
-
icon: "account_balance",
|
112
|
-
value: "summaryReport",
|
113
|
-
onClick: () => c.downloadSummaryReport(o.value, {
|
114
|
-
start: e.value.startDate,
|
115
|
-
end: e.value.endDate
|
116
|
-
})
|
117
|
-
},
|
118
|
-
{
|
119
|
-
label: "Bank Instruction File",
|
120
|
-
sublabel: "Generate bank instruction file based on bank formats.",
|
121
|
-
icon: "description",
|
122
|
-
value: "bankInstructionFile",
|
123
|
-
onClick: () => c.downloadBankInstructionFile(o.value)
|
124
|
-
}
|
125
|
-
];
|
126
|
-
return (F, m) => {
|
127
|
-
const M = d("FmButton"), R = d("FmMenuItem"), S = d("FmMenu");
|
128
|
-
return k(), A(N, {
|
129
|
-
title: "Settlements",
|
130
|
-
loading: a(u)
|
131
|
-
}, {
|
132
|
-
default: b(() => [
|
133
|
-
y("div", G, [
|
134
|
-
y("div", Q, [
|
135
|
-
s(j, {
|
136
|
-
modelValue: a(e),
|
137
|
-
"onUpdate:modelValue": m[0] || (m[0] = (t) => $(e) ? e.value = t : null)
|
138
|
-
}, null, 8, ["modelValue"])
|
139
|
-
]),
|
140
|
-
y("div", H, [
|
141
|
-
s(S, { trigger: "click" }, {
|
142
|
-
"menu-button": b(() => [
|
143
|
-
s(M, {
|
144
|
-
variant: "primary",
|
145
|
-
"append-icon": "arrow_drop_down",
|
146
|
-
label: "Actions",
|
147
|
-
loading: a(i).isLoading.value
|
148
|
-
}, null, 8, ["loading"])
|
149
|
-
]),
|
150
|
-
default: b(() => [
|
151
|
-
(k(), L(K, null, E(l, (t) => s(R, {
|
152
|
-
key: t.value,
|
153
|
-
label: t.label,
|
154
|
-
icon: t.icon,
|
155
|
-
sublabel: t.sublabel,
|
156
|
-
selectable: !0,
|
157
|
-
onClick: (J) => {
|
158
|
-
a(i).startAsyncCall(async () => {
|
159
|
-
try {
|
160
|
-
await t.onClick();
|
161
|
-
} catch (Y) {
|
162
|
-
a(f).open({
|
163
|
-
type: "error",
|
164
|
-
title: "Error",
|
165
|
-
message: a(U)(Y)
|
166
|
-
});
|
167
|
-
}
|
168
|
-
});
|
169
|
-
}
|
170
|
-
}, null, 8, ["label", "icon", "sublabel", "onClick"])), 64))
|
171
|
-
]),
|
172
|
-
_: 1
|
173
|
-
})
|
174
|
-
])
|
175
|
-
]),
|
176
|
-
s(z, {
|
177
|
-
loading: a(u),
|
178
|
-
data: o.value,
|
179
|
-
onRowClick: m[1] || (m[1] = (t) => a(p).push({
|
180
|
-
name: "mf-payment-admin.settlement-transaction",
|
181
|
-
params: {
|
182
|
-
settlementId: t._id
|
183
|
-
}
|
184
|
-
}))
|
185
|
-
}, null, 8, ["loading", "data"])
|
186
|
-
]),
|
187
|
-
_: 1
|
188
|
-
}, 8, ["loading"]);
|
189
|
-
};
|
190
|
-
}
|
191
|
-
});
|
192
|
-
export {
|
193
|
-
ie as default
|
194
|
-
};
|