show info, if scheckbuch is not yet paid
Some checks failed
CI/CD Pipeline / deploy-staging (push) Blocked by required conditions
CI/CD Pipeline / deploy-main (push) Blocked by required conditions
CI/CD Pipeline / test (push) Has been cancelled

This commit is contained in:
2024-05-16 21:28:36 +02:00
parent ebb4fe84bb
commit ca5a932ae5
3 changed files with 13 additions and 2 deletions

View File

@ -13,7 +13,7 @@ use crate::model::{
logbook::Logbook,
tripdetails::TripDetails,
triptype::TripType,
user::{AllowedForPlannedTripsUser, User, UserWithDetails},
user::{AllowedForPlannedTripsUser, User, UserWithDetails, SCHECKBUCH},
usertrip::{UserTrip, UserTripDeleteError, UserTripError},
};
@ -46,6 +46,7 @@ async fn index(
context.insert("fee", &user.fee(db).await);
context.insert("loggedin_user", &UserWithDetails::from_user(user, db).await);
context.insert("days", &days);
context.insert("costs_scheckbuch", &SCHECKBUCH);
Template::render("planned", context.into_json())
}