Automattic / woocommerce-subscriptions-core

Subscriptions core package for WooCommerce
Other
81 stars 29 forks source link

Order total discrepancy between manually created order and checkout #513

Open WillBrubaker opened 9 months ago

WillBrubaker commented 9 months ago

Describe the bug

A manually created order/subscription pair can generate a different amount at checkout vs. the order total saved.

To Reproduce

  1. Create a manual as admin
  2. On the order add a standard product with a discount
  3. On the order add a subscription product with a discount
  4. Leave status of product as Pending Payment
  5. Create a manual subscription as admin
  6. Link the subscription order to parent order in 1
  7. Add a subscription item and discount it
  8. Login as customer and go to orders and you will see it is reflected correctly
  9. Press the pay button and you will see that the amounts change

Expected behavior

For the totals to remain consistent throughout the flow.

Actual behavior

Totals are not consistent.

Product impact

Additional context

6850404-zen Atomic site, check order 14473

kjdEl8.png O1uSjb.png qEkE9m.png

imodouglas commented 9 months ago

Hi @WillBrubaker... I tested this but I was not able to replicate it: https://d.pr/i/cPSvan. I have reached out to the team to look into it.

Mayisha commented 9 months ago

I could somewhat reproduce this issue only in one scenario.

Now if we follow the rest of the steps from the description above and finally click the Pay button on the My account > Orders page, it will take us to the checkout page and there the individual product prices are the actual prices (which includes tax) making the total amount different from the total shown in the order page.

darrenwilliamsriot commented 8 months ago

It is disappointing to see this marked prioirty:low. This issue nearly cost us $10,000+ USD as the client payment was incorrect. It is 100% replicable in our environment.

james-allan commented 2 months ago

Adding an additional report of this issue https://github.com/Automattic/woocommerce-subscriptions-core/issues/601.