@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.
Files changed (33) hide show
  1. package/dist/{PayoutAccount-CTGMi_PX.js → PayoutAccount-CnTCZExr.js} +5 -5
  2. package/dist/{PayoutAccount-CmdOJR3H.js → PayoutAccount-Crwu1h-c.js} +3 -3
  3. package/dist/{PayoutAccountSetting-CjrCD_d1.js → PayoutAccountSetting-PyIESuN8.js} +3 -3
  4. package/dist/{Restaurant-OdusOWQW.js → Restaurant-BF1J35Ic.js} +4 -4
  5. package/dist/{RestaurantSetting-Ex1C9Sm0.js → RestaurantSetting-Dg7cfqKF.js} +3 -3
  6. package/dist/Settlement-B-TQCdB4.js +219 -0
  7. package/dist/{Settlement-B7HpwvU5.js → Settlement-BPrjfDMN.js} +3 -3
  8. package/dist/{SettlementTransactions--0nVkfix.js → SettlementTransactions-C13T6n0z.js} +3 -3
  9. package/dist/{SettlementTransactions-Can9YWKo.js → SettlementTransactions-CpRADd8a.js} +20 -16
  10. package/dist/{Terminal-Bk9PaUWE.js → Terminal-DgKJ9zSL.js} +5 -5
  11. package/dist/{TerminalSetting-DY91cG8K.js → TerminalSetting-Boh1fu6s.js} +3 -3
  12. package/dist/{Transaction-B0mm21J6.js → Transaction-BvvhqS95.js} +5 -5
  13. package/dist/{Transaction-4VcaNM-I.js → Transaction-CsAF2AXj.js} +6 -6
  14. package/dist/{TransactionOld-BBjyfmEP.js → TransactionOld-DsC0R1Qe.js} +4 -4
  15. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-CFxM2Kdo.js → TransactionTable.vue_vue_type_script_setup_true_lang-CtrMBxwz.js} +3 -3
  16. package/dist/api/settlement/index.d.ts +1 -1
  17. package/dist/{app-BqfjZZ5M.js → app-D6rd6uvO.js} +152 -150
  18. package/dist/app.d.ts +2 -0
  19. package/dist/app.js +1 -1
  20. package/dist/{assets-Dt65qI3E.js → assets-B41ScDuA.js} +1 -1
  21. package/dist/{grafana-DYfiInW0.js → grafana-CdozbaJn.js} +1 -1
  22. package/dist/{index-BLk57IkI.js → index-3u2VZ6Ni.js} +29 -26
  23. package/dist/{index-DUS0JnIE.js → index-BIObbzAP.js} +1 -1
  24. package/dist/{index-CqPoOkrc.js → index-CCBZtmwy.js} +1 -1
  25. package/dist/{index-Cg9oAjSw.js → index-CEU5ybp0.js} +1 -1
  26. package/dist/{index-OxQY2Y3u.js → index-Cnf4HsQx.js} +1 -1
  27. package/dist/{index-CLm4m9aq.js → index-D1_hIXoR.js} +812 -812
  28. package/dist/{index.vue_vue_type_script_setup_true_lang-Bp8Y1T2v.js → index.vue_vue_type_script_setup_true_lang-i3Lcf2Mj.js} +1 -1
  29. package/dist/package.json +1 -1
  30. package/dist/{payout-account-7HSkCqOD.js → payout-account-C80nPFWJ.js} +2 -2
  31. package/dist/tsconfig.app.tsbuildinfo +1 -1
  32. package/package.json +1 -1
  33. 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 { h as e, i as r, f as o } from "./app-BqfjZZ5M.js";
1
+ import { h as e, i as r, f as o } from "./app-D6rd6uvO.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -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-CLm4m9aq.js";
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-CLm4m9aq.js";
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 d, l as y, k as f, i as l, r as m } from "./index-CLm4m9aq.js";
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 u } from "./dinero-CIVmXLL-.js";
4
- function* p(t, n) {
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 a of e)
9
- yield n, yield a;
8
+ for (const l of e)
9
+ yield a, yield l;
10
10
  }
11
11
  }
12
- const S = {
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 n = "7161151059", e = t.map((a) => ({
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: n,
31
- amount: u(a.totalPayout).toUnit().toString(),
32
- currency: u.defaultCurrency,
33
+ companyAccNo: e,
34
+ amount: w(n.totalPayout).toUnit().toString(),
35
+ currency: s,
33
36
  proxyType: "",
34
37
  transferType: "DFLT",
35
- beneficiaryAccountNo: a.beneficiaryBank.accountNumber.toString().trim(),
36
- beneficiarySwiftCode: a.beneficiaryBank.swiftCode,
38
+ beneficiaryAccountNo: n.beneficiaryBank.accountNumber.toString().trim(),
39
+ beneficiarySwiftCode: n.beneficiaryBank.swiftCode,
37
40
  beneficiaryCountryCode: "",
38
41
  duitNowID: "",
39
- recipientReference: a._id,
42
+ recipientReference: n._id,
40
43
  pf_payment: "",
41
44
  notifyMethod: "",
42
45
  emailAddress: ""
43
- })), s = new Blob(
46
+ })), c = new Blob(
44
47
  Array.from(
45
- p(
46
- e.map(
47
- (a) => Object.values(a).map((c) => c).join("|")
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 d(s, "duitnow_bulk_transfer.txt");
60
+ return f(c, "duitnow_bulk_transfer.txt");
58
61
  },
59
- async downloadSummaryReport(t, n) {
60
- return y(
61
- t.map((e) => f(e)),
62
+ async downloadSummaryReport(t, a) {
63
+ return p(
64
+ t.map((e) => b(e)),
62
65
  {
63
- filename: `summary-report-${n.start}-${n.end}.xlsx`,
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 l(
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 l(
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
- S as s
145
+ D as s
143
146
  };
@@ -1,4 +1,4 @@
1
- import { d as s, b as t, g as a, f as r, h as i } from "./index-CLm4m9aq.js";
1
+ import { d as s, b as t, g as a, f as r, h as i } from "./index-D1_hIXoR.js";
2
2
  const y = {
3
3
  async create(e) {
4
4
  return s(
@@ -1,6 +1,6 @@
1
1
  import { ref as b, watch as w } from "vue";
2
2
  import { useRoute as A, useRouter as m } from "vue-router";
3
- import { a as y } from "./index-CLm4m9aq.js";
3
+ import { a as y } from "./index-D1_hIXoR.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {
@@ -1,4 +1,4 @@
1
- import { d as u, b as s, g as t, f as e } from "./index-CLm4m9aq.js";
1
+ import { d as u, b as s, g as t, f as e } from "./index-D1_hIXoR.js";
2
2
  const o = {
3
3
  async read(a) {
4
4
  return u(
@@ -1,4 +1,4 @@
1
- import { b as r, g as e } from "./index-CLm4m9aq.js";
1
+ import { b as r, g as e } from "./index-D1_hIXoR.js";
2
2
  const n = {
3
3
  async readRestaurantById(t) {
4
4
  const a = await r().get(`/restaurants/${t}`);