@feedmepos/mf-payment 1.0.17 → 1.0.18-beta.2
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/{PayoutAccount-B4_FlpNy.js → PayoutAccount-CAYmccd8.js} +4 -3
- package/dist/{PayoutAccount-C1F4nzhY.js → PayoutAccount-Dani-Vcr.js} +83 -115
- package/dist/PayoutAccountSetting-BRqq3Euz.js +426 -0
- package/dist/{Restaurant-TCSbQjCj.js → Restaurant-Ct9uX3tK.js} +4 -4
- package/dist/{RestaurantSetting-D_dNcxQd.js → RestaurantSetting-IiVR10w-.js} +137 -115
- package/dist/{Settlement-BQe2JW-Q.js → Settlement-8sL3n7Uy.js} +3 -3
- package/dist/Settlement-CCS9qXIt.js +447 -0
- package/dist/{SettlementTransactions-9sVg8_eQ.js → SettlementTransactions-BpPwk2N9.js} +4 -4
- package/dist/{SettlementTransactions-DD6wLd4W.js → SettlementTransactions-Dm451RW9.js} +4 -4
- package/dist/Terminal-x4zVgQ2R.js +435 -0
- package/dist/{TerminalSetting-CNjiW8AS.js → TerminalSetting-DjdcFvhb.js} +43 -41
- package/dist/{TerminalTransaction-BHdUR8kU.js → TerminalTransaction-UbAK46sL.js} +205 -194
- package/dist/TerminalTransaction-lvSBz4Ot.js +269 -0
- package/dist/{Transaction-Sq0Vy8K5.js → Transaction-B3ezRLvG.js} +6 -6
- package/dist/Transaction-CaNDLxgb.js +247 -0
- package/dist/{TransactionOld-DgFEZ8lO.js → TransactionOld-DhxmQHjI.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-B10hKLw3.js → TransactionTable.vue_vue_type_script_setup_true_lang-CVph-0nh.js} +2 -2
- package/dist/api/index.d.ts +1 -1
- package/dist/api/settlement/index.d.ts +5 -1
- package/dist/api/terminal/index.d.ts +1 -0
- package/dist/api/terminal-transaction/index.d.ts +2 -2
- package/dist/{app-DSs9frsP.js → app-BxUUto4C.js} +228 -228
- package/dist/app.js +1 -1
- package/dist/{assets-isbnAWcO.js → assets-QgVyUzRm.js} +1 -1
- package/dist/grafana-lRpmiuMV.js +54 -0
- package/dist/{index-zuIHTzhv.js → index-BDetj-K3.js} +1 -1
- package/dist/{index-C-YBzOUs.js → index-C5jJz7Uy.js} +31 -23
- package/dist/{index-CRJ6lKaL.js → index-C_vfSMMT.js} +2 -2
- package/dist/index-Ccrw_vQ0.js +52 -0
- package/dist/{index-CMfikq5P.js → index-DSCiBD0w.js} +27 -20
- package/dist/{index-_cvebzIU.js → index-DeIxOALB.js} +1 -1
- package/dist/{index-M-Xwbigf.js → index-DuGQ8IfZ.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-atP7HnX3.js → index.vue_vue_type_script_setup_true_lang-C8bhf2iY.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-DcBR5HoD.js → payout-account-Bzs57EEq.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{transaction-3qMvkl2b.js → transaction-CaOomCoW.js} +21 -12
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +2 -0
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +293 -0
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +147 -0
- package/package.json +2 -2
- package/dist/PayoutAccountSelector.vue_vue_type_script_setup_true_lang-D1JZ56cv.js +0 -110
- package/dist/PayoutAccountSetting-BEw1XNuX.js +0 -758
- package/dist/Settlement-DTA0SdZc.js +0 -145
- package/dist/Terminal-Dd2OGvH_.js +0 -404
- package/dist/TerminalTransaction-BDye71lK.js +0 -819
- package/dist/Transaction-EmgoD2xm.js +0 -145
- package/dist/grafana-Bf4L47IF.js +0 -49
- package/dist/index-B7mrn8cQ.js +0 -47
- package/dist/index-DuemQbuN.js +0 -28
- package/dist/views/admin/payout-account/cell/IsActive.vue.d.ts +0 -7
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +0 -81
- package/dist/views/admin/terminal-transaction/cell/Timestamp.vue.d.ts +0 -7
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as f, ref as I, reactive as J, computed as Z, watch as p, resolveComponent as Y, openBlock as n, createBlock as u, withCtx as Q, createElementVNode as r, createVNode as i, unref as w, createCommentVNode as O, createElementBlock as U, normalizeClass as h, toDisplayString as k, h as y, onMounted as R, Fragment as T } from "vue";
|
2
|
-
import { p as N } from "./index-
|
3
|
-
import { _ as z, u as L, e as S } from "./index-
|
2
|
+
import { p as N } from "./index-BDetj-K3.js";
|
3
|
+
import { _ as z, u as L, e as S } from "./index-C_vfSMMT.js";
|
4
4
|
import { defineStore as _ } from "pinia";
|
5
5
|
import { useCoreStore as $ } from "@feedmepos/mf-common";
|
6
|
-
import { c as AA, P as W } from "./payout-account-
|
6
|
+
import { c as AA, P as W } from "./payout-account-Bzs57EEq.js";
|
7
7
|
import { useDialogChild as eA, useDialog as sA } from "@feedmepos/ui-library";
|
8
8
|
import { z as X, a as x } from "./validator-D5jtpt9A.js";
|
9
9
|
import { P as K } from "./PDFViewer-xrBtzrlR.js";
|
@@ -158,6 +158,7 @@ const gA = _("mf-payment-payoutAccount", {
|
|
158
158
|
"onUpdate:modelValue": A[3] || (A[3] = (c) => e.payoutSetting.store.bank.accountNumber = c),
|
159
159
|
label: "Account Number",
|
160
160
|
"label-mark": "required",
|
161
|
+
type: "number",
|
161
162
|
rules: w(X)(w(x).string().min(1))
|
162
163
|
}, null, 8, ["modelValue", "rules"]),
|
163
164
|
i(M, {
|
@@ -1,139 +1,116 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { u as
|
3
|
-
import { _ as
|
4
|
-
import { _ as
|
5
|
-
import { P as V } from "./payout-account-
|
6
|
-
import { p as
|
1
|
+
import { defineComponent as y, resolveComponent as u, openBlock as h, createBlock as k, normalizeClass as N, withCtx as c, createElementVNode as P, toDisplayString as I, createVNode as i, computed as x, ref as S, watch as F, unref as r, isRef as f, h as v } from "vue";
|
2
|
+
import { u as O } from "./index-DeIxOALB.js";
|
3
|
+
import { _ as K } from "./index-C_vfSMMT.js";
|
4
|
+
import { _ as A } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
5
|
+
import { P as V } from "./payout-account-Bzs57EEq.js";
|
6
|
+
import { p as D } from "./index-BDetj-K3.js";
|
7
7
|
import "@feedmepos/ui-library";
|
8
|
-
import { _ as
|
9
|
-
import { useRouter as
|
10
|
-
import { _ as
|
11
|
-
const G = /* @__PURE__ */
|
8
|
+
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-C8bhf2iY.js";
|
9
|
+
import { useRouter as U } from "vue-router";
|
10
|
+
import { _ as $ } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
11
|
+
const G = /* @__PURE__ */ y({
|
12
12
|
__name: "Status",
|
13
13
|
props: {
|
14
14
|
row: {},
|
15
15
|
data: {}
|
16
16
|
},
|
17
|
-
setup(
|
18
|
-
const
|
17
|
+
setup(_) {
|
18
|
+
const l = _;
|
19
19
|
function t() {
|
20
|
-
return
|
20
|
+
return l.data === "NEW" ? "!w-[16px] !h-[16px] bg-yellow-400" : l.data === "PENDING" ? "!w-[16px] !h-[16px] bg-red-400" : "!w-[16px] !h-[16px] bg-green-400";
|
21
21
|
}
|
22
|
-
return (
|
23
|
-
const
|
24
|
-
return h(),
|
22
|
+
return (p, d) => {
|
23
|
+
const o = u("FmBadge");
|
24
|
+
return h(), k(o, {
|
25
25
|
inline: "",
|
26
26
|
class: N(t())
|
27
27
|
}, {
|
28
|
-
default:
|
29
|
-
P("div", null,
|
28
|
+
default: c(() => [
|
29
|
+
P("div", null, I(p.data), 1)
|
30
30
|
]),
|
31
31
|
_: 1
|
32
32
|
}, 8, ["class"]);
|
33
33
|
};
|
34
34
|
}
|
35
|
-
}), L = /* @__PURE__ */
|
36
|
-
__name: "IsActive",
|
37
|
-
props: {
|
38
|
-
row: {},
|
39
|
-
data: {}
|
40
|
-
},
|
41
|
-
setup(d) {
|
42
|
-
const o = d;
|
43
|
-
function t() {
|
44
|
-
return o.data ? "#66BB6A" : "#EF5350";
|
45
|
-
}
|
46
|
-
function m() {
|
47
|
-
return o.data ? "check" : "close";
|
48
|
-
}
|
49
|
-
return (c, r) => {
|
50
|
-
const l = i("FmIcon");
|
51
|
-
return h(), y(l, {
|
52
|
-
name: m(),
|
53
|
-
color: t(),
|
54
|
-
size: "lg"
|
55
|
-
}, null, 8, ["name", "color"]);
|
56
|
-
};
|
57
|
-
}
|
58
|
-
}), W = /* @__PURE__ */ g({
|
35
|
+
}), L = /* @__PURE__ */ y({
|
59
36
|
__name: "Bank",
|
60
37
|
props: {
|
61
38
|
row: {},
|
62
39
|
data: {}
|
63
40
|
},
|
64
|
-
setup(
|
65
|
-
function
|
41
|
+
setup(_) {
|
42
|
+
function l(t) {
|
66
43
|
return t ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
|
67
44
|
}
|
68
|
-
return (t,
|
69
|
-
const
|
70
|
-
return h(),
|
45
|
+
return (t, p) => {
|
46
|
+
const d = u("FmBadge"), o = u("FmListItem");
|
47
|
+
return h(), k(o, {
|
71
48
|
label: t.row.original.holderName,
|
72
49
|
sublabel: t.row.original.bankName + " - " + t.row.original.bankNumber,
|
73
50
|
clickable: !1,
|
74
51
|
tag: "label"
|
75
52
|
}, {
|
76
|
-
append:
|
77
|
-
|
53
|
+
append: c(() => [
|
54
|
+
i(d, {
|
78
55
|
inline: "",
|
79
|
-
class: N(
|
56
|
+
class: N(l(t.row.original.bankReady))
|
80
57
|
}, null, 8, ["class"])
|
81
58
|
]),
|
82
59
|
_: 1
|
83
60
|
}, 8, ["label", "sublabel"]);
|
84
61
|
};
|
85
62
|
}
|
86
|
-
}),
|
63
|
+
}), W = /* @__PURE__ */ y({
|
87
64
|
__name: "PersonInCharge",
|
88
65
|
props: {
|
89
66
|
row: {},
|
90
67
|
data: {}
|
91
68
|
},
|
92
|
-
setup(
|
93
|
-
function
|
69
|
+
setup(_) {
|
70
|
+
function l(t) {
|
94
71
|
return t ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
|
95
72
|
}
|
96
|
-
return (t,
|
97
|
-
const
|
98
|
-
return h(),
|
73
|
+
return (t, p) => {
|
74
|
+
const d = u("FmBadge"), o = u("FmListItem");
|
75
|
+
return h(), k(o, {
|
99
76
|
label: t.row.original.picName,
|
100
77
|
sublabel: t.row.original.picEmail + " - " + t.row.original.picPhone,
|
101
78
|
clickable: !1,
|
102
79
|
tag: "label"
|
103
80
|
}, {
|
104
|
-
append:
|
105
|
-
|
81
|
+
append: c(() => [
|
82
|
+
i(d, {
|
106
83
|
inline: "",
|
107
|
-
class: N(
|
84
|
+
class: N(l(t.row.original.picReady))
|
108
85
|
}, null, 8, ["class"])
|
109
86
|
]),
|
110
87
|
_: 1
|
111
88
|
}, 8, ["label", "sublabel"]);
|
112
89
|
};
|
113
90
|
}
|
114
|
-
}),
|
91
|
+
}), j = { class: "flex items-start mb-6" }, ae = /* @__PURE__ */ y({
|
115
92
|
__name: "PayoutAccount",
|
116
|
-
setup(
|
117
|
-
const
|
93
|
+
setup(_) {
|
94
|
+
const l = x(() => V.storeEventOptions), t = x(() => V.statusOptions), p = S(), d = U(), { event: o, status: s, searchKey: m } = O({
|
118
95
|
searchKey: "",
|
119
|
-
event:
|
96
|
+
event: K.F_PAYOUT_FOR.Enum.ORDERING,
|
120
97
|
status: t.value.map((e) => e.value)
|
121
98
|
});
|
122
|
-
F([
|
99
|
+
F([o, s], () => {
|
123
100
|
var e;
|
124
|
-
return (e =
|
101
|
+
return (e = p.value) == null ? void 0 : e.reset();
|
125
102
|
});
|
126
103
|
let w;
|
127
|
-
F(
|
104
|
+
F(m, async () => {
|
128
105
|
w && clearTimeout(w), w = setTimeout(
|
129
106
|
() => {
|
130
107
|
var e;
|
131
|
-
return (e =
|
108
|
+
return (e = p.value) == null ? void 0 : e.reset();
|
132
109
|
},
|
133
110
|
700
|
134
111
|
);
|
135
112
|
});
|
136
|
-
const
|
113
|
+
const R = function(e) {
|
137
114
|
const a = {
|
138
115
|
bankReady: !1,
|
139
116
|
bankNumber: "",
|
@@ -146,29 +123,28 @@ const G = /* @__PURE__ */ g({
|
|
146
123
|
bankName: e.store.bank.name,
|
147
124
|
holderName: e.store.bank.holderName
|
148
125
|
});
|
149
|
-
const
|
126
|
+
const b = {
|
150
127
|
picReady: !1,
|
151
128
|
picName: "",
|
152
129
|
picPhone: "",
|
153
130
|
picEmail: ""
|
154
131
|
};
|
155
|
-
e.store.keyPerson && Object.assign(
|
132
|
+
e.store.keyPerson && Object.assign(b, {
|
156
133
|
picReady: !0,
|
157
134
|
picName: e.store.keyPerson.name,
|
158
135
|
picPhone: e.store.keyPerson.phone,
|
159
136
|
picEmail: e.store.keyPerson.email
|
160
137
|
});
|
161
|
-
let
|
162
|
-
return e.store.event === "ORDERING" && (
|
138
|
+
let g = e.ref.name;
|
139
|
+
return e.store.event === "ORDERING" && (g = e.ref.profile.name), {
|
163
140
|
_id: e._id,
|
164
141
|
event: e.store.event,
|
165
|
-
name:
|
142
|
+
name: g,
|
166
143
|
status: e.status,
|
167
|
-
isActive: e.enable,
|
168
144
|
...a,
|
169
|
-
...
|
145
|
+
...b
|
170
146
|
};
|
171
|
-
},
|
147
|
+
}, B = [
|
172
148
|
{
|
173
149
|
header: () => "Type",
|
174
150
|
accessorKey: "event",
|
@@ -189,82 +165,74 @@ const G = /* @__PURE__ */ g({
|
|
189
165
|
textAlign: "right"
|
190
166
|
}
|
191
167
|
},
|
192
|
-
{
|
193
|
-
header: () => "Active?",
|
194
|
-
accessorKey: "isActive",
|
195
|
-
meta: {
|
196
|
-
maxWidth: "64px"
|
197
|
-
},
|
198
|
-
cell: ({ cell: e, row: a }) => v(L, { row: a, data: e.getValue() })
|
199
|
-
},
|
200
168
|
{
|
201
169
|
header: () => "Bank Details",
|
202
170
|
accessorKey: "bank",
|
203
|
-
cell: ({ cell: e, row: a }) => v(
|
171
|
+
cell: ({ cell: e, row: a }) => v(L, { row: a, data: e.getValue() })
|
204
172
|
},
|
205
173
|
{
|
206
174
|
header: () => "Person In-Charge (PIC)",
|
207
175
|
accessorKey: "pic",
|
208
|
-
cell: ({ cell: e, row: a }) => v(
|
176
|
+
cell: ({ cell: e, row: a }) => v(W, { row: a, data: e.getValue() })
|
209
177
|
}
|
210
178
|
];
|
211
179
|
return (e, a) => {
|
212
|
-
const
|
213
|
-
return h(),
|
180
|
+
const b = u("FmSelect"), g = u("FmSearch"), C = u("FmFormGroup");
|
181
|
+
return h(), k(A, {
|
214
182
|
title: "Payout Accounts",
|
215
183
|
loading: !1
|
216
184
|
}, {
|
217
|
-
default:
|
218
|
-
P("div",
|
219
|
-
|
220
|
-
modelValue:
|
221
|
-
"onUpdate:modelValue": a[0] || (a[0] = (n) =>
|
185
|
+
default: c(() => [
|
186
|
+
P("div", j, [
|
187
|
+
i(b, {
|
188
|
+
modelValue: r(o),
|
189
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => f(o) ? o.value = n : null),
|
222
190
|
class: "mr-6 w-[128px]",
|
223
191
|
label: "Type",
|
224
192
|
"label-mark": "required",
|
225
|
-
items:
|
193
|
+
items: l.value
|
226
194
|
}, null, 8, ["modelValue", "items"]),
|
227
|
-
|
228
|
-
modelValue: s
|
229
|
-
"onUpdate:modelValue": a[2] || (a[2] = (n) =>
|
195
|
+
i(b, {
|
196
|
+
modelValue: r(s),
|
197
|
+
"onUpdate:modelValue": a[2] || (a[2] = (n) => f(s) ? s.value = n : null),
|
230
198
|
class: "mr-6 w-[300px]",
|
231
199
|
label: "Status",
|
232
200
|
"label-mark": "required",
|
233
201
|
multiselect: "",
|
234
202
|
items: t.value
|
235
203
|
}, {
|
236
|
-
"prepend-menu":
|
237
|
-
|
238
|
-
modelValue: s
|
239
|
-
"onUpdate:modelValue": a[1] || (a[1] = (n) =>
|
204
|
+
"prepend-menu": c(() => [
|
205
|
+
i($, {
|
206
|
+
modelValue: r(s),
|
207
|
+
"onUpdate:modelValue": a[1] || (a[1] = (n) => f(s) ? s.value = n : null),
|
240
208
|
items: t.value
|
241
209
|
}, null, 8, ["modelValue", "items"])
|
242
210
|
]),
|
243
211
|
_: 1
|
244
212
|
}, 8, ["modelValue", "items"]),
|
245
|
-
|
213
|
+
i(C, {
|
246
214
|
class: "w-[300px]",
|
247
|
-
modelValue:
|
248
|
-
"onUpdate:modelValue": a[4] || (a[4] = (n) =>
|
215
|
+
modelValue: r(m),
|
216
|
+
"onUpdate:modelValue": a[4] || (a[4] = (n) => f(m) ? m.value = n : null),
|
249
217
|
label: "Search"
|
250
218
|
}, {
|
251
|
-
default:
|
252
|
-
|
253
|
-
modelValue:
|
254
|
-
"onUpdate:modelValue": a[3] || (a[3] = (n) =>
|
219
|
+
default: c(() => [
|
220
|
+
i(g, {
|
221
|
+
modelValue: r(m),
|
222
|
+
"onUpdate:modelValue": a[3] || (a[3] = (n) => f(m) ? m.value = n : null),
|
255
223
|
placeholder: "Search accounts ..."
|
256
224
|
}, null, 8, ["modelValue"])
|
257
225
|
]),
|
258
226
|
_: 1
|
259
227
|
}, 8, ["modelValue"])
|
260
228
|
]),
|
261
|
-
|
229
|
+
i(T, {
|
262
230
|
ref_key: "controller",
|
263
|
-
ref:
|
264
|
-
"column-defs":
|
265
|
-
"rows-defs":
|
266
|
-
paginate: (n,
|
267
|
-
onRowClick: a[5] || (a[5] = (n) =>
|
231
|
+
ref: p,
|
232
|
+
"column-defs": B,
|
233
|
+
"rows-defs": R,
|
234
|
+
paginate: (n, E) => r(D).read({ event: r(o), status: r(s), searchKey: r(m), limit: n, cursor: E }),
|
235
|
+
onRowClick: a[5] || (a[5] = (n) => r(d).push({
|
268
236
|
name: "mf-payment-admin.payout-account-settings",
|
269
237
|
params: {
|
270
238
|
accountId: n._id
|
@@ -278,5 +246,5 @@ const G = /* @__PURE__ */ g({
|
|
278
246
|
}
|
279
247
|
});
|
280
248
|
export {
|
281
|
-
|
249
|
+
ae as default
|
282
250
|
};
|