-
-
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-20889 : Toggle check_number field on backoffice form as payment form fields #10680
Conversation
monishdeb
commented
Jul 17, 2017
•
edited by civicrm-builder
Loading
edited by civicrm-builder
- CRM-20889: Toggle check_number field on backoffice form as payment form fields
@eileenmcnaughton can you review this patch about introducing check_number as payment field ? |
I just gave it a quick skim and I approve it from a code point of view - it is an improvement and 64 is a fine score! It's still pending actual testing - looks like it affects all back office forms that take payments |
Tested this changes on back office contribution, membership, pledge and event forms. Found two issues -
|
@jitendrapurohit I have fixed #2 but for point #1, as per discussion with Eileen here I am going to replace the payment details section with a list of transactions on backoffice contribution edit form. As per the new spec, the payment fields will be populated on new payment edit form. So, in my opinion, we should skip #1 or else we need to include the patch of current PR as a part of CRM-20610 fix. @eileenmcnaughton am I right? |
Jenkin test this please |
@monishdeb I think you are saying the payment form should not show up at all on the edit page (which I agree with) - but we can't merge this PR as is I don't think since it is loading with wrong info (from @jitendrapurohit's review ) |
@eileenmcnaughton in order to load correct info that involves loading the values of card_number and card_type_id as default set on respective payment fields (in this case), we need to fetch the latest transaction (i.e. the |
@monishdeb I feel like this is a good code improvement - it removes spaghetti & the UI is more consistent, and can stand alone from other changes. I tried looking at the issue @jitendrapurohit raised & it can be fixed (at least on contribution form) like this
|
(I'm not 100% sure that there isn't a better way that involves less double-setting but I think that is too much scope creep here) |
Note the payment details form replacement is currently pending further review by @guanhuan & @jamienovick so we need to make this one work by itself before we can merge |
Also - I couldn't reproduce the issue on the event form after applying the patch above. (note I didn't put the patch as a commit because I want to be able to merge the patch once it is correct & so I can't 'taint' it by adding code to it) |
@monishdeb I feel like if you make the changes per my comment above then we can ping @jitendrapurohit to confirm it resolves his issue & merge this? |
Thanks @eileenmcnaughton for the patch, I have updated the PR with it. After the fix, it correctly shows the payment fields w.r.t chosen payment method. However, it doesn't prefill the fields with respective default values, which I think won't matter much as per new UI changes. @jitendrapurohit would you like to retest the latest patch, which addresses both the issues you raised. Thanks! |
test this please |
@monishdeb Thanks for the update. Though the input field have been fixed, the header is still shown as "Check Information" for credit card fields. To see this yourself, use the same steps as mentioned in point#1 of #10680 (comment) |
Odd - it should be getting the right label from
|
---------------------------------------- * CRM-20869: Remove cruft code for check number https://issues.civicrm.org/jira/browse/CRM-20869
fab1d6a
to
b3453b5
Compare
@eileenmcnaughton that's because we are setting the |
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 have been fixed now. Thanks @monishdeb @eileenmcnaughton
Thanks for the review @jitendrapurohit. I'm going to merge this based on Jitendra's testing. I would note this is a clear code improvement & it is a code simplification we have been inching towards for some time. @monishdeb + 14 -75 = gold star :-) Thanks for your work on this. |
Thanks, @jitendrapurohit @eileenmcnaughton for reviewing it |