Skip to content

Wrong order amount on dashboard on Last orders listing when having more than one website with different currencies #15660

@ankurvr

Description

@ankurvr

On Dashboard Last order's table shows wrong table for specific store view dashboard when you have multiple websites and both have different currencies.
Actual Problem is mentioned in 8th point of Steps to Reproduce.

Preconditions

  1. Magneto CE (2.2.3, 2.2.4)
  2. PHP Ver 7.0.24
  3. MySQL Ver (5.7, 8.0.11)
  4. Platform : MacOS High Sierra Ver 10.13.4

Steps to reproduce

  1. Create 2 Websites with 1 store in each
  2. Set Default website/store base currency as INR (Indian Rupee)
  3. Set another website/store base currency as USD (US Dollar)
  4. Place Order from both websites with with their default currencies.
  5. Now go to Dashboard and set Store View as All Store Views
  6. See Last Orders table and check order's total amounts and all mounts will be in INR (USD orders will be converted to INR with exchange rate
  7. Now change Store View to USD currency website's store which have orders
  8. See Last Orders table and check order's total amounts. You will find those amounts converted to again into INR to USD. But at this point orders are already in USD so no need to convert amounts.

Expected result

  1. All Store View Dashboard

screen shot 2018-06-01 at 4 54 03 pm

  1. Second Store View Dashboard which have USD currency

screen shot 2018-06-01 at 5 01 03 pm

Actual result

  1. All Store View Dashboard

screen shot 2018-06-01 at 4 54 03 pm

  1. Second Store View Dashboard which have USD currency

screen shot 2018-06-01 at 4 54 29 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: BackendFixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Format is validGate 1 Passed. Automatic verification of issue format passedReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions