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

dev/core#2024 extra line item issue on membership renewal #18838

Merged
merged 1 commit into from
Dec 9, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Oct 22, 2020

Overview

This fixes a bug where a random line item is created on the renewal form if the contribution has
tax but the amount is 0

Before

See https://lab.civicrm.org/dev/core/-/issues/2024

After

Only 1 line created

Technical Details

Alternative to #18526 - while I could see the case for that it turned out the breakage on this form stemmed from these lines....

   //Remove `tax_amount` if it is not calculated.
      // ?? WHY - I haven't been able to figure out...
      if (CRM_Utils_Array::value('tax_amount', $temporaryParams) === 0.0) {
        unset($temporaryParams['tax_amount']);
      }

which really make their own case for removal

Comments

I renamed a test function which caused a bit of noise

@civibot
Copy link

civibot bot commented Oct 22, 2020

(Standard links)

@eileenmcnaughton
Copy link
Contributor Author

CRM_Member_Form_MembershipRenewalTest.testSubmitPayLaterCRM_Member_Form_MembershipRenewalTest.testSubmitPayLater

This fixes a bug where a random line item is created on the renewal form if the contribution has
tax but the amount is 0
@seamuslee001
Copy link
Contributor

This seems fine to me, I think we have sufficient test coverage to tell us if something is going wrong here merging

@seamuslee001 seamuslee001 merged commit 2d8ba49 into civicrm:master Dec 9, 2020
@seamuslee001 seamuslee001 deleted the vrenew branch December 9, 2020 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants