Margaret-Petersen / Margaret-Petersen/uber-eats-clone-android

“Total Stores Earnings” Displaying Negative Values in Admin Panel

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

Nobody has claimed this yet.

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

Description

Describe the bug
The “Total Stores Earnings” metric in the admin dashboard is showing negative values, which is incorrect. This value should reflect the total amount earned by all stores and should not drop below zero under normal circumstances.

To Reproduce
Steps to reproduce the behavior:

Log in to the admin panel
Navigate to the dashboard or analytics section
Check the value under “Total Stores Earnings”
Observe that it is displaying a negative number
Expected behavior
The "Total Stores Earnings" should always represent the correct positive total of what stores have earned. Negative earnings are illogical and suggest a calculation or data syncing issue.

Screenshots

Image

Desktop (please complete the following information):

OS: Windows 11

Browser: Chrome

Version: [e.g., 123.0.6312.86]

Additional context
This may be caused by incorrect financial calculations, returns/refunds not handled properly in reporting, or a data mismatch between store orders and commissions. Needs urgent review to maintain financial data integrity.

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 by reproducing the negative value in the admin panel's dashboard or analytics section. Trace the Total Stores Earnings calculation and compare it with store orders, commissions, returns, and refunds to identify the data mismatch. Done means the metric reports the correct total and does not become negative under normal circumstances.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
analytics, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.