feat: implement flexible payment processing with partial cash payments and automatic balance deduction in reports

This commit is contained in:
Firman Ramdhani
2026-09-03 14:26:45 +07:00
parent 83a09a4c03
commit d32e7eda91
9 changed files with 693 additions and 128 deletions
+1
View File
@@ -52,6 +52,7 @@ model Submission {
order_id String
user_id String
bill Int?
paid_amount Int?
payment_status String @default("BELUM_BAYAR")
order Order @relation(fields: [order_id], references: [id], onDelete: Cascade)
user User @relation(fields: [user_id], references: [id], onDelete: Cascade)