feat: add code to query string

This commit is contained in:
Methapon2001 2024-12-25 10:41:48 +07:00
parent f2c1e84490
commit 5e26e38e0b
2 changed files with 5 additions and 0 deletions

View file

@ -190,6 +190,7 @@ export class QuotationController extends Controller {
@Query() payCondition?: PayCondition,
@Query() status?: QuotationStatus,
@Query() urgentFirst?: boolean,
@Query() code?: string,
@Query() query = "",
) {
const where = {
@ -209,6 +210,7 @@ export class QuotationController extends Controller {
},
},
]),
code,
payCondition,
registeredBranch: isSystem(req.user) ? undefined : { OR: permissionCond(req.user) },
quotationStatus: status,