changing view for group_order_invoices

testing ui of goi restructuring
This commit is contained in:
viehlieb 2023-11-03 16:37:43 +01:00
parent de6643722a
commit 90c5450525
52 changed files with 783 additions and 57 deletions

View file

@ -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