From c87baaed0742e01874942b16c2d9f7ca27d9efd5 Mon Sep 17 00:00:00 2001 From: philipp Date: Fri, 25 Oct 2024 18:31:43 +0200 Subject: [PATCH] add new halfprice for racerowing --- src/model/user.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/model/user.rs b/src/model/user.rs index 466b5ea..a50287d 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -378,7 +378,11 @@ ASKÖ Ruderverein Donau Linz", self.name), return fee; } if self.has_role(db, "Rennrudern").await { - fee.add("Rennruderbeitrag".into(), RENNRUDERBEITRAG); + if self.has_role(db, "half-rennrudern").await { + fee.add("Rennruderbeitrag (1/2 Preis) ".into(), RENNRUDERBEITRAG / 2); + } else { + fee.add("Rennruderbeitrag".into(), RENNRUDERBEITRAG); + } } let amount_boats = self.amount_boats(db).await;