-
Notifications
You must be signed in to change notification settings - Fork 109
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
use form's currency, not system default, for displaying line items/total #842
base: 6.x
Are you sure you want to change the base?
Conversation
@MegaphoneJon The test failure seems to be related. There seems to be js error when the default currency is selected on the Contribution tab. The console error is probably due to the usage of uppercase FALSE in js. Should be fixed by replacing it to |
f794f88
to
1ca1e4b
Compare
Hi @MegaphoneJon - that looks like a real failure:
|
1ca1e4b
to
e63742a
Compare
A question (unrelated to the currently failing test): I've written a new JavaScript function that really needs unit testing with a large number of inputs. FunctionalJavascript seems way too heavy, since I want to do a pure unit test. Is there existing support for JS unit tests? The values I want to test:
|
test this please |
I’ll hit re-run tests |
e63742a
to
a6e07ff
Compare
I got stuck with the same issue/situation as @MegaphoneJon : I have a couple of available currencies but the payment screen shows the default site currency. I can confirm that with this patch, my issue got resolved. @KarinG could we merge this one ? Thanks for the work @MegaphoneJon !! |
It really needs to pass the existing battery of tests before we can merge this. |
Coming back to this PR as I've recently upgraded I believe this line should be taken out. Before removing/commenting the pointed line: After commenting it: PS. Please ignore the total amount which is 26 in one screenshot and 21 in the other.. |
a6e07ff
to
471a567
Compare
Overview
See https://www.drupal.org/project/webform_civicrm/issues/3340955.
Before
The line items and total on the payment page display in the system default currency.
After
The line items and total on the payment page display in the webform's currency.
Comments
The PHP fix is the primary fix. The JS fix works because the PHP fix is providing the correct format.