When using the built-in multicurrency option of WooCommerce Payments, comparing the totals of each order to the numbers that are listed in Analytics > Revenue do not always match up.
To Reproduce
@elazzabi was able to reproduce this:
Set up the store to accept multiple currencies via WCPay.
Add a widget to switch currencies on the front-end.
Place an order and switch to a different currency.
Place several other orders in the store's default currency.
Convert the individual amounts of the order placed in step 4 (e.g. gross sales, shipping, taxes) to the store's base currency; use the exchange rate found via Stripe.
Add up the following for each individual order: gross sales, discounts, shipping, taxes, and net sales
Navigate to Analytics > Revenue.
Compare the totals in step 5 to the numbers in step 6.
Actual behavior:
The price in Analytics > Revenue can be off by between +0.01 to +0.17 (so far—it could potentially be off by more).
Screenshots
0.01 discrepancy:
0.17 discrepancy:
Expected behavior
The totals in Analytics > Revenue will match the orders when they are added together individually.
Describe the bug
When using the built-in multicurrency option of WooCommerce Payments, comparing the totals of each order to the numbers that are listed in
Analytics > Revenue
do not always match up.To Reproduce
@elazzabi was able to reproduce this:
Analytics > Revenue
.Actual behavior:
The price in
Analytics > Revenue
can be off by between +0.01 to +0.17 (so far—it could potentially be off by more).Screenshots
0.01 discrepancy:
0.17 discrepancy:
Expected behavior
The totals in
Analytics > Revenue
will match the orders when they are added together individually.Additional context
5217062-zen p1652658889462989-slack-C7U3Y3VMY