feat: make it a table

This commit is contained in:
Julien Calixte
2026-01-02 01:08:42 +01:00
parent e187e70f61
commit e7ca5f469b
2 changed files with 77 additions and 35 deletions

View File

@@ -153,11 +153,6 @@ export const useHeijunkaStore = defineStore('heijunka', {
Math.ceil(state.meta.currentHour / NUMBER_OF_HOURS_PER_DAY),
gameEnded: (state) =>
state.meta.currentHour >= NUMBER_OF_DAYS * NUMBER_OF_HOURS_PER_DAY,
meanLeadTime: (state) =>
getMean(
state.orders
.filter((o) => o.status === 'received')
.map((o) => o.leadTime)
)
meanLeadTime: (state) => getMean(state.orders.map((o) => o.leadTime))
}
})