-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MembershipRenewal, allow to configure optional attributes
This patch allows to configure certain memberships attributes that will be ignored when renewing a membership. This is useful for attributes that are not always relevant a year to another, like the number of activity participations or some temporary price adjustments. Close #72
- Loading branch information
Showing
11 changed files
with
113 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+42.6 KB
app/assets/images/updates/20230825_membership_renewed_attributes/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
app/views/updates/_20230825_membership_renewed_attributes.md.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Renouvellement: configurations reprises | ||
|
||
Il est maintenant possible [de paramétrer si certaines configurations](/settings#membership_renewal) sont reprises ou non lors du renouvellement d'un abonnement. Historiquement ces configurations étaient toujours reprises, ce qui pouvait poser problème dans certaines situations. | ||
|
||
Dans tous les cas, et comme précédemment, si un changement de taille du panier ou de compléments est choisi par le membre, les configurations correspondantes ne sont pas reprises lors du renouvellement. | ||
|
||
![Paramètres](<%= image_url('updates/20230825_membership_renewed_attributes/settings.png') %>){:width="90%"} | ||
|
||
Retrouvez plus d'informations sur le renouvellement des abonnements dans [le manuel](handbook/membership_renewal). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
db/migrate/20230825120451_add_membership_renewed_attributes_to_acps.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddMembershipRenewedAttributesToAcps < ActiveRecord::Migration[7.0] | ||
def change | ||
add_column :acps, :membership_renewed_attributes, :string, array: true, default: MembershipRenewal::OPTIONAL_ATTRIBUTES | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters