-
-
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
[ready-for-core-team-review]CRM-16189, Code to add 'Record Payment' link on Contribution View and Contribution tab #8870
Conversation
pradpnayak
commented
Aug 11, 2016
•
edited by civicrm-builder
Loading
edited by civicrm-builder
- CRM-16189: Improve support for Accrual Method bookkeeping
451ce63
to
7952d5b
Compare
While working on it for QA, just found a DB error on Edit Participant Form :(. Steps to recreate-
|
$values['id'], 'participant_id', 'contribution_id' | ||
); | ||
$this->assign('contactId', $values['contact_id']); | ||
$this->assign('hasPayment', $values['id']); |
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.
A variable named hasPayment should use a boolean like isset($values['id']) rather than a numeric or NULL.
Just because a contribution is returned, I don't think that is equivalent to there being a payment already. Could you elaborate with a comment somewhere the reasons why this would be so?
7952d5b
to
fe8acfd
Compare
fe8acfd
to
2d0d9bc
Compare
2d0d9bc
to
65bf969
Compare
@monishdeb can you verify this PR? |
sure |
@pradpnayak there is unit test failure related to this PR
|
829802b
to
c5e6ce6
Compare
is test failure related to my PR? |
Nope, |
@pradpnayak I did a general click around testing which worked for almost all the cases for events, contribution, etc. except for some minor use-case which I've listed below:
Thanks. |
c5e6ce6
to
f792bb7
Compare
@pradpnayak : Let us know when done. |
f792bb7
to
4e8bd63
Compare
Rebased PR |
Jenkins, retest this please |
@jitendrapurohit could you please test the scenario again? I've tested after the latest changes and it looks like it has been resolved. Thanks! |
@Edzelopez # 1 seems to be fixed as it shows correct pid instead of |
For point. 3 I don't think a scenario should arise to prompt one to create a Pending Refund contribution directly. Currently, core has only handled status change for Pending Refund contributions. @JoeMurray could you think of any case where one would need to create a Pending Refund contribution? If not, we should likely disallow the user to do so. |
Point 2 still fails to update participant status for me :(. Note that the contribution I think both forms are meant for the same functionality but have a different display and params - Edit Event Participation Form -> Record Payment Contribution Form -> Record Payment Should this be included/fixed in the PR? |
@jitendrapurohit Thanks for specifying the issue in detail. I can replicate it now. Will submit a fix soon. EDIT: Fix submitted. @jitendrapurohit could you please let me know if the issue is resolved? |
---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189
---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189
---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189
---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189
…r deferred payments ---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189 Conflicts: CRM/Core/BAO/FinancialTrxn.php
---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189
---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189
… pending pay later and partially paid contribution ---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189 Conflicts: CRM/Contribute/Form/AdditionalPayment.php
---------------------------------------- * CRM-16189: https://issues.civicrm.org/jira/browse/CRM-16189 Conflicts: CRM/Contribute/Form/AdditionalPayment.php
---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189
---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189
---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189
---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189
---------------------------------------- * CRM-16189: https://issues.civicrm.org/jira/browse/CRM-16189
---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189
4e8bd63
to
545ca07
Compare
@jitendrapurohit any news on this? |
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.
All noted issues seems to be fixed. Thanks :-)
Thanks :) |