Fix for sql error when retrieving inventory
Merge branch 'master' of https://github.com/phreebooks/PhreeBooksERP