feat: get_bareme par CV individuel, majoration électrique dans reports

This commit is contained in:
2026-03-11 20:06:54 +01:00
parent 0362836a63
commit 51673f4959
2 changed files with 10 additions and 7 deletions

View File

@@ -36,7 +36,8 @@ def index():
cv = vehicle.get("cv")
if cv:
tranches = get_bareme(year, cv)
frais_reels[vehicle_id] = round(compute_frais_reels(km, tranches), 2)
electric = vehicle.get("fuel") == "electric"
frais_reels[vehicle_id] = round(compute_frais_reels(km, tranches, electric=electric), 2)
return render_template(
"reports.html",