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