refactor: financial reports query dtos

This commit is contained in:
Ahmed Bouhuolia
2025-06-06 00:11:51 +02:00
parent 51988dba3b
commit 9a685ffe5d
39 changed files with 822 additions and 50 deletions

View File

@@ -4,6 +4,7 @@ import { IAPAgingSummaryQuery } from './APAgingSummary.types';
import { AcceptType } from '@/constants/accept-type';
import { Response } from 'express';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { APAgingSummaryQueryDto } from './APAgingSummaryQuery.dto';
@Controller('reports/payable-aging-summary')
@ApiTags('reports')
@@ -13,7 +14,7 @@ export class APAgingSummaryController {
@Get()
@ApiOperation({ summary: 'Get payable aging summary' })
public async get(
@Query() filter: IAPAgingSummaryQuery,
@Query() filter: APAgingSummaryQueryDto,
@Res({ passthrough: true }) res: Response,
@Headers('accept') acceptHeader: string,
) {