Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for active membership when opening membership invoice form #1492

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

njaeggi
Copy link
Contributor

@njaeggi njaeggi commented Jan 8, 2025

No description provided.

@njaeggi njaeggi linked an issue Jan 8, 2025 that may be closed by this pull request
@njaeggi njaeggi force-pushed the bug/1489/membership-invoice-form-without-membership branch 3 times, most recently from 0a9c387 to f859962 Compare January 9, 2025 08:10
@@ -29,7 +29,7 @@
= f.date_field(:send_date, minDate: @invoice_form.min_date, maxDate: @invoice_form.max_send_date)

= f.labeled(:section_id) do
= f.inline_radio_button :section_id, @person.sac_membership.stammsektion_role.group.layer_group.id, t(".mv_yearly_invoice"), true, checked: true
= f.inline_radio_button :section_id, @person.sac_membership.send((@person.sac_membership.stammsektion_role ? :stammsektion_role : :neuanmeldung_stammsektion_role)).group.layer_group.id, t(".mv_yearly_invoice"), true, checked: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Könnte da nicht @invoice_form.stammsektion verwendet werden?

Copy link
Contributor Author

@njaeggi njaeggi Jan 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nein, dadurch entsteht ein Problem das wenn das Formular abgeschickt wird und invalid ist die Stammsektion nicht mehr korrekt gesetzt ist/ gesetzt werden kann.

Dafür gibt es auch einen Feature spec welcher jetzt failed: rspec spec/features/people/invoices_spec.rb:44

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Den habe ich dann auch noch gefunden ;)

@codez codez force-pushed the bug/1489/membership-invoice-form-without-membership branch from f859962 to 5970d97 Compare January 10, 2025 13:31
@codez codez force-pushed the bug/1489/membership-invoice-form-without-membership branch from 5970d97 to 046a44c Compare January 10, 2025 13:31
@codez codez enabled auto-merge (squash) January 10, 2025 13:32
@codez codez disabled auto-merge January 10, 2025 13:46
@codez codez merged commit 975a69f into master Jan 10, 2025
4 of 6 checks passed
@codez codez deleted the bug/1489/membership-invoice-form-without-membership branch January 10, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

INVOICES: Membership Invoice erstellen für Neuanmeldungen
2 participants