@feedmepos/mf-payment 1.1.7-beta.3 → 1.1.7-beta.4

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