fixes for gl entries in purchase invoice