Skip to content

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

Open
@staskus

Description

@staskus

Describe the bug

Related PRs: #11012
Discussion: p1721317864232889-slack-C6H8C3G23
Related CUW: peaMlT-ec-p2#comment-1834
Android issue: woocommerce/woocommerce-android#12138

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]):

  • I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
  • This bug happens with a default WordPress theme active, or Storefront.
  • I can reproduce this bug consistently using the steps above.

Mobile Environment
Please include:

  • Device:
  • iOS version:
  • WooCommerce iOS version:

WordPress Environment

``` Copy and paste the system status report from **WooCommerce > System Status** in WordPress admin. ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions