Skip to content

Capturing order on multi-site & multi-currency #106

Description

@HirokazuNishi

Preconditions (*)

  1. Install Magento2.3.x with sample data.
  2. Install CommunityEngineering_CurrencyPrecision
  3. Set global base currency as JPY
  4. Add new website, store group, and store view
  5. Set USD as new website base currency

Steps to reproduce (*)

  1. Create order from new website that defined on precondition step 4 with PayPal Express (or any other online payment method is OK)
  2. Create invoice from admin panel
  3. Check capture transaction result.

Expected result (*)

  1. Invoice should be created as same amount as order.
  2. Capture amount should be same as order base grand total

Actual result (*)

  1. Capture amount is rounded and different amount is sent to payment gateway and Magento db.

CurrencyPrecision\Plugin\Directory\Model\CurrencyRounding::aroundRound should use right currency code for rounding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions