-
-
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
dev/financial#100 Remove 'partially paid' as a contribution status option for 'record p…ayment' #15771
Conversation
(Standard links)
|
'Overdue', | ||
'Partially paid', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eileenmcnaughton I'm a bit puzzled by this bit of code and the comment. Why are we unsetting different statuses for participant/membership?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After this they should be the same - before this I think it's historical randomness
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eileenmcnaughton Ok. So if you update this comment which will be wrong after this PR I'm happy to merge this: https://github.com/civicrm/civicrm-core/pull/15771/files#diff-99d052aa6a966c5a2cc89d05f057d22dR565-R566
…ayment' Fixes a bug where it is possible to select contribution statuses that do not result in valid financial transactions. Specifically the 'Partially Paid' option creates no payment transaction and any subsequent financial_trxns get the wrong line item allocations as a result.
30237b6
to
eaba6ea
Compare
@mattwire I've updated the comment - maybe it should get merge-ready to give @JoeMurray @lcdservices @kcristiano a few more days to comment |
…cenario I have discovered a lot of tests are creating invalid contributions - civicrm#15706 So far the issues have been in the test + us permitting something that doesn't work on the form - ie civicrm#15771 I'm trying to work through them all & then we can ideally validate payments in general. In this case it turns out that because 'amount' is currently a 'required' parameter the tests have 'any value' stuck in there. In a real submission it would be calculated so I'm trying to share the code that would do that with the path used by the test (& in this case the api) and to move towards getting the tests valid
…cenario I have discovered a lot of tests are creating invalid contributions - civicrm#15706 So far the issues have been in the test + us permitting something that doesn't work on the form - ie civicrm#15771 I'm trying to work through them all & then we can ideally validate payments in general. In this case it turns out that because 'amount' is currently a 'required' parameter the tests have 'any value' stuck in there. In a real submission it would be calculated so I'm trying to share the code that would do that with the path used by the test (& in this case the api) and to move towards getting the tests valid
…cenario I have discovered a lot of tests are creating invalid contributions - civicrm#15706 So far the issues have been in the test + us permitting something that doesn't work on the form - ie civicrm#15771 I'm trying to work through them all & then we can ideally validate payments in general. In this case it turns out that because 'amount' is currently a 'required' parameter the tests have 'any value' stuck in there. In a real submission it would be calculated so I'm trying to share the code that would do that with the path used by the test (& in this case the api) and to move towards getting the tests valid
test this please |
1 similar comment
test this please |
…cenario I have discovered a lot of tests are creating invalid contributions - civicrm#15706 So far the issues have been in the test + us permitting something that doesn't work on the form - ie civicrm#15771 I'm trying to work through them all & then we can ideally validate payments in general. In this case it turns out that because 'amount' is currently a 'required' parameter the tests have 'any value' stuck in there. In a real submission it would be calculated so I'm trying to share the code that would do that with the path used by the test (& in this case the api) and to move towards getting the tests valid
test this please |
In the 6 days this has been merge-ready @JoeMurray has endorsed the principle on gitlab so I'm merging now (merge-ready is a merge-on-pass with a delay) |
Overview
Removes the following statuses from the drop down to record payment for a membership
And from an event registration
(Cancelled & Failed are both still possible from New Contribution).
Rationale
Before
Backoffice event
Backoffice membership
After
Technical Details
This came up because I tried adding a check to our unit tests to ensure they were creating valid payments & many are not. In some cases it's the tests but in this case the test is testing something that users can do too.
This is the test #15706
@JoeMurray @kcristiano @mattwire @magnolia61 @lcdservices @monishdeb @pradpnayak @agh1 @MegaphoneJon
Comments
https://lab.civicrm.org/dev/financial/issues/100
Also Edit Contribution form has dubious statuses - I don't want to block this on resolving 'it all' but happy to agree some follow ups. My current goal is to work through the test fails in #15706 & identify where invalid data is being created.