How imroznet/ahmad-solution-erp works
This is Ahmad Solution Ltd.’s internal business-management system. Staff maintain company and party records, create and approve priced quotation revisions, then use accepted quotations to prepare delivery challans and commercial invoices; Mushak 6.3 tax documents and separate VDS/AIT records are handled as a distinct downstream capability. Controllers connect user actions to domain services and persistent models. The graph reflects README capabilities and source-index references; several service implementations and route details were not excerpted, so uncertain links are omitted.
Main entry points: QuotationController.php Quotation actions · MushakInvoiceController.php Mushak actions · Quotation.php Quotation record · ChallanController.php Challan actions
Components 23
Company and Parties
- Party actions
app/Http/Controllers/PartyController.php - Party records
app/Parties - Company profile and files
app/Http/Controllers/CompanyProfileController.php - Company documents
app/Company
Quotation Lifecycle
- Quotation actions
app/Http/Controllers/QuotationController.php - Quotation workflow
app/Quotations - Quotation pricing
app/Quotations/QuotationCalculator.php - Quotation state
app/Quotations/QuotationStatus.php - Quotation record
app/Models/Quotation.php - Revision record
app/Models/QuotationRevision.php - Quotation sharing
app/Quotations/QuotationShareService.php
Commercial Documents
- Challan actions
app/Http/Controllers/ChallanController.php - Challan workflow
app/Documents/ChallanWorkflow.php - Delivery challan
app/Models/DeliveryChallan.php - Invoice actions
app/Http/Controllers/InvoiceController.php - Invoice workflow
app/Documents/InvoiceWorkflow.php - Commercial invoice
app/Models/CommercialInvoice.php
Tax Documents
- Mushak actions
app/Http/Controllers/MushakInvoiceController.php - Mushak documents
app/Tax/MushakWriter.php - Tax calculations
app/Tax
Shared Application Services
- Audit logging
app/Services/AuditLogger.php - User and roles
app/Models/User.php
Other components
- Staff user
Connections 25
- Staff user → Quotation actions: manages offers
- Quotation actions → Quotation workflow: invokes workflow
app/Http/Controllers/QuotationController.php - Quotation actions → Quotation pricing: previews pricing
app/Http/Controllers/QuotationController.php - Quotation workflow → Quotation record: updates record
app/Quotations/QuotationShareService.php - Quotation record → Revision record: tracks revisions
app/Models/Quotation.php - Revision record → Quotation state: uses lifecycle
app/Models/QuotationRevision.php - Quotation actions → Party records: selects customer
app/Http/Controllers/QuotationController.php - Quotation actions → Audit logging: records events
app/Http/Controllers/QuotationController.php - Quotation sharing → Quotation record: accesses offer
app/Quotations/QuotationShareService.php - Staff user → Party actions: maintains parties
- Party actions → Party records: manages records
- Staff user → Company profile and files: maintains company
- Company profile and files → Company documents: manages documents
- Staff user → Challan actions: prepares delivery
- Challan actions → Challan workflow: invokes workflow
app/Http/Controllers/ChallanController.php - Challan actions → Quotation record: checks accepted offer
app/Http/Controllers/ChallanController.php - Challan workflow → Delivery challan: writes challan
- Staff user → Invoice actions: creates invoices
- Invoice actions → Invoice workflow: invokes workflow
app/Http/Controllers/InvoiceController.php - Invoice workflow → Commercial invoice: writes invoice
- Staff user → Mushak actions: creates tax forms
- Mushak actions → Mushak documents: writes Mushak
app/Http/Controllers/MushakInvoiceController.php - Mushak actions → Tax calculations: calculates VAT lines
app/Http/Controllers/MushakInvoiceController.php - Mushak actions → Commercial invoice: uses commercial invoice
app/Http/Controllers/MushakInvoiceController.php - Mushak actions → Audit logging: records events
app/Http/Controllers/MushakInvoiceController.php