feat: add more relation
This commit is contained in:
parent
5cb3f74e15
commit
f44746978a
1 changed files with 42 additions and 5 deletions
|
|
@ -230,6 +230,7 @@ export class QuotationController extends Controller {
|
|||
include: {
|
||||
service: {
|
||||
include: {
|
||||
productGroup: true,
|
||||
work: {
|
||||
include: {
|
||||
productOnWork: {
|
||||
|
|
@ -242,7 +243,9 @@ export class QuotationController extends Controller {
|
|||
},
|
||||
},
|
||||
work: true,
|
||||
product: true,
|
||||
product: {
|
||||
include: { productGroup: true },
|
||||
},
|
||||
|
||||
worker: true,
|
||||
},
|
||||
|
|
@ -404,9 +407,26 @@ export class QuotationController extends Controller {
|
|||
include: {
|
||||
productServiceList: {
|
||||
include: {
|
||||
product: true,
|
||||
service: {
|
||||
include: {
|
||||
productGroup: true,
|
||||
work: {
|
||||
include: {
|
||||
productOnWork: {
|
||||
include: {
|
||||
product: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
work: true,
|
||||
service: true,
|
||||
product: {
|
||||
include: { productGroup: true },
|
||||
},
|
||||
|
||||
worker: true,
|
||||
},
|
||||
},
|
||||
paySplit: true,
|
||||
|
|
@ -608,9 +628,26 @@ export class QuotationController extends Controller {
|
|||
include: {
|
||||
productServiceList: {
|
||||
include: {
|
||||
product: true,
|
||||
service: {
|
||||
include: {
|
||||
productGroup: true,
|
||||
work: {
|
||||
include: {
|
||||
productOnWork: {
|
||||
include: {
|
||||
product: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
work: true,
|
||||
service: true,
|
||||
product: {
|
||||
include: { productGroup: true },
|
||||
},
|
||||
|
||||
worker: true,
|
||||
},
|
||||
},
|
||||
paySplit: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue