From 44ba33035fc9d7ba04ddbe730d8f7a45578ac429 Mon Sep 17 00:00:00 2001 From: Ninjdai Date: Mon, 18 Aug 2025 17:56:00 +0200 Subject: [PATCH] remove total_collected_money from bal accounting data it's only supposed to be in bal stats --- src/routes/bal.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/routes/bal.rs b/src/routes/bal.rs index 671c261..19bf5c6 100644 --- a/src/routes/bal.rs +++ b/src/routes/bal.rs @@ -324,7 +324,6 @@ pub struct OwnerAccountingData { pub struct BalAccounting { pub owners: Vec, pub book_map: HashMap, - pub total_collected_money: f32 } #[axum::debug_handler] @@ -354,7 +353,6 @@ pub async fn get_bal_accounting( let mut accounting_data = BalAccounting { owners: vec![], book_map: HashMap::new(), - total_collected_money: 0. }; let bal_owners = Owner::find() @@ -377,7 +375,6 @@ pub async fn get_bal_accounting( None => owner_accounting_data.owed_books.push(book_instance), } } - accounting_data.total_collected_money += owner_accounting_data.owed_money; accounting_data.owners.push(owner_accounting_data); }