Fixed bug #846: Create a supplier invoice (without project)

You'll see some changes that I really didn't do because of incorrect ending line characters