So it turns out that if I remove price averaging from the sales/purchases department it creates enough noise to make the exponential forgetting useless in the kalman filter. I still need the moving average fix when it comes to inventory supply-chains though