When we enter invoices or purchases, even though i have the warn if duplicate number is ticked for both sales and invoices and the invoice number is set to Auto. the system seems to duplicate the order number or invoice number. i have included some examples below
Purchases:

Sales:

Does anyone have any ideas as to why this happens?