mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 19:28:17 +00:00
Generate missing ticket and payment report currency updates
This commit is contained in:
@@ -14,10 +14,11 @@ export class TicketsController {
|
||||
@ApiBearerAuth('IAM-auth')
|
||||
@ApiOperation({
|
||||
summary: 'Generate tickets for all confirmed bookings that are missing them',
|
||||
description: 'Finds every CONFIRMED booking with no ticket rows and attempts to generate tickets for each. Returns a summary of processed/generated/failed counts.',
|
||||
description: 'Finds every CONFIRMED booking with no ticket rows and attempts to generate tickets for each. Returns a summary of processed/generated/failed/remaining counts. Call repeatedly until remaining=0.',
|
||||
})
|
||||
generateMissing() {
|
||||
return this.service.generateMissing();
|
||||
@ApiQuery({ name: 'limit', required: false, description: 'Max bookings to process per call (default 10)' })
|
||||
generateMissing(@Query('limit') limit?: string) {
|
||||
return this.service.generateMissing(limit ? parseInt(limit, 10) : 10);
|
||||
}
|
||||
|
||||
@Post('smart-assign/:bookingId')
|
||||
|
||||
Reference in New Issue
Block a user