@feedmepos/mf-payment 1.1.7-beta.2 → 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.
Files changed (32) hide show
  1. package/dist/{PayoutAccount-CTGMi_PX.js → PayoutAccount-7TEE2BzE.js} +5 -5
  2. package/dist/{PayoutAccount-CmdOJR3H.js → PayoutAccount-DwKI9IhW.js} +3 -3
  3. package/dist/{PayoutAccountSetting-CjrCD_d1.js → PayoutAccountSetting-C2ISSDKv.js} +3 -3
  4. package/dist/{Restaurant-OdusOWQW.js → Restaurant-BXWgyQGg.js} +4 -4
  5. package/dist/{RestaurantSetting-Ex1C9Sm0.js → RestaurantSetting-B2zqIloE.js} +3 -3
  6. package/dist/{Settlement-B7HpwvU5.js → Settlement-6eU_HP7K.js} +3 -3
  7. package/dist/Settlement-CBhBo7w7.js +219 -0
  8. package/dist/{SettlementTransactions-Can9YWKo.js → SettlementTransactions-C4Hj7cKF.js} +20 -16
  9. package/dist/{SettlementTransactions--0nVkfix.js → SettlementTransactions-DAzU50AC.js} +3 -3
  10. package/dist/{Terminal-Bk9PaUWE.js → Terminal-D-mwA9bo.js} +5 -5
  11. package/dist/{TerminalSetting-DY91cG8K.js → TerminalSetting-ByPtWVqu.js} +3 -3
  12. package/dist/{Transaction-B0mm21J6.js → Transaction-C1Z1g1Oh.js} +5 -5
  13. package/dist/{Transaction-4VcaNM-I.js → Transaction-CCjNEXsW.js} +6 -6
  14. package/dist/{TransactionOld-BBjyfmEP.js → TransactionOld-xW6kfmjb.js} +4 -4
  15. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-CFxM2Kdo.js → TransactionTable.vue_vue_type_script_setup_true_lang-CU6q9oND.js} +3 -3
  16. package/dist/{app-BqfjZZ5M.js → app-DSu8Bqxt.js} +367 -365
  17. package/dist/app.d.ts +2 -0
  18. package/dist/app.js +1 -1
  19. package/dist/{assets-Dt65qI3E.js → assets-BYZLC205.js} +1 -1
  20. package/dist/{grafana-DYfiInW0.js → grafana-B-ZEJ__-.js} +1 -1
  21. package/dist/{index-Cg9oAjSw.js → index-B5I6xD5e.js} +1 -1
  22. package/dist/{index-BLk57IkI.js → index-CEbxMc8H.js} +12 -9
  23. package/dist/{index-CqPoOkrc.js → index-ClUkVJXR.js} +1 -1
  24. package/dist/{index-CLm4m9aq.js → index-EJS3NJlp.js} +796 -796
  25. package/dist/{index-DUS0JnIE.js → index-Yd0Q7mxR.js} +1 -1
  26. package/dist/{index-OxQY2Y3u.js → index-yIQx0FT4.js} +1 -1
  27. package/dist/{index.vue_vue_type_script_setup_true_lang-Bp8Y1T2v.js → index.vue_vue_type_script_setup_true_lang-BHvwhRYU.js} +1 -1
  28. package/dist/package.json +1 -1
  29. package/dist/{payout-account-7HSkCqOD.js → payout-account-DgcZA_FW.js} +2 -2
  30. package/dist/tsconfig.app.tsbuildinfo +1 -1
  31. package/package.json +1 -1
  32. 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-DSu8Bqxt.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-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-CLm4m9aq.js";
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,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-EJS3NJlp.js";
2
2
  const o = {
3
3
  async read(a) {
4
4
  return u(
@@ -1,6 +1,6 @@
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, 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 u } from "./dinero-CIVmXLL-.js";
3
+ import { d as f } from "./dinero-CIVmXLL-.js";
4
4
  function* p(t, n) {
5
5
  const e = t[Symbol.iterator](), s = e.next();
6
6
  if (!s.done) {
@@ -23,13 +23,16 @@ const S = {
23
23
  );
24
24
  },
25
25
  async downloadBankInstructionFile(t) {
26
- const n = "7161151059", e = t.map((a) => ({
26
+ const n = "7161151059";
27
+ if (t.length === 0)
28
+ throw Error("no settlement for export");
29
+ const e = t.map((a) => ({
27
30
  productCode: "P2A",
28
31
  settlementDate: o().format("DDMMYYYY"),
29
32
  myRefNo: "",
30
33
  companyAccNo: n,
31
- amount: u(a.totalPayout).toUnit().toString(),
32
- currency: u.defaultCurrency,
34
+ amount: f(a.totalPayout).toUnit().toString(),
35
+ currency: t[0].totalPayout.currency,
33
36
  proxyType: "",
34
37
  transferType: "DFLT",
35
38
  beneficiaryAccountNo: a.beneficiaryBank.accountNumber.toString().trim(),
@@ -44,7 +47,7 @@ const S = {
44
47
  Array.from(
45
48
  p(
46
49
  e.map(
47
- (a) => Object.values(a).map((c) => c).join("|")
50
+ (a) => Object.values(a).map((u) => u).join("|")
48
51
  ),
49
52
  `
50
53
  `
@@ -54,11 +57,11 @@ const S = {
54
57
  type: "text/plain;charset=utf-8"
55
58
  }
56
59
  );
57
- return d(s, "duitnow_bulk_transfer.txt");
60
+ return c(s, "duitnow_bulk_transfer.txt");
58
61
  },
59
62
  async downloadSummaryReport(t, n) {
60
- return y(
61
- t.map((e) => f(e)),
63
+ return d(
64
+ t.map((e) => y(e)),
62
65
  {
63
66
  filename: `summary-report-${n.start}-${n.end}.xlsx`,
64
67
  exclude: [
@@ -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-EJS3NJlp.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {