Files
tilbudgivern/tests/test_data.json
alexpolo1 26d3452d59 Add comprehensive tests for API verification, frontend integration, and PDF generation
- Implemented a new test suite for production API verification using curl, ensuring all critical endpoints respond correctly and return valid JSON.
- Added frontend integration tests to check for critical errors in the UI and verify key UI elements are present and functional.
- Created test data for quotes and project calculations to facilitate testing.
- Developed a script to check offers in the Ordrestyring system, including detailed task descriptions.
- Added tests for generating PDFs from quote data, ensuring the output is valid and contains expected information.
- Implemented a test script for the Røsevangen project, integrating with the Ordrestyring API and verifying database entries.
2025-11-07 08:02:07 +00:00

52 lines
1.2 KiB
JSON

{
"quote_number": "TG-20251031-TEST",
"project": {
"customer_name": "Test Kunde A/S",
"customer_address": "Testvej 123, 4000 Roskilde",
"project_description": "udskiftning af tag på enfamiliehus"
},
"geometry": {
"total_area": 105.0,
"roof_type": "Komplet tagudskiftning med B7 eternit",
"roof_pitch": 35
},
"labor": {
"total_work_hours": 85.5,
"carpenter_count": 2,
"hourly_rate": 580.0
},
"materials": [
{
"material_category": "Eternit B7 tagplader 920x1320mm",
"quantity": 223,
"total_price": 54635.0
},
{
"material_category": "Lindab Rainline tagrende 125mm",
"quantity": 14,
"total_price": 3430.0
},
{
"material_category": "Trykimprægnerede lægter 30x50mm",
"quantity": 228,
"total_price": 4218.0
},
{
"material_category": "Eternit rygning inkl. elementer",
"quantity": 12,
"total_price": 2040.0
},
{
"material_category": "Lindab nedløb komplet system",
"quantity": 4,
"total_price": 2180.0
}
],
"calculation": {
"total_labor_cost": 49590.0,
"total_material_cost": 66503.0,
"overhead_percentage": 15.0,
"profit_percentage": 20.0,
"vat_percentage": 25.0
}
}