changing view for group_order_invoices
testing ui of goi restructuring
This commit is contained in:
parent
de6643722a
commit
90c5450525
52 changed files with 783 additions and 57 deletions
|
|
@ -8,6 +8,8 @@ class Ordergroup < Group
|
|||
|
||||
APPLE_MONTH_AGO = 6 # How many month back we will count tasks and orders sum
|
||||
|
||||
attr_accessor :sepa_account_holder_user_id
|
||||
|
||||
serialize :stats
|
||||
|
||||
has_many :financial_transactions
|
||||
|
|
@ -182,6 +184,10 @@ class Ordergroup < Group
|
|||
result.order(Arel.sql(sort_param_map[param]))
|
||||
end
|
||||
|
||||
def sepa_possible?
|
||||
sepa_account_holder&.all_fields_present? || false
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
# Make sure, that a user can only be in one ordergroup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue