adjust excel report format for more cleaner report rather than dumping raw data

This commit is contained in:
Alberto-Audrix committed 2026-09-03 09:55:30 +07:00
1 parent 41905078df
commit 5b74e0842c
2 files changed
+384 -83

No files matched your search

@@ -324,7 +324,9 @@ class Command(BaseCommand):
mort_today = MORTALITY[i]
mort_total_after = mort_total + mort_today
life = DOC_IN_COUNT - mort_total_after - harvest_total
life_pct = life / DOC_IN_COUNT * 100.0 if DOC_IN_COUNT else 0.0
# Liveability for EEF: birds still accounted for (DOC minus mortality),
# not remaining in-house stock (which drops during harvest).
life_pct = (DOC_IN_COUNT - mort_total_after) / DOC_IN_COUNT * 100.0 if DOC_IN_COUNT else 0.0
# Running averages: flock weight before the first harvest, then the
# harvest-weighted running mean carried forward on idle days.
if harvest_today: