From 95b2c4ae9d79db4f291dbc978ecb2b18d3a0b8d7 Mon Sep 17 00:00:00 2001 From: Nils Rauch Date: Thu, 17 Aug 2023 09:13:27 +0200 Subject: [PATCH] Do not show membership fee as invoice option in dropdown --- app/helpers/sbv/dropdown/invoice_new.rb | 12 ++++++++++++ lib/hitobito_sbv/wagon.rb | 1 + 2 files changed, 13 insertions(+) create mode 100644 app/helpers/sbv/dropdown/invoice_new.rb diff --git a/app/helpers/sbv/dropdown/invoice_new.rb b/app/helpers/sbv/dropdown/invoice_new.rb new file mode 100644 index 0000000..16d4acc --- /dev/null +++ b/app/helpers/sbv/dropdown/invoice_new.rb @@ -0,0 +1,12 @@ + +module Sbv + module Dropdown + module InvoiceNew + extend ActiveSupport::Concern + + def additional_sub_links + super - [:membership_fee] + end + end + end +end diff --git a/lib/hitobito_sbv/wagon.rb b/lib/hitobito_sbv/wagon.rb index a8b77e5..95587d2 100644 --- a/lib/hitobito_sbv/wagon.rb +++ b/lib/hitobito_sbv/wagon.rb @@ -68,6 +68,7 @@ class Wagon < Rails::Engine GroupsHelper.include Sbv::GroupsHelper GroupDecorator.prepend Sbv::GroupDecorator StandardFormBuilder.include Sbv::StandardFormBuilder + Dropdown::InvoiceNew.prepend Sbv::Dropdown::InvoiceNew ### sheets Sheet::Group.include Sbv::Sheet::Group