hotwax / preorder

HotWax Commerce Pre-Order App
https://preorder.hotwax.io
Apache License 2.0
15 stars 45 forks source link

Incorrect Calculation of Total PO Items in the Purchase Order Card #149

Closed Dhiraj1405 closed 1 year ago

Dhiraj1405 commented 1 year ago

Current behavior

The Total PO items displayed in the Purchase Order card includes both Sales orders and Purchase orders, resulting in an incorrect net total.

Expected behavior

The Total PO items should only take into account the Purchase Orders where the item is available, excluding Sales orders.

Steps to reproduce the issue

  1. Go the Catalog Product detail page using the provided link: Catalog product details page.
  2. Observe the Total items displayed in the Purchase Order card.

By following these steps, you will notice that the Total PO items shown in the Purchase Order card includes both Sales orders and Purchase orders. This results in an incorrect net total.

Can you handle fixing this bug by yourself?

Environment details

Additional information

Screenshot 2023-06-27 at 11 53 14 AM