Some minor refactoring
Merge branch 'master' of https://github.com/dservgun/erp