@feedmepos/mf-payment 1.5.80-dev → 1.5.82-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-Br4opTbs.js → Actions.vue_vue_type_script_setup_true_lang-DmveqLtX.js} +1 -1
- package/dist/{Chargeback-BgfVMSOS.js → Chargeback-VmvisUGu.js} +7 -7
- package/dist/{DateRangePicker.vue_vue_type_script_setup_true_lang-BNVnvrVY.js → DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js} +1 -1
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-BXUnl2s0.js → DocumentViewer.vue_vue_type_script_setup_true_lang-a4tdvor-.js} +3 -3
- package/dist/{OnboardForm-CxUcDXv8.js → OnboardForm-BExXwXNx.js} +6 -6
- package/dist/{OnboardForm-CjWUEKdU.js → OnboardForm-D0mGpzRN.js} +6 -6
- package/dist/{OnboardSubmission-BwHjLKoO.js → OnboardSubmission-0l6rHP_K.js} +5 -5
- package/dist/{OnboardSubmission-DLIrvGEN.js → OnboardSubmission-BzQKborQ.js} +3 -3
- package/dist/{PayoutAccount-BrqWRndY.js → PayoutAccount-C37-eoim.js} +5 -5
- package/dist/{PayoutAccount-crTDThJ0.js → PayoutAccount-D6Rkcp7G.js} +425 -413
- package/dist/PayoutAccountSetting-DXX7EJxn.js +1814 -0
- package/dist/{Restaurant-BxMBJDv6.js → Restaurant-DV7lJtpP.js} +4 -4
- package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-DG3iyjkK.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-ClyF3x4z.js} +10 -10
- package/dist/{RestaurantSetting-DsnrDSoi.js → RestaurantSetting-CbnlKe_X.js} +4 -4
- package/dist/{Settlement-BrwtMegt.js → Settlement-CENbYl7i.js} +106 -106
- package/dist/{Settlement-Bvyroi89.js → Settlement-CTgHuGxF.js} +4 -4
- package/dist/{SettlementTransactions-CWvmC1ux.js → SettlementTransactions-lgRpHl2b.js} +4 -4
- package/dist/{SettlementTransactions-BwH1Xb_p.js → SettlementTransactions-nczzvozh.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-MHCexgfT.js → Status.vue_vue_type_script_setup_true_lang-C6srt-QX.js} +1 -1
- package/dist/{Terminal-VstZsjol.js → Terminal-BuY5F63X.js} +6 -6
- package/dist/{TerminalSetting-CR6be9r-.js → TerminalSetting-Bs4NvSJU.js} +5 -5
- package/dist/{TextInputDialog.vue_vue_type_script_setup_true_lang-D8W8_SO2.js → TextInputDialog.vue_vue_type_script_setup_true_lang-BvGYVca0.js} +1 -1
- package/dist/{Transaction-DS42hml8.js → Transaction-8xCbj280.js} +12 -12
- package/dist/{Transaction-DrRSi6CA.js → Transaction-DQbh0Smb.js} +9 -9
- package/dist/{TransactionOld-9QysVHIB.js → TransactionOld-CQ8TBwYk.js} +9 -9
- package/dist/{app-B5gW8oNn.js → app-ddQJDU0t.js} +844 -816
- package/dist/app.js +1 -1
- package/dist/{assets-DVCMZK8m.js → assets-DVokGBiK.js} +1 -1
- package/dist/{grafana-DcIEsU2v.js → grafana-CnQJdMZR.js} +1 -1
- package/dist/{index-zgv_BtEm.js → index-08J-D9KF.js} +1 -1
- package/dist/{index-z9d5HbRJ.js → index-Bx730dJm.js} +1 -1
- package/dist/{index-YkWD0FSQ.js → index-Bz7TO5OE.js} +2 -2
- package/dist/{index-DUwcZfJ0.js → index-CDzaH59g.js} +1 -1
- package/dist/{index-Y_anwTGP.js → index-CLtlYAjs.js} +1 -1
- package/dist/{index-C8eDa5sd.js → index-CeYu-wJS.js} +1 -1
- package/dist/{index-BiutOqCh.js → index-Ck-7CvXl.js} +1 -1
- package/dist/{index-KUedkpQt.js → index-CueL60C6.js} +1 -1
- package/dist/{index-ClDtlMas.js → index-J3T_Jzks.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BnmWcdWD.js → index.vue_vue_type_script_setup_true_lang-Ds7o6wuL.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-DrGPCQJI.js → payout-account-CrfHgRDX.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{validator-DzjyJnvv.js → validator-CTlVogBQ.js} +1 -0
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +9 -0
- package/dist/views/admin/payout-account/tabs/SettlementEditDialog.vue.d.ts +56 -0
- package/package.json +2 -2
- package/dist/PayoutAccountSetting-EQp5EuOk.js +0 -1502
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as F, ref as y, resolveComponent as _, openBlock as x, createBlock as A, withCtx as $, createElementVNode as p, normalizeStyle as T, createElementBlock as R, Fragment as z, renderList as q, createVNode as v, computed as C, watch as I, onMounted as N, unref as h, toDisplayString as B, normalizeClass as W, isRef as E, h as P } from "vue";
|
|
2
|
-
import { u as O } from "./index-
|
|
2
|
+
import { u as O } from "./index-Ck-7CvXl.js";
|
|
3
3
|
import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
|
|
4
4
|
import "@feedmepos/ui-library";
|
|
5
|
-
import { u as G } from "./index-
|
|
5
|
+
import { u as G } from "./index-CLtlYAjs.js";
|
|
6
6
|
import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
|
|
7
|
-
import { r as H } from "./index-
|
|
7
|
+
import { r as H } from "./index-08J-D9KF.js";
|
|
8
8
|
import { useRouter as J } from "vue-router";
|
|
9
|
-
import { g as X } from "./grafana-
|
|
9
|
+
import { g as X } from "./grafana-CnQJdMZR.js";
|
|
10
10
|
const Y = ["id"], L = /* @__PURE__ */ F({
|
|
11
11
|
__name: "FmTableSelection",
|
|
12
12
|
props: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as g, ref as k, computed as
|
|
1
|
+
import { defineComponent as g, ref as k, computed as m, resolveComponent as s, openBlock as i, createElementBlock as p, createVNode as a, withCtx as d, createElementVNode as n, unref as _, Fragment as x, renderList as F, createBlock as S, toDisplayString as w } from "vue";
|
|
2
2
|
import { useCoreStore as C, useI18n as I } from "@feedmepos/mf-common";
|
|
3
3
|
const M = { class: "inline-flex" }, V = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer" }, B = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, E = { class: "relative" }, N = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, j = /* @__PURE__ */ g({
|
|
4
4
|
__name: "RestaurantSelector",
|
|
5
5
|
setup(z) {
|
|
6
|
-
const o = k(""), c = C(), { t:
|
|
6
|
+
const o = k(""), c = C(), { t: u } = I(), f = m(() => {
|
|
7
7
|
const e = c.currentRestaurant.value;
|
|
8
|
-
return (e == null ? void 0 : e.profile.name) + " (" + ((e == null ? void 0 : e.profile.code) ?? "--") + ")";
|
|
9
|
-
}), v =
|
|
8
|
+
return e ? (e == null ? void 0 : e.profile.name) + " (" + ((e == null ? void 0 : e.profile.code) ?? "--") + ")" : u("payment.components.select");
|
|
9
|
+
}), v = m(() => c.restaurants.value.filter((e) => e.managable).filter((e) => {
|
|
10
10
|
if (!o.value)
|
|
11
11
|
return !0;
|
|
12
12
|
const l = new RegExp(o.value, "i"), r = JSON.stringify(e.profile);
|
|
@@ -18,9 +18,9 @@ const M = { class: "inline-flex" }, V = { class: "inline-flex rounded-md items-c
|
|
|
18
18
|
})));
|
|
19
19
|
return (e, l) => {
|
|
20
20
|
const r = s("FmIcon"), h = s("FmSearch"), y = s("FmMenuItem"), b = s("FmMenu");
|
|
21
|
-
return i(),
|
|
21
|
+
return i(), p("div", M, [
|
|
22
22
|
a(b, { "close-on-click": !0 }, {
|
|
23
|
-
"menu-button":
|
|
23
|
+
"menu-button": d(() => [
|
|
24
24
|
n("div", V, [
|
|
25
25
|
a(r, {
|
|
26
26
|
name: "store",
|
|
@@ -33,21 +33,21 @@ const M = { class: "inline-flex" }, V = { class: "inline-flex rounded-md items-c
|
|
|
33
33
|
})
|
|
34
34
|
])
|
|
35
35
|
]),
|
|
36
|
-
default:
|
|
36
|
+
default: d(() => [
|
|
37
37
|
n("div", E, [
|
|
38
38
|
n("div", N, [
|
|
39
39
|
a(h, {
|
|
40
40
|
"model-value": o.value,
|
|
41
41
|
"onUpdate:modelValue": l[0] || (l[0] = (t) => o.value = t),
|
|
42
|
-
placeholder:
|
|
42
|
+
placeholder: _(u)("payment.components.select")
|
|
43
43
|
}, null, 8, ["model-value", "placeholder"])
|
|
44
44
|
]),
|
|
45
45
|
n("div", null, [
|
|
46
|
-
(i(!0),
|
|
46
|
+
(i(!0), p(x, null, F(v.value, (t) => (i(), S(y, {
|
|
47
47
|
key: t.key,
|
|
48
48
|
label: t.label,
|
|
49
49
|
sublabel: "Restaurant",
|
|
50
|
-
onClick: () =>
|
|
50
|
+
onClick: () => _(c).changeRestaurant(t.value)
|
|
51
51
|
}, null, 8, ["label", "onClick"]))), 128))
|
|
52
52
|
])
|
|
53
53
|
])
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as D, ref as w, resolveComponent as r, openBlock as g, createBlock as b, withCtx as S, createVNode as o, unref as n, createElementVNode as T, createCommentVNode as U, computed as O, onMounted as R, createElementBlock as N, Fragment as L, isRef as B, resolveDynamicComponent as $, mergeProps as Y, normalizeProps as H } from "vue";
|
|
2
|
-
import { g as q, b as M, u as K, e as I } from "./index-
|
|
2
|
+
import { g as q, b as M, u as K, e as I } from "./index-CLtlYAjs.js";
|
|
3
3
|
import { _ as z } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
4
4
|
import { useRouter as Q } from "vue-router";
|
|
5
|
-
import { u as P } from "./index-
|
|
6
|
-
import { z as y, a as f } from "./validator-
|
|
5
|
+
import { u as P } from "./index-Ck-7CvXl.js";
|
|
6
|
+
import { z as y, a as f } from "./validator-CTlVogBQ.js";
|
|
7
7
|
import { useCoreStore as E } from "@feedmepos/mf-common";
|
|
8
8
|
import { u as Z } from "./error-K1CakhA9.js";
|
|
9
9
|
import { useSnackbar as J } from "@feedmepos/ui-library";
|
|
10
|
-
import { r as W } from "./index-
|
|
10
|
+
import { r as W } from "./index-08J-D9KF.js";
|
|
11
11
|
const C = {
|
|
12
12
|
async get(a) {
|
|
13
13
|
return q(
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { defineComponent as x, resolveComponent as k, openBlock as $, createBlock as N, ref as A, computed as j, createElementBlock as P, Fragment as G, unref as e, withDirectives as Q, vShow as W, createCommentVNode as E, createVNode as p, h as L, watch as D, createElementVNode as i, withCtx as S, toDisplayString as _, createTextVNode as R, onMounted as z, renderList as X, isRef as U } from "vue";
|
|
2
|
-
import { u as q } from "./index-
|
|
2
|
+
import { u as q } from "./index-CLtlYAjs.js";
|
|
3
3
|
import { h as Y } from "./moment-h96o7c8I.js";
|
|
4
4
|
import { useCoreStore as H, useI18n as M } from "@feedmepos/mf-common";
|
|
5
5
|
import { _ as Z } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
6
|
-
import { s as B } from "./index-
|
|
6
|
+
import { s as B } from "./index-CDzaH59g.js";
|
|
7
7
|
import { useDialog as ee } from "@feedmepos/ui-library";
|
|
8
8
|
import { d as h } from "./dinero-CIVmXLL-.js";
|
|
9
9
|
import { _ as J } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
|
|
10
10
|
import { useRouter as te } from "vue-router";
|
|
11
|
-
import { u as ae } from "./index-
|
|
11
|
+
import { u as ae } from "./index-Ck-7CvXl.js";
|
|
12
12
|
import { _ as ne } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
13
|
-
import { _ as oe } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { p as le } from "./index-
|
|
13
|
+
import { _ as oe } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js";
|
|
14
|
+
import { p as le } from "./index-J3T_Jzks.js";
|
|
15
15
|
const se = /* @__PURE__ */ x({
|
|
16
16
|
__name: "InvoiceStatus",
|
|
17
17
|
props: {
|
|
18
18
|
data: {}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const a =
|
|
20
|
+
setup(b) {
|
|
21
|
+
const a = b;
|
|
22
22
|
function c() {
|
|
23
23
|
return a.data && a.data !== "" ? "#66BB6A" : "#EF5350";
|
|
24
24
|
}
|
|
@@ -47,8 +47,8 @@ const se = /* @__PURE__ */ x({
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
emits: ["row-click"],
|
|
50
|
-
setup(
|
|
51
|
-
const { currentCountry: c, currentBusiness: u, namespace: d } = H(), { t: r } = M(), g = A(!0),
|
|
50
|
+
setup(b, { emit: a }) {
|
|
51
|
+
const { currentCountry: c, currentBusiness: u, namespace: d } = H(), { t: r } = M(), g = A(!0), v = b, y = a, o = A(""), t = [
|
|
52
52
|
{
|
|
53
53
|
header: () => r("payment.settlements.table.id"),
|
|
54
54
|
accessorKey: "id",
|
|
@@ -86,7 +86,7 @@ const se = /* @__PURE__ */ x({
|
|
|
86
86
|
accessorKey: "invoiceId",
|
|
87
87
|
cell: ({ cell: m }) => L(se, { data: m.getValue() })
|
|
88
88
|
}
|
|
89
|
-
], f = j(() =>
|
|
89
|
+
], f = j(() => v.data.map((m) => ({
|
|
90
90
|
id: m._id,
|
|
91
91
|
bank: m.beneficiaryBank.name,
|
|
92
92
|
accountNo: m.beneficiaryBank.accountNumber,
|
|
@@ -106,7 +106,7 @@ const se = /* @__PURE__ */ x({
|
|
|
106
106
|
open(`${m}?${F.toString()}`, "_blank");
|
|
107
107
|
};
|
|
108
108
|
return (m, F) => {
|
|
109
|
-
const T = k("FmSnackbar"),
|
|
109
|
+
const T = k("FmSnackbar"), l = k("FmTable");
|
|
110
110
|
return $(), P(G, null, [
|
|
111
111
|
e(c) === "MY" ? Q(($(), N(T, {
|
|
112
112
|
key: 0,
|
|
@@ -116,19 +116,19 @@ const se = /* @__PURE__ */ x({
|
|
|
116
116
|
action: e(r)("payment.settlements.invoice.action"),
|
|
117
117
|
variant: "info",
|
|
118
118
|
dismissable: "",
|
|
119
|
-
onOnDismiss: F[0] || (F[0] = (
|
|
119
|
+
onOnDismiss: F[0] || (F[0] = (s) => g.value = !1),
|
|
120
120
|
onOnAction: w
|
|
121
121
|
}, null, 8, ["title", "description", "action"])), [
|
|
122
122
|
[W, g.value]
|
|
123
123
|
]) : E("", !0),
|
|
124
|
-
p(
|
|
125
|
-
modelValue:
|
|
126
|
-
"onUpdate:modelValue": F[1] || (F[1] = (
|
|
124
|
+
p(l, {
|
|
125
|
+
modelValue: o.value,
|
|
126
|
+
"onUpdate:modelValue": F[1] || (F[1] = (s) => o.value = s),
|
|
127
127
|
"row-data": f.value,
|
|
128
128
|
"shrink-at": !1,
|
|
129
129
|
"column-defs": t,
|
|
130
|
-
loading:
|
|
131
|
-
onRowClick: F[2] || (F[2] = (
|
|
130
|
+
loading: v.loading,
|
|
131
|
+
onRowClick: F[2] || (F[2] = (s) => y("row-click", v.data.at(s.index)))
|
|
132
132
|
}, null, 8, ["modelValue", "row-data", "loading"])
|
|
133
133
|
], 64);
|
|
134
134
|
};
|
|
@@ -146,8 +146,8 @@ const se = /* @__PURE__ */ x({
|
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
emits: ["row-click"],
|
|
149
|
-
setup(
|
|
150
|
-
const { t: c } = M(), u =
|
|
149
|
+
setup(b, { emit: a }) {
|
|
150
|
+
const { t: c } = M(), u = b, d = a, r = A(""), g = [
|
|
151
151
|
{
|
|
152
152
|
header: () => c("payment.settlements.table.id"),
|
|
153
153
|
accessorKey: "id",
|
|
@@ -180,7 +180,7 @@ const se = /* @__PURE__ */ x({
|
|
|
180
180
|
header: () => c("payment.settlements.table.settlement_amount"),
|
|
181
181
|
accessorKey: "payout"
|
|
182
182
|
}
|
|
183
|
-
],
|
|
183
|
+
], v = j(() => u.data.map((y) => ({
|
|
184
184
|
id: y.summary.referenceNo,
|
|
185
185
|
bank: y.summary.bank.name,
|
|
186
186
|
accountNo: y.summary.bank.accountNo,
|
|
@@ -189,16 +189,16 @@ const se = /* @__PURE__ */ x({
|
|
|
189
189
|
fee: h(y.summary.commission).toFormat("$0.00"),
|
|
190
190
|
payout: h(y.summary.payout).toFormat("$0.00")
|
|
191
191
|
})));
|
|
192
|
-
return (y,
|
|
192
|
+
return (y, o) => {
|
|
193
193
|
const t = k("FmTable");
|
|
194
194
|
return $(), N(t, {
|
|
195
195
|
modelValue: r.value,
|
|
196
|
-
"onUpdate:modelValue":
|
|
197
|
-
"row-data":
|
|
196
|
+
"onUpdate:modelValue": o[0] || (o[0] = (f) => r.value = f),
|
|
197
|
+
"row-data": v.value,
|
|
198
198
|
"shrink-at": !1,
|
|
199
199
|
"column-defs": g,
|
|
200
200
|
loading: u.loading,
|
|
201
|
-
onRowClick:
|
|
201
|
+
onRowClick: o[1] || (o[1] = (f) => d("row-click", u.data.at(f.index)))
|
|
202
202
|
}, null, 8, ["modelValue", "row-data", "loading"]);
|
|
203
203
|
};
|
|
204
204
|
}
|
|
@@ -213,13 +213,13 @@ const se = /* @__PURE__ */ x({
|
|
|
213
213
|
required: !0
|
|
214
214
|
}
|
|
215
215
|
},
|
|
216
|
-
setup(
|
|
216
|
+
setup(b) {
|
|
217
217
|
const { t: a } = M(), u = A(
|
|
218
|
-
|
|
219
|
-
__localAmount: h(
|
|
220
|
-
__localComission: h(
|
|
221
|
-
__localNetAMount: h(
|
|
222
|
-
}),
|
|
218
|
+
b.settlement.record.map((o) => (Object.assign(o, {
|
|
219
|
+
__localAmount: h(o.amount).toFormat("0.00"),
|
|
220
|
+
__localComission: h(o.commission).toFormat("0.00"),
|
|
221
|
+
__localNetAMount: h(o.netAmount).toFormat("0.00")
|
|
222
|
+
}), o))
|
|
223
223
|
), d = A(u.value), r = A(""), g = [
|
|
224
224
|
{
|
|
225
225
|
header: () => a("payment.settlements.dialog.fiuu.id"),
|
|
@@ -235,34 +235,34 @@ const se = /* @__PURE__ */ x({
|
|
|
235
235
|
meta: {
|
|
236
236
|
width: "180px"
|
|
237
237
|
},
|
|
238
|
-
cell: ({ cell:
|
|
238
|
+
cell: ({ cell: o }) => Y(o.getValue()).format("YYYY-MM-DD HH:mm:ss")
|
|
239
239
|
},
|
|
240
240
|
{
|
|
241
241
|
header: () => a("payment.settlements.dialog.fiuu.sales_amount"),
|
|
242
242
|
accessorKey: "amount",
|
|
243
|
-
cell: ({ cell:
|
|
243
|
+
cell: ({ cell: o }) => h(o.getValue()).toFormat("$0.00")
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
246
|
header: () => a("payment.settlements.dialog.fiuu.fee"),
|
|
247
247
|
accessorKey: "commission",
|
|
248
|
-
cell: ({ cell:
|
|
248
|
+
cell: ({ cell: o }) => h(o.getValue()).toFormat("$0.00")
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
header: () => a("payment.settlements.dialog.fiuu.settlement_amount"),
|
|
252
252
|
accessorKey: "netAmount",
|
|
253
|
-
cell: ({ cell:
|
|
253
|
+
cell: ({ cell: o }) => h(o.getValue()).toFormat("$0.00")
|
|
254
254
|
}
|
|
255
|
-
],
|
|
255
|
+
], v = A("");
|
|
256
256
|
let y;
|
|
257
|
-
return D(
|
|
257
|
+
return D(v, async () => {
|
|
258
258
|
y && clearTimeout(y), y = setTimeout(() => {
|
|
259
|
-
var
|
|
259
|
+
var o = new RegExp(v.value, "i");
|
|
260
260
|
d.value = u.value.filter((t) => {
|
|
261
261
|
const f = JSON.stringify(t);
|
|
262
|
-
return
|
|
262
|
+
return o.test(f);
|
|
263
263
|
});
|
|
264
264
|
}, 700);
|
|
265
|
-
}), (
|
|
265
|
+
}), (o, t) => {
|
|
266
266
|
const f = k("FmCardHeader"), w = k("FmCardSection"), m = k("FmCard"), F = k("FmSearch"), T = k("FmTable");
|
|
267
267
|
return $(), P(G, null, [
|
|
268
268
|
i("div", ue, [
|
|
@@ -282,10 +282,10 @@ const se = /* @__PURE__ */ x({
|
|
|
282
282
|
p(w, { class: "p-0" }, {
|
|
283
283
|
default: S(() => [
|
|
284
284
|
i("b", null, _(e(a)("payment.settlements.dialog.info.transaction.for")), 1),
|
|
285
|
-
R(": " + _(
|
|
285
|
+
R(": " + _(b.settlement.summary.group) + " ", 1),
|
|
286
286
|
t[2] || (t[2] = i("br", null, null, -1)),
|
|
287
287
|
i("b", null, _(e(a)("payment.settlements.dialog.info.transaction.reference")), 1),
|
|
288
|
-
R(": " + _(
|
|
288
|
+
R(": " + _(b.settlement.summary.referenceNo), 1),
|
|
289
289
|
t[3] || (t[3] = i("br", null, null, -1)),
|
|
290
290
|
i("b", null, _(e(a)("payment.settlements.dialog.info.transaction.count")), 1),
|
|
291
291
|
R(": " + _(u.value.length), 1)
|
|
@@ -314,13 +314,13 @@ const se = /* @__PURE__ */ x({
|
|
|
314
314
|
p(w, { class: "p-0" }, {
|
|
315
315
|
default: S(() => [
|
|
316
316
|
i("b", null, _(e(a)("payment.settlements.dialog.info.bank.for")), 1),
|
|
317
|
-
R(": " + _(
|
|
317
|
+
R(": " + _(b.settlement.summary.bank.name), 1),
|
|
318
318
|
t[4] || (t[4] = i("br", null, null, -1)),
|
|
319
319
|
i("b", null, _(e(a)("payment.settlements.dialog.info.bank.name")), 1),
|
|
320
|
-
R(": " + _(
|
|
320
|
+
R(": " + _(b.settlement.summary.bank.holderName), 1),
|
|
321
321
|
t[5] || (t[5] = i("br", null, null, -1)),
|
|
322
322
|
i("b", null, _(e(a)("payment.settlements.dialog.info.bank.number")), 1),
|
|
323
|
-
R(": " + _(
|
|
323
|
+
R(": " + _(b.settlement.summary.bank.accountNo), 1)
|
|
324
324
|
]),
|
|
325
325
|
_: 1
|
|
326
326
|
})
|
|
@@ -346,13 +346,13 @@ const se = /* @__PURE__ */ x({
|
|
|
346
346
|
p(w, { class: "p-0" }, {
|
|
347
347
|
default: S(() => [
|
|
348
348
|
i("b", null, _(e(a)("payment.settlements.dialog.info.payout.amount")), 1),
|
|
349
|
-
R(": " + _(e(h)(
|
|
349
|
+
R(": " + _(e(h)(b.settlement.summary.amount).toFormat("$0.00")), 1),
|
|
350
350
|
t[6] || (t[6] = i("br", null, null, -1)),
|
|
351
351
|
i("b", null, _(e(a)("payment.settlements.dialog.info.payout.fee")), 1),
|
|
352
|
-
R(": " + _(e(h)(
|
|
352
|
+
R(": " + _(e(h)(b.settlement.summary.commission).toFormat("$0.00")), 1),
|
|
353
353
|
t[7] || (t[7] = i("br", null, null, -1)),
|
|
354
354
|
i("b", null, _(e(a)("payment.settlements.dialog.info.payout.payout")), 1),
|
|
355
|
-
R(": " + _(e(h)(
|
|
355
|
+
R(": " + _(e(h)(b.settlement.summary.payout).toFormat("$0.00")), 1)
|
|
356
356
|
]),
|
|
357
357
|
_: 1
|
|
358
358
|
})
|
|
@@ -365,14 +365,14 @@ const se = /* @__PURE__ */ x({
|
|
|
365
365
|
]),
|
|
366
366
|
i("div", ie, [
|
|
367
367
|
p(F, {
|
|
368
|
-
modelValue:
|
|
369
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
368
|
+
modelValue: v.value,
|
|
369
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => v.value = l),
|
|
370
370
|
placeholder: e(a)("payment.settlements.dialog.search")
|
|
371
371
|
}, null, 8, ["modelValue", "placeholder"])
|
|
372
372
|
]),
|
|
373
373
|
p(T, {
|
|
374
374
|
modelValue: r.value,
|
|
375
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
375
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => r.value = l),
|
|
376
376
|
"shrink-at": !1,
|
|
377
377
|
"row-data": d.value,
|
|
378
378
|
"column-defs": g
|
|
@@ -390,63 +390,63 @@ const se = /* @__PURE__ */ x({
|
|
|
390
390
|
by: {}
|
|
391
391
|
},
|
|
392
392
|
emits: ["update:id", "update:by"],
|
|
393
|
-
setup(
|
|
394
|
-
const c =
|
|
393
|
+
setup(b, { emit: a }) {
|
|
394
|
+
const c = b, u = a, { t: d } = M(), { currentBusiness: r, readRestaurants: g } = H(), { isLoading: v, startAsyncCall: y } = q(!0), o = A([]), t = A(), f = A(""), w = A([]);
|
|
395
395
|
let m;
|
|
396
396
|
D(f, async () => {
|
|
397
397
|
m && clearTimeout(m), m = setTimeout(() => {
|
|
398
|
-
var
|
|
399
|
-
w.value =
|
|
400
|
-
const V = JSON.stringify(
|
|
401
|
-
return
|
|
398
|
+
var l = new RegExp(f.value, "i");
|
|
399
|
+
w.value = o.value.filter((s) => {
|
|
400
|
+
const V = JSON.stringify(s);
|
|
401
|
+
return l.test(V);
|
|
402
402
|
});
|
|
403
403
|
}, 700);
|
|
404
404
|
}), D(t, () => {
|
|
405
|
-
var
|
|
406
|
-
u("update:id", (
|
|
405
|
+
var l, s;
|
|
406
|
+
u("update:id", (l = t.value) == null ? void 0 : l.value), u("update:by", (s = t.value) == null ? void 0 : s.by);
|
|
407
407
|
});
|
|
408
408
|
async function F() {
|
|
409
409
|
return y(async () => {
|
|
410
410
|
try {
|
|
411
|
-
let
|
|
412
|
-
return
|
|
411
|
+
let l = await le.readBusinessPayoutAccounts();
|
|
412
|
+
return l.length === 0 ? void 0 : l;
|
|
413
413
|
} catch {
|
|
414
414
|
return [];
|
|
415
415
|
}
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
async function T() {
|
|
419
|
-
|
|
420
|
-
const
|
|
421
|
-
let
|
|
422
|
-
|
|
423
|
-
...(
|
|
419
|
+
v.value = !0;
|
|
420
|
+
const l = [];
|
|
421
|
+
let s = await F();
|
|
422
|
+
l.push(
|
|
423
|
+
...(s || []).filter((n) => n.store.event !== "ORDERING").map((n) => {
|
|
424
424
|
var K, I, O, C;
|
|
425
425
|
return {
|
|
426
426
|
by: "PAYOUT_ACCOUNT",
|
|
427
|
-
value:
|
|
427
|
+
value: n.store.id,
|
|
428
428
|
prefix: d("payment.components.payout_account"),
|
|
429
|
-
type: "Payout Account - " +
|
|
430
|
-
label: ((I = (K =
|
|
431
|
-
chipLabel: "Marketing: " + (((C = (O =
|
|
429
|
+
type: "Payout Account - " + n.store.event,
|
|
430
|
+
label: ((I = (K = n.ref) == null ? void 0 : K.profile) == null ? void 0 : I.name) ?? n.ref.name,
|
|
431
|
+
chipLabel: "Marketing: " + (((C = (O = n.ref) == null ? void 0 : O.profile) == null ? void 0 : C.name) ?? n.ref.name)
|
|
432
432
|
};
|
|
433
433
|
})
|
|
434
434
|
);
|
|
435
435
|
const V = await g();
|
|
436
|
-
|
|
437
|
-
...(V || []).map((
|
|
436
|
+
l.push(
|
|
437
|
+
...(V || []).filter((n) => n.managable).map((n) => ({
|
|
438
438
|
by: "RESTAURANT",
|
|
439
|
-
value:
|
|
439
|
+
value: n._id,
|
|
440
440
|
prefix: d("payment.components.restaurant"),
|
|
441
441
|
type: "Restaurant",
|
|
442
|
-
label:
|
|
443
|
-
chipLabel: "Restaurant: " +
|
|
442
|
+
label: n.profile.name + " (" + (n.profile.code ?? "--") + ")",
|
|
443
|
+
chipLabel: "Restaurant: " + n.profile.name + " (" + (n.profile.code ?? "--") + ")"
|
|
444
444
|
}))
|
|
445
|
-
),
|
|
445
|
+
), o.value = l, w.value = o.value, t.value = l.find((n) => n.value === c.id && n.by === c.by) ?? l[0], v.value = !1;
|
|
446
446
|
}
|
|
447
|
-
return z(T), D(r, T), (
|
|
448
|
-
const V = k("FmCircularProgress"),
|
|
449
|
-
return e(
|
|
447
|
+
return z(T), D(r, T), (l, s) => {
|
|
448
|
+
const V = k("FmCircularProgress"), n = k("FmChip"), K = k("FmSearch"), I = k("FmMenuItem"), O = k("FmMenu");
|
|
449
|
+
return e(v) ? ($(), N(V, {
|
|
450
450
|
key: 0,
|
|
451
451
|
size: "md"
|
|
452
452
|
})) : ($(), P("div", de, [
|
|
@@ -454,11 +454,11 @@ const se = /* @__PURE__ */ x({
|
|
|
454
454
|
"menu-button": S(() => {
|
|
455
455
|
var C;
|
|
456
456
|
return [
|
|
457
|
-
p(
|
|
457
|
+
p(n, {
|
|
458
458
|
icon: "account_box",
|
|
459
459
|
label: ((C = t.value) == null ? void 0 : C.chipLabel) ?? e(d)("payment.components.select"),
|
|
460
460
|
removable: !!t.value,
|
|
461
|
-
onChipClosed:
|
|
461
|
+
onChipClosed: s[0] || (s[0] = (Fe) => t.value = void 0)
|
|
462
462
|
}, null, 8, ["label", "removable"])
|
|
463
463
|
];
|
|
464
464
|
}),
|
|
@@ -467,7 +467,7 @@ const se = /* @__PURE__ */ x({
|
|
|
467
467
|
i("div", ye, [
|
|
468
468
|
p(K, {
|
|
469
469
|
"model-value": f.value,
|
|
470
|
-
"onUpdate:modelValue":
|
|
470
|
+
"onUpdate:modelValue": s[1] || (s[1] = (C) => f.value = C),
|
|
471
471
|
placeholder: e(d)("payment.components.select")
|
|
472
472
|
}, null, 8, ["model-value", "placeholder"])
|
|
473
473
|
]),
|
|
@@ -486,9 +486,9 @@ const se = /* @__PURE__ */ x({
|
|
|
486
486
|
]));
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
|
-
}),
|
|
489
|
+
}), be = { class: "flex justify-between items-center mb-6" }, ve = { class: "flex space-x-8 items-center" }, _e = { class: "flex space-x-4 self-center" }, ge = { class: "mb-6" }, Me = /* @__PURE__ */ x({
|
|
490
490
|
__name: "Settlement",
|
|
491
|
-
setup(
|
|
491
|
+
setup(b) {
|
|
492
492
|
const a = te(), { tab: c, dateRange: u, id: d, by: r } = ae({
|
|
493
493
|
id: "",
|
|
494
494
|
by: "",
|
|
@@ -497,44 +497,44 @@ const se = /* @__PURE__ */ x({
|
|
|
497
497
|
startDate: Y().startOf("day").format("YYYY-MM-DD"),
|
|
498
498
|
endDate: Y().endOf("day").format("YYYY-MM-DD")
|
|
499
499
|
}
|
|
500
|
-
}), { t: g } = M(), { isLoading:
|
|
500
|
+
}), { t: g } = M(), { isLoading: v, startAsyncCall: y } = q(!0), o = ee(), t = A([]), f = A([]);
|
|
501
501
|
async function w() {
|
|
502
|
-
const
|
|
502
|
+
const l = await B.readBusinessSettlements({
|
|
503
503
|
start: u.value.startDate,
|
|
504
504
|
end: u.value.endDate,
|
|
505
505
|
event: r.value === "PAYOUT_ACCOUNT" ? "MARKETING" : "ORDERING",
|
|
506
506
|
id: d.value
|
|
507
507
|
});
|
|
508
|
-
t.value =
|
|
508
|
+
t.value = l;
|
|
509
509
|
}
|
|
510
510
|
async function m() {
|
|
511
|
-
const
|
|
511
|
+
const l = await B.readBusinessRMSSettlements({
|
|
512
512
|
start: u.value.startDate,
|
|
513
513
|
end: u.value.endDate,
|
|
514
514
|
event: r.value === "PAYOUT_ACCOUNT" ? "MARKETING" : "ORDERING",
|
|
515
515
|
id: d.value
|
|
516
516
|
});
|
|
517
|
-
f.value =
|
|
517
|
+
f.value = l;
|
|
518
518
|
}
|
|
519
519
|
async function F() {
|
|
520
520
|
if (!d.value || d.value === "") {
|
|
521
|
-
|
|
521
|
+
v.value = !1, t.value = [], f.value = [];
|
|
522
522
|
return;
|
|
523
523
|
}
|
|
524
524
|
await y(async () => Promise.all([w(), m()]));
|
|
525
525
|
}
|
|
526
|
-
async function T(
|
|
527
|
-
const
|
|
528
|
-
|
|
529
|
-
title: `${g("payment.settlements.dialog.title")} (${
|
|
530
|
-
subTitle: `${g("payment.settlements.dialog.date")}: ${
|
|
526
|
+
async function T(l) {
|
|
527
|
+
const s = Y(l.summary.completedAt).format("YYYY/MM/DD");
|
|
528
|
+
o.open({
|
|
529
|
+
title: `${g("payment.settlements.dialog.title")} (${l.summary.referenceNo})`,
|
|
530
|
+
subTitle: `${g("payment.settlements.dialog.date")}: ${s}`,
|
|
531
531
|
minWidth: "90%",
|
|
532
532
|
primaryActions: { text: "Close", close: !0 },
|
|
533
533
|
contentComponent: ce,
|
|
534
|
-
contentComponentProps: { settlement:
|
|
534
|
+
contentComponentProps: { settlement: l }
|
|
535
535
|
});
|
|
536
536
|
}
|
|
537
|
-
return z(F), D([d, u], F), (
|
|
537
|
+
return z(F), D([d, u], F), (l, s) => {
|
|
538
538
|
const V = k("FmTabs");
|
|
539
539
|
return $(), N(Z, {
|
|
540
540
|
title: e(g)("payment.settlements.title"),
|
|
@@ -542,17 +542,17 @@ const se = /* @__PURE__ */ x({
|
|
|
542
542
|
loading: !1
|
|
543
543
|
}, {
|
|
544
544
|
default: S(() => [
|
|
545
|
-
i("div",
|
|
546
|
-
i("div",
|
|
545
|
+
i("div", be, [
|
|
546
|
+
i("div", ve, [
|
|
547
547
|
p(fe, {
|
|
548
548
|
id: e(d),
|
|
549
|
-
"onUpdate:id":
|
|
549
|
+
"onUpdate:id": s[0] || (s[0] = (n) => U(d) ? d.value = n : null),
|
|
550
550
|
by: e(r),
|
|
551
|
-
"onUpdate:by":
|
|
551
|
+
"onUpdate:by": s[1] || (s[1] = (n) => U(r) ? r.value = n : null)
|
|
552
552
|
}, null, 8, ["id", "by"]),
|
|
553
553
|
p(oe, {
|
|
554
554
|
modelValue: e(u),
|
|
555
|
-
"onUpdate:modelValue":
|
|
555
|
+
"onUpdate:modelValue": s[2] || (s[2] = (n) => U(u) ? u.value = n : null)
|
|
556
556
|
}, null, 8, ["modelValue"])
|
|
557
557
|
]),
|
|
558
558
|
i("div", _e, [
|
|
@@ -576,7 +576,7 @@ const se = /* @__PURE__ */ x({
|
|
|
576
576
|
i("div", ge, [
|
|
577
577
|
p(V, {
|
|
578
578
|
modelValue: e(c),
|
|
579
|
-
"onUpdate:modelValue":
|
|
579
|
+
"onUpdate:modelValue": s[3] || (s[3] = (n) => U(c) ? c.value = n : null),
|
|
580
580
|
items: [
|
|
581
581
|
{
|
|
582
582
|
label: "FeedMe",
|
|
@@ -593,18 +593,18 @@ const se = /* @__PURE__ */ x({
|
|
|
593
593
|
]),
|
|
594
594
|
e(c) === "fiuu" ? ($(), N(me, {
|
|
595
595
|
key: 0,
|
|
596
|
-
loading: e(
|
|
596
|
+
loading: e(v),
|
|
597
597
|
data: f.value,
|
|
598
598
|
onRowClick: T
|
|
599
599
|
}, null, 8, ["loading", "data"])) : E("", !0),
|
|
600
600
|
e(c) === "feedme" ? ($(), N(re, {
|
|
601
601
|
key: 1,
|
|
602
|
-
loading: e(
|
|
602
|
+
loading: e(v),
|
|
603
603
|
data: t.value,
|
|
604
|
-
onRowClick:
|
|
604
|
+
onRowClick: s[4] || (s[4] = (n) => e(a).push({
|
|
605
605
|
name: "mf-payment-settlement-transaction",
|
|
606
606
|
params: {
|
|
607
|
-
settlementId:
|
|
607
|
+
settlementId: n._id
|
|
608
608
|
}
|
|
609
609
|
}))
|
|
610
610
|
}, null, 8, ["loading", "data"])) : E("", !0)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as M, ref as h, computed as T, resolveComponent as d, openBlock as F, createBlock as Y, h as E, watch as C, onMounted as L, unref as r, withCtx as g, createElementVNode as k, createVNode as i, isRef as R, createElementBlock as N, Fragment as O, renderList as P } from "vue";
|
|
2
|
-
import { u as A } from "./index-
|
|
2
|
+
import { u as A } from "./index-CLtlYAjs.js";
|
|
3
3
|
import { h as S } from "./moment-h96o7c8I.js";
|
|
4
|
-
import { s as _ } from "./index-
|
|
4
|
+
import { s as _ } from "./index-CDzaH59g.js";
|
|
5
5
|
import { useSnackbar as U } from "@feedmepos/ui-library";
|
|
6
6
|
import { d as w } from "./dinero-CIVmXLL-.js";
|
|
7
7
|
import { _ as q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
|
|
8
8
|
import { useRouter as J } from "vue-router";
|
|
9
9
|
import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
|
|
10
|
-
import { u as z } from "./index-
|
|
10
|
+
import { u as z } from "./index-Ck-7CvXl.js";
|
|
11
11
|
import { u as G } from "./error-K1CakhA9.js";
|
|
12
|
-
import { _ as Q } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { _ as Q } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js";
|
|
13
13
|
const H = /* @__PURE__ */ M({
|
|
14
14
|
__name: "SettlementTable",
|
|
15
15
|
props: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as $, resolveComponent as f, openBlock as C, createBlock as K, withCtx as i, createElementVNode as n, unref as a, ref as h, onMounted as R, watch as L, createVNode as o, toDisplayString as l, createTextVNode as d, h as k } from "vue";
|
|
2
|
-
import { u as G } from "./index-
|
|
2
|
+
import { u as G } from "./index-CLtlYAjs.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
import { d as I } from "./dinero-CIVmXLL-.js";
|
|
5
|
-
import { g as H, a as P, _ as U, t as q } from "./assets-
|
|
6
|
-
import { t as J } from "./index-
|
|
5
|
+
import { g as H, a as P, _ as U, t as q } from "./assets-DVokGBiK.js";
|
|
6
|
+
import { t as J } from "./index-CueL60C6.js";
|
|
7
7
|
import { _ as Q } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
8
8
|
import { useRouter as W } from "vue-router";
|
|
9
|
-
import { s as X } from "./index-
|
|
9
|
+
import { s as X } from "./index-CDzaH59g.js";
|
|
10
10
|
import { useI18n as Z, useCoreStore as ee } from "@feedmepos/mf-common";
|
|
11
11
|
import { h as te } from "./moment-h96o7c8I.js";
|
|
12
12
|
const ae = ["src"], ne = /* @__PURE__ */ $({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as h, resolveComponent as p, openBlock as A, createBlock as I, withCtx as r, createElementVNode as t, unref as m, ref as x, onMounted as z, watch as G, createVNode as n, createTextVNode as i, toDisplayString as u, h as T } from "vue";
|
|
2
|
-
import { u as H } from "./index-
|
|
2
|
+
import { u as H } from "./index-CLtlYAjs.js";
|
|
3
3
|
import { useDialog as U, useSnackbar as q } from "@feedmepos/ui-library";
|
|
4
4
|
import { d as B } from "./dinero-CIVmXLL-.js";
|
|
5
|
-
import { g as J, a as Q, _ as W, t as X } from "./assets-
|
|
6
|
-
import { t as L } from "./index-
|
|
5
|
+
import { g as J, a as Q, _ as W, t as X } from "./assets-DVokGBiK.js";
|
|
6
|
+
import { t as L } from "./index-CueL60C6.js";
|
|
7
7
|
import { _ as Z } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
8
8
|
import { useRouter as ee } from "vue-router";
|
|
9
|
-
import { s as te } from "./index-
|
|
9
|
+
import { s as te } from "./index-CDzaH59g.js";
|
|
10
10
|
import { u as ae } from "./error-K1CakhA9.js";
|
|
11
11
|
import { w as ne } from "./Modal-DB8M9o1T.js";
|
|
12
12
|
import { h as oe } from "./moment-h96o7c8I.js";
|