feat: only query specific status for debit note
This commit is contained in:
parent
e34ba9a239
commit
8709a7dcc8
1 changed files with 3 additions and 1 deletions
|
|
@ -219,7 +219,9 @@ export class QuotationController extends Controller {
|
|||
code,
|
||||
payCondition,
|
||||
registeredBranch: isSystem(req.user) ? undefined : { OR: permissionCond(req.user) },
|
||||
quotationStatus: forDebitNote ? { notIn: ["Issued", "Expired"] } : status,
|
||||
quotationStatus: forDebitNote
|
||||
? { notIn: ["Issued", "Expired", "Accepted", "Canceled"] }
|
||||
: status,
|
||||
requestData: hasCancel
|
||||
? {
|
||||
some: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue