How whiteblizzard9248/pharmacyerp works
Shsmg Pharma is a pharmacy ERP for managing customers, sales invoices, purchasing, inventory, payments and receipts, with authentication, licensing and PDF output. The principal workflow is recording a purchase invoice and updating stock, then creating a customer sales invoice and tracking its audit and balances. The tree and sampled services show application logic over a shared EF Core context, with infrastructure providing persistence and identity. README content is empty; some capabilities are represented by unsampled service paths, so their links are left unverified rather than inferred.
Main entry points: Program.cs Web application · InvoiceService.cs Sales invoicing · PharmacyDbContext.cs Pharmacy database · PurchaseInvoiceService.cs Purchase invoicing
Components 19
Application access
- Web application
Shsmg.Pharma.WebUI/Program.cs
Business workflows
- Authentication
Shsmg.Pharma.Application/Services/AuthService.cs - Customer management
Shsmg.Pharma.Application/Services/CustomerService.cs - Sales invoicing
Shsmg.Pharma.Application/Services/InvoiceService.cs - Purchase invoicing
Shsmg.Pharma.Application/Services/PurchaseInvoiceService.cs - Inventory management
Shsmg.Pharma.Application/Services/InventoryService.cs - Supplier management
Shsmg.Pharma.Application/Services/SupplierService.cs - Payments
Shsmg.Pharma.Application/Services/PaymentService.cs - Receipts
Shsmg.Pharma.Application/Services/ReceiptService.cs - Company management
Shsmg.Pharma.Application/Services/CompanyService.cs
Pharmacy domain
- Business entities
Shsmg.Pharma.Domain/Models - Customer aggregate
Shsmg.Pharma.Domain/Models/Customer.cs - Patient information
Shsmg.Pharma.Domain/Models/PatientInfo.cs
Infrastructure
- Identity service
Shsmg.Pharma.Infra/Auth/IdentityService.cs - Customer repository
Shsmg.Pharma.Infra/Persistence/CustomerRepository.cs - License validation
Shsmg.Pharma.Infra/Services/LicenseService.cs - PDF generation
Shsmg.Pharma.Infra/Services/PdfGeneratorService.cs - Pharmacy database
Shsmg.Pharma.Infra/Persistence/PharmacyDbContext.cs
Other components
- Pharmacy user
Connections 21
- Pharmacy user → Web application: uses
- Web application → Authentication: dispatches to
- Web application → Customer management: dispatches to
- Web application → Sales invoicing: dispatches to
- Web application → Purchase invoicing: dispatches to
- Web application → License validation: checks license
Shsmg.Pharma.WebUI/Program.cs - Authentication → Identity service: delegates login
Shsmg.Pharma.Application/Services/AuthService.cs - Customer management → Customer repository: queries and saves
Shsmg.Pharma.Application/Services/CustomerService.cs - Customer repository → Pharmacy database: reads and writes
Shsmg.Pharma.Infra/Persistence/CustomerRepository.cs - Sales invoicing → Pharmacy database: reads and writes
Shsmg.Pharma.Application/Services/InvoiceService.cs - Purchase invoicing → Pharmacy database: reads and writes
Shsmg.Pharma.Application/Services/PurchaseInvoiceService.cs - Purchase invoicing → Inventory management: updates stock
- Sales invoicing → Customer management: checks customer
Shsmg.Pharma.Application/Services/InvoiceService.cs - Sales invoicing → PDF generation: generates document
- Sales invoicing → Payments: tracks payments
- Payments → Receipts: records receipts
- Company management → License validation: license association
- Identity service → Pharmacy database: uses identity store
- Pharmacy database → Business entities: persists entities
Shsmg.Pharma.Infra/Persistence/PharmacyDbContext.cs - Customer aggregate → Patient information: holds details
Shsmg.Pharma.Domain/Models/Customer.cs - Business entities → Customer aggregate: includes customer
Shsmg.Pharma.Domain/Models/Customer.cs