Skip to content

Refonte cotisations avec Doctrine - #2324

Open
vgreb wants to merge 1 commit into
afup:masterfrom
vgreb:refacto/membershipfee-doctrine
Open

Refonte cotisations avec Doctrine#2324
vgreb wants to merge 1 commit into
afup:masterfrom
vgreb:refacto/membershipfee-doctrine

Conversation

@vgreb

@vgreb vgreb commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@vgreb
vgreb force-pushed the refacto/membershipfee-doctrine branch 2 times, most recently from b1546ac to a3e7f34 Compare July 26, 2026 13:41
@vgreb
vgreb force-pushed the refacto/membershipfee-doctrine branch from a3e7f34 to f60feff Compare August 11, 2026 14:40
return 'COTIS-' . date('Y') . '-' . (is_numeric($result) ? (int) $result : 1);
}

public function updatePayment(int $id, int $typeReglement, string $informationsReglement): bool

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Si on remonte les utilisations de cette méthode, on trouve updatePayment dans \AppBundle\MembershipFee\MembershipFeeService qui n'est appelée qu'à un seul endroit :

$this->membershipFeeService->updatePayment(
$cotisation->id,
MembershipFeePayment::OnlinePayment->value,
"autorisation : " . $autorisation . " / transaction : " . $transaction,
);

Et cet endroit fait MembershipFeePayment::OnlinePayment->value donc on pourrait en profiter ici pour changer le int $typeReglement en MembershipFeePayment $typeReglement

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.

2 participants