How pavithrankumaravel/kv-reports works
This Django application provides stock and owner-hand inventory reports for GPC, GSN, and TKG, plus combined owner-hand reports. The workflow is a browser request routed to a division’s report view, which queries SQL Server, applies report-specific filtering and weight rounding, and renders a report. The excerpts show these report and calculation paths, but not the project-level URL wiring or templates; links from an external browser are therefore marked unverified.
Main entry points: kvGPCApp/views.py GPC stock reports · kvGSNApp/views.py GSN stock reports · kvTKGApp/views.py TKG stock reports · kvReportsApp/views.py Combined owner reports
Components 13
Request routing
- GPC routes
kvGPCApp/urls.py - GSN routes
kvGSNApp/urls.py - TKG routes
kvTKGApp/urls.py
Division reports
- GPC stock reports
kvGPCApp/views.py - GSN stock reports
kvGSNApp/views.py - TKG stock reports
kvTKGApp/views.py
Combined reports
- Combined owner reports
kvReportsApp/views.py
Report calculations
- GPC weight rounding
kvGPCApp/getFunction.py - GSN weight rounding
kvGSNApp/getFunction.py - TKG weight rounding
kvTKGApp/getFunction.py - Shared report calculations
kvReportsApp/getFunction.py
Other components
- Browser user
- SQL Server stock data
Connections 14
- Browser user → GPC routes: requests reports
- Browser user → GSN routes: requests reports
- Browser user → TKG routes: requests reports
- GPC routes → GPC stock reports: routes to
kvGPCApp/urls.py - GSN routes → GSN stock reports: routes to
kvGSNApp/urls.py - TKG routes → TKG stock reports: routes to
kvTKGApp/urls.py - GPC stock reports → GPC weight rounding: rounds weights
kvGPCApp/views.py - GSN stock reports → GSN weight rounding: rounds weights
kvGSNApp/views.py - TKG stock reports → TKG weight rounding: rounds weights
kvTKGApp/views.py - Combined owner reports → Shared report calculations: rounds weights
kvReportsApp/views.py - GPC stock reports → SQL Server stock data: queries stock
kvGPCApp/views.py - GSN stock reports → SQL Server stock data: queries stock
kvGSNApp/views.py - TKG stock reports → SQL Server stock data: queries stock
kvTKGApp/views.py - Combined owner reports → SQL Server stock data: queries GPC and TKG
kvReportsApp/views.py