reformatted code
Fixed a bug in get invoice
fixed another bug in invoice insert
fixed a bug in invoice insert
added alternative id in invoice
- Changed the id creation method for invoices- Fixed a bug in request id creation
added invoice handling code