mirror of
https://github.com/marcogll/AnchorOS.git
synced 2026-03-15 16:24:30 +00:00
feat: Add kiosk management, artist selection, and schedule management
- Add KiosksManagement component with full CRUD for kiosks - Add ScheduleManagement for staff schedules with break reminders - Update booking flow to allow artist selection by customers - Add staff_services API for assigning services to artists - Update staff management UI with service assignment dialog - Add auto-break reminder when schedule >= 8 hours - Update availability API to filter artists by service - Add kiosk management to Aperture dashboard - Clean up ralphy artifacts and logs
This commit is contained in:
@@ -4,7 +4,19 @@ import jsPDF from 'jspdf'
|
||||
import { format } from 'date-fns'
|
||||
import { es } from 'date-fns/locale'
|
||||
|
||||
/** @description Generate PDF receipt for booking */
|
||||
/**
|
||||
* @description Generates a PDF receipt for a completed booking
|
||||
* @param {NextRequest} request - HTTP request (no body required for GET)
|
||||
* @param {Object} params - Route parameters containing booking UUID
|
||||
* @param {string} params.bookingId - The UUID of the booking to generate receipt for
|
||||
* @returns {NextResponse} PDF file as binary response with Content-Type application/pdf
|
||||
* @example GET /api/receipts/123e4567-e89b-12d3-a456-426614174000
|
||||
* @audit BUSINESS RULE: Generates receipt with booking details, service info, pricing, and branding
|
||||
* @audit SECURITY: Validates booking exists and user has access to view receipt
|
||||
* @audit Validate: Ensures booking data is complete before PDF generation
|
||||
* @audit PERFORMANCE: Single query fetches all related booking data (customer, service, staff, location)
|
||||
* @audit AUDIT: Receipt generation is logged for audit trail
|
||||
*/
|
||||
export async function GET(
|
||||
request: NextRequest,
|
||||
{ params }: { params: { bookingId: string } }
|
||||
|
||||
Reference in New Issue
Block a user