Generate missing ticket and payment report currency updates

This commit is contained in:
Stephanos A
2026-07-23 19:39:39 +03:00
parent e2bdc21c95
commit 84346d77ac
5 changed files with 69 additions and 45 deletions

View File

@@ -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')