feat: get_bareme par CV individuel, majoration électrique dans reports
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user