@feedmepos/mf-payment 1.1.7-beta.3 → 1.1.7-beta.4
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-CnTCZExr.js → PayoutAccount-7TEE2BzE.js} +5 -5
- package/dist/{PayoutAccount-Crwu1h-c.js → PayoutAccount-DwKI9IhW.js} +3 -3
- package/dist/{PayoutAccountSetting-PyIESuN8.js → PayoutAccountSetting-C2ISSDKv.js} +3 -3
- package/dist/{Restaurant-BF1J35Ic.js → Restaurant-BXWgyQGg.js} +4 -4
- package/dist/{RestaurantSetting-Dg7cfqKF.js → RestaurantSetting-B2zqIloE.js} +3 -3
- package/dist/{Settlement-BPrjfDMN.js → Settlement-6eU_HP7K.js} +3 -3
- package/dist/Settlement-CBhBo7w7.js +219 -0
- package/dist/{SettlementTransactions-CpRADd8a.js → SettlementTransactions-C4Hj7cKF.js} +3 -3
- package/dist/{SettlementTransactions-C13T6n0z.js → SettlementTransactions-DAzU50AC.js} +3 -3
- package/dist/{Terminal-DgKJ9zSL.js → Terminal-D-mwA9bo.js} +5 -5
- package/dist/{TerminalSetting-Boh1fu6s.js → TerminalSetting-ByPtWVqu.js} +3 -3
- package/dist/{Transaction-BvvhqS95.js → Transaction-C1Z1g1Oh.js} +5 -5
- package/dist/{Transaction-CsAF2AXj.js → Transaction-CCjNEXsW.js} +6 -6
- package/dist/{TransactionOld-DsC0R1Qe.js → TransactionOld-xW6kfmjb.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-CtrMBxwz.js → TransactionTable.vue_vue_type_script_setup_true_lang-CU6q9oND.js} +3 -3
- package/dist/api/settlement/index.d.ts +1 -1
- package/dist/{app-D6rd6uvO.js → app-DSu8Bqxt.js} +318 -318
- package/dist/app.js +1 -1
- package/dist/{assets-B41ScDuA.js → assets-BYZLC205.js} +1 -1
- package/dist/{grafana-CdozbaJn.js → grafana-B-ZEJ__-.js} +1 -1
- package/dist/{index-CEU5ybp0.js → index-B5I6xD5e.js} +1 -1
- package/dist/{index-3u2VZ6Ni.js → index-CEbxMc8H.js} +29 -29
- package/dist/{index-CCBZtmwy.js → index-ClUkVJXR.js} +1 -1
- package/dist/{index-D1_hIXoR.js → index-EJS3NJlp.js} +1521 -1521
- package/dist/{index-BIObbzAP.js → index-Yd0Q7mxR.js} +1 -1
- package/dist/{index-Cnf4HsQx.js → index-yIQx0FT4.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-i3Lcf2Mj.js → index.vue_vue_type_script_setup_true_lang-BHvwhRYU.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-C80nPFWJ.js → payout-account-DgcZA_FW.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/Settlement-B-TQCdB4.js +0 -219
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-EJS3NJlp.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-EJS3NJlp.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,
|
1
|
+
import { g as r, b as i, j as c, l as d, k as y, i as l, r as m } from "./index-EJS3NJlp.js";
|
2
2
|
import { h as o } from "./moment-h96o7c8I.js";
|
3
|
-
import { d as
|
4
|
-
function*
|
3
|
+
import { d as f } from "./dinero-CIVmXLL-.js";
|
4
|
+
function* p(t, n) {
|
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 a of e)
|
9
|
+
yield n, yield a;
|
10
10
|
}
|
11
11
|
}
|
12
|
-
const
|
12
|
+
const S = {
|
13
13
|
async updateRemark(t) {
|
14
14
|
return r(
|
15
15
|
await i().put("/settlements/remark", t)
|
@@ -22,32 +22,32 @@ const D = {
|
|
22
22
|
})
|
23
23
|
);
|
24
24
|
},
|
25
|
-
async downloadBankInstructionFile(t
|
26
|
-
const
|
27
|
-
|
28
|
-
|
29
|
-
const
|
25
|
+
async downloadBankInstructionFile(t) {
|
26
|
+
const n = "7161151059";
|
27
|
+
if (t.length === 0)
|
28
|
+
throw Error("no settlement for export");
|
29
|
+
const e = t.map((a) => ({
|
30
30
|
productCode: "P2A",
|
31
31
|
settlementDate: o().format("DDMMYYYY"),
|
32
32
|
myRefNo: "",
|
33
|
-
companyAccNo:
|
34
|
-
amount:
|
35
|
-
currency:
|
33
|
+
companyAccNo: n,
|
34
|
+
amount: f(a.totalPayout).toUnit().toString(),
|
35
|
+
currency: t[0].totalPayout.currency,
|
36
36
|
proxyType: "",
|
37
37
|
transferType: "DFLT",
|
38
|
-
beneficiaryAccountNo:
|
39
|
-
beneficiarySwiftCode:
|
38
|
+
beneficiaryAccountNo: a.beneficiaryBank.accountNumber.toString().trim(),
|
39
|
+
beneficiarySwiftCode: a.beneficiaryBank.swiftCode,
|
40
40
|
beneficiaryCountryCode: "",
|
41
41
|
duitNowID: "",
|
42
|
-
recipientReference:
|
42
|
+
recipientReference: a._id,
|
43
43
|
pf_payment: "",
|
44
44
|
notifyMethod: "",
|
45
45
|
emailAddress: ""
|
46
|
-
})),
|
46
|
+
})), s = new Blob(
|
47
47
|
Array.from(
|
48
|
-
|
49
|
-
|
50
|
-
(
|
48
|
+
p(
|
49
|
+
e.map(
|
50
|
+
(a) => Object.values(a).map((u) => u).join("|")
|
51
51
|
),
|
52
52
|
`
|
53
53
|
`
|
@@ -57,13 +57,13 @@ const D = {
|
|
57
57
|
type: "text/plain;charset=utf-8"
|
58
58
|
}
|
59
59
|
);
|
60
|
-
return
|
60
|
+
return c(s, "duitnow_bulk_transfer.txt");
|
61
61
|
},
|
62
|
-
async downloadSummaryReport(t,
|
63
|
-
return
|
64
|
-
t.map((e) =>
|
62
|
+
async downloadSummaryReport(t, n) {
|
63
|
+
return d(
|
64
|
+
t.map((e) => y(e)),
|
65
65
|
{
|
66
|
-
filename: `summary-report-${
|
66
|
+
filename: `summary-report-${n.start}-${n.end}.xlsx`,
|
67
67
|
exclude: [
|
68
68
|
"beneficiaryBank.swiftCode",
|
69
69
|
"beneficiaryBank.holderName",
|
@@ -95,7 +95,7 @@ const D = {
|
|
95
95
|
);
|
96
96
|
},
|
97
97
|
async downloadSettlementReport(t) {
|
98
|
-
return
|
98
|
+
return l(
|
99
99
|
await i().get("/settlements/audit/v2", {
|
100
100
|
params: {
|
101
101
|
start: o(t.start).startOf("day").toISOString(),
|
@@ -106,7 +106,7 @@ const D = {
|
|
106
106
|
);
|
107
107
|
},
|
108
108
|
async downloadRestaurantSettlementReport(t) {
|
109
|
-
return
|
109
|
+
return l(
|
110
110
|
await m().get("/settlements/report", {
|
111
111
|
params: {
|
112
112
|
start: o(t.start).startOf("day").toISOString(),
|
@@ -142,5 +142,5 @@ const D = {
|
|
142
142
|
}
|
143
143
|
};
|
144
144
|
export {
|
145
|
-
|
145
|
+
S as s
|
146
146
|
};
|