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

5 lines
269 B
Ruby

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