diff --git a/src/app/dashboard/payments/page.tsx b/src/app/dashboard/payments/page.tsx index b867f14..03100cb 100644 --- a/src/app/dashboard/payments/page.tsx +++ b/src/app/dashboard/payments/page.tsx @@ -46,6 +46,7 @@ export default async function PaymentsPage() { } } + // eslint-disable-next-line @typescript-eslint/no-explicit-any const getCustomerName = (reservation: any) => { if (!reservation) return "-" const res = Array.isArray(reservation) ? reservation[0] : reservation @@ -54,12 +55,14 @@ export default async function PaymentsPage() { return cust?.full_name || "-" } + // eslint-disable-next-line @typescript-eslint/no-explicit-any const getReservationDate = (reservation: any) => { if (!reservation) return "-" const res = Array.isArray(reservation) ? reservation[0] : reservation return res?.start_time ? format(new Date(res.start_time), 'd MMM yyyy', { locale: tr }) : "-" } + // eslint-disable-next-line @typescript-eslint/no-explicit-any const getReservationStatus = (reservation: any) => { if (!reservation) return "-" const res = Array.isArray(reservation) ? reservation[0] : reservation @@ -95,6 +98,7 @@ export default async function PaymentsPage() { ) : ( + // eslint-disable-next-line @typescript-eslint/no-explicit-any payments?.map((payment: any) => ( @@ -119,6 +123,7 @@ export default async function PaymentsPage() { Toplam: + {/* eslint-disable-next-line @typescript-eslint/no-explicit-any */} ₺{payments?.reduce((sum: number, p: any) => sum + Number(p.amount), 0).toLocaleString('tr-TR')}