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: {
|
include: {
|
||||||
service: {
|
service: {
|
||||||
include: {
|
include: {
|
||||||
|
productGroup: true,
|
||||||
work: {
|
work: {
|
||||||
include: {
|
include: {
|
||||||
productOnWork: {
|
productOnWork: {
|
||||||
|
|
@ -242,7 +243,9 @@ export class QuotationController extends Controller {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
work: true,
|
work: true,
|
||||||
product: true,
|
product: {
|
||||||
|
include: { productGroup: true },
|
||||||
|
},
|
||||||
|
|
||||||
worker: true,
|
worker: true,
|
||||||
},
|
},
|
||||||
|
|
@ -404,9 +407,26 @@ export class QuotationController extends Controller {
|
||||||
include: {
|
include: {
|
||||||
productServiceList: {
|
productServiceList: {
|
||||||
include: {
|
include: {
|
||||||
product: true,
|
service: {
|
||||||
|
include: {
|
||||||
|
productGroup: true,
|
||||||
|
work: {
|
||||||
|
include: {
|
||||||
|
productOnWork: {
|
||||||
|
include: {
|
||||||
|
product: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
work: true,
|
work: true,
|
||||||
service: true,
|
product: {
|
||||||
|
include: { productGroup: true },
|
||||||
|
},
|
||||||
|
|
||||||
|
worker: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
paySplit: true,
|
paySplit: true,
|
||||||
|
|
@ -608,9 +628,26 @@ export class QuotationController extends Controller {
|
||||||
include: {
|
include: {
|
||||||
productServiceList: {
|
productServiceList: {
|
||||||
include: {
|
include: {
|
||||||
product: true,
|
service: {
|
||||||
|
include: {
|
||||||
|
productGroup: true,
|
||||||
|
work: {
|
||||||
|
include: {
|
||||||
|
productOnWork: {
|
||||||
|
include: {
|
||||||
|
product: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
work: true,
|
work: true,
|
||||||
service: true,
|
product: {
|
||||||
|
include: { productGroup: true },
|
||||||
|
},
|
||||||
|
|
||||||
|
worker: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
paySplit: true,
|
paySplit: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue