@feedmepos/mf-payment 1.1.5 → 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.
Files changed (32) hide show
  1. package/dist/{PayoutAccount-DyNM5jJq.js → PayoutAccount-C362ShA8.js} +5 -5
  2. package/dist/{PayoutAccount-D1FdkkEB.js → PayoutAccount-CAdClj2Y.js} +3 -3
  3. package/dist/{PayoutAccountSetting-BHu0tltk.js → PayoutAccountSetting-Cbl5b1Jr.js} +3 -3
  4. package/dist/{Restaurant-B0jj-feX.js → Restaurant-ClDu-bSv.js} +4 -4
  5. package/dist/{RestaurantSetting-Xc0315pb.js → RestaurantSetting-D5h5RoHf.js} +3 -3
  6. package/dist/{Settlement-CzgVFFOR.js → Settlement-B06tIr4_.js} +3 -3
  7. package/dist/Settlement-C2BVxmir.js +219 -0
  8. package/dist/{SettlementTransactions-aXV-F0pq.js → SettlementTransactions-Cpaq8K6x.js} +3 -3
  9. package/dist/{SettlementTransactions-Dy2RhINp.js → SettlementTransactions-DIvLOEw6.js} +3 -3
  10. package/dist/{Terminal-D7xiQWl_.js → Terminal-Cmed6xrj.js} +5 -5
  11. package/dist/{TerminalSetting-CWeUuXae.js → TerminalSetting-BrTRbBF7.js} +3 -3
  12. package/dist/{Transaction-wOv5gZLF.js → Transaction-8m9pEyyX.js} +5 -5
  13. package/dist/{Transaction-CoywkBWq.js → Transaction-BQn5rvxe.js} +6 -6
  14. package/dist/{TransactionOld-DxBgAdY3.js → TransactionOld-CX-Odthg.js} +4 -4
  15. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-CqsLOwBR.js → TransactionTable.vue_vue_type_script_setup_true_lang-BX7YIl4i.js} +3 -3
  16. package/dist/api/settlement/index.d.ts +1 -1
  17. package/dist/{app-DHXjFYAA.js → app-QYQdqlqy.js} +275 -275
  18. package/dist/app.js +1 -1
  19. package/dist/{assets-BoIaLJKv.js → assets-Da-9jPqG.js} +1 -1
  20. package/dist/{grafana-BbID9mKu.js → grafana-BDr-LF8O.js} +1 -1
  21. package/dist/{index-DTpvCGlg.js → index-0Dl-qVTd.js} +29 -26
  22. package/dist/{index-jgCYe5QM.js → index-DFq7xhNQ.js} +1 -1
  23. package/dist/{index-Dfv3QjcX.js → index-DTH2dIPG.js} +1 -1
  24. package/dist/{index-C9CuhJsa.js → index-DbBsTEVS.js} +1 -1
  25. package/dist/{index-XH7vUgqJ.js → index-Dg0Vf3qd.js} +1 -1
  26. package/dist/{index-CTAk5p0r.js → index-Dq07OgOJ.js} +1 -1
  27. package/dist/{index.vue_vue_type_script_setup_true_lang-CGhB2AEC.js → index.vue_vue_type_script_setup_true_lang-JHB8s5dZ.js} +1 -1
  28. package/dist/package.json +1 -1
  29. package/dist/{payout-account-Bkz4uMWL.js → payout-account--IA1DbB5.js} +2 -2
  30. package/dist/tsconfig.app.tsbuildinfo +1 -1
  31. package/package.json +1 -1
  32. package/dist/Settlement-CHzijt6f.js +0 -194
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -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-Dfv3QjcX.js";
3
- import { h as g } from "./moment-h96o7c8I.js";
4
- import { s as c } from "./index-DTpvCGlg.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-jgCYe5QM.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
- };