add endDate,startDate
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s

This commit is contained in:
Kanjana 2025-04-17 17:56:55 +07:00
parent d52680c23f
commit fd7833a592
4 changed files with 19 additions and 3 deletions

View file

@ -121,6 +121,8 @@ export class CreditNoteController extends Controller {
@Query() query: string = "",
@Query() quotationId?: string,
@Query() creditNoteStatus?: CreditNoteStatus,
@Query() startDate?: Date,
@Query() endDate?: Date,
) {
return await this.getCreditNoteListByCriteria(
req,
@ -129,6 +131,8 @@ export class CreditNoteController extends Controller {
query,
quotationId,
creditNoteStatus,
startDate,
endDate,
);
}
@ -142,9 +146,9 @@ export class CreditNoteController extends Controller {
@Query() query: string = "",
@Query() quotationId?: string,
@Query() creditNoteStatus?: CreditNoteStatus,
@Body() body?: {},
@Query() startDate?: Date,
@Query() endDate?: Date,
@Body() body?: {},
) {
const where = {
OR: queryOrNot<Prisma.CreditNoteWhereInput[]>(query, [