Hello Fong,
If your data passes the integrity check, then it is impossible to have two orders or invoices with the same document number in OrderEntry.
If you are saying that an order was entered twice from the same purchase order received from your customer, then this is possible but the orders will have different numbers (as will the invoices). You can check for this condition in OrderEntry by an option in the company profile (System Options - Check for duplicate reference).
_________________________
Andrew Bates