Dian Brata Medika.
A drug-inventory system for an independent pharmacy — built so stock rotates itself, oldest and nearest-expiry first.
- Back End Developer
- ROLE
- Apotek Dian Brata Medika, Purbalingga
- CLIENT
- Jan — Jun 2025
- PERIOD
- Web · VPS
- PLATFORM
Medicines were tracked by hand, so expired batches stayed on the shelf and stock counts drifted. The pharmacy needed stock that knows which batch must leave first.
The system covers the pharmacy workflow end to end: product and batch management, FIFO and FEFO stock rotation, expiry control, batch-level sales transactions, user management and a public landing page. The system is registered as copyright (HKI).
What it does
- 01
Dashboard
Stock, sales and expiry at a glance.
- 02
Product & Batch Management
Every medicine tracked per batch, with its own quantity and expiry date.
- 03
FIFO Rotation
The oldest stock is always dispensed first.
- 04
FEFO Expiry Control
Batches closest to expiry leave the shelf before the rest.
- 05
Batch Transactions
Sales deduct stock across batches in one safe transaction.
- 06
User Management
Manage staff accounts and their access.
- 07
Landing Page
A public page introducing the pharmacy and its services.
Under the hood
+ FEFO stock algorithms
Two rotation rules combined: first-in-first-out for stock age, first-expired-first-out for medicine safety.
Prisma database transactions
Batch medicine transactions run inside Prisma transactions, so partial updates never reach the database.
Registered copyright
The system is officially registered as intellectual property with DJKI.
Self-managed deployment
Deployed and maintained on a VPS in production.



