show info, if scheckbuch is not yet paid
This commit is contained in:
@ -28,7 +28,7 @@ const STUDENT_OR_PUPIL: i32 = 8000;
|
||||
const REGULAR: i32 = 22000;
|
||||
const UNTERSTUETZEND: i32 = 2500;
|
||||
const FOERDERND: i32 = 8500;
|
||||
const SCHECKBUCH: i32 = 3000;
|
||||
pub const SCHECKBUCH: i32 = 3000;
|
||||
|
||||
#[derive(FromRow, Serialize, Deserialize, Clone, Debug, Eq, Hash, PartialEq)]
|
||||
pub struct User {
|
||||
|
@ -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())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user