fix payment customer and dashboard settings
Build & Deploy / Build & Push Docker Image (push) Successful in 12m39s
Test / Type Check (all packages) (push) Successful in 5m8s
Build & Deploy / Deploy to VPS (push) Successful in 7s
Test / API Unit Tests (push) Failing after 4m24s
Test / Homepage Unit Tests (push) Successful in 3m27s
Test / Storefront Unit Tests (push) Successful in 4m48s
Test / Admin Unit Tests (push) Successful in 3m0s
Test / Dashboard Unit Tests (push) Successful in 4m18s
Test / API Integration Tests (push) Failing after 4m34s

This commit is contained in:
root
2026-06-29 22:15:34 -04:00
parent e1e2f55c93
commit a752a399c2
30 changed files with 4503 additions and 1214 deletions
@@ -0,0 +1,17 @@
ALTER TYPE "PaymentProvider" ADD VALUE IF NOT EXISTS 'MANUAL';
ALTER TABLE "rental_payments"
ADD COLUMN "reference" TEXT,
ADD COLUMN "note" TEXT,
ADD COLUMN "receivedAt" TIMESTAMP(3),
ADD COLUMN "recordedByEmployeeId" TEXT,
ADD COLUMN "idempotencyKey" TEXT;
ALTER TABLE "rental_payments"
ADD CONSTRAINT "rental_payments_recordedByEmployeeId_fkey"
FOREIGN KEY ("recordedByEmployeeId") REFERENCES "employees"("id")
ON DELETE SET NULL ON UPDATE CASCADE;
ALTER TABLE "rental_payments"
ADD CONSTRAINT "rental_payments_companyId_idempotencyKey_key"
UNIQUE ("companyId", "idempotencyKey");
+9
View File
@@ -148,6 +148,7 @@ enum BillingCreditNoteStatus {
enum PaymentProvider {
AMANPAY
PAYPAL
MANUAL
}
enum PaymentStatus {
@@ -1009,6 +1010,7 @@ model Employee {
notifications Notification[] @relation("EmployeeNotifications")
notificationPreferences NotificationPreference[]
recordedRentalPayments RentalPayment[] @relation("RecordedRentalPayments")
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@ -1401,6 +1403,12 @@ model RentalPayment {
amanpayTransactionId String? @unique
paypalCaptureId String? @unique
paymentMethod String?
reference String?
note String?
receivedAt DateTime?
recordedByEmployeeId String?
recordedByEmployee Employee? @relation("RecordedRentalPayments", fields: [recordedByEmployeeId], references: [id])
idempotencyKey String?
paidAt DateTime?
createdAt DateTime @default(now())
@@ -1408,6 +1416,7 @@ model RentalPayment {
@@index([companyId])
@@index([reservationId])
@@unique([companyId, idempotencyKey])
@@map("rental_payments")
}