Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Top 5 Merchants By Revenue #74

Open
BrianZanti opened this issue Jan 4, 2021 · 0 comments
Open

Top 5 Merchants By Revenue #74

BrianZanti opened this issue Jan 4, 2021 · 0 comments

Comments

@BrianZanti
Copy link
Contributor

As an admin,
When I visit the admin merchants index
Then I see the names of the top 5 merchants by total revenue generated
And I see that each merchant name links to the admin merchant show page for that merchant
And I see the total revenue generated next to each merchant name

Notes on Revenue Calculation:

  • Only invoices with at least one successful transaction should count towards revenue
  • Revenue for an invoice should be calculated as the sum of the revenue of all invoice items
  • Revenue for an invoice item should be calculated as the invoice item unit price multiplied by the quantity (do not use the item unit price)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant