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); }