foodsoft/app/models/sepa_account_holder.rb
2023-11-17 15:53:32 +01:00

8 lines
256 B
Ruby

class SepaAccountHolder < ApplicationRecord
belongs_to :group
belongs_to :user
def all_fields_present?
iban.present? && bic.present? && mandate_id.present? && user_id.present? && mandate_date_of_signature.present? && group_id.present?
end
end