parent
a1be74ed2d
commit
318b7878d8
2 changed files with 26 additions and 0 deletions
@ -1,4 +1,16 @@ |
||||
class Contribution < ApplicationRecord |
||||
belongs_to :member |
||||
has_paper_trail |
||||
|
||||
def member_number |
||||
member&.number |
||||
end |
||||
|
||||
def member_display_name |
||||
member&.display_name |
||||
end |
||||
|
||||
def amount |
||||
eurocents |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue