Skip to main content

Control Center (dashboard): test plan

For: testers, on the QA server before release. What to check on the Control Center (Dashboard › Insights) so that every figure is right, belongs to the right branch and day, and is shown only to the roles allowed to see it.

What is on the page

Block Shows Who sees it (privilege) Kept for
Headline: Sales, Profit, Money owed, Cash Sales and Profit for the period against the period before; Money owed and Cash as they are now Dashboard › Insights. Profit also needs Account › Profit & Loss 5 min
Needs you today Late customer bills, late supplier bills, supplier bills due soon, bills with no cost Reports › Ageing report 1 min
Needs you today: batch rows Expired batches, batches expiring within 30 days Reports › Stock report 1 min
Sales chart Sales per hour / day / week / month, dotted line = average of the period before Dashboard › Insights 5 min
Top products 5 best sellers by value in the period Reports › Product sale report 5 min
Recent bills and "Today so far" Last 8 bills, returns and payments; today's total Sales › Sale list Never kept, re-read every 20 s

"Kept for" is how long a figure may be reused without reading the database again. Saving a sale, purchase, expense, payment, return or adjustment clears it for that branch at once.

Set up once

You need Why
Branch A and B. User Owner (all privileges, both branches), user Cashier (Insights and Sale list only, branch A), user NoDash (no Insights) Privilege and branch checks
A shop whose time zone is Asia/Kolkata Day-boundary checks
At A: a customer C1, a supplier S1, products P1, P2 (with purchase price) and P3 (no purchase price) Figures and the cost warning
A product with batches: one batch already expired, one expiring in 10 days, both with stock Batch rows
A calculator or a sheet with every bill you make, net of GST To check the totals

Start each section from a known state: write down Sales, Money owed and Cash before you begin, and check the change, not the total.

Headline numbers

# Check Steps Pass when
1 Sales is net of GST At A, Today: sell 1 × P1 at ₹118 incl. 18% GST Sales goes up by ₹100, not ₹118
2 Shows at once Make the sale in check 1, go back to the page The new figure shows without waiting 5 minutes
3 Comparison Today at 11:00 The % compares with yesterday from 00:00 to 11:00, not all of yesterday
4 Profit Owner, Today: sell P1 with purchase price ₹60 ex GST Profit goes up by ₹40 (100 − 60)
5 Cost warning Sell P3 (no purchase price) worth more than 2% of today's sales Profit tile shows "N bills have no cost recorded, so this reads high"
6 No warning when small Sales of P3 under 2% of the period's sales No warning on the Profit tile (the row still shows in Needs you today, check 12)
7 Money owed Credit sale to C1 of ₹500, due date yesterday Money owed up by ₹500, "of it is late" up by ₹500
8 Cash Cash sale of ₹200 Cash up by ₹200. Cash has no % comparison
9 To pay suppliers Credit purchase from S1 of ₹1,000 The line under Cash, "to pay suppliers", up by ₹1,000
10 Cancelled sale Cancel the sale from check 1 Sales and Profit go back down

Needs you today

# Check Steps Pass when
11 Late bills The credit sale from check 7 Row "1 bill is past its due date" with ₹500. See them opens the ageing report showing the same ₹500
12 Bills with no cost The P3 sale from check 5 Row "1 bill has no cost recorded". Check them opens the sale list
13 Supplier late / due soon Purchase from S1 due yesterday, another due in 3 days "…supplier bill is already late" and "…supplier bill is due this week". Plan it opens purchase payments. "Due soon" follows the shop's due-soon days setting
14 Order Have rows from 11 to 13 Late rows (red) above due-soon rows (amber). Within each colour, the bigger amount first
15 One and many 1 late bill, then 2 "1 bill is…" then "2 bills are…"
16 Paid clears it Receive the ₹500 from C1 Row is gone within a minute, at once after the payment saves
17 Batches The two batches from set-up "1 batch has expired with stock left" (red) and "1 batch expires within 30 days" (amber). See them opens the batch expiry report
18 Nothing to do Branch with nothing late "Nothing needs you today."

Sales chart and top products

# Check Pass when
19 Today One bar per hour from midnight, labelled 9 am, 10 am…
20 7 days / 30 days One bar per day, labelled 5 Nov
21 1 year One bar per month, labelled Nov
22 Day with no sales Shows as a zero bar, not missing
23 Custom range 1–2 days: hourly bars. Up to 62 days: daily. Up to a year: weekly (each starts on a Monday). Longer: monthly
24 Dotted line Equals the previous period's sales divided by the number of bars
25 Top products At most 5, ordered by value, values match the product sale report for the same dates and branch

Period and dates

# Check Steps Pass when
26 Default Open the page 30 days is selected
27 Late night sale Developer sets the QA clock or a sale is made between 00:00 and 05:30 IST Counted under today, not yesterday
28 Midnight A sale at exactly 00:00:00 Counted in the new day only, never in both
29 Custom, both days count Custom 1 Nov to 3 Nov Includes all of 3 Nov. Totals match the sales report for 1–3 Nov
30 Wrong order From 5 Nov, To 1 Nov "The second date has to be on or after the first." Nothing is loaded
31 Too long Custom range over 5 years Refused: "A custom period may span at most 5 years."
32 Same figures as reports For a period, compare with the sales report Sales on the page = sales report total less GST, same branch, same dates

Branches and privileges

# Check Steps Pass when
33 Only the chosen branch Owner switches A → B Every block changes. No B figure shows A's sales
34 Not your branch Cashier (A only) sends a request for B (developer, from the browser's network tab) Refused. No figures for B
35 Several branches, none chosen User with A and B, no branch selected "No branch was supplied… Select a branch and try again."
36 No privilege NoDash opens /dashboard/insights Cannot open the page
37 Cashier view Cashier opens the page Three headline tiles, no Profit tile, no gap where it was. No Needs you today, no Top products (blocks simply absent, no "hidden" message)
38 Typed request Developer sends all six blocks as Cashier The blocks Cashier may not see come back hidden, the rest ok. No Profit figure in the reply
39 No mix-up between users Owner loads the page, then Cashier loads it within 5 minutes on the same branch Cashier never sees Owner's Profit (each user has their own kept figures)
40 No mix-up between shops Two shops (tenants) on the QA server Each shows its own figures only

Live updates and failures

# Check Steps Pass when
41 Recent bills update Page open, make a sale on another PC It appears in Recent bills within 20 seconds without a refresh. "Today so far" goes up
42 Background tab Switch to another tab for a minute No requests while hidden (browser network tab). Updates again when you come back
43 Refresh button Click the refresh icon Every block reloads. "as of" time changes
44 "as of" time Load, wait 2 min, load again "as of" shows the time of the oldest figure on the page, never newer than it is
45 One block fails Developer breaks one block (for example stops the account schema read) That block: "Could not load this. The rest of the screen is fine." with Try again. Others show normally
46 Try again Fix the cause, click Try again Only that block reloads and shows its figures
47 Slow server Developer delays the reply over 30 seconds Blocks show the failure with Try again, not an endless loading bar
48 New menu New bill and its arrow menu Each item opens its screen: Payment received, Quotation, Purchase, Sales return, Customer, Product, Expense

After every check

  • No error text, blank tile or loading bar that never ends.
  • The sentence at the top ("You sold … in the last 30 days") agrees with the tiles under it.
  • A wrong figure: note the branch, period, user and the time on the "as of" line, so a developer can find it in the log.