Sửa lỗi hiển thị bảng liệt kê chi phí
This commit is contained in:
@@ -123,6 +123,12 @@ class PublicTourController {
|
||||
legs: {
|
||||
orderBy: { sequence: 'asc' },
|
||||
include: {
|
||||
expenses: {
|
||||
include: {
|
||||
location: { select: { name: true, plannedStart: true } },
|
||||
paidBy: { select: { name: true } }
|
||||
}
|
||||
},
|
||||
locations: {
|
||||
orderBy: { plannedStart: 'asc' },
|
||||
include: { _count: { select: { comments: true } } }
|
||||
@@ -427,6 +433,12 @@ class TourController {
|
||||
legs: {
|
||||
orderBy: { sequence: 'asc' },
|
||||
include: {
|
||||
expenses: {
|
||||
include: {
|
||||
location: { select: { name: true, plannedStart: true } },
|
||||
paidBy: { select: { name: true } }
|
||||
}
|
||||
},
|
||||
locations: {
|
||||
orderBy: { plannedStart: 'asc' },
|
||||
include: { _count: { select: { comments: true } } }
|
||||
|
||||
Reference in New Issue
Block a user