feat: add payment report notes

This commit is contained in:
Jose Selesan
2026-10-28 16:45:55 -03:00
parent b22b6da2e1
commit b6f22ae67d
13 changed files with 64 additions and 6 deletions

View File

@@ -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,