How rasool-muhiddin/pharmacy_app works
This repository contains a Django pharmacy-management backend alongside Flutter platform shells; the README does not document product features, and the Flutter application source is absent from the tree. The visible backend workflow is an authenticated client request handled by API views, which apply licensing and membership permissions and delegate pharmacy operations to domain modules backed by pharmacy records. Distinct capabilities include stock and purchasing, supplier accounting, reports, and offline-data import. The graph preserves these substantial backend modules; relationships are limited to those supported by sampled excerpts or the SOURCE INDEX.
Main entry points: views.py Pharmacy API · models.py Pharmacy records · stock.py Stock operations · supplier_ledger.py Supplier ledger
Components 13
API and access
- Pharmacy API
backend/pharmacy_data/views.py - Desktop API
backend/desktop_api/views.py - License permissions
backend/desktop_api/permissions.py - API serializers
backend/pharmacy_data/serializers.py
Pharmacy records
- License and membership
backend/desktop_api/models.py - Pharmacy records
backend/pharmacy_data/models.py
Business operations
- Stock operations
backend/pharmacy_data/stock.py - Purchase invoices
backend/pharmacy_data/purchase_list.py - Purchase returns
backend/pharmacy_data/purchase_returns.py - Supplier ledger
backend/pharmacy_data/supplier_ledger.py
Reporting and migration
- Business reports
backend/pharmacy_data/reports.py - Offline data import
backend/pharmacy_data/offline_import.py
Other components
- Pharmacy client
Connections 28
- Pharmacy client → Pharmacy API: sends requests
- Pharmacy API → License permissions: checks access
backend/pharmacy_data/views.py - Pharmacy API → Pharmacy records: queries records
backend/pharmacy_data/views.py - Pharmacy API → API serializers: uses serializers
backend/pharmacy_data/views.py - Pharmacy API → Stock operations: delegates stock
backend/pharmacy_data/views.py - Pharmacy API → Purchase invoices: delegates purchasing
backend/pharmacy_data/views.py - Pharmacy API → Purchase returns: delegates returns
backend/pharmacy_data/views.py - Pharmacy API → Supplier ledger: uses ledger
backend/pharmacy_data/views.py - Pharmacy API → Business reports: delegates reports
backend/pharmacy_data/views.py - Pharmacy API → Offline data import: delegates import
backend/pharmacy_data/views.py - License permissions → License and membership: checks license
backend/desktop_api/permissions.py - License and membership → License permissions: validates plan
backend/desktop_api/models.py - API serializers → Pharmacy records: serializes records
backend/pharmacy_data/serializers.py - Stock operations → Pharmacy records: updates stock
backend/pharmacy_data/stock.py - Purchase invoices → Stock operations: updates stock
backend/pharmacy_data/purchase_list.py - Purchase invoices → Supplier ledger: uses ledger
backend/pharmacy_data/purchase_list.py - Purchase invoices → Pharmacy records: reads and writes
backend/pharmacy_data/purchase_list.py - Purchase returns → Stock operations: restores stock
backend/pharmacy_data/purchase_returns.py - Purchase returns → Supplier ledger: adjusts ledger
backend/pharmacy_data/purchase_returns.py - Purchase returns → Pharmacy records: updates records
backend/pharmacy_data/purchase_returns.py - Supplier ledger → Stock operations: uses money helpers
backend/pharmacy_data/supplier_ledger.py - Supplier ledger → Pharmacy records: calculates balances
backend/pharmacy_data/supplier_ledger.py - Business reports → Stock operations: uses stock logic
backend/pharmacy_data/reports.py - Business reports → Supplier ledger: uses ledger figures
backend/pharmacy_data/reports.py - Business reports → Pharmacy records: queries records
backend/pharmacy_data/reports.py - Offline data import → License permissions: checks permissions
backend/pharmacy_data/offline_import.py - Offline data import → Stock operations: reconciles stock
backend/pharmacy_data/offline_import.py - Offline data import → Pharmacy records: imports records
backend/pharmacy_data/offline_import.py