remove total_collected_money from bal accounting data
All checks were successful
/ test (push) Successful in 3m26s
All checks were successful
/ test (push) Successful in 3m26s
it's only supposed to be in bal stats
This commit is contained in:
parent
c201601e22
commit
44ba33035f
1 changed files with 0 additions and 3 deletions
|
|
@ -324,7 +324,6 @@ pub struct OwnerAccountingData {
|
||||||
pub struct BalAccounting {
|
pub struct BalAccounting {
|
||||||
pub owners: Vec<OwnerAccountingData>,
|
pub owners: Vec<OwnerAccountingData>,
|
||||||
pub book_map: HashMap<u32, book::Model>,
|
pub book_map: HashMap<u32, book::Model>,
|
||||||
pub total_collected_money: f32
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[axum::debug_handler]
|
#[axum::debug_handler]
|
||||||
|
|
@ -354,7 +353,6 @@ pub async fn get_bal_accounting(
|
||||||
let mut accounting_data = BalAccounting {
|
let mut accounting_data = BalAccounting {
|
||||||
owners: vec![],
|
owners: vec![],
|
||||||
book_map: HashMap::new(),
|
book_map: HashMap::new(),
|
||||||
total_collected_money: 0.
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let bal_owners = Owner::find()
|
let bal_owners = Owner::find()
|
||||||
|
|
@ -377,7 +375,6 @@ pub async fn get_bal_accounting(
|
||||||
None => owner_accounting_data.owed_books.push(book_instance),
|
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);
|
accounting_data.owners.push(owner_accounting_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue