Hi nima11
Select the cog/gear icon in the top right hand corner of the screen > Account and settings > Advanced >
Within the 'Other preferences section select 'Warn if duplicate bill number is used. We appreciate the wording states bill however does relate to invoices and bills.