adjust ai insight and seed data
This commit is contained in:
1 parent
68e0d1a0bb
commit
a2b5b10977
18 files changed
+1835
-140
No files matched your search
@@ -105,7 +105,10 @@ export function buildInMemoryReport(input: BuildInMemoryReportInput): DashboardR
|
||||
const mati = mortality ?? 0;
|
||||
const panen = harvest ?? 0;
|
||||
const countBefore = day === 0 ? cycle.doc_in_count || 0 : (previousStockAkhir ?? 0);
|
||||
const countAfter = kpi?.chicken_life ?? Math.max(0, countBefore - mati - panen);
|
||||
const countAfter =
|
||||
kpi != null
|
||||
? Math.max(0, kpi.chicken_life - (kpi.harvest_total ?? 0))
|
||||
: Math.max(0, countBefore - mati - panen);
|
||||
previousStockAkhir = countAfter;
|
||||
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user