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

@ -168,6 +168,8 @@ export class DebitNoteController extends Controller {
@Query() payCondition?: PayCondition,
@Query() includeRegisteredBranch?: boolean,
@Query() code?: string,
@Query() startDate?: Date,
@Query() endDate?: Date,
) {
return await this.getDebitNoteListByCriteria(
req,
@ -179,6 +181,8 @@ export class DebitNoteController extends Controller {
payCondition,
includeRegisteredBranch,
code,
startDate,
endDate,
);
}
@ -195,9 +199,9 @@ export class DebitNoteController extends Controller {
@Query() payCondition?: PayCondition,
@Query() includeRegisteredBranch?: boolean,
@Query() code?: string,
@Body() body?: {},
@Query() startDate?: Date,
@Query() endDate?: Date,
@Body() body?: {},
) {
const where = {
OR: queryOrNot<Prisma.QuotationWhereInput[]>(query, [