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

Member.php: also properly resolve monthly and yearly payments #212

Merged
merged 1 commit into from
Nov 17, 2024

Conversation

Nowa-Ammerlaan
Copy link
Member

Closes: #203

@Nowa-Ammerlaan Nowa-Ammerlaan force-pushed the yearly-and-monthly-payments branch 15 times, most recently from 15890f2 to 9e6660e Compare November 17, 2024 18:21
and register the first payment in the payments array so the new users
show up as having paid in the xlsx database export.

Closes: #203
Signed-off-by: Nowa Ammerlaan <[email protected]>
@Nowa-Ammerlaan Nowa-Ammerlaan force-pushed the yearly-and-monthly-payments branch from 9e6660e to 5d07a8b Compare November 17, 2024 18:28
@Nowa-Ammerlaan Nowa-Ammerlaan merged commit 96ca3ae into main Nov 17, 2024
1 check passed
@Nowa-Ammerlaan Nowa-Ammerlaan deleted the yearly-and-monthly-payments branch November 17, 2024 18:41
Comment on lines +115 to +121
$init_payment->setPeriodMonthEnd($member->getRegistrationTime()->modify('+1 month')->format('n'));
break;
case $member::PERIOD_QUARTERLY:
$init_payment->setPeriodMonthEnd($member->getRegistrationTime()->modify('+3 month')->format('n'));
break;
case $member::PERIOD_ANNUALLY:
$init_payment->setPeriodMonthEnd($member->getRegistrationTime()->modify('+12 month')->format('n'));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ik denk dat $member->getRegistrationTime()->modify('+12 month') in place muteert, waardoor dit #217 veroorzaakt.

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.

User export: Column paid is wrong
2 participants