@feedmepos/mf-payment 1.0.0-beta.5 → 1.0.0-beta.6
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js +31 -0
- package/dist/PDFViewer-xrBtzrlR.js +22426 -0
- package/dist/{PayoutAccount-V74CPAJr.js → PayoutAccount-CagbOYmv.js} +5 -5
- package/dist/{PayoutAccount-DZg-xSKt.js → PayoutAccount-CkDd9qfH.js} +4 -4
- package/dist/{PayoutAccountSetting-kUQLeAcb.js → PayoutAccountSetting-CmgVLhdp.js} +4 -4
- package/dist/{Settlement-CHwtH6hm.js → Settlement-B1-WmCwC.js} +41 -42
- package/dist/Settlement-BSOQRlp1.js +145 -0
- package/dist/{SettlementTransactions-C281649y.js → SettlementTransactions-Cqd2raea.js} +4 -4
- package/dist/{SettlementTransactions-CBohm3KC.js → SettlementTransactions-JTwD_Vuq.js} +4 -4
- package/dist/{Terminal-gxGnjFGc.js → Terminal-DvlTwA6V.js} +4 -4
- package/dist/{TerminalSetting--ZAJJ_Hf.js → TerminalSetting-7VBm1RRK.js} +3 -3
- package/dist/{TerminalTransaction-DdESjZJo.js → TerminalTransaction-C1egvX6I.js} +112 -110
- package/dist/{TerminalTransaction-CfCURihE.js → TerminalTransaction-CZCsCpEp.js} +77 -75
- package/dist/{Transaction-BbGbcDvk.js → Transaction-B3ZWKg6Q.js} +114 -115
- package/dist/Transaction-B_0nUmpf.js +238 -0
- package/dist/{app-9P8d2JCE.js → app-CLnEntGO.js} +179 -179
- package/dist/app.js +1 -1
- package/dist/{assets-NrCec-W0.js → assets-BCAivOTo.js} +1 -1
- package/dist/components/AdminLayout.vue.d.ts +8 -13
- package/dist/components/AutoCopyCell.vue.d.ts +3 -4
- package/dist/components/DateRangePicker.vue.d.ts +13 -0
- package/dist/components/Layout.vue.d.ts +8 -13
- package/dist/components/PDFViewer.vue.d.ts +1 -1
- package/dist/components/RouteCell.vue.d.ts +5 -6
- package/dist/components/SelectAll.vue.d.ts +2 -2
- package/dist/{index-CWaKb7bG.js → index-4meiCsRz.js} +1566 -1556
- package/dist/{index-BwcJZFsi.js → index-BFYq3eq8.js} +1 -1
- package/dist/{index-7KNaibcq.js → index-BwFHcZlm.js} +1 -1
- package/dist/{index-BWUtjGg7.js → index-CBa6eapm.js} +1 -1
- package/dist/{index-CojhNtuG.js → index-CETCXB6X.js} +1 -1
- package/dist/{index-DbJpbpSs.js → index-CbsnpMWl.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js → index.vue_vue_type_script_setup_true_lang-CKOlikHb.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-DI0q_Sig.js → payout-account-4O7cL-1_.js} +2 -2
- package/dist/{transaction-BTf6KnZV.js → transaction-COjHU7aN.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/cell/Bank.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/IsActive.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/PersonInCharge.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/RateInput.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/Status.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/TPlusInput.vue.d.ts +3 -5
- package/dist/views/admin/settlement/cell/Actions.vue.d.ts +4 -6
- package/dist/views/admin/settlement/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/admin/settlement/cell/Method.vue.d.ts +3 -5
- package/dist/views/admin/settlement/cell/Status.vue.d.ts +3 -5
- package/dist/views/admin/terminal/TerminalBindCodeDialog.vue.d.ts +1 -1
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +7 -79
- package/dist/views/admin/terminal/cell/ID.vue.d.ts +3 -5
- package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +3 -4
- package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +3 -5
- package/dist/views/admin/terminal-transaction/cell/Timestamp.vue.d.ts +3 -6
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +3 -4
- package/dist/views/admin/transaction/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/admin/transaction/cell/Method.vue.d.ts +3 -5
- package/dist/views/admin/transaction/cell/Status.vue.d.ts +3 -5
- package/dist/views/payout-account/cell/Bank.vue.d.ts +3 -5
- package/dist/views/payout-account/cell/IsActive.vue.d.ts +3 -5
- package/dist/views/payout-account/cell/PersonInCharge.vue.d.ts +3 -5
- package/dist/views/payout-account/cell/Status.vue.d.ts +3 -5
- package/dist/views/settlement/cell/Actions.vue.d.ts +4 -6
- package/dist/views/settlement/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/settlement/cell/Method.vue.d.ts +3 -5
- package/dist/views/settlement/cell/Status.vue.d.ts +3 -5
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +3 -5
- package/dist/views/transaction/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/transaction/cell/Method.vue.d.ts +3 -5
- package/dist/views/transaction/cell/Status.vue.d.ts +3 -5
- package/package.json +1 -1
- package/dist/PDFViewer-CjH_C1uT.js +0 -21792
- package/dist/Settlement-C49oMOGR.js +0 -149
- package/dist/Transaction-BEls8K8W.js +0 -239
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as g, resolveComponent as i, openBlock as h, createBlock as y, normalizeClass as N, withCtx as _, createElementVNode as P, toDisplayString as C, createVNode as p, computed as x, ref as E, watch as F, unref as s, isRef as b, h as v } from "vue";
|
2
|
-
import { u as S } from "./index-
|
3
|
-
import { _ as O } from "./index-
|
2
|
+
import { u as S } from "./index-BwFHcZlm.js";
|
3
|
+
import { _ as O } from "./index-4meiCsRz.js";
|
4
4
|
import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
5
|
-
import { P as V } from "./payout-account-
|
6
|
-
import { p as $ } from "./index-
|
5
|
+
import { P as V } from "./payout-account-4O7cL-1_.js";
|
6
|
+
import { p as $ } from "./index-BFYq3eq8.js";
|
7
7
|
import "@feedmepos/ui-library";
|
8
|
-
import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-
|
8
|
+
import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-CKOlikHb.js";
|
9
9
|
import { useRouter as T } from "vue-router";
|
10
10
|
import { _ as U } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
11
11
|
const G = /* @__PURE__ */ g({
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent as f, ref as W, reactive as k, computed as j, watch as p, resolveComponent as Y, openBlock as n, createBlock as u, withCtx as E, createElementVNode as r, createVNode as D, unref as w, createCommentVNode as I, createElementBlock as N, normalizeClass as U, toDisplayString as R, h as O, onMounted as T, Fragment as L } from "vue";
|
2
|
-
import { p as z } from "./index-
|
3
|
-
import { _ as y, u as S, e as K } from "./index-
|
2
|
+
import { p as z } from "./index-BFYq3eq8.js";
|
3
|
+
import { _ as y, u as S, e as K } from "./index-4meiCsRz.js";
|
4
4
|
import { defineStore as _ } from "pinia";
|
5
5
|
import { useCoreStore as $ } from "@feedmepos/mf-common";
|
6
|
-
import { c as AA, P as v } from "./payout-account-
|
6
|
+
import { c as AA, P as v } from "./payout-account-4O7cL-1_.js";
|
7
7
|
import { useDialogChild as sA, useDialog as eA } from "@feedmepos/ui-library";
|
8
8
|
import { z as X, a as x } from "./validator-D5jtpt9A.js";
|
9
|
-
import { P as J } from "./PDFViewer-
|
9
|
+
import { P as J } from "./PDFViewer-xrBtzrlR.js";
|
10
10
|
import { _ as tA } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
11
11
|
function aA() {
|
12
12
|
return {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { defineComponent as I, resolveComponent as m, openBlock as g, createElementBlock as R, Fragment as D, createElementVNode as s, createVNode as u, withCtx as x, createTextVNode as C, toDisplayString as P, createCommentVNode as U, createBlock as V, ref as k, watch as O, computed as K, unref as r, isRef as j, h as q, onMounted as Y, resolveDynamicComponent as z, normalizeProps as H, mergeProps as L } from "vue";
|
2
|
-
import { p as N } from "./index-
|
3
|
-
import { g as B, b as E, u as Q, e as $ } from "./index-
|
2
|
+
import { p as N } from "./index-BFYq3eq8.js";
|
3
|
+
import { g as B, b as E, u as Q, e as $ } from "./index-4meiCsRz.js";
|
4
4
|
import { _ as Z } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
5
5
|
import { useRouter as J } from "vue-router";
|
6
|
-
import { u as W } from "./index-
|
7
|
-
import { P as M } from "./PDFViewer-
|
6
|
+
import { u as W } from "./index-BwFHcZlm.js";
|
7
|
+
import { P as M } from "./PDFViewer-xrBtzrlR.js";
|
8
8
|
import { useSnackbar as X } from "@feedmepos/ui-library";
|
9
9
|
import { u as h } from "./error-K1CakhA9.js";
|
10
10
|
import { z as A, a as S } from "./validator-D5jtpt9A.js";
|
@@ -1,15 +1,16 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { u as D } from "./index-
|
1
|
+
import { defineComponent as C, ref as h, 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-4meiCsRz.js";
|
3
3
|
import { h as g } from "./moment-h96o7c8I.js";
|
4
|
-
import { s as
|
4
|
+
import { s as c } from "./index-CETCXB6X.js";
|
5
5
|
import { useSnackbar as T } from "@feedmepos/ui-library";
|
6
|
-
import { d as
|
7
|
-
import { _ as
|
8
|
-
import { useRouter as
|
9
|
-
import { _ as
|
10
|
-
import { u as
|
11
|
-
import { u as
|
12
|
-
|
6
|
+
import { d as v } from "./dinero-CIVmXLL-.js";
|
7
|
+
import { _ as P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.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-BwFHcZlm.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__ */ C({
|
13
14
|
__name: "SettlementTable",
|
14
15
|
props: {
|
15
16
|
data: {
|
@@ -23,11 +24,11 @@ const z = /* @__PURE__ */ h({
|
|
23
24
|
},
|
24
25
|
emits: ["row-click"],
|
25
26
|
setup(w, { emit: u }) {
|
26
|
-
const r = w,
|
27
|
+
const r = w, i = u, o = h(""), p = [
|
27
28
|
{
|
28
29
|
header: () => "Settlement ID",
|
29
30
|
accessorKey: "id",
|
30
|
-
cell: ({ cell: e }) =>
|
31
|
+
cell: ({ cell: e }) => B(P, { data: e.getValue() })
|
31
32
|
},
|
32
33
|
{
|
33
34
|
header: () => "Created At",
|
@@ -48,38 +49,38 @@ const z = /* @__PURE__ */ h({
|
|
48
49
|
header: () => "Settlement Amount",
|
49
50
|
accessorKey: "payout"
|
50
51
|
}
|
51
|
-
], f =
|
52
|
+
], f = x(() => r.data.map((e) => ({
|
52
53
|
id: e._id,
|
53
54
|
transactionAt: g(e.createdAt).format("YYYY-MM-DD"),
|
54
|
-
amount:
|
55
|
-
fee:
|
56
|
-
payout:
|
55
|
+
amount: v(e.totalAmount).toFormat("$0.00"),
|
56
|
+
fee: v(e.totalFee).toFormat("$0.00"),
|
57
|
+
payout: v(e.totalPayout).toFormat("$0.00")
|
57
58
|
})));
|
58
59
|
return (e, n) => {
|
59
|
-
const _ =
|
60
|
-
return
|
60
|
+
const _ = d("FmTable");
|
61
|
+
return k(), A(_, {
|
61
62
|
modelValue: o.value,
|
62
63
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => o.value = l),
|
63
64
|
"row-data": f.value,
|
64
65
|
"column-defs": p,
|
65
66
|
loading: r.loading,
|
66
|
-
onRowClick: n[1] || (n[1] = (l) =>
|
67
|
+
onRowClick: n[1] || (n[1] = (l) => i("row-click", r.data.at(l.index)))
|
67
68
|
}, null, 8, ["modelValue", "row-data", "loading"]);
|
68
69
|
};
|
69
70
|
}
|
70
|
-
}), G = { class: "flex justify-between items-center mb-6" }, Q = { class: "flex space-x-4 items-center" }, H = { class: "flex space-x-4
|
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__ */ C({
|
71
72
|
__name: "Settlement",
|
72
73
|
setup(w) {
|
73
|
-
const { isLoading: u, startAsyncCall: r } = D(!0),
|
74
|
+
const { isLoading: u, startAsyncCall: r } = D(!0), i = D(!1), o = h([]), p = q(), f = T(), { dateRange: e } = O({
|
74
75
|
dateRange: {
|
75
76
|
startDate: g().startOf("day").format("YYYY-MM-DD"),
|
76
77
|
endDate: g().endOf("day").format("YYYY-MM-DD")
|
77
78
|
}
|
78
79
|
});
|
79
|
-
|
80
|
+
V(e, n);
|
80
81
|
async function n() {
|
81
82
|
await r(async () => {
|
82
|
-
const F = await
|
83
|
+
const F = await c.readByDate(
|
83
84
|
{
|
84
85
|
start: e.value.startDate,
|
85
86
|
end: e.value.endDate
|
@@ -91,14 +92,14 @@ const z = /* @__PURE__ */ h({
|
|
91
92
|
function _() {
|
92
93
|
n();
|
93
94
|
}
|
94
|
-
|
95
|
+
I(_);
|
95
96
|
const l = [
|
96
97
|
{
|
97
98
|
label: "Audit Report",
|
98
99
|
sublabel: "Full transactions details report from each payment providers.",
|
99
100
|
icon: "file_download",
|
100
101
|
value: "auditReport",
|
101
|
-
onClick: () =>
|
102
|
+
onClick: () => c.downloadSettlementReport({
|
102
103
|
start: e.value.startDate,
|
103
104
|
end: e.value.endDate
|
104
105
|
})
|
@@ -108,7 +109,7 @@ const z = /* @__PURE__ */ h({
|
|
108
109
|
sublabel: "Summarized settlement information for each payout accounts.",
|
109
110
|
icon: "account_balance",
|
110
111
|
value: "summaryReport",
|
111
|
-
onClick: () =>
|
112
|
+
onClick: () => c.downloadSummaryReport(o.value, {
|
112
113
|
start: e.value.startDate,
|
113
114
|
end: e.value.endDate
|
114
115
|
})
|
@@ -118,51 +119,49 @@ const z = /* @__PURE__ */ h({
|
|
118
119
|
sublabel: "Generate bank instruction file based on bank formats.",
|
119
120
|
icon: "description",
|
120
121
|
value: "bankInstructionFile",
|
121
|
-
onClick: () =>
|
122
|
+
onClick: () => c.downloadBankInstructionFile(o.value)
|
122
123
|
}
|
123
124
|
];
|
124
|
-
return (F,
|
125
|
-
const
|
126
|
-
return
|
125
|
+
return (F, m) => {
|
126
|
+
const M = d("FmButton"), R = d("FmMenuItem"), S = d("FmMenu");
|
127
|
+
return k(), A(N, {
|
127
128
|
title: "Settlements",
|
128
129
|
loading: a(u)
|
129
130
|
}, {
|
130
131
|
default: b(() => [
|
131
132
|
y("div", G, [
|
132
133
|
y("div", Q, [
|
133
|
-
s(
|
134
|
+
s(j, {
|
134
135
|
modelValue: a(e),
|
135
|
-
"onUpdate:modelValue":
|
136
|
-
"show-predefined-range": ""
|
136
|
+
"onUpdate:modelValue": m[0] || (m[0] = (t) => $(e) ? e.value = t : null)
|
137
137
|
}, null, 8, ["modelValue"])
|
138
138
|
]),
|
139
139
|
y("div", H, [
|
140
|
-
s(
|
140
|
+
s(S, { trigger: "click" }, {
|
141
141
|
"menu-button": b(() => [
|
142
|
-
s(
|
143
|
-
class: "w-full mt-6",
|
142
|
+
s(M, {
|
144
143
|
variant: "primary",
|
145
144
|
"append-icon": "arrow_drop_down",
|
146
145
|
label: "Actions",
|
147
|
-
loading: a(
|
146
|
+
loading: a(i).isLoading.value
|
148
147
|
}, null, 8, ["loading"])
|
149
148
|
]),
|
150
149
|
default: b(() => [
|
151
|
-
(
|
150
|
+
(k(), L(K, null, E(l, (t) => s(R, {
|
152
151
|
key: t.value,
|
153
152
|
label: t.label,
|
154
153
|
icon: t.icon,
|
155
154
|
sublabel: t.sublabel,
|
156
155
|
selectable: !0,
|
157
156
|
onClick: (J) => {
|
158
|
-
a(
|
157
|
+
a(i).startAsyncCall(async () => {
|
159
158
|
try {
|
160
159
|
await t.onClick();
|
161
|
-
} catch (
|
160
|
+
} catch (Y) {
|
162
161
|
a(f).open({
|
163
162
|
type: "error",
|
164
163
|
title: "Error",
|
165
|
-
message: a(
|
164
|
+
message: a(U)(Y)
|
166
165
|
});
|
167
166
|
}
|
168
167
|
});
|
@@ -176,7 +175,7 @@ const z = /* @__PURE__ */ h({
|
|
176
175
|
s(z, {
|
177
176
|
loading: a(u),
|
178
177
|
data: o.value,
|
179
|
-
onRowClick:
|
178
|
+
onRowClick: m[1] || (m[1] = (t) => a(p).push({
|
180
179
|
name: "mf-payment-admin.settlement-transaction",
|
181
180
|
params: {
|
182
181
|
settlementId: t._id
|
@@ -0,0 +1,145 @@
|
|
1
|
+
import { defineComponent as g, ref as h, computed as x, resolveComponent as Y, openBlock as v, createBlock as D, h as S, onMounted as A, watch as R, unref as n, withCtx as V, createElementVNode as i, createVNode as d, isRef as $ } from "vue";
|
2
|
+
import { u as b } from "./index-4meiCsRz.js";
|
3
|
+
import { h as _ } from "./moment-h96o7c8I.js";
|
4
|
+
import { useCoreStore as C } from "@feedmepos/mf-common";
|
5
|
+
import { _ as k } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
6
|
+
import { s as w } from "./index-CETCXB6X.js";
|
7
|
+
import "@feedmepos/ui-library";
|
8
|
+
import { d as f } from "./dinero-CIVmXLL-.js";
|
9
|
+
import { _ as F } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js";
|
10
|
+
import { useRouter as M } from "vue-router";
|
11
|
+
import { u as K } from "./index-BwFHcZlm.js";
|
12
|
+
import { _ as B } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
13
|
+
import { _ as I } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
|
14
|
+
import { _ as L } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
15
|
+
const P = /* @__PURE__ */ g({
|
16
|
+
__name: "SettlementTable",
|
17
|
+
props: {
|
18
|
+
data: {
|
19
|
+
type: Array,
|
20
|
+
required: !0
|
21
|
+
},
|
22
|
+
loading: {
|
23
|
+
type: Boolean,
|
24
|
+
required: !0
|
25
|
+
}
|
26
|
+
},
|
27
|
+
emits: ["row-click"],
|
28
|
+
setup(y, { emit: c }) {
|
29
|
+
const t = y, r = c, s = h(""), u = [
|
30
|
+
{
|
31
|
+
header: () => "Settlement ID",
|
32
|
+
accessorKey: "id",
|
33
|
+
cell: ({ cell: e }) => S(F, { data: e.getValue() })
|
34
|
+
},
|
35
|
+
{
|
36
|
+
header: () => "Created At",
|
37
|
+
accessorKey: "transactionAt",
|
38
|
+
meta: {
|
39
|
+
width: "180px"
|
40
|
+
}
|
41
|
+
},
|
42
|
+
{
|
43
|
+
header: () => "Sales Amount",
|
44
|
+
accessorKey: "amount"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
header: () => "Fee",
|
48
|
+
accessorKey: "fee"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
header: () => "Settlement Amount",
|
52
|
+
accessorKey: "payout"
|
53
|
+
}
|
54
|
+
], l = x(() => t.data.map((e) => ({
|
55
|
+
id: e._id,
|
56
|
+
transactionAt: _(e.createdAt).format("YYYY-MM-DD"),
|
57
|
+
amount: f(e.totalAmount).toFormat("$0.00"),
|
58
|
+
fee: f(e.totalFee).toFormat("$0.00"),
|
59
|
+
payout: f(e.totalPayout).toFormat("$0.00")
|
60
|
+
})));
|
61
|
+
return (e, o) => {
|
62
|
+
const m = Y("FmTable");
|
63
|
+
return v(), D(m, {
|
64
|
+
modelValue: s.value,
|
65
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => s.value = a),
|
66
|
+
"row-data": l.value,
|
67
|
+
"column-defs": u,
|
68
|
+
loading: t.loading,
|
69
|
+
onRowClick: o[1] || (o[1] = (a) => r("row-click", t.data.at(a.index)))
|
70
|
+
}, null, 8, ["modelValue", "row-data", "loading"]);
|
71
|
+
};
|
72
|
+
}
|
73
|
+
}), T = { class: "flex justify-between items-center mb-6" }, q = { class: "flex space-x-8 items-center" }, E = { class: "flex space-x-4 self-center" }, N = { class: "mb-6" }, ot = /* @__PURE__ */ g({
|
74
|
+
__name: "Settlement",
|
75
|
+
setup(y) {
|
76
|
+
const c = M(), { dateRange: t } = K({
|
77
|
+
dateRange: {
|
78
|
+
startDate: _().startOf("day").format("YYYY-MM-DD"),
|
79
|
+
endDate: _().endOf("day").format("YYYY-MM-DD")
|
80
|
+
}
|
81
|
+
}), { isLoading: r, startAsyncCall: s } = b(!0), { currentRestaurant: u } = C(), l = h([]);
|
82
|
+
async function e() {
|
83
|
+
await s(async () => {
|
84
|
+
const m = await w.readRestaurantSettlements(
|
85
|
+
{
|
86
|
+
start: t.value.startDate,
|
87
|
+
end: t.value.endDate
|
88
|
+
}
|
89
|
+
);
|
90
|
+
l.value = m;
|
91
|
+
});
|
92
|
+
}
|
93
|
+
function o() {
|
94
|
+
e();
|
95
|
+
}
|
96
|
+
return A(o), R(u, o), (m, a) => (v(), D(k, {
|
97
|
+
title: "Settlements",
|
98
|
+
description: "Settlements are the finalization of financial transactions, transferring funds to complete payments.",
|
99
|
+
loading: n(r)
|
100
|
+
}, {
|
101
|
+
default: V(() => [
|
102
|
+
i("div", T, [
|
103
|
+
i("div", q, [
|
104
|
+
d(I)
|
105
|
+
]),
|
106
|
+
i("div", E, [
|
107
|
+
d(B, {
|
108
|
+
button: {
|
109
|
+
appendIcon: "file_download",
|
110
|
+
variant: "primary",
|
111
|
+
label: "Export"
|
112
|
+
},
|
113
|
+
handler: async () => {
|
114
|
+
await n(w).downloadRestaurantSettlementReport({
|
115
|
+
start: n(t).startDate,
|
116
|
+
end: n(t).endDate
|
117
|
+
});
|
118
|
+
}
|
119
|
+
}, null, 8, ["handler"])
|
120
|
+
])
|
121
|
+
]),
|
122
|
+
i("div", N, [
|
123
|
+
d(L, {
|
124
|
+
modelValue: n(t),
|
125
|
+
"onUpdate:modelValue": a[0] || (a[0] = (p) => $(t) ? t.value = p : null)
|
126
|
+
}, null, 8, ["modelValue"])
|
127
|
+
]),
|
128
|
+
d(P, {
|
129
|
+
loading: n(r),
|
130
|
+
data: l.value,
|
131
|
+
onRowClick: a[1] || (a[1] = (p) => n(c).push({
|
132
|
+
name: "mf-payment-settlement-transaction",
|
133
|
+
params: {
|
134
|
+
settlementId: p._id
|
135
|
+
}
|
136
|
+
}))
|
137
|
+
}, null, 8, ["loading", "data"])
|
138
|
+
]),
|
139
|
+
_: 1
|
140
|
+
}, 8, ["loading"]));
|
141
|
+
}
|
142
|
+
});
|
143
|
+
export {
|
144
|
+
ot as default
|
145
|
+
};
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as k, normalizeClass as j, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as p, ref as T, 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-
|
2
|
+
import { e as E, u as q } from "./index-4meiCsRz.js";
|
3
3
|
import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
|
4
4
|
import { d as B } from "./dinero-CIVmXLL-.js";
|
5
|
-
import { g as W, a as X } from "./assets-
|
6
|
-
import { t as P,
|
5
|
+
import { g as W, a as X } from "./assets-BCAivOTo.js";
|
6
|
+
import { t as P, b as Z } from "./transaction-COjHU7aN.js";
|
7
7
|
import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
8
8
|
import { useRouter as te } from "vue-router";
|
9
|
-
import { s as ae } from "./index-
|
9
|
+
import { s as ae } from "./index-CETCXB6X.js";
|
10
10
|
import { u as ne } from "./error-K1CakhA9.js";
|
11
11
|
import { w as oe } from "./Modal-DB8M9o1T.js";
|
12
12
|
const re = /* @__PURE__ */ w({
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent as T, resolveComponent as g, openBlock as F, createBlock as P, normalizeClass as z, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as c, ref as _, onMounted as G, watch as $, createVNode as a, createTextVNode as i, h as C } from "vue";
|
2
|
-
import { e as E, u as j } from "./index-
|
2
|
+
import { e as E, u as j } from "./index-4meiCsRz.js";
|
3
3
|
import "@feedmepos/ui-library";
|
4
4
|
import { d as h } from "./dinero-CIVmXLL-.js";
|
5
|
-
import { g as Y, a as H } from "./assets-
|
6
|
-
import { t as q,
|
5
|
+
import { g as Y, a as H } from "./assets-BCAivOTo.js";
|
6
|
+
import { t as q, b as J } from "./transaction-COjHU7aN.js";
|
7
7
|
import { _ as Q } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
8
8
|
import { useRouter as W } from "vue-router";
|
9
|
-
import { s as X } from "./index-
|
9
|
+
import { s as X } from "./index-CETCXB6X.js";
|
10
10
|
import { useCoreStore as Z } from "@feedmepos/mf-common";
|
11
11
|
const ee = /* @__PURE__ */ T({
|
12
12
|
__name: "Status",
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as x, openBlock as f, createElementBlock as B, createTextVNode as L, createElementVNode as h, toDisplayString as U, resolveComponent as p, createVNode as v, normalizeClass as O, withCtx as V, createBlock as g, createCommentVNode as I, ref as k, computed as z, unref as c, watch as D, isRef as K, h as E } from "vue";
|
2
|
-
import "./index-
|
2
|
+
import "./index-4meiCsRz.js";
|
3
3
|
import { h as Y } from "./moment-h96o7c8I.js";
|
4
|
-
import { u as j } from "./index-
|
5
|
-
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-
|
4
|
+
import { u as j } from "./index-BwFHcZlm.js";
|
5
|
+
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-CKOlikHb.js";
|
6
6
|
import { _ as Q } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
7
7
|
import { useSnackbar as $, useDialogChild as G, useDialog as H } from "@feedmepos/ui-library";
|
8
|
-
import { t as A } from "./index-
|
8
|
+
import { t as A } from "./index-CBa6eapm.js";
|
9
9
|
import { c as J } from "./clipboard-4jh1WteU.js";
|
10
10
|
import { u as N } from "./error-K1CakhA9.js";
|
11
11
|
import { z as P, a as R } from "./validator-D5jtpt9A.js";
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as x, openBlock as I, createElementBlock as M, Fragment as $, createElementVNode as v, createTextVNode as T, toDisplayString as V, ref as g, onMounted as C, computed as D, resolveComponent as f, unref as b, createVNode as F, createBlock as w, withCtx as G, createCommentVNode as q, isRef as P, resolveDynamicComponent as R, normalizeProps as Y, mergeProps as K } from "vue";
|
2
|
-
import { u as _, e as U } from "./index-
|
2
|
+
import { u as _, e as U } from "./index-4meiCsRz.js";
|
3
3
|
import { useRouter as L } from "vue-router";
|
4
|
-
import { t as S } from "./index-
|
4
|
+
import { t as S } from "./index-CBa6eapm.js";
|
5
5
|
import { _ as j } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
6
|
-
import { u as E } from "./index-
|
6
|
+
import { u as E } from "./index-BwFHcZlm.js";
|
7
7
|
import { useSnackbar as A } from "@feedmepos/ui-library";
|
8
8
|
import { u as z } from "./error-K1CakhA9.js";
|
9
9
|
import { useCoreStore as N } from "@feedmepos/mf-common";
|