Fromm the dash board click on account settings

Select the preferences tab.

Enable the roll back feature and click on save.

Click on Leases from the dashboard.

Select the tenant.

Void the recently generated invoice

Please fill the comments and click on yes.

It will regenerate the invoice number again.