foodsoft/app/helpers/sepa_helper.rb

6 lines
269 B
Ruby
Raw Permalink Normal View History

module SepaHelper
def foodsoft_sepa_ready?
FoodsoftConfig[:group_order_invoices]&.[](:iban) && FoodsoftConfig[:group_order_invoices]&.[](:bic) && FoodsoftConfig[:name].present? && FoodsoftConfig[:group_order_invoices]&.[](:creditor_identifier).present?
end
end