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

CRM-21198: Completing payment for partially paid membership doesn't change membership status #10999

Closed
wants to merge 1 commit into from

Conversation

monishdeb
Copy link
Member

@monishdeb monishdeb commented Sep 19, 2017

Overview

Steps to replicate:

  • Choose General membership and change status to 'Partially paid' and enter total amount less than $100.
  • Record rest of the payment via 'Record payment' form.

Result

Related contribution's status is changed to 'Completed' from 'Partially paid' - correct
Related membership's status didn't change and still set to 'Pending' - incorrect

Before

Related membership's status isn't changed to New

After

Membership's status isn't changed to Completed


@monishdeb
Copy link
Member Author

@eileenmcnaughton I have extracted one of the fixes included in #10352 patch onto a separate issue. Unfortunately, I cannot add the UT for this fix as it has some dependencies on original issue CRM-20569

@eileenmcnaughton
Copy link
Contributor

@monishdeb I commented on that PR that I thought it makes sense to extract & share code from completeOrder - I put this up to make it clearer what I mean - it doesn't go the full way.
#11006

@@ -3820,6 +3820,15 @@ public static function recordAdditionalPayment($contributionId, $trxnsData, $pay
$participantId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_ParticipantPayment', $contributionId, 'participant_id', 'contribution_id');
}

// fetch membership IDs registered against given contribution ID
Copy link
Contributor

Choose a reason for hiding this comment

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

I deeply loath this function, but I think we should it in order to be as aligned with the completeOrder function as possible

loadRelatedMembershipObjects(&$ids)

  • then lower down we can call the same function

@monishdeb
Copy link
Member Author

Closing in favor of #11006

@monishdeb monishdeb closed this Sep 26, 2017
@monishdeb monishdeb deleted the CRM-21198 branch September 26, 2017 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants