gray-mueller / gray-mueller/food-ordering-app-using-python
Enatega Restaurant and Rider Application : The total amount is calculated incorrectly when more than one quantity of an item is added
- Lingua principale
- JavaScript
- Stelle
- 4
- Fork
- 3
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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]
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia nella Enatega Customer Application riproducendo il problema con un prodotto di quantità 2 e con gli extra, quindi segui il punto in cui vengono calcolati il subtotale e il totale del carrello. Il lavoro è completato quando il subtotale e il totale visualizzati includono il prezzo dell'articolo moltiplicato per la quantità e i prezzi degli extra per tutti gli articoli del carrello.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100