-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Cleanup date handling on Payment.create #15687
Conversation
Fix a bug identified by @kcristiano whereby adding a payment with the additional payment form changes the contribution receive_date. Also, add a default to Payment.create of 'now' for the trxn_date and require it to be set. Use that value later on. Some string fixes
(Standard links)
|
Unrelated fail |
test this please |
2 similar comments
test this please |
test this please |
I tested this and can confirm it works. |
Merging based on review + @magnolia61 test |
@eileenmcnaughton I am still having an issue on Received Date in the bookkeeping report. The dates on the contribution screen look correct: This looks more like a reporting issue. |
@kcristiano what is the date received on the contribution screen? like when you click the view link on the contribution its self? |
@seamuslee001 That is the second screen shot and those dates are correct. |
@kcristiano yeh the 2nd screenshot in your previous comment only had the payments showing |
@kcristiano I think that is not exactly a bug - ie. the trxn_date is shown on your report & it's correct. We should possibly not offer the receive date as a field or rename it or otherwise make it clear it's not the trxn_date |
The trx_date is when the transaction is created. The received date is used by many of our client using cash basis accounting. I am going to look again and re-evaluate. This is an improvement, but we need to not change prior behavior - and I need to test for that. Specifically a line item's receive date should not change if edited. |
@kcristiano yep - I'm keen to see a thorough set of testing done on 5.20 |
Overview
Fix a bug identified by @kcristiano whereby adding a payment with the
additional payment form changes the contribution receive_date.
Also, add a default to Payment.create of 'now' for the
trxn_date and require it to be set. Use that value later on.
Some string fixes
Before
Adding a payment on AdditionalPaymentForm changes Contribution.receive_date
After
Contribution.receive_date not altered
Technical Details
@kcristiano @magnolia61
Comments