@feedmepos/mf-payment 1.8.6 → 1.8.7-dev
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/{Actions.vue_vue_type_script_setup_true_lang-CVd887uW.js → Actions.vue_vue_type_script_setup_true_lang-DwVGVy6y.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CTfdDeo-.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-NTPcPh7m.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-kbpe44vU.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BhLNuDLV.js} +2 -2
- package/dist/{Chargeback-CcuvSbrA.js → Chargeback-B0adi9tu.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DfRNwTv8.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BesgP8Zx.js} +1 -1
- package/dist/{OnboardForm-BV16nrnb.js → OnboardForm-BZNR7YRO.js} +6 -6
- package/dist/{OnboardForm-Rl88SE_H.js → OnboardForm-Da_Zkr04.js} +6 -6
- package/dist/{OnboardSubmission-YijjU0zY.js → OnboardSubmission-DkqDcFW-.js} +3 -3
- package/dist/{OnboardSubmission-DUcGNqZh.js → OnboardSubmission-blVuBMVf.js} +6 -6
- package/dist/{PayoutAccount-DQwFZJ6m.js → PayoutAccount-BOh-oPzM.js} +7 -7
- package/dist/{PayoutAccount-BeHx_1OX.js → PayoutAccount-CisINLO7.js} +5 -5
- package/dist/{PayoutAccountSetting-DNMZoESm.js → PayoutAccountSetting-CyHuvDLl.js} +679 -609
- package/dist/{Restaurant-DR13a2cg.js → Restaurant-DpGuNk4s.js} +4 -4
- package/dist/{RestaurantSetting-B2weOYrU.js → RestaurantSetting-sisyW2AJ.js} +156 -81
- package/dist/{Settlement-k40Q2Yu2.js → Settlement-0e5VdSvB.js} +181 -188
- package/dist/{Settlement-D7tHzgVa.js → Settlement-Bqp9yuln.js} +3 -3
- package/dist/{SettlementTransactions-DDSqdqXn.js → SettlementTransactions-C-R1usSN.js} +5 -5
- package/dist/{SettlementTransactions-DQTLeVbn.js → SettlementTransactions-DoYc-TjQ.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-DXDw0QJo.js → Status.vue_vue_type_script_setup_true_lang-Dj9fYdyF.js} +1 -1
- package/dist/{Terminal-C7Jli9yt.js → Terminal-DDZzBUxB.js} +5 -5
- package/dist/{TerminalSetting-D1XQ6hi6.js → TerminalSetting-CNkj8VTS.js} +473 -462
- package/dist/{Transaction-BT-sO9R_.js → Transaction-BQe1vvrV.js} +11 -11
- package/dist/{Transaction-DzMoFH_T.js → Transaction-DwSw-3Yf.js} +10 -10
- package/dist/{TransactionOld-BasDL_U-.js → TransactionOld-CanwS9gV.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-B0aJ876b.js → TransactionStatus.vue_vue_type_script_setup_true_lang-D1HqzeYP.js} +1 -1
- package/dist/{app-DwppBYkj.js → app-CoaBq1i6.js} +576 -567
- package/dist/app.js +1 -1
- package/dist/assets-CZ760sjw.js +93 -0
- package/dist/{grafana-DgAK77DK.js → grafana-2neQkfk-.js} +1 -1
- package/dist/{index-COXIfCsK.js → index-6Dd1L6Fm.js} +2 -2
- package/dist/{index-BMLa0NYv.js → index-7Zi90JCM.js} +1 -1
- package/dist/{index-_j4Dlizn.js → index-Bf_FvyKq.js} +1 -1
- package/dist/{index-cISc370A.js → index-BxgcnZAz.js} +1 -1
- package/dist/{index-CQzH1Uyx.js → index-C9L-NC7l.js} +2820 -2771
- package/dist/{index-BoOKT87S.js → index-Dvemu9a9.js} +1 -1
- package/dist/{index-6lmaZ5Vz.js → index-iQ7xoR08.js} +1 -1
- package/dist/{index-CKl_n27v.js → index-oDax3sC5.js} +1 -1
- package/dist/{index-C_F82jsF.js → index-qmg9vVzY.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BbI8uR31.js → index.vue_vue_type_script_setup_true_lang-CYjP7wpO.js} +1 -1
- package/dist/{onboard-submission-DKt2Khj9.js → onboard-submission-zQoOH0KN.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-C9Lm4Y7Z.js → payout-account-DOH980ul.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +44 -32
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +12 -12
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +12 -12
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +12 -12
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +44 -32
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +48 -36
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +48 -36
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +44 -32
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +44 -32
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +48 -36
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/BeamGateway.vue.d.ts +41 -0
- package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/BeamGateway.vue.d.ts +48 -0
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -4
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +4 -4
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +30 -30
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +88 -64
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +48 -48
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +24 -24
- package/dist/views/settlement/SettlementTable.vue.d.ts +4 -4
- package/package.json +2 -2
- package/dist/assets-CxA6b1Rm.js +0 -92
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as x,
|
|
2
|
-
import { u as q } from "./index-
|
|
1
|
+
import { defineComponent as x, openBlock as R, createElementBlock as M, normalizeStyle as Q, toDisplayString as y, ref as A, computed as j, resolveComponent as k, Fragment as G, unref as e, withDirectives as W, createBlock as V, vShow as X, createCommentVNode as E, createVNode as p, h as L, watch as D, createElementVNode as i, withCtx as S, createTextVNode as T, onMounted as z, renderList as Z, isRef as P } from "vue";
|
|
2
|
+
import { u as q } from "./index-C9L-NC7l.js";
|
|
3
3
|
import { h as Y } from "./moment-h96o7c8I.js";
|
|
4
|
-
import { useCoreStore as H, useI18n as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { s as
|
|
7
|
-
import { useDialog as
|
|
4
|
+
import { useCoreStore as H, useI18n as K } from "@feedmepos/mf-common";
|
|
5
|
+
import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
6
|
+
import { s as B } from "./index-qmg9vVzY.js";
|
|
7
|
+
import { useDialog as te } from "@feedmepos/ui-library";
|
|
8
8
|
import { d as g } from "./dinero-CIVmXLL-.js";
|
|
9
9
|
import { _ as J } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
|
|
10
|
-
import { useRouter as
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { p as
|
|
15
|
-
const
|
|
10
|
+
import { useRouter as ae } from "vue-router";
|
|
11
|
+
import { u as ne } from "./index-7Zi90JCM.js";
|
|
12
|
+
import { _ as oe } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
13
|
+
import { _ as le } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js";
|
|
14
|
+
import { p as se } from "./index-BxgcnZAz.js";
|
|
15
|
+
const re = /* @__PURE__ */ x({
|
|
16
16
|
__name: "InvoiceStatus",
|
|
17
17
|
props: {
|
|
18
18
|
data: {}
|
|
@@ -22,19 +22,14 @@ const se = /* @__PURE__ */ x({
|
|
|
22
22
|
function c() {
|
|
23
23
|
return n.data && n.data !== "" ? "#66BB6A" : "#EF5350";
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return n.data && n.data !== "" ? "
|
|
25
|
+
function m() {
|
|
26
|
+
return n.data && n.data !== "" ? "Ready" : "Not Ready";
|
|
27
27
|
}
|
|
28
|
-
return (d, r) => {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
name: i(),
|
|
32
|
-
color: c(),
|
|
33
|
-
size: "lg"
|
|
34
|
-
}, null, 8, ["name", "color"]);
|
|
35
|
-
};
|
|
28
|
+
return (d, r) => (R(), M("span", {
|
|
29
|
+
style: Q({ color: c() })
|
|
30
|
+
}, y(m()), 5));
|
|
36
31
|
}
|
|
37
|
-
}),
|
|
32
|
+
}), ue = /* @__PURE__ */ x({
|
|
38
33
|
__name: "SettlementTable",
|
|
39
34
|
props: {
|
|
40
35
|
data: {
|
|
@@ -48,7 +43,7 @@ const se = /* @__PURE__ */ x({
|
|
|
48
43
|
},
|
|
49
44
|
emits: ["row-click"],
|
|
50
45
|
setup(v, { emit: n }) {
|
|
51
|
-
const { currentCountry: c, currentBusiness:
|
|
46
|
+
const { currentCountry: c, currentBusiness: m, namespace: d } = H(), { t: r } = K(), w = A(!0), _ = v, f = n, o = A(""), t = [
|
|
52
47
|
{
|
|
53
48
|
header: () => r("payment.settlements.table.id"),
|
|
54
49
|
accessorKey: "id",
|
|
@@ -84,9 +79,9 @@ const se = /* @__PURE__ */ x({
|
|
|
84
79
|
{
|
|
85
80
|
header: () => r("payment.settlements.table.invoice_status"),
|
|
86
81
|
accessorKey: "invoiceId",
|
|
87
|
-
cell: ({ cell: u }) => L(
|
|
82
|
+
cell: ({ cell: u }) => L(re, { data: u.getValue() })
|
|
88
83
|
}
|
|
89
|
-
],
|
|
84
|
+
], b = j(() => _.data.map((u) => ({
|
|
90
85
|
id: u._id,
|
|
91
86
|
bank: u.beneficiaryBank.name,
|
|
92
87
|
accountNo: u.beneficiaryBank.accountNumber,
|
|
@@ -95,20 +90,20 @@ const se = /* @__PURE__ */ x({
|
|
|
95
90
|
fee: g(u.totalFee).toFormat("$0.00"),
|
|
96
91
|
payout: g(u.totalPayout).toFormat("$0.00"),
|
|
97
92
|
invoiceId: u.invoiceId
|
|
98
|
-
}))),
|
|
99
|
-
var
|
|
93
|
+
}))), h = () => {
|
|
94
|
+
var $;
|
|
100
95
|
let u = "https://license.feedme.cc/invoices";
|
|
101
96
|
d.value === "dev" && (u = "https://license.feedmedev.cc/invoices");
|
|
102
|
-
const
|
|
103
|
-
businessId: ((
|
|
97
|
+
const F = new URLSearchParams({
|
|
98
|
+
businessId: (($ = m.value) == null ? void 0 : $._id) ?? "",
|
|
104
99
|
country: c.value ?? "MY"
|
|
105
100
|
});
|
|
106
|
-
open(`${u}?${
|
|
101
|
+
open(`${u}?${F.toString()}`, "_blank");
|
|
107
102
|
};
|
|
108
|
-
return (u,
|
|
109
|
-
const
|
|
110
|
-
return
|
|
111
|
-
e(c) === "MY" ?
|
|
103
|
+
return (u, F) => {
|
|
104
|
+
const $ = k("FmSnackbar"), l = k("FmTable");
|
|
105
|
+
return R(), M(G, null, [
|
|
106
|
+
e(c) === "MY" ? W((R(), V($, {
|
|
112
107
|
key: 0,
|
|
113
108
|
class: "mb-10",
|
|
114
109
|
title: e(r)("payment.settlements.invoice.title"),
|
|
@@ -116,24 +111,24 @@ const se = /* @__PURE__ */ x({
|
|
|
116
111
|
action: e(r)("payment.settlements.invoice.action"),
|
|
117
112
|
variant: "info",
|
|
118
113
|
dismissable: "",
|
|
119
|
-
onOnDismiss:
|
|
120
|
-
onOnAction:
|
|
114
|
+
onOnDismiss: F[0] || (F[0] = (s) => w.value = !1),
|
|
115
|
+
onOnAction: h
|
|
121
116
|
}, null, 8, ["title", "description", "action"])), [
|
|
122
|
-
[
|
|
117
|
+
[X, w.value]
|
|
123
118
|
]) : E("", !0),
|
|
124
119
|
p(l, {
|
|
125
120
|
modelValue: o.value,
|
|
126
|
-
"onUpdate:modelValue":
|
|
127
|
-
"row-data":
|
|
121
|
+
"onUpdate:modelValue": F[1] || (F[1] = (s) => o.value = s),
|
|
122
|
+
"row-data": b.value,
|
|
128
123
|
"shrink-at": !1,
|
|
129
124
|
"column-defs": t,
|
|
130
125
|
loading: _.loading,
|
|
131
|
-
onRowClick:
|
|
126
|
+
onRowClick: F[2] || (F[2] = (s) => f("row-click", _.data.at(s.index)))
|
|
132
127
|
}, null, 8, ["modelValue", "row-data", "loading"])
|
|
133
128
|
], 64);
|
|
134
129
|
};
|
|
135
130
|
}
|
|
136
|
-
}),
|
|
131
|
+
}), me = /* @__PURE__ */ x({
|
|
137
132
|
__name: "FiuuSettlementTable",
|
|
138
133
|
props: {
|
|
139
134
|
data: {
|
|
@@ -147,11 +142,11 @@ const se = /* @__PURE__ */ x({
|
|
|
147
142
|
},
|
|
148
143
|
emits: ["row-click"],
|
|
149
144
|
setup(v, { emit: n }) {
|
|
150
|
-
const { t: c } =
|
|
145
|
+
const { t: c } = K(), m = v, d = n, r = A(""), w = [
|
|
151
146
|
{
|
|
152
147
|
header: () => c("payment.settlements.table.id"),
|
|
153
148
|
accessorKey: "id",
|
|
154
|
-
cell: ({ cell:
|
|
149
|
+
cell: ({ cell: f }) => L(J, { data: f.getValue() })
|
|
155
150
|
},
|
|
156
151
|
{
|
|
157
152
|
header: () => c("payment.settlements.table.bank"),
|
|
@@ -184,35 +179,34 @@ const se = /* @__PURE__ */ x({
|
|
|
184
179
|
header: () => c("payment.settlements.table.settlement_amount"),
|
|
185
180
|
accessorKey: "payout"
|
|
186
181
|
}
|
|
187
|
-
], _ = j(() =>
|
|
188
|
-
id:
|
|
189
|
-
bank:
|
|
190
|
-
accountNo:
|
|
191
|
-
transactionAt: Y(
|
|
182
|
+
], _ = j(() => m.data.map((f) => ({
|
|
183
|
+
id: f.summary.referenceNo,
|
|
184
|
+
bank: f.summary.bank.name,
|
|
185
|
+
accountNo: f.summary.bank.accountNo,
|
|
186
|
+
transactionAt: Y(f.summary.completedAt).format(
|
|
192
187
|
"YYYY-MM-DD"
|
|
193
188
|
),
|
|
194
|
-
amount: g(
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
payout: g(y.summary.payout).toFormat("$0.00")
|
|
189
|
+
amount: g(f.summary.amount).toFormat("$0.00"),
|
|
190
|
+
fee: g(f.summary.commission).toFormat("$0.00"),
|
|
191
|
+
payout: g(f.summary.payout).toFormat("$0.00")
|
|
198
192
|
})));
|
|
199
|
-
return (
|
|
193
|
+
return (f, o) => {
|
|
200
194
|
const t = k("FmTable");
|
|
201
|
-
return
|
|
195
|
+
return R(), V(t, {
|
|
202
196
|
modelValue: r.value,
|
|
203
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
197
|
+
"onUpdate:modelValue": o[0] || (o[0] = (b) => r.value = b),
|
|
204
198
|
"row-data": _.value,
|
|
205
199
|
"shrink-at": !1,
|
|
206
|
-
"column-defs":
|
|
207
|
-
loading:
|
|
208
|
-
onRowClick: o[1] || (o[1] = (
|
|
200
|
+
"column-defs": w,
|
|
201
|
+
loading: m.loading,
|
|
202
|
+
onRowClick: o[1] || (o[1] = (b) => d("row-click", m.data.at(b.index)))
|
|
209
203
|
}, null, 8, ["modelValue", "row-data", "loading"]);
|
|
210
204
|
};
|
|
211
205
|
}
|
|
212
|
-
}),
|
|
206
|
+
}), ie = {
|
|
213
207
|
id: "fiuu-settlement-dialog",
|
|
214
208
|
class: "flex mb-6"
|
|
215
|
-
},
|
|
209
|
+
}, ce = { class: "my-6 w-[240px]" }, de = /* @__PURE__ */ x({
|
|
216
210
|
__name: "FiuuSettlementTransactions",
|
|
217
211
|
props: {
|
|
218
212
|
settlement: {
|
|
@@ -221,13 +215,13 @@ const se = /* @__PURE__ */ x({
|
|
|
221
215
|
}
|
|
222
216
|
},
|
|
223
217
|
setup(v) {
|
|
224
|
-
const { t: n } =
|
|
218
|
+
const { t: n } = K(), m = A(
|
|
225
219
|
v.settlement.record.map((o) => (Object.assign(o, {
|
|
226
220
|
__localAmount: g(o.amount).toFormat("0.00"),
|
|
227
221
|
__localComission: g(o.commission).toFormat("0.00"),
|
|
228
222
|
__localNetAMount: g(o.netAmount).toFormat("0.00")
|
|
229
223
|
}), o))
|
|
230
|
-
), d = A(
|
|
224
|
+
), d = A(m.value), r = A(""), w = [
|
|
231
225
|
{
|
|
232
226
|
header: () => n("payment.settlements.dialog.fiuu.id"),
|
|
233
227
|
accessorKey: "referenceNo"
|
|
@@ -260,42 +254,42 @@ const se = /* @__PURE__ */ x({
|
|
|
260
254
|
cell: ({ cell: o }) => g(o.getValue()).toFormat("$0.00")
|
|
261
255
|
}
|
|
262
256
|
], _ = A("");
|
|
263
|
-
let
|
|
257
|
+
let f;
|
|
264
258
|
return D(_, async () => {
|
|
265
|
-
|
|
259
|
+
f && clearTimeout(f), f = setTimeout(() => {
|
|
266
260
|
var o = new RegExp(_.value, "i");
|
|
267
|
-
d.value =
|
|
268
|
-
const
|
|
269
|
-
return o.test(
|
|
261
|
+
d.value = m.value.filter((t) => {
|
|
262
|
+
const b = JSON.stringify(t);
|
|
263
|
+
return o.test(b);
|
|
270
264
|
});
|
|
271
265
|
}, 700);
|
|
272
266
|
}), (o, t) => {
|
|
273
|
-
const
|
|
274
|
-
return
|
|
275
|
-
|
|
267
|
+
const b = k("FmCardHeader"), h = k("FmCardSection"), u = k("FmCard"), F = k("FmSearch"), $ = k("FmTable");
|
|
268
|
+
return R(), M(G, null, [
|
|
269
|
+
i("div", ie, [
|
|
276
270
|
p(u, {
|
|
277
271
|
horizontal: "",
|
|
278
272
|
class: "flex-1 p-6",
|
|
279
273
|
variant: "elevated"
|
|
280
274
|
}, {
|
|
281
275
|
default: S(() => [
|
|
282
|
-
p(
|
|
276
|
+
p(h, { class: "flex flex-col gap-16 justify-between" }, {
|
|
283
277
|
default: S(() => [
|
|
284
|
-
p(
|
|
278
|
+
p(b, {
|
|
285
279
|
class: "p-0",
|
|
286
280
|
title: e(n)("payment.settlements.dialog.info.transaction.title"),
|
|
287
281
|
subtitle: ""
|
|
288
282
|
}, null, 8, ["title"]),
|
|
289
|
-
p(
|
|
283
|
+
p(h, { class: "p-0" }, {
|
|
290
284
|
default: S(() => [
|
|
291
|
-
|
|
292
|
-
T(": " +
|
|
293
|
-
t[2] || (t[2] =
|
|
294
|
-
|
|
295
|
-
T(": " +
|
|
296
|
-
t[3] || (t[3] =
|
|
297
|
-
|
|
298
|
-
T(": " +
|
|
285
|
+
i("b", null, y(e(n)("payment.settlements.dialog.info.transaction.for")), 1),
|
|
286
|
+
T(": " + y(v.settlement.summary.group) + " ", 1),
|
|
287
|
+
t[2] || (t[2] = i("br", null, null, -1)),
|
|
288
|
+
i("b", null, y(e(n)("payment.settlements.dialog.info.transaction.reference")), 1),
|
|
289
|
+
T(": " + y(v.settlement.summary.referenceNo), 1),
|
|
290
|
+
t[3] || (t[3] = i("br", null, null, -1)),
|
|
291
|
+
i("b", null, y(e(n)("payment.settlements.dialog.info.transaction.count")), 1),
|
|
292
|
+
T(": " + y(m.value.length), 1)
|
|
299
293
|
]),
|
|
300
294
|
_: 1
|
|
301
295
|
})
|
|
@@ -311,23 +305,23 @@ const se = /* @__PURE__ */ x({
|
|
|
311
305
|
variant: "elevated"
|
|
312
306
|
}, {
|
|
313
307
|
default: S(() => [
|
|
314
|
-
p(
|
|
308
|
+
p(h, { class: "flex flex-col gap-16 justify-between" }, {
|
|
315
309
|
default: S(() => [
|
|
316
|
-
p(
|
|
310
|
+
p(b, {
|
|
317
311
|
class: "p-0",
|
|
318
312
|
title: e(n)("payment.settlements.dialog.info.bank.title"),
|
|
319
313
|
subtitle: ""
|
|
320
314
|
}, null, 8, ["title"]),
|
|
321
|
-
p(
|
|
315
|
+
p(h, { class: "p-0" }, {
|
|
322
316
|
default: S(() => [
|
|
323
|
-
|
|
324
|
-
T(": " +
|
|
325
|
-
t[4] || (t[4] =
|
|
326
|
-
|
|
327
|
-
T(": " +
|
|
328
|
-
t[5] || (t[5] =
|
|
329
|
-
|
|
330
|
-
T(": " +
|
|
317
|
+
i("b", null, y(e(n)("payment.settlements.dialog.info.bank.for")), 1),
|
|
318
|
+
T(": " + y(v.settlement.summary.bank.name), 1),
|
|
319
|
+
t[4] || (t[4] = i("br", null, null, -1)),
|
|
320
|
+
i("b", null, y(e(n)("payment.settlements.dialog.info.bank.name")), 1),
|
|
321
|
+
T(": " + y(v.settlement.summary.bank.holderName), 1),
|
|
322
|
+
t[5] || (t[5] = i("br", null, null, -1)),
|
|
323
|
+
i("b", null, y(e(n)("payment.settlements.dialog.info.bank.number")), 1),
|
|
324
|
+
T(": " + y(v.settlement.summary.bank.accountNo), 1)
|
|
331
325
|
]),
|
|
332
326
|
_: 1
|
|
333
327
|
})
|
|
@@ -343,26 +337,25 @@ const se = /* @__PURE__ */ x({
|
|
|
343
337
|
variant: "elevated"
|
|
344
338
|
}, {
|
|
345
339
|
default: S(() => [
|
|
346
|
-
p(
|
|
340
|
+
p(h, { class: "flex flex-col gap-16 justify-between" }, {
|
|
347
341
|
default: S(() => [
|
|
348
|
-
p(
|
|
342
|
+
p(b, {
|
|
349
343
|
class: "p-0",
|
|
350
344
|
title: e(n)("payment.settlements.dialog.info.payout.title"),
|
|
351
345
|
subtitle: ""
|
|
352
346
|
}, null, 8, ["title"]),
|
|
353
|
-
p(
|
|
347
|
+
p(h, { class: "p-0" }, {
|
|
354
348
|
default: S(() => [
|
|
355
|
-
|
|
356
|
-
T(": " +
|
|
357
|
-
t[6] || (t[6] =
|
|
358
|
-
|
|
359
|
-
T(": " +
|
|
360
|
-
t[7] || (t[7] =
|
|
361
|
-
|
|
362
|
-
T(": " +
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
T(": " + b(e(g)(v.settlement.summary.payout).toFormat("$0.00")), 1)
|
|
349
|
+
i("b", null, y(e(n)("payment.settlements.dialog.info.payout.amount")), 1),
|
|
350
|
+
T(": " + y(e(g)(v.settlement.summary.amount).toFormat("$0.00")), 1),
|
|
351
|
+
t[6] || (t[6] = i("br", null, null, -1)),
|
|
352
|
+
i("b", null, y(e(n)("payment.settlements.dialog.info.payout.fee")), 1),
|
|
353
|
+
T(": " + y(e(g)(v.settlement.summary.commission).toFormat("$0.00")), 1),
|
|
354
|
+
t[7] || (t[7] = i("br", null, null, -1)),
|
|
355
|
+
i("b", null, y(e(n)("payment.settlements.dialog.info.payout.refund")), 1),
|
|
356
|
+
T(": " + y(e(g)(v.settlement.summary.refund).toFormat("$0.00")) + " ", 1),
|
|
357
|
+
i("b", null, y(e(n)("payment.settlements.dialog.info.payout.payout")), 1),
|
|
358
|
+
T(": " + y(e(g)(v.settlement.summary.payout).toFormat("$0.00")), 1)
|
|
366
359
|
]),
|
|
367
360
|
_: 1
|
|
368
361
|
})
|
|
@@ -373,27 +366,27 @@ const se = /* @__PURE__ */ x({
|
|
|
373
366
|
_: 1
|
|
374
367
|
})
|
|
375
368
|
]),
|
|
376
|
-
|
|
377
|
-
p(
|
|
369
|
+
i("div", ce, [
|
|
370
|
+
p(F, {
|
|
378
371
|
modelValue: _.value,
|
|
379
372
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => _.value = l),
|
|
380
373
|
placeholder: e(n)("payment.settlements.dialog.search")
|
|
381
374
|
}, null, 8, ["modelValue", "placeholder"])
|
|
382
375
|
]),
|
|
383
|
-
p(
|
|
376
|
+
p($, {
|
|
384
377
|
modelValue: r.value,
|
|
385
378
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => r.value = l),
|
|
386
379
|
"shrink-at": !1,
|
|
387
380
|
"row-data": d.value,
|
|
388
|
-
"column-defs":
|
|
381
|
+
"column-defs": w
|
|
389
382
|
}, null, 8, ["modelValue", "row-data"])
|
|
390
383
|
], 64);
|
|
391
384
|
};
|
|
392
385
|
}
|
|
393
|
-
}),
|
|
386
|
+
}), pe = {
|
|
394
387
|
key: 1,
|
|
395
388
|
class: "inline-flex"
|
|
396
|
-
},
|
|
389
|
+
}, ye = { class: "relative" }, fe = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, be = /* @__PURE__ */ x({
|
|
397
390
|
__name: "SettlementSelector",
|
|
398
391
|
props: {
|
|
399
392
|
id: {},
|
|
@@ -401,50 +394,50 @@ const se = /* @__PURE__ */ x({
|
|
|
401
394
|
},
|
|
402
395
|
emits: ["update:id", "update:by"],
|
|
403
396
|
setup(v, { emit: n }) {
|
|
404
|
-
const c = v,
|
|
397
|
+
const c = v, m = n, { t: d } = K(), { currentBusiness: r, readRestaurants: w } = H(), { isLoading: _, startAsyncCall: f } = q(!0), o = A([]), t = A(), b = A(""), h = A([]);
|
|
405
398
|
let u;
|
|
406
|
-
D(
|
|
399
|
+
D(b, async () => {
|
|
407
400
|
u && clearTimeout(u), u = setTimeout(() => {
|
|
408
|
-
var l = new RegExp(
|
|
409
|
-
|
|
410
|
-
const
|
|
411
|
-
return l.test(
|
|
401
|
+
var l = new RegExp(b.value, "i");
|
|
402
|
+
h.value = o.value.filter((s) => {
|
|
403
|
+
const N = JSON.stringify(s);
|
|
404
|
+
return l.test(N);
|
|
412
405
|
});
|
|
413
406
|
}, 700);
|
|
414
407
|
}), D(t, () => {
|
|
415
408
|
var l, s;
|
|
416
|
-
|
|
409
|
+
m("update:id", (l = t.value) == null ? void 0 : l.value), m("update:by", (s = t.value) == null ? void 0 : s.by);
|
|
417
410
|
});
|
|
418
|
-
async function
|
|
419
|
-
return
|
|
411
|
+
async function F() {
|
|
412
|
+
return f(async () => {
|
|
420
413
|
try {
|
|
421
|
-
let l = await
|
|
414
|
+
let l = await se.readBusinessPayoutAccounts();
|
|
422
415
|
return l.length === 0 ? void 0 : l;
|
|
423
416
|
} catch {
|
|
424
417
|
return [];
|
|
425
418
|
}
|
|
426
419
|
});
|
|
427
420
|
}
|
|
428
|
-
async function
|
|
421
|
+
async function $() {
|
|
429
422
|
_.value = !0;
|
|
430
423
|
const l = [];
|
|
431
|
-
let s = await
|
|
424
|
+
let s = await F();
|
|
432
425
|
l.push(
|
|
433
426
|
...(s || []).filter((a) => a.store.event !== "ORDERING").map((a) => {
|
|
434
|
-
var
|
|
427
|
+
var O, U, I, C;
|
|
435
428
|
return {
|
|
436
429
|
by: "PAYOUT_ACCOUNT",
|
|
437
430
|
value: a.store.id,
|
|
438
431
|
prefix: d("payment.components.payout_account"),
|
|
439
432
|
type: "Payout Account - " + a.store.event,
|
|
440
|
-
label: ((
|
|
441
|
-
chipLabel: "Marketing: " + (((C = (
|
|
433
|
+
label: ((U = (O = a.ref) == null ? void 0 : O.profile) == null ? void 0 : U.name) ?? a.ref.name,
|
|
434
|
+
chipLabel: "Marketing: " + (((C = (I = a.ref) == null ? void 0 : I.profile) == null ? void 0 : C.name) ?? a.ref.name)
|
|
442
435
|
};
|
|
443
436
|
})
|
|
444
437
|
);
|
|
445
|
-
const
|
|
438
|
+
const N = await w();
|
|
446
439
|
l.push(
|
|
447
|
-
...(
|
|
440
|
+
...(N || []).filter((a) => a.managable).map((a) => ({
|
|
448
441
|
by: "RESTAURANT",
|
|
449
442
|
value: a._id,
|
|
450
443
|
prefix: d("payment.components.restaurant"),
|
|
@@ -452,15 +445,15 @@ const se = /* @__PURE__ */ x({
|
|
|
452
445
|
label: a.profile.name + " (" + (a.profile.code ?? "--") + ")",
|
|
453
446
|
chipLabel: "Restaurant: " + a.profile.name + " (" + (a.profile.code ?? "--") + ")"
|
|
454
447
|
}))
|
|
455
|
-
), o.value = l,
|
|
448
|
+
), o.value = l, h.value = o.value, t.value = l.find((a) => a.value === c.id && a.by === c.by) ?? l[0], _.value = !1;
|
|
456
449
|
}
|
|
457
|
-
return z(
|
|
458
|
-
const
|
|
459
|
-
return e(_) ? (
|
|
450
|
+
return z($), D(r, $), (l, s) => {
|
|
451
|
+
const N = k("FmCircularProgress"), a = k("FmChip"), O = k("FmSearch"), U = k("FmMenuItem"), I = k("FmMenu");
|
|
452
|
+
return e(_) ? (R(), V(N, {
|
|
460
453
|
key: 0,
|
|
461
454
|
size: "md"
|
|
462
|
-
})) : (
|
|
463
|
-
p(
|
|
455
|
+
})) : (R(), M("div", pe, [
|
|
456
|
+
p(I, { "close-on-click": !0 }, {
|
|
464
457
|
"menu-button": S(() => {
|
|
465
458
|
var C;
|
|
466
459
|
return [
|
|
@@ -468,21 +461,21 @@ const se = /* @__PURE__ */ x({
|
|
|
468
461
|
icon: "account_box",
|
|
469
462
|
label: ((C = t.value) == null ? void 0 : C.chipLabel) ?? e(d)("payment.components.select"),
|
|
470
463
|
removable: !!t.value,
|
|
471
|
-
onChipClosed: s[0] || (s[0] = (
|
|
464
|
+
onChipClosed: s[0] || (s[0] = (he) => t.value = void 0)
|
|
472
465
|
}, null, 8, ["label", "removable"])
|
|
473
466
|
];
|
|
474
467
|
}),
|
|
475
468
|
default: S(() => [
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
p(
|
|
479
|
-
"model-value":
|
|
480
|
-
"onUpdate:modelValue": s[1] || (s[1] = (C) =>
|
|
469
|
+
i("div", ye, [
|
|
470
|
+
i("div", fe, [
|
|
471
|
+
p(O, {
|
|
472
|
+
"model-value": b.value,
|
|
473
|
+
"onUpdate:modelValue": s[1] || (s[1] = (C) => b.value = C),
|
|
481
474
|
placeholder: e(d)("payment.components.select")
|
|
482
475
|
}, null, 8, ["model-value", "placeholder"])
|
|
483
476
|
]),
|
|
484
|
-
|
|
485
|
-
(
|
|
477
|
+
i("div", null, [
|
|
478
|
+
(R(!0), M(G, null, Z(h.value, (C) => (R(), V(U, {
|
|
486
479
|
key: C.value,
|
|
487
480
|
label: C.label,
|
|
488
481
|
sublabel: C.type,
|
|
@@ -496,10 +489,10 @@ const se = /* @__PURE__ */ x({
|
|
|
496
489
|
]));
|
|
497
490
|
};
|
|
498
491
|
}
|
|
499
|
-
}),
|
|
492
|
+
}), ve = { class: "flex justify-between items-center mb-6" }, _e = { class: "flex space-x-8 items-center" }, ge = { class: "flex space-x-4 self-center" }, Fe = { class: "mb-6" }, Ke = /* @__PURE__ */ x({
|
|
500
493
|
__name: "Settlement",
|
|
501
494
|
setup(v) {
|
|
502
|
-
const n =
|
|
495
|
+
const n = ae(), { tab: c, dateRange: m, id: d, by: r } = ne({
|
|
503
496
|
id: "",
|
|
504
497
|
by: "",
|
|
505
498
|
tab: "feedme",
|
|
@@ -507,66 +500,66 @@ const se = /* @__PURE__ */ x({
|
|
|
507
500
|
startDate: Y().startOf("day").format("YYYY-MM-DD"),
|
|
508
501
|
endDate: Y().endOf("day").format("YYYY-MM-DD")
|
|
509
502
|
}
|
|
510
|
-
}), { t:
|
|
511
|
-
async function
|
|
512
|
-
const l = await
|
|
513
|
-
start:
|
|
514
|
-
end:
|
|
503
|
+
}), { t: w } = K(), { isLoading: _, startAsyncCall: f } = q(!0), o = te(), t = A([]), b = A([]);
|
|
504
|
+
async function h() {
|
|
505
|
+
const l = await B.readBusinessSettlements({
|
|
506
|
+
start: m.value.startDate,
|
|
507
|
+
end: m.value.endDate,
|
|
515
508
|
event: r.value === "PAYOUT_ACCOUNT" ? "MARKETING" : "ORDERING",
|
|
516
509
|
id: d.value
|
|
517
510
|
});
|
|
518
511
|
t.value = l;
|
|
519
512
|
}
|
|
520
513
|
async function u() {
|
|
521
|
-
const l = await
|
|
522
|
-
start:
|
|
523
|
-
end:
|
|
514
|
+
const l = await B.readBusinessRMSSettlements({
|
|
515
|
+
start: m.value.startDate,
|
|
516
|
+
end: m.value.endDate,
|
|
524
517
|
event: r.value === "PAYOUT_ACCOUNT" ? "MARKETING" : "ORDERING",
|
|
525
518
|
id: d.value
|
|
526
519
|
});
|
|
527
|
-
|
|
520
|
+
b.value = l;
|
|
528
521
|
}
|
|
529
|
-
async function
|
|
522
|
+
async function F() {
|
|
530
523
|
if (!d.value || d.value === "") {
|
|
531
|
-
_.value = !1, t.value = [],
|
|
524
|
+
_.value = !1, t.value = [], b.value = [];
|
|
532
525
|
return;
|
|
533
526
|
}
|
|
534
|
-
await
|
|
527
|
+
await f(async () => Promise.all([h(), u()]));
|
|
535
528
|
}
|
|
536
|
-
async function
|
|
529
|
+
async function $(l) {
|
|
537
530
|
const s = Y(l.summary.completedAt).format("YYYY/MM/DD");
|
|
538
531
|
o.open({
|
|
539
|
-
title: `${
|
|
540
|
-
subTitle: `${
|
|
532
|
+
title: `${w("payment.settlements.dialog.title")} (${l.summary.referenceNo})`,
|
|
533
|
+
subTitle: `${w("payment.settlements.dialog.date")}: ${s}`,
|
|
541
534
|
minWidth: "90%",
|
|
542
535
|
primaryActions: { text: "Close", close: !0 },
|
|
543
|
-
contentComponent:
|
|
536
|
+
contentComponent: de,
|
|
544
537
|
contentComponentProps: { settlement: l }
|
|
545
538
|
});
|
|
546
539
|
}
|
|
547
|
-
return z(
|
|
548
|
-
const
|
|
549
|
-
return
|
|
550
|
-
title: e(
|
|
551
|
-
description: e(
|
|
540
|
+
return z(F), D([d, m], F), (l, s) => {
|
|
541
|
+
const N = k("FmTabs");
|
|
542
|
+
return R(), V(ee, {
|
|
543
|
+
title: e(w)("payment.settlements.title"),
|
|
544
|
+
description: e(w)("payment.settlements.description"),
|
|
552
545
|
loading: !1
|
|
553
546
|
}, {
|
|
554
547
|
default: S(() => [
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
p(
|
|
548
|
+
i("div", ve, [
|
|
549
|
+
i("div", _e, [
|
|
550
|
+
p(be, {
|
|
558
551
|
id: e(d),
|
|
559
|
-
"onUpdate:id": s[0] || (s[0] = (a) =>
|
|
552
|
+
"onUpdate:id": s[0] || (s[0] = (a) => P(d) ? d.value = a : null),
|
|
560
553
|
by: e(r),
|
|
561
|
-
"onUpdate:by": s[1] || (s[1] = (a) =>
|
|
554
|
+
"onUpdate:by": s[1] || (s[1] = (a) => P(r) ? r.value = a : null)
|
|
562
555
|
}, null, 8, ["id", "by"]),
|
|
563
|
-
p(
|
|
564
|
-
modelValue: e(
|
|
565
|
-
"onUpdate:modelValue": s[2] || (s[2] = (a) =>
|
|
556
|
+
p(le, {
|
|
557
|
+
modelValue: e(m),
|
|
558
|
+
"onUpdate:modelValue": s[2] || (s[2] = (a) => P(m) ? m.value = a : null)
|
|
566
559
|
}, null, 8, ["modelValue"])
|
|
567
560
|
]),
|
|
568
|
-
|
|
569
|
-
p(
|
|
561
|
+
i("div", ge, [
|
|
562
|
+
p(oe, {
|
|
570
563
|
button: {
|
|
571
564
|
appendIcon: "file_download",
|
|
572
565
|
variant: "primary",
|
|
@@ -574,20 +567,20 @@ const se = /* @__PURE__ */ x({
|
|
|
574
567
|
},
|
|
575
568
|
handler: async () => {
|
|
576
569
|
const a = {
|
|
577
|
-
start: e(
|
|
578
|
-
end: e(
|
|
570
|
+
start: e(m).startDate,
|
|
571
|
+
end: e(m).endDate,
|
|
579
572
|
event: e(r) === "PAYOUT_ACCOUNT" ? "MARKETING" : "ORDERING",
|
|
580
573
|
id: e(d)
|
|
581
574
|
};
|
|
582
|
-
e(c) === "fiuu" ? await e(
|
|
575
|
+
e(c) === "fiuu" ? await e(B).downloadBusinessRMSSettlementReport(a) : await e(B).downloadBusinessSettlementReport(a);
|
|
583
576
|
}
|
|
584
577
|
}, null, 8, ["handler"])
|
|
585
578
|
])
|
|
586
579
|
]),
|
|
587
|
-
|
|
588
|
-
p(
|
|
580
|
+
i("div", Fe, [
|
|
581
|
+
p(N, {
|
|
589
582
|
modelValue: e(c),
|
|
590
|
-
"onUpdate:modelValue": s[3] || (s[3] = (a) =>
|
|
583
|
+
"onUpdate:modelValue": s[3] || (s[3] = (a) => P(c) ? c.value = a : null),
|
|
591
584
|
items: [
|
|
592
585
|
{
|
|
593
586
|
label: "FeedMe",
|
|
@@ -602,13 +595,13 @@ const se = /* @__PURE__ */ x({
|
|
|
602
595
|
]
|
|
603
596
|
}, null, 8, ["modelValue"])
|
|
604
597
|
]),
|
|
605
|
-
e(c) === "fiuu" ? (
|
|
598
|
+
e(c) === "fiuu" ? (R(), V(me, {
|
|
606
599
|
key: 0,
|
|
607
600
|
loading: e(_),
|
|
608
|
-
data:
|
|
609
|
-
onRowClick:
|
|
601
|
+
data: b.value,
|
|
602
|
+
onRowClick: $
|
|
610
603
|
}, null, 8, ["loading", "data"])) : E("", !0),
|
|
611
|
-
e(c) === "feedme" ? (
|
|
604
|
+
e(c) === "feedme" ? (R(), V(ue, {
|
|
612
605
|
key: 1,
|
|
613
606
|
loading: e(_),
|
|
614
607
|
data: t.value,
|
|
@@ -626,5 +619,5 @@ const se = /* @__PURE__ */ x({
|
|
|
626
619
|
}
|
|
627
620
|
});
|
|
628
621
|
export {
|
|
629
|
-
|
|
622
|
+
Ke as default
|
|
630
623
|
};
|