Add pending donations to admin donations index
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

And add more info to the details page
This commit is contained in:
2025-05-27 18:08:22 +04:00
parent fff7527694
commit 71352d13d2
5 changed files with 57 additions and 33 deletions

View File

@@ -17,6 +17,7 @@ class Donation < ApplicationRecord
scope :pending, -> { where(payment_status: "pending") }
scope :processing, -> { where(payment_status: "processing") }
scope :completed, -> { where(payment_status: "settled") }
scope :incomplete, -> { where.not(payment_status: "settled") }
aasm column: :payment_status do
state :pending, initial: true