@feedmepos/mf-payment 1.1.7-beta.2 → 1.1.7-beta.3
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-CTGMi_PX.js → PayoutAccount-CnTCZExr.js} +5 -5
- package/dist/{PayoutAccount-CmdOJR3H.js → PayoutAccount-Crwu1h-c.js} +3 -3
- package/dist/{PayoutAccountSetting-CjrCD_d1.js → PayoutAccountSetting-PyIESuN8.js} +3 -3
- package/dist/{Restaurant-OdusOWQW.js → Restaurant-BF1J35Ic.js} +4 -4
- package/dist/{RestaurantSetting-Ex1C9Sm0.js → RestaurantSetting-Dg7cfqKF.js} +3 -3
- package/dist/Settlement-B-TQCdB4.js +219 -0
- package/dist/{Settlement-B7HpwvU5.js → Settlement-BPrjfDMN.js} +3 -3
- package/dist/{SettlementTransactions--0nVkfix.js → SettlementTransactions-C13T6n0z.js} +3 -3
- package/dist/{SettlementTransactions-Can9YWKo.js → SettlementTransactions-CpRADd8a.js} +20 -16
- package/dist/{Terminal-Bk9PaUWE.js → Terminal-DgKJ9zSL.js} +5 -5
- package/dist/{TerminalSetting-DY91cG8K.js → TerminalSetting-Boh1fu6s.js} +3 -3
- package/dist/{Transaction-B0mm21J6.js → Transaction-BvvhqS95.js} +5 -5
- package/dist/{Transaction-4VcaNM-I.js → Transaction-CsAF2AXj.js} +6 -6
- package/dist/{TransactionOld-BBjyfmEP.js → TransactionOld-DsC0R1Qe.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-CFxM2Kdo.js → TransactionTable.vue_vue_type_script_setup_true_lang-CtrMBxwz.js} +3 -3
- package/dist/api/settlement/index.d.ts +1 -1
- package/dist/{app-BqfjZZ5M.js → app-D6rd6uvO.js} +152 -150
- package/dist/app.d.ts +2 -0
- package/dist/app.js +1 -1
- package/dist/{assets-Dt65qI3E.js → assets-B41ScDuA.js} +1 -1
- package/dist/{grafana-DYfiInW0.js → grafana-CdozbaJn.js} +1 -1
- package/dist/{index-BLk57IkI.js → index-3u2VZ6Ni.js} +29 -26
- package/dist/{index-DUS0JnIE.js → index-BIObbzAP.js} +1 -1
- package/dist/{index-CqPoOkrc.js → index-CCBZtmwy.js} +1 -1
- package/dist/{index-Cg9oAjSw.js → index-CEU5ybp0.js} +1 -1
- package/dist/{index-OxQY2Y3u.js → index-Cnf4HsQx.js} +1 -1
- package/dist/{index-CLm4m9aq.js → index-D1_hIXoR.js} +812 -812
- package/dist/{index.vue_vue_type_script_setup_true_lang-Bp8Y1T2v.js → index.vue_vue_type_script_setup_true_lang-i3Lcf2Mj.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-7HSkCqOD.js → payout-account-C80nPFWJ.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/Settlement-BzqXBGs7.js +0 -194
package/dist/app.d.ts
CHANGED
@@ -65,6 +65,7 @@ export declare const i18nMessages: {
|
|
65
65
|
method: string;
|
66
66
|
status: string;
|
67
67
|
type: string;
|
68
|
+
payFor: string;
|
68
69
|
transaction_at: string;
|
69
70
|
sales_amount: string;
|
70
71
|
fee: string;
|
@@ -211,6 +212,7 @@ export declare const i18nMessages: {
|
|
211
212
|
method: string;
|
212
213
|
status: string;
|
213
214
|
type: string;
|
215
|
+
payFor: string;
|
214
216
|
transaction_at: string;
|
215
217
|
sales_amount: string;
|
216
218
|
fee: string;
|
package/dist/app.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { g, b as H, r as d, f as l, l as J, i as y, _ as f } from "./index-
|
1
|
+
import { g, b as H, r as d, f as l, l as J, i as y, _ as f } from "./index-D1_hIXoR.js";
|
2
2
|
import { h as C } from "./moment-h96o7c8I.js";
|
3
3
|
import { d as O } from "./dinero-CIVmXLL-.js";
|
4
4
|
const _ = {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { e as y } from "./index-
|
1
|
+
import { e as y } from "./index-D1_hIXoR.js";
|
2
2
|
import { useCoreStore as p } from "@feedmepos/mf-common";
|
3
3
|
import { h as m } from "./moment-h96o7c8I.js";
|
4
4
|
const i = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (t, e, o) => ({
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { g as r, b as i, j as
|
1
|
+
import { g as r, b as i, e as y, j as f, l as p, k as b, i as u, r as m } from "./index-D1_hIXoR.js";
|
2
2
|
import { h as o } from "./moment-h96o7c8I.js";
|
3
|
-
import { d as
|
4
|
-
function*
|
3
|
+
import { d as w } from "./dinero-CIVmXLL-.js";
|
4
|
+
function* S(t, a) {
|
5
5
|
const e = t[Symbol.iterator](), s = e.next();
|
6
6
|
if (!s.done) {
|
7
7
|
yield s.value;
|
8
|
-
for (const
|
9
|
-
yield
|
8
|
+
for (const l of e)
|
9
|
+
yield a, yield l;
|
10
10
|
}
|
11
11
|
}
|
12
|
-
const
|
12
|
+
const D = {
|
13
13
|
async updateRemark(t) {
|
14
14
|
return r(
|
15
15
|
await i().put("/settlements/remark", t)
|
@@ -22,29 +22,32 @@ const S = {
|
|
22
22
|
})
|
23
23
|
);
|
24
24
|
},
|
25
|
-
async downloadBankInstructionFile(t) {
|
26
|
-
const
|
25
|
+
async downloadBankInstructionFile(t, a) {
|
26
|
+
const e = "7161151059";
|
27
|
+
let s = "MYR";
|
28
|
+
t === y.F_COUNTRY.enum.SG && (s = "SGD");
|
29
|
+
const l = a.map((n) => ({
|
27
30
|
productCode: "P2A",
|
28
31
|
settlementDate: o().format("DDMMYYYY"),
|
29
32
|
myRefNo: "",
|
30
|
-
companyAccNo:
|
31
|
-
amount:
|
32
|
-
currency:
|
33
|
+
companyAccNo: e,
|
34
|
+
amount: w(n.totalPayout).toUnit().toString(),
|
35
|
+
currency: s,
|
33
36
|
proxyType: "",
|
34
37
|
transferType: "DFLT",
|
35
|
-
beneficiaryAccountNo:
|
36
|
-
beneficiarySwiftCode:
|
38
|
+
beneficiaryAccountNo: n.beneficiaryBank.accountNumber.toString().trim(),
|
39
|
+
beneficiarySwiftCode: n.beneficiaryBank.swiftCode,
|
37
40
|
beneficiaryCountryCode: "",
|
38
41
|
duitNowID: "",
|
39
|
-
recipientReference:
|
42
|
+
recipientReference: n._id,
|
40
43
|
pf_payment: "",
|
41
44
|
notifyMethod: "",
|
42
45
|
emailAddress: ""
|
43
|
-
})),
|
46
|
+
})), c = new Blob(
|
44
47
|
Array.from(
|
45
|
-
|
46
|
-
|
47
|
-
(
|
48
|
+
S(
|
49
|
+
l.map(
|
50
|
+
(n) => Object.values(n).map((d) => d).join("|")
|
48
51
|
),
|
49
52
|
`
|
50
53
|
`
|
@@ -54,13 +57,13 @@ const S = {
|
|
54
57
|
type: "text/plain;charset=utf-8"
|
55
58
|
}
|
56
59
|
);
|
57
|
-
return
|
60
|
+
return f(c, "duitnow_bulk_transfer.txt");
|
58
61
|
},
|
59
|
-
async downloadSummaryReport(t,
|
60
|
-
return
|
61
|
-
t.map((e) =>
|
62
|
+
async downloadSummaryReport(t, a) {
|
63
|
+
return p(
|
64
|
+
t.map((e) => b(e)),
|
62
65
|
{
|
63
|
-
filename: `summary-report-${
|
66
|
+
filename: `summary-report-${a.start}-${a.end}.xlsx`,
|
64
67
|
exclude: [
|
65
68
|
"beneficiaryBank.swiftCode",
|
66
69
|
"beneficiaryBank.holderName",
|
@@ -92,7 +95,7 @@ const S = {
|
|
92
95
|
);
|
93
96
|
},
|
94
97
|
async downloadSettlementReport(t) {
|
95
|
-
return
|
98
|
+
return u(
|
96
99
|
await i().get("/settlements/audit/v2", {
|
97
100
|
params: {
|
98
101
|
start: o(t.start).startOf("day").toISOString(),
|
@@ -103,7 +106,7 @@ const S = {
|
|
103
106
|
);
|
104
107
|
},
|
105
108
|
async downloadRestaurantSettlementReport(t) {
|
106
|
-
return
|
109
|
+
return u(
|
107
110
|
await m().get("/settlements/report", {
|
108
111
|
params: {
|
109
112
|
start: o(t.start).startOf("day").toISOString(),
|
@@ -139,5 +142,5 @@ const S = {
|
|
139
142
|
}
|
140
143
|
};
|
141
144
|
export {
|
142
|
-
|
145
|
+
D as s
|
143
146
|
};
|