Bugg fixes

Adding a new invoice resulted in an exception due to name of invoice not being set