Added payment discrepancy report

This commit is contained in:
Roba Boru
2026-07-20 15:50:03 +03:00
parent 5e9feab869
commit 1e7324d276
9 changed files with 892 additions and 124 deletions

View File

@@ -36,6 +36,17 @@ export class ReportsController {
return this.service.getOccupancyBySchedule(scheduleId);
}
@Get("payment-discrepancy")
@ApiOperation({ summary: "Payment discrepancy report — bookings where paid amount is less than the fare. Pass `search` to look up a specific PNR or ticket number." })
getPaymentDiscrepancy(
@Query('from') from?: string,
@Query('to') to?: string,
@Query('sortBy') sortBy?: string,
@Query('search') search?: string,
) {
return this.service.getPaymentDiscrepancyReport({ from, to, sortBy, search });
}
@Get(":reportId")
@ApiOperation({ summary: "Get report by ID" })
getReport(@Param("reportId") reportId: string) {