gray-mueller / gray-mueller/restaurant-online-ordering-app-using-java

Negative Values Allowed in Discount, Tip, Price and Addons Fields

Open
#1,703 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Description:
During testing of the Enatega Multivendor Admin Dashboard, a critical issue was identified where fields such as discount, tip, price and addons allow the entry of negative values. This behavior is inconsistent with standard practices and poses a risk to accurate financial calculations, potentially leading to incorrect order totals and financial discrepancies.

Steps to Reproduce:
Log in to the Enatega Multivendor Admin Dashboard.
Navigate to sections where fields for discount, tip, price or addons are present.
Attempt to enter a negative value (e.g., "-10") in any of these fields.

Expected Behavior:
The application should restrict the entry of negative values in fields related to financial transactions, such as discount, tip, price and addons. An error message or validation prompt should be displayed, indicating that negative values are not allowed.

Actual Behavior:
The application allows the entry of negative values in fields such as discount, tip, price and addons without providing any error or validation message.

image

image

image

image

Activity

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.