Skip to content

Commit

Permalink
Add status method to ProjectAllocation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Feb 27, 2025
1 parent 850e476 commit 35f1430
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/project_allocation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -580,4 +580,9 @@ def find_transaction
potential_transactions.select{|t| t.account == funding_source.name }.first
end
end

def status
return invitation.status if invitation.present?
return 'PAID' if find_transaction.present?
end
end

0 comments on commit 35f1430

Please sign in to comment.