fix: minibar consumptions not showing in deposit release form
Wrong column names in SQL query: price_at_time→price_per_unit, created_at→recorded_at. Also fixed type mismatch priceAtTime→pricePerUnit. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -773,7 +773,7 @@ export const api = {
|
||||
req<void>('DELETE', `/api/hotels/${slug}/bookings/${bookingId}/deposit`),
|
||||
|
||||
getMinibarForBooking: (slug: string, bookingId: string) =>
|
||||
req<{ items: Array<{ itemName: string; quantity: number; priceAtTime: number; lineTotal: number }>; total: number }>(
|
||||
req<{ items: Array<{ itemName: string; quantity: number; pricePerUnit: number; lineTotal: number }>; total: number }>(
|
||||
'GET', `/api/hotels/${slug}/bookings/${bookingId}/deposit/minibar`,
|
||||
),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user