The system should not be able to assign the same document code to another document that is in the recycle bin. This happens when we delete the last document created.
The system should take into account the documents that are in the recycling bin to always assign one that is unique