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-21117: Line item not shown when paying later using membership priceset #10978

Merged
merged 2 commits into from
Sep 19, 2017

Conversation

jitendrapurohit
Copy link
Contributor

@jitendrapurohit jitendrapurohit commented Sep 13, 2017

Overview

Line item not shown when paying later using membership priceset.

Before

No line item displayed in mails with below steps.

1/ Create a membership priceset with one select and one text field. Add this to a contribution page.
2/ Signup using pay later
3/ No line item is displayed in invoice received.

After

Line items are shown correctly.

Comments

Added unit test.


@jitendrapurohit jitendrapurohit changed the title CRM-21117: Enable useForMember for pending membership signup CRM-21117: Line item not shown when paying later using membership priceset Sep 13, 2017
@seamuslee001
Copy link
Contributor

Jenkins test this please

@@ -1664,6 +1664,8 @@ protected function postProcessMembership(

$emailValues = array_merge($membershipParams, $form->_values);
$emailValues['membership_assign'] = 1;
$emailValues['useForMember'] = !empty($form->_useForMember);
Copy link
Member

Choose a reason for hiding this comment

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

Or what if $emailValues['useForMember'] = (bool) $form->_useForMember);

@eileenmcnaughton
Copy link
Contributor

I'm going to merge this - I don't think @monishdeb's comment is a blocker & the code change seems fine + locked in with a test.

@eileenmcnaughton eileenmcnaughton merged commit 652199c into civicrm:master Sep 19, 2017
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.

5 participants