Currency and converted amount for non ETB

This commit is contained in:
Stephanos A
2026-07-14 20:51:40 +03:00
parent 9bd19c5ca7
commit f243fdd4e3
11 changed files with 180 additions and 116 deletions

View File

@@ -270,7 +270,7 @@ function BookingsPageContent() {
render: (booking: any) => (
<div>
<Badge variant="status" status={booking.paymentIntent?.status || 'PENDING'}>{booking.paymentIntent?.status || 'PENDING'}</Badge>
<div className="text-sm text-muted-foreground">{formatCurrency(booking.totalMinor, booking.currency)}</div>
<div className="text-sm text-muted-foreground">{formatCurrency(booking.displayTotalMinor ?? booking.totalMinor, booking.displayCurrency ?? booking.currency ?? 'ETB')}</div>
</div>
),
},