How karthickkk1807/tetro_aditya works
Purpose and runtime
TetroONE is a server-rendered, modular business-management/ERP application covering sales, purchasing, inventory, production, finance, HR, CRM, assets, quality, and maintenance. It is an ASP.NET Core MVC solution, rooted at TetroONE.sln and hosted by TetroONE/Program.cs; project dependencies and target runtime are defined in TetroONE/TetroONE.csproj.
Application entry and request pipeline
TetroONE/Program.cs is the host/composition entry point. Requests are handled by MVC controllers and rendered as Razor views, with shared page structure in TetroONE/Views/Shared/_Layout.cshtml. Cross-cutting request logging is implemented through TetroONE/Extension/LoggerMiddleware.cs and Log4net integration/configuration in TetroONE/Extension/Log4netExtensions.cs and TetroONE/log4net.config.
MVC delivery boundary
Controllers are the primary HTTP/API boundary; they own module routing and coordinate responses. TetroONE/Controllers/BaseController.cs is the likely common controller abstraction, while domain controllers pair with Razor page areas, for example TetroONE/Controllers/InventoryController.cs ↔ TetroONE/Views/Inventory/ManageStock.cshtml, and TetroONE/Controllers/LoginController.cs ↔ TetroONE/Views/Login/Login.cshtml. Browser-side module behavior is delivered as static JavaScript under TetroONE/wwwroot/js/.
Core commercial flow
Sales and purchasing are represented as adjacent modules with document-oriented models and views: quotations/orders/invoices/returns on the sales side, and requests/orders/invoices/returns on the procurement side. Key boundaries are TetroONE/Controllers/TaxInvoiceController.cs, TetroONE/Models/Sale.cs, TetroONE/Controllers/PurchaseOrderController.cs, TetroONE/Models/PurchaseOrder.cs, and TetroONE/Controllers/PurchaseInvoiceController.cs. PDF-specific models such as TetroONE/Models/PDFTaxInvoice.cs and TetroONE/Models/PDFPurchaseOrder.cs indicate printable/export document representations.
Operations: inventory, production, quality, assets
Operational control flows connect stock management, production execution, quality checks, and asset tracking. Inventory is anchored by TetroONE/Controllers/InventoryController.cs and TetroONE/Models/Inventory.cs; production exposes plans, job orders, inward/outward, delivery, and targets through TetroONE/Controllers/ProductionsController.cs and TetroONE/Models/Productions.cs. Quality is a separate controller boundary in TetroONE/Controllers/QualityManagementController.cs; asset lifecycle operations—including QR generation, transfer, audit, and scrap—are concentrated in TetroONE/Controllers/AssetController.cs and TetroONE/Models/AssetManagement.cs.
Finance, people, and administration
Finance encompasses payments, expenses, general ledger, planning, and profitability via TetroONE/Controllers/PaymentController.cs, TetroONE/Controllers/GeneralLedgerController.cs, and TetroONE/Controllers/ProfitAnalysisController.cs. HR includes employee, attendance, payroll, leave, recruitment, and permissions, centered on TetroONE/Controllers/HumanResourceController.cs, TetroONE/Controllers/LeaveController.cs, and TetroONE/Models/HumanResource.cs. Authentication/profile/access administration has dedicated boundaries: TetroONE/Controllers/LoginController.cs, TetroONE/Controllers/UserAccessController.cs, and TetroONE/Controllers/PermissionController.cs.
Client, integrations, and infrastructure
The UI is Razor plus static CSS/JavaScript, including Bootstrap and jQuery dependencies under TetroONE/wwwroot/lib/bootstrap/ and TetroONE/wwwroot/lib/jquery/. The repository contains integrations/specialized device or communications entry points: TetroONE/WatsAppApi.cs, TetroONE/Biometric.cs, and TetroONE/Controllers/EPSONController.cs. Environment configuration is supplied through TetroONE/appsettings.json and TetroONE/appsettings.Development.json; specific backing datastore and external API contracts cannot be established from the supplied tree.
Main entry points: BaseController.cs MVC controllers · Program.cs Application host · PurchaseOrderController.cs Purchasing documents · InventoryController.cs Inventory management
Components 19
Host & cross-cutting
- Solution
TetroONE.sln - Application host
TetroONE/Program.cs - Project runtime
TetroONE/TetroONE.csproj - Request logging · Logger middleware with Log4net integration.
TetroONE/Extension/LoggerMiddleware.cs - Device integration · Specialized EPSON device entry point.
TetroONE/Controllers/EPSONController.cs
MVC delivery
- MVC controllers · Controllers route module requests and coordinate responses.
TetroONE/Controllers/BaseController.cs - Razor UI · Shared layout and module pages render controller responses.
TetroONE/Views/Shared/_Layout.cshtml - Browser behavior
Commercial operations
- Sales documents · Handles quotation, order, invoice, and return flows.
TetroONE/Controllers/TaxInvoiceController.cs - Sales model
TetroONE/Models/Sale.cs - Purchasing documents · Purchase orders and invoices drive procurement documents.
TetroONE/Controllers/PurchaseOrderController.cs - Purchase order model
TetroONE/Models/PurchaseOrder.cs
Operational control
- Inventory management
TetroONE/Controllers/InventoryController.cs - Production execution · Plans, job orders, movements, delivery, and targets.
TetroONE/Controllers/ProductionsController.cs - Quality management
TetroONE/Controllers/QualityManagementController.cs - Asset lifecycle · QR, transfer, audit, and scrap operations.
TetroONE/Controllers/AssetController.cs
Finance, people & access
- Authentication & access
TetroONE/Controllers/LoginController.cs - Finance · Payments, general ledger, and profit analysis.
TetroONE/Controllers/GeneralLedgerController.cs - Human resources · Employee, attendance, payroll, leave, and recruitment.
TetroONE/Controllers/HumanResourceController.cs
Connections 21
- Solution → Project runtime: contains
- Project runtime → Application host: builds
- Application host → Request logging: adds pipeline
- Application host → MVC controllers: maps MVC
- MVC controllers → Razor UI: renders
- Razor UI → Browser behavior: loads
- MVC controllers → Authentication & access: routes access
- MVC controllers → Sales documents: routes sales
- Sales documents → Sales model: uses
- MVC controllers → Purchasing documents: routes purchasing
- Purchasing documents → Purchase order model: uses
- MVC controllers → Inventory management: routes inventory
- MVC controllers → Production execution: routes production
- MVC controllers → Quality management: routes quality
- MVC controllers → Asset lifecycle: routes assets
- MVC controllers → Finance: routes finance
- MVC controllers → Human resources: routes HR
- Purchasing documents → Inventory management: procures stock
- Inventory management → Production execution: supplies movements
- Production execution → Quality management: subjects output to checks
- MVC controllers → Device integration: routes device actions