woocommerce / woocommerce-android

WooCommerce Android app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
277 stars 135 forks source link

[Order Creation] Wrong totals with multiple tax-inclusive products #12138

Open staskus opened 3 months ago

staskus commented 3 months ago

Describe the bug

Related PRs: https://github.com/woocommerce/woocommerce-ios/pull/11012 Discussion: p1721317864232889-slack-C6H8C3G23 Related CUW: peaMlT-ec-p2#comment-1834 iOS issue: https://github.com/woocommerce/woocommerce-ios/issues/13422

When I add two tax-inclusive products (Yes, I will enter prices inclusive of tax), the order total sums up to a slightly wrong value. This only happens on iOS/Android and doesn’t happen on Web Checkout or WP Admin

To Reproduce Steps to reproduce the behavior:

  1. Enable Settings -> Tax -> Yes, I will enter prices inclusive of tax setting
  2. Open Woo app
  3. Orders -> Add New (+)
  4. Select the same product twice
  5. Notice it sums up to a slightly wrong value. e.g. two $16 products sum up to $32.01

Screenshots

image

Expected behavior A clear and concise description of what you expected to happen.

Isolating the problem (mark completed items with an [x]):

Mobile Environment Please include:

WordPress Environment

``` Copy and paste the system status report from **WooCommerce > System Status** in WordPress admin. ```
dangermattic commented 3 months ago

Thanks for reporting! 👍