feat: add query param to quotation
This commit is contained in:
parent
891d9a86d2
commit
0e65284b5c
1 changed files with 2 additions and 1 deletions
|
|
@ -194,6 +194,7 @@ export class QuotationController extends Controller {
|
|||
@Query() urgentFirst?: boolean,
|
||||
@Query() includeRegisteredBranch?: boolean,
|
||||
@Query() hasCancel?: boolean,
|
||||
@Query() forDebitNote?: boolean,
|
||||
@Query() code?: string,
|
||||
@Query() query = "",
|
||||
) {
|
||||
|
|
@ -218,7 +219,7 @@ export class QuotationController extends Controller {
|
|||
code,
|
||||
payCondition,
|
||||
registeredBranch: isSystem(req.user) ? undefined : { OR: permissionCond(req.user) },
|
||||
quotationStatus: status,
|
||||
quotationStatus: forDebitNote ? { notIn: ["Issued", "Expired"] } : status,
|
||||
requestData: hasCancel
|
||||
? {
|
||||
some: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue