@feedmepos/mf-payment 1.7.0-dev → 1.7.1
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-BX2bMjao.js → Actions.vue_vue_type_script_setup_true_lang-CRNNEhdb.js} +1 -1
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CPRdjNud.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DjiSltH9.js} +2 -2
- package/dist/{Chargeback-MMmCnSz-.js → Chargeback-CLmIb_z0.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DiVfAn4G.js → DocumentViewer.vue_vue_type_script_setup_true_lang-Cy-vikjQ.js} +1 -1
- package/dist/{OnboardForm-Bz-2E5fr.js → OnboardForm--egFxuAd.js} +5 -5
- package/dist/{OnboardForm-DvyEoD0l.js → OnboardForm-DJcR03we.js} +5 -5
- package/dist/{OnboardSubmission-DsWvHgAm.js → OnboardSubmission-BaM01HIV.js} +2 -2
- package/dist/{OnboardSubmission-mSm_0xxl.js → OnboardSubmission-D5uJWKHh.js} +5 -5
- package/dist/{PayoutAccount-BnesOO6f.js → PayoutAccount-CEr0rx4J.js} +5 -5
- package/dist/{PayoutAccount-DDxg4ecY.js → PayoutAccount-DYZ2gQGD.js} +5 -5
- package/dist/{PayoutAccountSetting-D2zMCl80.js → PayoutAccountSetting-DlF_FPHr.js} +6 -6
- package/dist/{Restaurant-DGvP7Csh.js → Restaurant-KGa0xV0K.js} +4 -4
- package/dist/{RestaurantSetting-Brne3iti.js → RestaurantSetting-Bg5M-n6p.js} +3 -3
- package/dist/{Settlement-CowH0Zk2.js → Settlement-C4q03i6e.js} +87 -86
- package/dist/{Settlement-D2TlUSAw.js → Settlement-DAkVWztP.js} +3 -3
- package/dist/{SettlementTransactions-CaSEBnSk.js → SettlementTransactions-CsvfmLM_.js} +4 -4
- package/dist/{SettlementTransactions-Dls7DVNX.js → SettlementTransactions-XjsIKvXQ.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-BRLsY7E6.js → Status.vue_vue_type_script_setup_true_lang-ExFNksup.js} +1 -1
- package/dist/{Terminal-CkGdLWBY.js → Terminal-DkeT7bTc.js} +5 -5
- package/dist/{TerminalSetting-Rh5yvzQW.js → TerminalSetting-AnoIOO73.js} +4 -4
- package/dist/{Transaction-VqXHPbcx.js → Transaction-BEkrFPHL.js} +9 -9
- package/dist/{Transaction-DzxKjZi_.js → Transaction-mo1v6xz1.js} +10 -10
- package/dist/{TransactionOld-CHqFMsE8.js → TransactionOld-nzUGTELC.js} +7 -7
- package/dist/api/settlement/index.d.ts +6 -0
- package/dist/{app-PiirQzeM.js → app-1rw4JLKr.js} +442 -451
- package/dist/app.js +1 -1
- package/dist/{assets-ByE2qHVM.js → assets-CPEv5xmO.js} +1 -1
- package/dist/{grafana-BZFzGv64.js → grafana-fcTmH2tm.js} +1 -1
- package/dist/{index-SSlRVsVp.js → index-B0rOAUW-.js} +1 -1
- package/dist/{index-Bg4iuklW.js → index-BiKaun0K.js} +1 -1
- package/dist/{index-CarXrx98.js → index-CIbvJ5oc.js} +1 -1
- package/dist/{index-DZJ_rc-c.js → index-CVs0aN89.js} +50 -37
- package/dist/{index-LpnDYp0T.js → index-Ch9pmMdq.js} +1 -1
- package/dist/{index-B_WQwGvV.js → index-DTBJopG8.js} +1 -1
- package/dist/{index-B5Ht48-A.js → index-DYl43WIP.js} +1 -1
- package/dist/{index-fcqPRT7k.js → index-Qmbuelbf.js} +2 -2
- package/dist/{index-DASI_ipo.js → index-gbUzsHq5.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BzI-1UVQ.js → index.vue_vue_type_script_setup_true_lang-Ld8QyF50.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-B2kRoBqh.js → payout-account-B4W2N8Xm.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { defineComponent as x, resolveComponent as k, openBlock as
|
|
2
|
-
import { u as q } from "./index-
|
|
1
|
+
import { defineComponent as x, resolveComponent as k, openBlock as R, createBlock as N, ref as A, computed as j, createElementBlock as B, 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 T, onMounted as z, renderList as X, isRef as U } from "vue";
|
|
2
|
+
import { u as q } from "./index-DYl43WIP.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
|
|
6
|
+
import { s as P } from "./index-CVs0aN89.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-BiKaun0K.js";
|
|
12
12
|
import { _ as ne } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
13
13
|
import { _ as oe } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js";
|
|
14
|
-
import { p as le } from "./index-
|
|
14
|
+
import { p as le } from "./index-B0rOAUW-.js";
|
|
15
15
|
const se = /* @__PURE__ */ x({
|
|
16
16
|
__name: "InvoiceStatus",
|
|
17
17
|
props: {
|
|
18
18
|
data: {}
|
|
19
19
|
},
|
|
20
20
|
setup(b) {
|
|
21
|
-
const
|
|
21
|
+
const n = b;
|
|
22
22
|
function c() {
|
|
23
|
-
return
|
|
23
|
+
return n.data && n.data !== "" ? "#66BB6A" : "#EF5350";
|
|
24
24
|
}
|
|
25
25
|
function u() {
|
|
26
|
-
return
|
|
26
|
+
return n.data && n.data !== "" ? "check" : "close";
|
|
27
27
|
}
|
|
28
28
|
return (d, r) => {
|
|
29
29
|
const g = k("FmIcon");
|
|
30
|
-
return
|
|
30
|
+
return R(), N(g, {
|
|
31
31
|
name: u(),
|
|
32
32
|
color: c(),
|
|
33
33
|
size: "lg"
|
|
@@ -47,8 +47,8 @@ const se = /* @__PURE__ */ x({
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
emits: ["row-click"],
|
|
50
|
-
setup(b, { emit:
|
|
51
|
-
const { currentCountry: c, currentBusiness: u, namespace: d } = H(), { t: r } = M(), g = A(!0), v = b, y =
|
|
50
|
+
setup(b, { emit: n }) {
|
|
51
|
+
const { currentCountry: c, currentBusiness: u, namespace: d } = H(), { t: r } = M(), g = A(!0), v = b, y = n, o = A(""), t = [
|
|
52
52
|
{
|
|
53
53
|
header: () => r("payment.settlements.table.id"),
|
|
54
54
|
accessorKey: "id",
|
|
@@ -96,19 +96,19 @@ const se = /* @__PURE__ */ x({
|
|
|
96
96
|
payout: h(m.totalPayout).toFormat("$0.00"),
|
|
97
97
|
invoiceId: m.invoiceId
|
|
98
98
|
}))), w = () => {
|
|
99
|
-
var
|
|
99
|
+
var $;
|
|
100
100
|
let m = "https://license.feedme.cc/invoices";
|
|
101
101
|
d.value === "dev" && (m = "https://license.feedmedev.cc/invoices");
|
|
102
102
|
const F = new URLSearchParams({
|
|
103
|
-
businessId: ((
|
|
103
|
+
businessId: (($ = u.value) == null ? void 0 : $._id) ?? "",
|
|
104
104
|
country: c.value ?? "MY"
|
|
105
105
|
});
|
|
106
106
|
open(`${m}?${F.toString()}`, "_blank");
|
|
107
107
|
};
|
|
108
108
|
return (m, F) => {
|
|
109
|
-
const
|
|
110
|
-
return
|
|
111
|
-
e(c) === "MY" ? Q((
|
|
109
|
+
const $ = k("FmSnackbar"), l = k("FmTable");
|
|
110
|
+
return R(), B(G, null, [
|
|
111
|
+
e(c) === "MY" ? Q((R(), N($, {
|
|
112
112
|
key: 0,
|
|
113
113
|
class: "mb-10",
|
|
114
114
|
title: e(r)("payment.settlements.invoice.title"),
|
|
@@ -146,8 +146,8 @@ const se = /* @__PURE__ */ x({
|
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
emits: ["row-click"],
|
|
149
|
-
setup(b, { emit:
|
|
150
|
-
const { t: c } = M(), u = b, d =
|
|
149
|
+
setup(b, { emit: n }) {
|
|
150
|
+
const { t: c } = M(), u = b, d = n, r = A(""), g = [
|
|
151
151
|
{
|
|
152
152
|
header: () => c("payment.settlements.table.id"),
|
|
153
153
|
accessorKey: "id",
|
|
@@ -191,7 +191,7 @@ const se = /* @__PURE__ */ x({
|
|
|
191
191
|
})));
|
|
192
192
|
return (y, o) => {
|
|
193
193
|
const t = k("FmTable");
|
|
194
|
-
return
|
|
194
|
+
return R(), N(t, {
|
|
195
195
|
modelValue: r.value,
|
|
196
196
|
"onUpdate:modelValue": o[0] || (o[0] = (f) => r.value = f),
|
|
197
197
|
"row-data": v.value,
|
|
@@ -214,7 +214,7 @@ const se = /* @__PURE__ */ x({
|
|
|
214
214
|
}
|
|
215
215
|
},
|
|
216
216
|
setup(b) {
|
|
217
|
-
const { t:
|
|
217
|
+
const { t: n } = M(), u = A(
|
|
218
218
|
b.settlement.record.map((o) => (Object.assign(o, {
|
|
219
219
|
__localAmount: h(o.amount).toFormat("0.00"),
|
|
220
220
|
__localComission: h(o.commission).toFormat("0.00"),
|
|
@@ -222,15 +222,15 @@ const se = /* @__PURE__ */ x({
|
|
|
222
222
|
}), o))
|
|
223
223
|
), d = A(u.value), r = A(""), g = [
|
|
224
224
|
{
|
|
225
|
-
header: () =>
|
|
225
|
+
header: () => n("payment.settlements.dialog.fiuu.id"),
|
|
226
226
|
accessorKey: "referenceNo"
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
|
-
header: () =>
|
|
229
|
+
header: () => n("payment.settlements.dialog.fiuu.type"),
|
|
230
230
|
accessorKey: "group"
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
|
-
header: () =>
|
|
233
|
+
header: () => n("payment.settlements.dialog.fiuu.transaction_at"),
|
|
234
234
|
accessorKey: "completedAt",
|
|
235
235
|
meta: {
|
|
236
236
|
width: "180px"
|
|
@@ -238,17 +238,17 @@ const se = /* @__PURE__ */ x({
|
|
|
238
238
|
cell: ({ cell: o }) => Y(o.getValue()).format("YYYY-MM-DD HH:mm:ss")
|
|
239
239
|
},
|
|
240
240
|
{
|
|
241
|
-
header: () =>
|
|
241
|
+
header: () => n("payment.settlements.dialog.fiuu.sales_amount"),
|
|
242
242
|
accessorKey: "amount",
|
|
243
243
|
cell: ({ cell: o }) => h(o.getValue()).toFormat("$0.00")
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
|
-
header: () =>
|
|
246
|
+
header: () => n("payment.settlements.dialog.fiuu.fee"),
|
|
247
247
|
accessorKey: "commission",
|
|
248
248
|
cell: ({ cell: o }) => h(o.getValue()).toFormat("$0.00")
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
|
-
header: () =>
|
|
251
|
+
header: () => n("payment.settlements.dialog.fiuu.settlement_amount"),
|
|
252
252
|
accessorKey: "netAmount",
|
|
253
253
|
cell: ({ cell: o }) => h(o.getValue()).toFormat("$0.00")
|
|
254
254
|
}
|
|
@@ -263,8 +263,8 @@ const se = /* @__PURE__ */ x({
|
|
|
263
263
|
});
|
|
264
264
|
}, 700);
|
|
265
265
|
}), (o, t) => {
|
|
266
|
-
const f = k("FmCardHeader"), w = k("FmCardSection"), m = k("FmCard"), F = k("FmSearch"),
|
|
267
|
-
return
|
|
266
|
+
const f = k("FmCardHeader"), w = k("FmCardSection"), m = k("FmCard"), F = k("FmSearch"), $ = k("FmTable");
|
|
267
|
+
return R(), B(G, null, [
|
|
268
268
|
i("div", ue, [
|
|
269
269
|
p(m, {
|
|
270
270
|
horizontal: "",
|
|
@@ -276,19 +276,19 @@ const se = /* @__PURE__ */ x({
|
|
|
276
276
|
default: S(() => [
|
|
277
277
|
p(f, {
|
|
278
278
|
class: "p-0",
|
|
279
|
-
title: e(
|
|
279
|
+
title: e(n)("payment.settlements.dialog.info.transaction.title"),
|
|
280
280
|
subtitle: ""
|
|
281
281
|
}, null, 8, ["title"]),
|
|
282
282
|
p(w, { class: "p-0" }, {
|
|
283
283
|
default: S(() => [
|
|
284
|
-
i("b", null, _(e(
|
|
285
|
-
|
|
284
|
+
i("b", null, _(e(n)("payment.settlements.dialog.info.transaction.for")), 1),
|
|
285
|
+
T(": " + _(b.settlement.summary.group) + " ", 1),
|
|
286
286
|
t[2] || (t[2] = i("br", null, null, -1)),
|
|
287
|
-
i("b", null, _(e(
|
|
288
|
-
|
|
287
|
+
i("b", null, _(e(n)("payment.settlements.dialog.info.transaction.reference")), 1),
|
|
288
|
+
T(": " + _(b.settlement.summary.referenceNo), 1),
|
|
289
289
|
t[3] || (t[3] = i("br", null, null, -1)),
|
|
290
|
-
i("b", null, _(e(
|
|
291
|
-
|
|
290
|
+
i("b", null, _(e(n)("payment.settlements.dialog.info.transaction.count")), 1),
|
|
291
|
+
T(": " + _(u.value.length), 1)
|
|
292
292
|
]),
|
|
293
293
|
_: 1
|
|
294
294
|
})
|
|
@@ -308,19 +308,19 @@ const se = /* @__PURE__ */ x({
|
|
|
308
308
|
default: S(() => [
|
|
309
309
|
p(f, {
|
|
310
310
|
class: "p-0",
|
|
311
|
-
title: e(
|
|
311
|
+
title: e(n)("payment.settlements.dialog.info.bank.title"),
|
|
312
312
|
subtitle: ""
|
|
313
313
|
}, null, 8, ["title"]),
|
|
314
314
|
p(w, { class: "p-0" }, {
|
|
315
315
|
default: S(() => [
|
|
316
|
-
i("b", null, _(e(
|
|
317
|
-
|
|
316
|
+
i("b", null, _(e(n)("payment.settlements.dialog.info.bank.for")), 1),
|
|
317
|
+
T(": " + _(b.settlement.summary.bank.name), 1),
|
|
318
318
|
t[4] || (t[4] = i("br", null, null, -1)),
|
|
319
|
-
i("b", null, _(e(
|
|
320
|
-
|
|
319
|
+
i("b", null, _(e(n)("payment.settlements.dialog.info.bank.name")), 1),
|
|
320
|
+
T(": " + _(b.settlement.summary.bank.holderName), 1),
|
|
321
321
|
t[5] || (t[5] = i("br", null, null, -1)),
|
|
322
|
-
i("b", null, _(e(
|
|
323
|
-
|
|
322
|
+
i("b", null, _(e(n)("payment.settlements.dialog.info.bank.number")), 1),
|
|
323
|
+
T(": " + _(b.settlement.summary.bank.accountNo), 1)
|
|
324
324
|
]),
|
|
325
325
|
_: 1
|
|
326
326
|
})
|
|
@@ -340,19 +340,19 @@ const se = /* @__PURE__ */ x({
|
|
|
340
340
|
default: S(() => [
|
|
341
341
|
p(f, {
|
|
342
342
|
class: "p-0",
|
|
343
|
-
title: e(
|
|
343
|
+
title: e(n)("payment.settlements.dialog.info.payout.title"),
|
|
344
344
|
subtitle: ""
|
|
345
345
|
}, null, 8, ["title"]),
|
|
346
346
|
p(w, { class: "p-0" }, {
|
|
347
347
|
default: S(() => [
|
|
348
|
-
i("b", null, _(e(
|
|
349
|
-
|
|
348
|
+
i("b", null, _(e(n)("payment.settlements.dialog.info.payout.amount")), 1),
|
|
349
|
+
T(": " + _(e(h)(b.settlement.summary.amount).toFormat("$0.00")), 1),
|
|
350
350
|
t[6] || (t[6] = i("br", null, null, -1)),
|
|
351
|
-
i("b", null, _(e(
|
|
352
|
-
|
|
351
|
+
i("b", null, _(e(n)("payment.settlements.dialog.info.payout.fee")), 1),
|
|
352
|
+
T(": " + _(e(h)(b.settlement.summary.commission).toFormat("$0.00")), 1),
|
|
353
353
|
t[7] || (t[7] = i("br", null, null, -1)),
|
|
354
|
-
i("b", null, _(e(
|
|
355
|
-
|
|
354
|
+
i("b", null, _(e(n)("payment.settlements.dialog.info.payout.payout")), 1),
|
|
355
|
+
T(": " + _(e(h)(b.settlement.summary.payout).toFormat("$0.00")), 1)
|
|
356
356
|
]),
|
|
357
357
|
_: 1
|
|
358
358
|
})
|
|
@@ -367,10 +367,10 @@ const se = /* @__PURE__ */ x({
|
|
|
367
367
|
p(F, {
|
|
368
368
|
modelValue: v.value,
|
|
369
369
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => v.value = l),
|
|
370
|
-
placeholder: e(
|
|
370
|
+
placeholder: e(n)("payment.settlements.dialog.search")
|
|
371
371
|
}, null, 8, ["modelValue", "placeholder"])
|
|
372
372
|
]),
|
|
373
|
-
p(
|
|
373
|
+
p($, {
|
|
374
374
|
modelValue: r.value,
|
|
375
375
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => r.value = l),
|
|
376
376
|
"shrink-at": !1,
|
|
@@ -390,8 +390,8 @@ const se = /* @__PURE__ */ x({
|
|
|
390
390
|
by: {}
|
|
391
391
|
},
|
|
392
392
|
emits: ["update:id", "update:by"],
|
|
393
|
-
setup(b, { emit:
|
|
394
|
-
const c = b, u =
|
|
393
|
+
setup(b, { emit: n }) {
|
|
394
|
+
const c = b, u = n, { 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(() => {
|
|
@@ -415,46 +415,46 @@ const se = /* @__PURE__ */ x({
|
|
|
415
415
|
}
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
|
-
async function
|
|
418
|
+
async function $() {
|
|
419
419
|
v.value = !0;
|
|
420
420
|
const l = [];
|
|
421
421
|
let s = await F();
|
|
422
422
|
l.push(
|
|
423
|
-
...(s || []).filter((
|
|
423
|
+
...(s || []).filter((a) => a.store.event !== "ORDERING").map((a) => {
|
|
424
424
|
var K, I, O, C;
|
|
425
425
|
return {
|
|
426
426
|
by: "PAYOUT_ACCOUNT",
|
|
427
|
-
value:
|
|
427
|
+
value: a.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 - " + a.store.event,
|
|
430
|
+
label: ((I = (K = a.ref) == null ? void 0 : K.profile) == null ? void 0 : I.name) ?? a.ref.name,
|
|
431
|
+
chipLabel: "Marketing: " + (((C = (O = a.ref) == null ? void 0 : O.profile) == null ? void 0 : C.name) ?? a.ref.name)
|
|
432
432
|
};
|
|
433
433
|
})
|
|
434
434
|
);
|
|
435
435
|
const V = await g();
|
|
436
436
|
l.push(
|
|
437
|
-
...(V || []).filter((
|
|
437
|
+
...(V || []).filter((a) => a.managable).map((a) => ({
|
|
438
438
|
by: "RESTAURANT",
|
|
439
|
-
value:
|
|
439
|
+
value: a._id,
|
|
440
440
|
prefix: d("payment.components.restaurant"),
|
|
441
441
|
type: "Restaurant",
|
|
442
|
-
label:
|
|
443
|
-
chipLabel: "Restaurant: " +
|
|
442
|
+
label: a.profile.name + " (" + (a.profile.code ?? "--") + ")",
|
|
443
|
+
chipLabel: "Restaurant: " + a.profile.name + " (" + (a.profile.code ?? "--") + ")"
|
|
444
444
|
}))
|
|
445
|
-
), o.value = l, w.value = o.value, t.value = l.find((
|
|
445
|
+
), o.value = l, w.value = o.value, t.value = l.find((a) => a.value === c.id && a.by === c.by) ?? l[0], v.value = !1;
|
|
446
446
|
}
|
|
447
|
-
return z(
|
|
448
|
-
const V = k("FmCircularProgress"),
|
|
449
|
-
return e(v) ? (
|
|
447
|
+
return z($), D(r, $), (l, s) => {
|
|
448
|
+
const V = k("FmCircularProgress"), a = k("FmChip"), K = k("FmSearch"), I = k("FmMenuItem"), O = k("FmMenu");
|
|
449
|
+
return e(v) ? (R(), N(V, {
|
|
450
450
|
key: 0,
|
|
451
451
|
size: "md"
|
|
452
|
-
})) : (
|
|
452
|
+
})) : (R(), B("div", de, [
|
|
453
453
|
p(O, { "close-on-click": !0 }, {
|
|
454
454
|
"menu-button": S(() => {
|
|
455
455
|
var C;
|
|
456
456
|
return [
|
|
457
|
-
p(
|
|
457
|
+
p(a, {
|
|
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,
|
|
@@ -472,7 +472,7 @@ const se = /* @__PURE__ */ x({
|
|
|
472
472
|
}, null, 8, ["model-value", "placeholder"])
|
|
473
473
|
]),
|
|
474
474
|
i("div", null, [
|
|
475
|
-
(
|
|
475
|
+
(R(!0), B(G, null, X(w.value, (C) => (R(), N(I, {
|
|
476
476
|
key: C.value,
|
|
477
477
|
label: C.label,
|
|
478
478
|
sublabel: C.type,
|
|
@@ -489,7 +489,7 @@ const se = /* @__PURE__ */ x({
|
|
|
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
491
|
setup(b) {
|
|
492
|
-
const
|
|
492
|
+
const n = te(), { tab: c, dateRange: u, id: d, by: r } = ae({
|
|
493
493
|
id: "",
|
|
494
494
|
by: "",
|
|
495
495
|
tab: "feedme",
|
|
@@ -499,7 +499,7 @@ const se = /* @__PURE__ */ x({
|
|
|
499
499
|
}
|
|
500
500
|
}), { t: g } = M(), { isLoading: v, startAsyncCall: y } = q(!0), o = ee(), t = A([]), f = A([]);
|
|
501
501
|
async function w() {
|
|
502
|
-
const l = await
|
|
502
|
+
const l = await P.readBusinessSettlements({
|
|
503
503
|
start: u.value.startDate,
|
|
504
504
|
end: u.value.endDate,
|
|
505
505
|
event: r.value === "PAYOUT_ACCOUNT" ? "MARKETING" : "ORDERING",
|
|
@@ -508,7 +508,7 @@ const se = /* @__PURE__ */ x({
|
|
|
508
508
|
t.value = l;
|
|
509
509
|
}
|
|
510
510
|
async function m() {
|
|
511
|
-
const l = await
|
|
511
|
+
const l = await P.readBusinessRMSSettlements({
|
|
512
512
|
start: u.value.startDate,
|
|
513
513
|
end: u.value.endDate,
|
|
514
514
|
event: r.value === "PAYOUT_ACCOUNT" ? "MARKETING" : "ORDERING",
|
|
@@ -523,7 +523,7 @@ const se = /* @__PURE__ */ x({
|
|
|
523
523
|
}
|
|
524
524
|
await y(async () => Promise.all([w(), m()]));
|
|
525
525
|
}
|
|
526
|
-
async function
|
|
526
|
+
async function $(l) {
|
|
527
527
|
const s = Y(l.summary.completedAt).format("YYYY/MM/DD");
|
|
528
528
|
o.open({
|
|
529
529
|
title: `${g("payment.settlements.dialog.title")} (${l.summary.referenceNo})`,
|
|
@@ -536,7 +536,7 @@ const se = /* @__PURE__ */ x({
|
|
|
536
536
|
}
|
|
537
537
|
return z(F), D([d, u], F), (l, s) => {
|
|
538
538
|
const V = k("FmTabs");
|
|
539
|
-
return
|
|
539
|
+
return R(), N(Z, {
|
|
540
540
|
title: e(g)("payment.settlements.title"),
|
|
541
541
|
description: e(g)("payment.settlements.description"),
|
|
542
542
|
loading: !1
|
|
@@ -546,13 +546,13 @@ const se = /* @__PURE__ */ x({
|
|
|
546
546
|
i("div", ve, [
|
|
547
547
|
p(fe, {
|
|
548
548
|
id: e(d),
|
|
549
|
-
"onUpdate:id": s[0] || (s[0] = (
|
|
549
|
+
"onUpdate:id": s[0] || (s[0] = (a) => U(d) ? d.value = a : null),
|
|
550
550
|
by: e(r),
|
|
551
|
-
"onUpdate:by": s[1] || (s[1] = (
|
|
551
|
+
"onUpdate:by": s[1] || (s[1] = (a) => U(r) ? r.value = a : null)
|
|
552
552
|
}, null, 8, ["id", "by"]),
|
|
553
553
|
p(oe, {
|
|
554
554
|
modelValue: e(u),
|
|
555
|
-
"onUpdate:modelValue": s[2] || (s[2] = (
|
|
555
|
+
"onUpdate:modelValue": s[2] || (s[2] = (a) => U(u) ? u.value = a : null)
|
|
556
556
|
}, null, 8, ["modelValue"])
|
|
557
557
|
]),
|
|
558
558
|
i("div", _e, [
|
|
@@ -563,12 +563,13 @@ const se = /* @__PURE__ */ x({
|
|
|
563
563
|
label: "Export"
|
|
564
564
|
},
|
|
565
565
|
handler: async () => {
|
|
566
|
-
|
|
566
|
+
const a = {
|
|
567
567
|
start: e(u).startDate,
|
|
568
568
|
end: e(u).endDate,
|
|
569
569
|
event: e(r) === "PAYOUT_ACCOUNT" ? "MARKETING" : "ORDERING",
|
|
570
570
|
id: e(d)
|
|
571
|
-
}
|
|
571
|
+
};
|
|
572
|
+
e(c) === "fiuu" ? await e(P).downloadBusinessRMSSettlementReport(a) : await e(P).downloadBusinessSettlementReport(a);
|
|
572
573
|
}
|
|
573
574
|
}, null, 8, ["handler"])
|
|
574
575
|
])
|
|
@@ -576,7 +577,7 @@ const se = /* @__PURE__ */ x({
|
|
|
576
577
|
i("div", ge, [
|
|
577
578
|
p(V, {
|
|
578
579
|
modelValue: e(c),
|
|
579
|
-
"onUpdate:modelValue": s[3] || (s[3] = (
|
|
580
|
+
"onUpdate:modelValue": s[3] || (s[3] = (a) => U(c) ? c.value = a : null),
|
|
580
581
|
items: [
|
|
581
582
|
{
|
|
582
583
|
label: "FeedMe",
|
|
@@ -591,20 +592,20 @@ const se = /* @__PURE__ */ x({
|
|
|
591
592
|
]
|
|
592
593
|
}, null, 8, ["modelValue"])
|
|
593
594
|
]),
|
|
594
|
-
e(c) === "fiuu" ? (
|
|
595
|
+
e(c) === "fiuu" ? (R(), N(me, {
|
|
595
596
|
key: 0,
|
|
596
597
|
loading: e(v),
|
|
597
598
|
data: f.value,
|
|
598
|
-
onRowClick:
|
|
599
|
+
onRowClick: $
|
|
599
600
|
}, null, 8, ["loading", "data"])) : E("", !0),
|
|
600
|
-
e(c) === "feedme" ? (
|
|
601
|
+
e(c) === "feedme" ? (R(), N(re, {
|
|
601
602
|
key: 1,
|
|
602
603
|
loading: e(v),
|
|
603
604
|
data: t.value,
|
|
604
|
-
onRowClick: s[4] || (s[4] = (
|
|
605
|
+
onRowClick: s[4] || (s[4] = (a) => e(n).push({
|
|
605
606
|
name: "mf-payment-settlement-transaction",
|
|
606
607
|
params: {
|
|
607
|
-
settlementId:
|
|
608
|
+
settlementId: a._id
|
|
608
609
|
}
|
|
609
610
|
}))
|
|
610
611
|
}, null, 8, ["loading", "data"])) : E("", !0)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as M, ref as h, computed as T, resolveComponent as d, openBlock as F, createBlock as V, 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-DYl43WIP.js";
|
|
3
3
|
import { h as S } from "./moment-h96o7c8I.js";
|
|
4
|
-
import { s as _ } from "./index-
|
|
4
|
+
import { s as _ } from "./index-CVs0aN89.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-BiKaun0K.js";
|
|
11
11
|
import { u as G } from "./error-K1CakhA9.js";
|
|
12
12
|
import { _ as Q } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js";
|
|
13
13
|
const H = /* @__PURE__ */ M({
|
|
@@ -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-DYl43WIP.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-CPEv5xmO.js";
|
|
6
|
+
import { t as L } from "./index-gbUzsHq5.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-CVs0aN89.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";
|
|
@@ -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-DYl43WIP.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-CPEv5xmO.js";
|
|
6
|
+
import { t as J } from "./index-gbUzsHq5.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-CVs0aN89.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,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as r, resolveComponent as p, openBlock as d, createBlock as s, normalizeClass as u, withCtx as i, createElementVNode as m, toDisplayString as c } from "vue";
|
|
2
|
-
import { p as e } from "./index-
|
|
2
|
+
import { p as e } from "./index-DYl43WIP.js";
|
|
3
3
|
const f = /* @__PURE__ */ r({
|
|
4
4
|
__name: "Status",
|
|
5
5
|
props: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as L, h as E, ref as x, onMounted as pe, watchEffect as Ce, Fragment as ie, computed as D, openBlock as I, createElementBlock as X, createElementVNode as b, createTextVNode as te, toDisplayString as se, createVNode as _, resolveComponent as N, normalizeClass as ye, withCtx as Z, createBlock as U, createCommentVNode as $, unref as T, watch as re, isRef as we } from "vue";
|
|
2
|
-
import { e as Ee } from "./index-
|
|
2
|
+
import { e as Ee } from "./index-DYl43WIP.js";
|
|
3
3
|
import { h as Re } from "./moment-h96o7c8I.js";
|
|
4
|
-
import { u as Me } from "./index-
|
|
5
|
-
import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { u as Me } from "./index-BiKaun0K.js";
|
|
5
|
+
import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-Ld8QyF50.js";
|
|
6
6
|
import { _ as Se } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
|
|
7
7
|
import { useSnackbar as J, useDialogChild as Pe, useDialog as Ae } from "@feedmepos/ui-library";
|
|
8
|
-
import { t as K } from "./index-
|
|
8
|
+
import { t as K } from "./index-Ch9pmMdq.js";
|
|
9
9
|
import { c as le } from "./clipboard-4jh1WteU.js";
|
|
10
10
|
import { useCoreStore as ue } from "@feedmepos/mf-common";
|
|
11
|
-
import { g as Te } from "./grafana-
|
|
11
|
+
import { g as Te } from "./grafana-fcTmH2tm.js";
|
|
12
12
|
import { u as W } from "./error-K1CakhA9.js";
|
|
13
13
|
import { z as ne, a as ae } from "./validator-CTlVogBQ.js";
|
|
14
14
|
import { w as oe } from "./Modal-DB8M9o1T.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as M, openBlock as f, createElementBlock as R, Fragment as P, createElementVNode as I, createTextVNode as j, toDisplayString as W, ref as b, resolveComponent as g, createVNode as y, createCommentVNode as V, unref as h, computed as C, isRef as Z, createBlock as F, resolveDynamicComponent as ee, normalizeProps as ae, mergeProps as te, watch as q, onBeforeUnmount as pe, toRef as A, onMounted as G, withCtx as O, renderList as Y } from "vue";
|
|
2
|
-
import { u as le, p as me, e as U } from "./index-
|
|
2
|
+
import { u as le, p as me, e as U } from "./index-DYl43WIP.js";
|
|
3
3
|
import { useRouter as ve } from "vue-router";
|
|
4
|
-
import { t as E } from "./index-
|
|
4
|
+
import { t as E } from "./index-Ch9pmMdq.js";
|
|
5
5
|
import { _ as ye } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
6
|
-
import { u as ne } from "./index-
|
|
6
|
+
import { u as ne } from "./index-BiKaun0K.js";
|
|
7
7
|
import { useSnackbar as se } from "@feedmepos/ui-library";
|
|
8
8
|
import { u as X } from "./error-K1CakhA9.js";
|
|
9
9
|
import { useI18n as fe, useCoreStore as oe } from "@feedmepos/mf-common";
|
|
10
|
-
import { o as ge } from "./index-
|
|
10
|
+
import { o as ge } from "./index-Qmbuelbf.js";
|
|
11
11
|
import { c as be } from "./index-MdV54cWO.js";
|
|
12
12
|
import { z as Te, a as _e } from "./validator-CTlVogBQ.js";
|
|
13
13
|
const Ie = /* @__PURE__ */ M({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { reactive as ye, computed as h, watch as R, defineComponent as q, useModel as se, ref as H, resolveComponent as b, openBlock as f, createBlock as D, withCtx as P, createVNode as _, createElementVNode as I, unref as S, createElementBlock as O, Fragment as le, renderList as re, toDisplayString as Q, createCommentVNode as ie, withModifiers as fe, mergeModels as ae, toRef as be, createTextVNode as he, onBeforeUnmount as _e, isRef as X, h as L } from "vue";
|
|
2
|
-
import { t as Y } from "./index-
|
|
2
|
+
import { t as Y } from "./index-gbUzsHq5.js";
|
|
3
3
|
import { h as Z } from "./moment-h96o7c8I.js";
|
|
4
|
-
import { g as Fe, b as ue, p as $ } from "./index-
|
|
5
|
-
import { g as Te, a as Se, t as Ie, _ as Ae, b as ee } from "./assets-
|
|
6
|
-
import { u as we } from "./index-
|
|
4
|
+
import { g as Fe, b as ue, p as $ } from "./index-DYl43WIP.js";
|
|
5
|
+
import { g as Te, a as Se, t as Ie, _ as Ae, b as ee } from "./assets-CPEv5xmO.js";
|
|
6
|
+
import { u as we } from "./index-BiKaun0K.js";
|
|
7
7
|
import { useRoute as xe, useRouter as De } from "vue-router";
|
|
8
8
|
import { _ as Pe } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
|
|
9
9
|
import { _ as ke } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
@@ -12,12 +12,12 @@ import { useSnackbar as Ce, useDialog as Ne } from "@feedmepos/ui-library";
|
|
|
12
12
|
import { w as ce } from "./Modal-DB8M9o1T.js";
|
|
13
13
|
import { u as W } from "./error-K1CakhA9.js";
|
|
14
14
|
import { _ as Me } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js";
|
|
15
|
-
import { u as J, _ as $e } from "./AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-
|
|
15
|
+
import { u as J, _ as $e } from "./AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DjiSltH9.js";
|
|
16
16
|
import { useI18n as ve, useCoreStore as Oe } from "@feedmepos/mf-common";
|
|
17
|
-
import { k as ge, h as de } from "./app-
|
|
18
|
-
import { p as ne } from "./index-
|
|
19
|
-
import { g as qe } from "./grafana-
|
|
20
|
-
import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-
|
|
17
|
+
import { k as ge, h as de } from "./app-1rw4JLKr.js";
|
|
18
|
+
import { p as ne } from "./index-B0rOAUW-.js";
|
|
19
|
+
import { g as qe } from "./grafana-fcTmH2tm.js";
|
|
20
|
+
import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-Ld8QyF50.js";
|
|
21
21
|
import { _ as Ue } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
|
|
22
22
|
import { _ as me } from "./TextInputDialog.vue_vue_type_script_setup_true_lang-C3AeZqwO.js";
|
|
23
23
|
import { u as Be, a as Re } from "./index-n58-Qewm.js";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { defineComponent as w, ref as x, watch as k, onMounted as Q, resolveComponent as h, unref as n, openBlock as R, createBlock as O, createElementBlock as Y, createVNode as d, withCtx as M, createElementVNode as N, Fragment as H, renderList as W, createTextVNode as X, toDisplayString as Z, onBeforeUnmount as ee, isRef as F, h as I } from "vue";
|
|
2
|
-
import { t as P } from "./index-
|
|
2
|
+
import { t as P } from "./index-gbUzsHq5.js";
|
|
3
3
|
import { h as G } from "./moment-h96o7c8I.js";
|
|
4
4
|
import { useI18n as j, useCoreStore as J } from "@feedmepos/mf-common";
|
|
5
5
|
import { _ as te } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
6
|
-
import { t as ae, b as ne, _ as re } from "./assets-
|
|
7
|
-
import { u as se } from "./index-
|
|
6
|
+
import { t as ae, b as ne, _ as re } from "./assets-CPEv5xmO.js";
|
|
7
|
+
import { u as se } from "./index-BiKaun0K.js";
|
|
8
8
|
import { _ as oe } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
9
9
|
import { _ as le } from "./SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js";
|
|
10
10
|
import { _ as ie } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js";
|
|
11
|
-
import { p as ce } from "./index-
|
|
12
|
-
import { t as ue } from "./index-
|
|
13
|
-
import { u as me, p as D } from "./index-
|
|
11
|
+
import { p as ce } from "./index-B0rOAUW-.js";
|
|
12
|
+
import { t as ue } from "./index-Ch9pmMdq.js";
|
|
13
|
+
import { u as me, p as D } from "./index-DYl43WIP.js";
|
|
14
14
|
import { useSnackbar as de, useDialog as pe } from "@feedmepos/ui-library";
|
|
15
|
-
import { _ as ye, a as fe, b as _e } from "./Actions.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { g as ge } from "./grafana-
|
|
15
|
+
import { _ as ye, a as fe, b as _e } from "./Actions.vue_vue_type_script_setup_true_lang-CRNNEhdb.js";
|
|
16
|
+
import { g as ge } from "./grafana-fcTmH2tm.js";
|
|
17
17
|
import { w as z } from "./Modal-DB8M9o1T.js";
|
|
18
18
|
import { u as L } from "./error-K1CakhA9.js";
|
|
19
|
-
import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-
|
|
19
|
+
import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-Ld8QyF50.js";
|
|
20
20
|
import { u as Te, a as ve } from "./index-n58-Qewm.js";
|
|
21
|
-
import { h as q } from "./app-
|
|
21
|
+
import { h as q } from "./app-1rw4JLKr.js";
|
|
22
22
|
const he = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "inline-flex"
|