- Association déclarée + Cotisation annuelle - RNA {rna} + {cotisation.montant} + {cotisation.suffixe ? ` ${cotisation.suffixe}` : ""}
+ ) : ( + rna && ( ++ + Association déclarée + + + RNA {rna} + +
+ ) )} @@ -449,7 +496,7 @@ export default async function RejoindrePage() { Devenir membre+ Cotisation annuelle +
++ {cotisation.montant} + {cotisation.suffixe ? ( + + {cotisation.suffixe} + + ) : null} +
+ {cotisation.note && ( ++ {cotisation.note} +
+ )} +
Vous ne savez pas si votre famille est déjà adhérente cette
année ? Écrivez-nous, on vérifie.
@@ -600,6 +670,7 @@ export default async function RejoindrePage() {
: null
}
whatsappGroupUrl={settings.whatsappGroupUrl}
+ cotisationPubliee={settings.membershipFeePublished}
/>
>
diff --git a/src/components/adherents-manager.tsx b/src/components/adherents-manager.tsx
index f8ce965..46eed6a 100644
--- a/src/components/adherents-manager.tsx
+++ b/src/components/adherents-manager.tsx
@@ -78,8 +78,15 @@ function dateInput(value: string | null) {
export function AdherentsManager({
members,
+ cotisationParDefautCents = null,
}: {
members: AdherentView[];
+ /**
+ * Le tarif publié par l'association, quand il y en a un : une adhésion
+ * nouvelle s'ouvre dessus plutôt que sur 0,00 €. On ne le force jamais — une
+ * famille peut régler autre chose — mais on évite de le retaper à chaque fois.
+ */
+ cotisationParDefautCents?: number | null;
}) {
const router = useRouter();
const toast = useToast();
@@ -253,6 +260,7 @@ export function AdherentsManager({
loading={submitting}
onSubmit={save}
onCancel={() => setEditor(null)}
+ cotisationParDefautCents={cotisationParDefautCents}
/>
)}
@@ -540,11 +548,13 @@ function AdherentForm({
loading,
onSubmit,
onCancel,
+ cotisationParDefautCents,
}: {
member: AdherentView | null;
loading: boolean;
onSubmit: (event: React.FormEvent