@feedmepos/mf-payment 1.1.7-beta.3 → 1.1.7-beta.5

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 (34) hide show
  1. package/dist/{PayoutAccount-CnTCZExr.js → PayoutAccount-BM5YRYN9.js} +5 -5
  2. package/dist/{PayoutAccount-Crwu1h-c.js → PayoutAccount-CnxX2N0l.js} +3 -3
  3. package/dist/{PayoutAccountSetting-PyIESuN8.js → PayoutAccountSetting-CYEDbNXl.js} +3 -3
  4. package/dist/{Restaurant-BF1J35Ic.js → Restaurant-D_iO5C0m.js} +4 -4
  5. package/dist/{RestaurantSetting-Dg7cfqKF.js → RestaurantSetting-CuOT140H.js} +3 -3
  6. package/dist/{Settlement-BPrjfDMN.js → Settlement-6HiVcu0l.js} +3 -3
  7. package/dist/Settlement-CY8315rQ.js +219 -0
  8. package/dist/{SettlementTransactions-C13T6n0z.js → SettlementTransactions-Ci8PF1OX.js} +3 -3
  9. package/dist/{SettlementTransactions-CpRADd8a.js → SettlementTransactions-ziCXqaiy.js} +3 -3
  10. package/dist/{Terminal-DgKJ9zSL.js → Terminal-BuOfI_zu.js} +5 -5
  11. package/dist/TerminalSetting-CTKfzmft.js +497 -0
  12. package/dist/{Transaction-CsAF2AXj.js → Transaction-Bpa0eDNG.js} +6 -6
  13. package/dist/{Transaction-BvvhqS95.js → Transaction-et-KevEl.js} +5 -5
  14. package/dist/{TransactionOld-DsC0R1Qe.js → TransactionOld-y5-lkWbc.js} +4 -4
  15. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-CtrMBxwz.js → TransactionTable.vue_vue_type_script_setup_true_lang-BBtUxiMq.js} +3 -3
  16. package/dist/api/settlement/index.d.ts +1 -1
  17. package/dist/api/terminal/index.d.ts +1 -1
  18. package/dist/{app-D6rd6uvO.js → app-Bz1GxrfP.js} +310 -310
  19. package/dist/app.js +1 -1
  20. package/dist/{assets-B41ScDuA.js → assets-CFu52OGc.js} +1 -1
  21. package/dist/{grafana-CdozbaJn.js → grafana-DR0vcbv7.js} +1 -1
  22. package/dist/{index-BIObbzAP.js → index-BJF9lPV4.js} +1 -1
  23. package/dist/{index-CEU5ybp0.js → index-C1IEirFI.js} +1 -1
  24. package/dist/{index-D1_hIXoR.js → index-CAiA-B0B.js} +2219 -2219
  25. package/dist/{index-CCBZtmwy.js → index-CM1aljm7.js} +1 -1
  26. package/dist/{index-3u2VZ6Ni.js → index-DY-CMDz7.js} +29 -29
  27. package/dist/{index-Cnf4HsQx.js → index-DbaQ_-s2.js} +1 -1
  28. package/dist/{index.vue_vue_type_script_setup_true_lang-i3Lcf2Mj.js → index.vue_vue_type_script_setup_true_lang-B0E1G00H.js} +1 -1
  29. package/dist/package.json +1 -1
  30. package/dist/{payout-account-C80nPFWJ.js → payout-account-wPSONvk-.js} +2 -2
  31. package/dist/tsconfig.app.tsbuildinfo +1 -1
  32. package/package.json +1 -1
  33. package/dist/Settlement-B-TQCdB4.js +0 -219
  34. package/dist/TerminalSetting-Boh1fu6s.js +0 -489
@@ -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-D1_hIXoR.js";
3
+ import { a as y } from "./index-CAiA-B0B.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {
@@ -1,15 +1,15 @@
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";
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-CAiA-B0B.js";
2
2
  import { h as o } from "./moment-h96o7c8I.js";
3
- import { d as w } from "./dinero-CIVmXLL-.js";
4
- function* S(t, a) {
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 l of e)
9
- yield a, yield l;
8
+ for (const a of e)
9
+ yield n, yield a;
10
10
  }
11
11
  }
12
- const D = {
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, a) {
26
- const e = "7161151059";
27
- let s = "MYR";
28
- t === y.F_COUNTRY.enum.SG && (s = "SGD");
29
- const l = a.map((n) => ({
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: e,
34
- amount: w(n.totalPayout).toUnit().toString(),
35
- currency: s,
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: n.beneficiaryBank.accountNumber.toString().trim(),
39
- beneficiarySwiftCode: n.beneficiaryBank.swiftCode,
38
+ beneficiaryAccountNo: a.beneficiaryBank.accountNumber.toString().trim(),
39
+ beneficiarySwiftCode: a.beneficiaryBank.swiftCode,
40
40
  beneficiaryCountryCode: "",
41
41
  duitNowID: "",
42
- recipientReference: n._id,
42
+ recipientReference: a._id,
43
43
  pf_payment: "",
44
44
  notifyMethod: "",
45
45
  emailAddress: ""
46
- })), c = new Blob(
46
+ })), s = new Blob(
47
47
  Array.from(
48
- S(
49
- l.map(
50
- (n) => Object.values(n).map((d) => d).join("|")
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 f(c, "duitnow_bulk_transfer.txt");
60
+ return c(s, "duitnow_bulk_transfer.txt");
61
61
  },
62
- async downloadSummaryReport(t, a) {
63
- return p(
64
- t.map((e) => b(e)),
62
+ async downloadSummaryReport(t, n) {
63
+ return d(
64
+ t.map((e) => y(e)),
65
65
  {
66
- filename: `summary-report-${a.start}-${a.end}.xlsx`,
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 u(
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 u(
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
- D as s
145
+ S as s
146
146
  };
@@ -1,4 +1,4 @@
1
- import { b as r, g as e } from "./index-D1_hIXoR.js";
1
+ import { b as r, g as e } from "./index-CAiA-B0B.js";
2
2
  const n = {
3
3
  async readRestaurantById(t) {
4
4
  const a = await r().get(`/restaurants/${t}`);
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as I, ref as r, resolveComponent as p, openBlock as f, createBlock as L, withCtx as P, createVNode as d, createElementVNode as u, normalizeStyle as T, createElementBlock as M, Fragment as N, renderList as j, computed as C, watch as S, onMounted as E, unref as D, toDisplayString as B, createCommentVNode as O, normalizeClass as R } from "vue";
2
- import { u as G } from "./index-D1_hIXoR.js";
2
+ import { u as G } from "./index-CAiA-B0B.js";
3
3
  import "@feedmepos/ui-library";
4
4
  const H = ["id"], U = /* @__PURE__ */ I({
5
5
  __name: "FmTableSelection",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.1.7-beta.3",
3
+ "version": "1.1.7-beta.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,5 +1,5 @@
1
- import { _ as Qe, C as et, r as Oe, S as tt, g as re, a as nt, b as rt, c as _e, d as st, F as it, e as ot } from "./app-D6rd6uvO.js";
2
- import { c as at, a as ut, _ as Y, m as ct } from "./index-D1_hIXoR.js";
1
+ import { _ as Qe, C as et, r as Oe, S as tt, g as re, a as nt, b as rt, c as _e, d as st, F as it, e as ot } from "./app-Bz1GxrfP.js";
2
+ import { c as at, a as ut, _ as Y, m as ct } from "./index-CAiA-B0B.js";
3
3
  /**
4
4
  * @license
5
5
  * Copyright 2017 Google LLC