diff --git a/apps/edr-passenger-web/backoffice/src/app/reports/payment-discrepancy/page.tsx b/apps/edr-passenger-web/backoffice/src/app/reports/payment-discrepancy/page.tsx index 80c4481ce..ed51c2d1b 100644 --- a/apps/edr-passenger-web/backoffice/src/app/reports/payment-discrepancy/page.tsx +++ b/apps/edr-passenger-web/backoffice/src/app/reports/payment-discrepancy/page.tsx @@ -59,8 +59,8 @@ interface DiscrepancyReport { // ── Helpers ─────────────────────────────────────────────────────────────────── -function fmtMoney(minor: number, currency: string) { - return `${currency} ${(minor / 100).toLocaleString('en-US', { minimumFractionDigits: 2 })}`; +function fmtMoney(amount: number, currency: string) { + return `${currency} ${amount.toLocaleString('en-US', { minimumFractionDigits: 2 })}`; } function exportCsv(rows: DiscrepancyRow[]) { @@ -77,9 +77,9 @@ function exportCsv(rows: DiscrepancyRow[]) { new Date(r.departureAt).toLocaleString('en-GB', { dateStyle: 'medium', timeStyle: 'short' }), r.seatType, r.coachNumber ?? '—', - `${r.actualCurrency} ${(r.actualMinor / 100).toFixed(2)}`, - `${r.paidCurrency} ${(r.paidMinor / 100).toFixed(2)}`, - `${r.balanceCurrency} ${(r.balanceMinor / 100).toFixed(2)}`, + `${r.actualCurrency} ${r.actualMinor.toFixed(2)}`, + `${r.paidCurrency} ${r.paidMinor.toFixed(2)}`, + `${r.balanceCurrency} ${r.balanceMinor.toFixed(2)}`, ].map(v => `"${String(v).replace(/"/g, '""')}"`).join(',')); const csv = [headers.join(','), ...lines].join('\n'); @@ -275,24 +275,6 @@ export default function PaymentDiscrepancyPage() { )} - {/* Summary — date-range mode, only when there are results */} - {data && !isSearchMode && !data.notFound && data.total > 0 && ( -