feat: include more relation in credit note get by id
This commit is contained in:
parent
77dbdac012
commit
59d134b260
1 changed files with 10 additions and 1 deletions
|
|
@ -212,7 +212,16 @@ export class CreditNoteController extends Controller {
|
|||
return prisma.creditNote.findFirst({
|
||||
where,
|
||||
include: {
|
||||
quotation: true,
|
||||
quotation: {
|
||||
include: {
|
||||
registeredBranch: true,
|
||||
customerBranch: {
|
||||
include: {
|
||||
customer: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
requestWork: {
|
||||
include: { request: true },
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue