Iplemented invoice creation