fix: 平衡归属工时班次汇总
This commit is contained in:
@@ -329,6 +329,15 @@ def test_item_totals_anchor_to_metrics_when_unmatched_remaining_buckets_exceed_i
|
||||
2: 360,
|
||||
3: 60,
|
||||
}
|
||||
assert {
|
||||
"day": round(sum(row.day_minutes for row in rows), 2),
|
||||
"overtime": round(sum(row.overtime_minutes for row in rows), 2),
|
||||
"night": round(sum(row.night_minutes for row in rows), 2),
|
||||
} == {
|
||||
"day": metrics["shift_day_minutes"],
|
||||
"overtime": metrics["shift_overtime_minutes"],
|
||||
"night": metrics["shift_night_minutes"],
|
||||
}
|
||||
assert round(sum(row.effective_minutes for row in rows), 2) == 660
|
||||
assert all(row.effective_minutes == row.day_minutes + row.overtime_minutes + row.night_minutes for row in rows)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user