1af2a70406c41f0452e9045b2db599acb128a85c
Close the KS-2 -> KS-3 -> Payment -> allocation -> aggregates chain for V1. Two real defects fixed: - NaN/Infinity payment or allocation amounts raised InvalidOperation (500) or were silently stored; they are now finite-value validation errors (400) via _parse_money / is_finite checks. - Editing an allocation to the same KS-3 hit uq_payment_ks3 because clear() deferred the DELETE past the new INSERT; allocations are now updated in place. Financial semantics unchanged: full active payment counts as received, storno keeps historical allocations while excluding the payment from active aggregates. Decimal arithmetic preserved.
Work Volume Tracker
A simple local web application for tracking completed work volumes in projects.
Features
- Project management
- Excel import for BOQ (Bill of Quantities)
- Work item tracking with systems and sections
- SQLite database storage
Setup
- Create virtual environment:
python -m venv .venv
- Activate virtual environment:
- Linux/macOS:
source .venv/bin/activate
- Windows:
.venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Run the application:
uvicorn app.main:app --reload
- Access the application at http://localhost:8000
Project Structure
app/- Main application directorymain.py- FastAPI application entry pointmodels/- Database modelsrouters/- API routersdatabase/- Database connection and initializationtemplates/- HTML templatesstatic/- Static files (CSS, JS, images)utils/- Utility functionsimporter/- Excel import functionality
Description
Languages
Python
84.7%
HTML
15%
Batchfile
0.3%