-
-
Notifications
You must be signed in to change notification settings - Fork 827
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
Resolve Issue with Payment Allocation to Contribution Line Item #29350
Resolve Issue with Payment Allocation to Contribution Line Item #29350
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
tests didn't complete - test this please @olayiwola-compucorp how do we replicate this @JoeMurray are you able to get someone to look - we should get a test if we do merge this |
@olayiwola-compucorp can you add some details of how to recreate the issue via the UI? |
672dfae
to
53d5384
Compare
@eileenmcnaughton I've updated the PR desc with replication step, I also added a test cc @jamienovick |
@eileenmcnaughton Do you have what you need to validate this? Let me know if you have more questions and I can add some more details. Would be great to close it off. Best |
6d5ed9a
to
1e2449e
Compare
@olayiwola-compucorp I did have a go at an alternate to this - but just got a bit stuck at the end #29503 on the test - it's a bigger change but this https://github.com/civicrm/civicrm-core/pull/29503/files#diff-74b281ac668a837edcbfabd5cb0d74b5647c92d24f63777ab964bc6376291e25L167 kinda points out where the real probelm is |
Thanks, @eileenmcnaughton, I moved the work done here to a more complete PR #29823, it also tackled the problem https://github.com/civicrm/civicrm-core/pull/29823/files#diff-74b281ac668a837edcbfabd5cb0d74b5647c92d24f63777ab964bc6376291e25, but in a different way. cc @jamienovick |
Overview
This pull request addresses an issue where incorrect amounts were allocated to contribution line items during payment processing.
Considering the contribution entity table provided:
Before
Before this PR, the following EntityFinancialTrxn was created:
From this table, it's evident that incorrect amounts are assigned to line item 3 following the initial payment.
After
After this PR, the following EntityFinancialTrxn is created:
Line Item 3 now receives the accurate allocation with subsequent payments.
Replication Step