marthaegrimaldi / marthaegrimaldi/zomato-clone-app-source-code

Enatega Restaurant and Rider Application : The total amount is calculated incorrectly when more than one quantity of an item is added

Open
#642 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
The sub-total amount is calculated incorrectly when more than one quantity of an item is added. This leads to inaccurate totals, impacting the functionality of the application (e.g., shopping cart or order summary).
Also the Add-ons price is not adding up in subtotal amount.

To Reproduce
Steps to reproduce the behavior:

Go to 'Enatega Customer Application'
Now place an order from any restaurant.
Now add a single-product with 2 quantities , see error that the Total will be showing the price of just One quantity that is incorrect.

Expected behavior
The total should correctly multiply the price of an item by its quantity when more than one quantity is added.
The total amount displayed should match the expected result for all items in the cart or order.

Smartphone (please complete the following information):

Device: [e.g. Infinix Hot 50]
OS: [e.g. Android]
Browser [e.g. Application]
Version [e.g. Latest]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the Enatega Customer Application and reproduce the cart or order flow with one item at quantity two, then with add-ons. Trace where the subtotal and total are calculated; done means item quantities and add-on prices are included correctly in the displayed total.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.