- Home
- Case studies
- BI dashboards of sales and stock
BI dashboards of sales and stock for a pharmacy chain
We built a BI service for pharmacy chains. Every night it pulls exports from the chain's ERP and 1C on its own, and in the morning managers see revenue, margin, stock, dead stock and lost sales — for the whole chain, by cluster and for each pharmacy.
Web apps · Analytics
The project in brief
A service that collects a pharmacy chain's data every day and shows where it makes money and where it loses it.
- 01
What it is
A web service with dashboards for money, stock and loyalty, drill-down reports and Excel exports.
- 02
Who it's for
Owners, managers and analysts of pharmacy chains.
- 03
What it solves
Brings data from several systems into one window and answers a manager's questions in seconds, without manual pivot tables.
The client's problem
The chain's sales, stock and expense data were scattered across different systems. To answer a simple question — how much a pharmacy earned or which products are missing from the shelf — analysts had to merge exports in spreadsheets by hand.
Data in pieces
Sales, stock, finance and customer refusals lived in different systems and files.
Slow reports
Chain-wide summaries took hours to build and went stale quickly.
Lost revenue
It was hard to see which products were missing from the shelf and how much that cost.
Dead stock
Slow-moving and expired goods froze money but surfaced too late.
The chain needed a service that collects data on its own every day and answers a manager's questions in seconds.
The task
- 01
Data loading
Daily import from the ERP and 1C.
- 02
Key metrics
Revenue, margin, receipt, EBITDA.
- 03
Stock
Balances, dead stock, expiry.
- 04
Shortages
Missing goods and lost revenue.
- 05
Loyalty
Cards, receipts and bonuses.
- 06
Access
Each chain sees only its own data.
Reports had to build fast over millions of receipt lines and still match the ERP to the cent.
Solution
We designed and built a service that loads the chain's data automatically every night and lays it out in clear dashboards. A manager picks a period and pharmacies and immediately sees the key figures, trends and problem spots.
Everything in one window
Money, stock, shortages and loyalty on one dashboard with filters by period, pharmacy and cluster.
Drill-down
Any figure opens a report: trend, a table by pharmacy, leaders and laggards.
Hands-free loading
Data is pulled from the ERP and 1C automatically, and the import log shows every error.
Tuned to the chain
Custom pharmacy clusters, shortage rules and exclusions — the chain tailors the analytics to itself.
Features
Main dashboard
Revenue, gross profit, margin, average receipt, revenue per pharmacy and per employee, EBITDA — with change versus the previous period and sparklines.
Stock
Stock value, expired goods, write-offs, turnover and dead stock split by days without sales.
Shortages
Products that were missing from the shelf several days in a row, with lost revenue estimated by the chosen formula.
Loyalty program
Active cards, revenue share from cardholders, average receipt with and without a card, bonuses earned and spent.
Drill-down and exports
From any figure to a report: daily trend, leaders and laggards, a table by pharmacy and cluster. The whole dashboard or any report exports to Excel or CSV.
Have a similar task?
Tell us what your project needs. Within one business day we'll reply, review the task for free and suggest an architecture, timeline and budget.
Discuss your projectTechnical implementation
The backend runs on Symfony, the interface on Vue 3. Reference data lives in PostgreSQL, and millions of sales and stock rows in the ClickHouse analytical database.
Fast analytics
Pre-computed aggregates: the service picks where to read from on its own, and chain-wide reports build in seconds.
Accurate data
Reloading never creates duplicates, money is counted without rounding, and daily stock is rebuilt from goods movements.
- Backend
- PHPSymfony
- Interface
- Vue 3TypeScriptChart.js
- Data
- PostgreSQLClickHouse
- Infrastructure
- DockerGitLab CI
This stack keeps up as data grows and lets new chains connect without reworking the service.
Result
Every morning managers see fresh figures for all pharmacies in one window instead of waiting for analysts' summaries. The service shows where revenue is lost and money is frozen, and helps make data-driven decisions.
- window for the whole chain's sales, stock and loyalty
- 1
- manual summaries — data loads itself every day
- 0
- of the chain's pharmacies in one report, down to each one
- 100%
- access to up-to-date analytics in the browser
- 24/7
Services behind this project
What these services include and what else we have built in them.
Business apps from scratch
Internal systems, customer portals, CRMs, dashboards and services built around your business logic — from spec to launch.
More about this serviceSystem integrations
We connect CRMs, accounting systems, payment services and third-party APIs so data never has to be moved by hand.
More about this service
Tell us about your task
Describe what you need to build, automate or integrate — we reply within one business day and propose a solution. The review is free.
What happens next
- 1
We reply within one business day
If any details are missing, we'll clarify them in writing.
- 2
We review the task
If it helps, we'll have a short call at a time that suits you.
- 3
You get an estimate
Timeline, budget and a work plan — free, no strings attached. Then we work under a contract.
Prefer email? Write to sales@shefcode.tech
Request sent
Thank you! I will get back to you within one business day with a solution.


