prune: remove the validation planninf. Just go and it'll be ok

This commit is contained in:
Julien Calixte
2026-01-02 18:39:57 +01:00
parent 31a2743267
commit 0b686c48e5

View File

@@ -24,7 +24,6 @@ type HeijunkaState = {
inventory: Inventory
orders: Order[]
planning: ProductType[]
validatedPlanning: boolean
meta: {
currentHour: number
}
@@ -58,7 +57,6 @@ export const useHeijunkaStore = defineStore('heijunka', {
inventory: { ...initialInventory },
orders: [],
planning: [],
validatedPlanning: false,
meta: {
currentHour: 0
}
@@ -136,12 +134,7 @@ export const useHeijunkaStore = defineStore('heijunka', {
}
})
},
validatePlanning(planning: ProductType[]) {
this.validatedPlanning = true
this.planning = planning
},
reset() {
this.validatedPlanning = false
this.meta.currentHour = 0
this.planning = []
this.orders = []