Error when trying to delete a Company

Hi ,

I’m trying to delete a Company record in a multi-company setup but encountering the error below:

Cannot delete or cancel because Company ABC Limited is linked with Opening Invoice Creation Tool

Any suggestions on how to resolve this please?

ERPNext: v10.1.81

Kind regards,

By the way, I checked the Opening Invoice Creation Tool and noticed that the company in question is populated in the Company field by default (probably because it’s the first company I created). There is however no immediately apparent way to change this as the Tool does not appear in Customize Form

Thanks

I believe this is a bug. Kindly help fix urgently

https://github.com/frappe/erpnext/issues/17012

Thanks