feat: add payment report notes
This commit is contained in:
@@ -54,6 +54,7 @@ export class GetStudentFees {
|
||||
status: true,
|
||||
createdAt: true,
|
||||
reviewedAt: true,
|
||||
note: true,
|
||||
rejectionReason: true,
|
||||
items: { select: { payment: { select: { id: true, description: true, dueDate: true } } } },
|
||||
},
|
||||
@@ -85,6 +86,7 @@ export class GetStudentFees {
|
||||
status: REPORT_STATUS[report.status],
|
||||
createdAt: report.createdAt.toISOString(),
|
||||
reviewedAt: report.reviewedAt?.toISOString() ?? null,
|
||||
note: report.note,
|
||||
rejectionReason: report.rejectionReason,
|
||||
fees: report.items.map(({ payment }) => ({
|
||||
id: payment.id,
|
||||
|
||||
Reference in New Issue
Block a user