Stop needlessly outputting 0 value allocation amounts
This commit is contained in:
@@ -704,6 +704,7 @@ fn solve_reciprocal_no_from(
|
||||
// cost.value / new_cost * diff
|
||||
// },
|
||||
})
|
||||
.filter(|cost| cost.value != 0_f64)
|
||||
.collect(),
|
||||
}
|
||||
})
|
||||
@@ -749,6 +750,7 @@ fn solve_reciprocal_with_from<T: ReciprocalAllocationSolver + Sync + Send>(
|
||||
value: value,
|
||||
from_cost_centre: department.clone(),
|
||||
})
|
||||
.filter(|cost| cost.value != 0_f64)
|
||||
.collect::<Vec<MovedAmount>>()
|
||||
})
|
||||
.collect();
|
||||
|
||||
Reference in New Issue
Block a user