aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-08-29 20:55:10 -0700
committerAdam Soltys <[email protected]>2024-08-29 20:55:10 -0700
commitcdf0174a1a5d37b34c1078d6dcc87a5d7fb162ce (patch)
treecdd58ea65f7f782c9f950725dab155af8c80497f
parent4f55b335959097918c35c1b0e27ae6ec59e5ee71 (diff)
downloadcoinos-ui-cdf0174a1a5d37b34c1078d6dcc87a5d7fb162ce.tar.gz
coinos-ui-cdf0174a1a5d37b34c1078d6dcc87a5d7fb162ce.zip
add platform fee to csv
-rw-r--r--src/routes/(app)/[username]/payments/[...page]/+page.svelte4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/routes/(app)/[username]/payments/[...page]/+page.svelte b/src/routes/(app)/[username]/payments/[...page]/+page.svelte
index 647907e3..1efdc2ec 100644
--- a/src/routes/(app)/[username]/payments/[...page]/+page.svelte
+++ b/src/routes/(app)/[username]/payments/[...page]/+page.svelte
@@ -75,8 +75,10 @@
...p,
created: new Date(p.created),
total: p.amount + (p.tip || 0),
+ platform_fee: p.ourfee,
amount_fiat: f((p.amount * p.rate) / sats, p.currency),
fee_fiat: p.fee ? f((p.fee * p.rate) / sats, p.currency) : null,
+ platform_fee_fiat: p.ourfee ? f((p.ourfee * p.rate) / sats, p.currency) : null,
tip_fiat: p.tip ? f((p.tip * p.rate) / sats, p.currency) : null,
total_fiat: f(((p.amount + (p.tip || 0)) * p.rate) / sats, p.currency),
}));
@@ -91,10 +93,12 @@
"tip",
"total",
"fee",
+ "platform_fee",
"amount_fiat",
"tip_fiat",
"total_fiat",
"fee_fiat",
+ "platform_fee_fiat",
];
let csv =