feat(deposits): add refund rejection path with reason

This commit is contained in:
2026-07-06 09:44:43 +08:00
parent 3717531bb3
commit 6ba7213cc4
4 changed files with 146 additions and 15 deletions

View File

@@ -48,7 +48,7 @@ export class Deposit {
recordedBy: number;
@Column({ name: 'refund_status', length: 30, nullable: true })
refundStatus: string; // pending | head_teacher_approved | finance_approved | refunded
refundStatus: string | null; // pending | head_teacher_approved | finance_approved | refunded
@Column({ name: 'refund_requested_at', type: 'datetime', nullable: true })
refundRequestedAt: Date;
@@ -59,6 +59,9 @@ export class Deposit {
@Column({ name: 'refund_approved_at', type: 'datetime', nullable: true })
refundApprovedAt: Date;
@Column({ name: 'refund_rejected_reason', length: 500, nullable: true })
refundRejectedReason: string;
@OneToMany(() => DepositInstallment, (i) => i.deposit, { cascade: true, eager: true })
installments: DepositInstallment[];