fixed allocation function
Merge branch 'master' of https://github.com/emilmannfeldt/ERP-project
fixed allocaton function