beckn / beckn-ui-workspace

Mono Repo for Beckn UI Workspace
9 stars 13 forks source link

Climate apps - Incorrect total on billing page when multiple items are added to the cart and init is already called #2565

Open omkar-em opened 3 days ago

omkar-em commented 3 days ago

Bug Description

In the Climate Apps application, when multiple items are added to the cart and the initialization (init) process has already been called, the total on the billing page is incorrect. This leads to discrepancies in the total price at checkout.

Steps to Reproduce

  1. Add multiple items to the cart in the Climate Apps application.
  2. Ensure that the init process has already been called.
  3. Navigate to the billing page.
  4. Observe that the total price displayed on the billing page is incorrect.

Expected Behavior

The total price on the billing page should correctly reflect the sum of all items in the cart, even if the init process has already been called.

Actual Behavior

The total price on the billing page is incorrect when multiple items are added to the cart and init is already called.

Figma

NA

Environment

Screenshots/Logs

Image

aniketceminds commented 2 days ago

@omkar-em Here we need to add billing details again to call the /init api for re-calculation of amount. This behaviour is applicable to all other apps as well currently.

cc @emmayank @viraj89

aniketceminds commented 2 days ago

Image