feat/financial-coherence #12

Merged
hume merged 3 commits from feat/financial-coherence into main 2026-08-25 13:32:11 +00:00
Owner
No description provided.
- Booking model: replace 'amount' with price_per_night, total_amount, net_revenue, tax_per_night, platform_fee
- Email import: parse price_per_night, total_amount, net_revenue (host payout), tax_per_night, platform_fee
- CSV/Excel import: compute price_per_night = total/nights, total_amount = Montant, net_revenue = Montant
- Financial dashboard: use net_revenue for revenue calculations, tax_per_night for tax calculations
- Contract generation: use booking.price_per_night, booking.tax_per_night (with fallback to OfficialData)
- Tests updated for all new fields
- Frontend builds successfully
- Property model: removed tax_per_day, deposit_amount, deposit_percentage, pet_policy, owner_name, owner_address, owner_phone, city (moved to OfficialData)
- Property keeps only: id, name, address, base_price, capacity, description
- Updated setup_prod_stack.py with actual prod data (2 properties: LPF 55€, Sorcha 75€; OfficialData: tax 1.10/1.21, deposit 30%, dog 50€)
- Updated setup_test_stack.py to match new model
- Fixed contract generation tests & exports.py (removed property.city reference)
- All 75 backend tests pass
- Frontend build passes
feat: Update property descriptions with full legal text
All checks were successful
Backend / backend (pull_request) Successful in 49s
Migration Test / migration-test (pull_request) Successful in 35s
083f483671
- LPF & Sorcha descriptions updated with full legal text (capacity, pre-info, PMR, pets)
- Updated setup_prod_stack.py, setup_test_stack.py, test_contract_generation.py
- All 75 tests pass
hume merged commit 7216484978 into main 2026-08-25 13:32:11 +00:00
hume deleted branch feat/financial-coherence 2026-08-25 13:32:12 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hume/sci-rental-manager!12
No description provided.