Checking sale invoice number duplicates

Is there any control in D365 that no duplicated customer invoices numbers are being created? If so, where can it be found? As I understand Invoices can be created and posted via General Journals and via Customer invoices. Plus invoices into both can be imported.