feat: paramter to include debit note if query for cancel
This commit is contained in:
parent
87d9f39290
commit
f5537b590b
1 changed files with 2 additions and 1 deletions
|
|
@ -194,6 +194,7 @@ export class QuotationController extends Controller {
|
||||||
@Query() urgentFirst?: boolean,
|
@Query() urgentFirst?: boolean,
|
||||||
@Query() includeRegisteredBranch?: boolean,
|
@Query() includeRegisteredBranch?: boolean,
|
||||||
@Query() hasCancel?: boolean,
|
@Query() hasCancel?: boolean,
|
||||||
|
@Query() cancelIncludeDebitNote?: boolean,
|
||||||
@Query() forDebitNote?: boolean,
|
@Query() forDebitNote?: boolean,
|
||||||
@Query() code?: string,
|
@Query() code?: string,
|
||||||
@Query() query = "",
|
@Query() query = "",
|
||||||
|
|
@ -215,7 +216,7 @@ export class QuotationController extends Controller {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
isDebitNote: false,
|
isDebitNote: hasCancel && cancelIncludeDebitNote ? true : false,
|
||||||
code,
|
code,
|
||||||
payCondition,
|
payCondition,
|
||||||
registeredBranch: isSystem(req.user) ? undefined : { OR: permissionCond(req.user) },
|
registeredBranch: isSystem(req.user) ? undefined : { OR: permissionCond(req.user) },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue