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.

  1. 01

    What it is

    A web service with dashboards for money, stock and loyalty, drill-down reports and Excel exports.

  2. 02

    Who it's for

    Owners, managers and analysts of pharmacy chains.

  3. 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

  1. 01

    Data loading

    Daily import from the ERP and 1C.

  2. 02

    Key metrics

    Revenue, margin, receipt, EBITDA.

  3. 03

    Stock

    Balances, dead stock, expiry.

  4. 04

    Shortages

    Missing goods and lost revenue.

  5. 05

    Loyalty

    Cards, receipts and bonuses.

  6. 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.

01

Everything in one window

Money, stock, shortages and loyalty on one dashboard with filters by period, pharmacy and cluster.

02

Drill-down

Any figure opens a report: trend, a table by pharmacy, leaders and laggards.

03

Hands-free loading

Data is pulled from the ERP and 1C automatically, and the import log shows every error.

04

Tuned to the chain

Custom pharmacy clusters, shortage rules and exclusions — the chain tailors the analytics to itself.

Features

  1. Main dashboard

    Revenue, gross profit, margin, average receipt, revenue per pharmacy and per employee, EBITDA — with change versus the previous period and sparklines.

  2. Stock

    Stock value, expired goods, write-offs, turnover and dead stock split by days without sales.

  3. Shortages

    Products that were missing from the shelf several days in a row, with lost revenue estimated by the chosen formula.

  4. Loyalty program

    Active cards, revenue share from cardholders, average receipt with and without a card, bonuses earned and spent.

  5. 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 project

Technical 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

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. 1

    We reply within one business day

    If any details are missing, we'll clarify them in writing.

  2. 2

    We review the task

    If it helps, we'll have a short call at a time that suits you.

  3. 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

One way to reach you is enough: Telegram, email or phone.

PDF, DOC, XLS, PNG, JPG, ZIP — up to 10 MB

We usually reply within one business day.