mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 11:08:12 +00:00
Payment discrepancy fixes
This commit is contained in:
@@ -86,9 +86,9 @@ function fmtMinor(minor: number) {
|
||||
return `ETB ${(minor / 100).toLocaleString('en-US', { minimumFractionDigits: 2 })}`;
|
||||
}
|
||||
|
||||
// paidMinor from PaymentIntent.amountMinor is a Float stored as full units (not cents)
|
||||
// paidMinor from PaymentIntent.amountMinor is converted to cents server-side before being returned
|
||||
function fmtPaid(amount: number) {
|
||||
return `ETB ${amount.toLocaleString('en-US', { minimumFractionDigits: 2 })}`;
|
||||
return `ETB ${(amount / 100).toLocaleString('en-US', { minimumFractionDigits: 2 })}`;
|
||||
}
|
||||
|
||||
function downloadCsv(csv: string, filename: string) {
|
||||
|
||||
Reference in New Issue
Block a user