Add admin transaction cancellation without deleting history.

Cancelled transactions are excluded from paid totals and due-date
calculations while remaining visible for audit purposes.
This commit is contained in:
2026-08-16 22:38:00 +03:30
parent a436cfeb47
commit 5328f36f06
6 changed files with 53 additions and 2 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ const transactionSchema = new mongoose.Schema({
},
status: {
type: String,
enum: ['pending', 'paid'],
enum: ['pending', 'paid', 'cancelled'],
default: 'pending',
index: true
}