Skip to content

fixed issue #18724 for 2.3-develop #19177

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

Closed

Conversation

Shubham0492
Copy link

Description (*)

There was a issue in display tax percent if select any locale where comma(,) use instead of decimal (.) for an example Germany.

Fixed Issues (if relevant)

  1. Display tax percent in current locale number format #18724 : Display tax percent in current locale number format

Manual testing scenarios (*)

1: login magento admin
2: Set in admin locale Germany or other European country where decimal character is comma
3: In Admin > Stores > Configuration > Sales > Tax > Shopping Cart Display Settings > Display Full Tax Summary = Yes and in the other section "Orders, Invoices, Credit Memos Display Settings"
4: Set a tax percent in admin with decimals like 50.1.
5: Add any product to cart and goto cart page.
6: Check order summary.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team
Copy link
Contributor

Hi @Shubham-Webkul. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@Shubham0492 Shubham0492 mentioned this pull request Nov 12, 2018
@orlangur orlangur self-assigned this Nov 12, 2018
@@ -26,7 +26,7 @@
<td <?= /* @escapeNotVerified */ $block->getLabelProperties() ?>>
<?= $block->escapeHtml($title) ?>
<?php if (!is_null($percent)): ?>
(<?= (float)$percent ?>%)
(<?= /* @escapeNotVerified */ $_order->formatPrice((float)$percent) ?>%)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not verified here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@orlangur because it was reject in Travis CI process due to XSS vulnerability.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Shubham-Webkul there should be another annotation, like noEscape, to indicate escaping is not needed and logic was verified.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@orlangur I have updated in this commit 6d60eb2

@Shubham0492
Copy link
Author

@orlangur Please let me know if any changes required.

@Shubham0492
Copy link
Author

@orlangur there is any changes required?

Copy link
Contributor

@orlangur orlangur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Shubham-Webkul thanks, looks great now!

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.1 milestone Dec 3, 2018
@magento-engcom-team
Copy link
Contributor

Hi @orlangur, thank you for the review.
ENGCOM-3606 has been created to process this Pull Request

Copy link
Contributor

@orlangur orlangur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Shubham-Webkul looks like formatPrice is not suitable here as it adds unnecessary dollar sign:

Problem: Percent value is shown with an unnecessary sign
Manual testing scenario:
1: Login to magento admin;
2: Set in admin locale Germany or other European country where decimal character is comma;
3: In Admin -> Stores -> Configuration -> Sales > Tax -> Shopping Cart Display Settings -> Display Full Tax Summary = Yes and in the other section "Orders, Invoices, Credit Memos Display Settings";
4: Set a tax percent in admin with decimals like 50.1;
5: Add any product to cart and go to “Proceed to Checkout”;
6: Fill all required fields and click Next;
7.Check order summary.
8.  In Tax tab percent value shown with an unnecessary sign ($).


Notice: The same problem occurs when:
 Place the order and see it in My Account

 See email sent about order 

Please fix implementation.

@Shubham0492 Shubham0492 dismissed orlangur’s stale review December 21, 2018 08:12

now i have fixed $ sign in percentage.

@okorshenko okorshenko removed this from the Release: 2.3.1 milestone Jan 28, 2019
@sivaschenko
Copy link
Member

Hi @Shubham-Webkul can you please update the branch and resolve conflicts so we can continue work on the pull request.

@orlangur
Copy link
Contributor

Closing due to inactivity. Feel free to reach me out anytime later if you wish to continue work on this pull request and it will be reopened.
Thanks for collaboration!

@orlangur orlangur closed this Mar 24, 2019
@ghost
Copy link

ghost commented Mar 24, 2019

Hi @Shubham-Webkul, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants