-
-
Notifications
You must be signed in to change notification settings - Fork 824
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-20676 Add tax_amount to contribution create params so it doesn't get added … #11461
CRM-20676 Add tax_amount to contribution create params so it doesn't get added … #11461
Conversation
@mattwire can you explain the circumstances under which this is still required? |
|
@monishdeb ^^ |
@eileenmcnaughton @mattwire now I am thinking how we could possibly add a unit test to capture this use-case. So here's my thought, I have added a unit-test
Now after #11521 is merged, we need to extend the UT to do these steps: What do you think? |
I have added 'merged ready' tag as the fix is good to merge, but then we need unit-test to avoid any recurrence. |
I just triggered the issue again running the Contribution.repeattransaction API - this issue fixes that too. |
sounds like repeattransaction will be the easiest place to do the test - there are a tonne already in api_v3_ContributionTest |
@mattwire I have extended a existing unit-test for this fix and this is the patch https://gist.github.com/monishdeb/ab5d62fb6799f4e3d99f8e75432a64ca In addition to that, can you add a unit test with |
I have submitted a PR #11655 that has the UT for it, hence merging. |
…to calculation
Overview
Follow on from #11455. This fixes an issue where tax is repeatedly added on contribution edit as it's not passed in the params to contribution create.