In SO, you can use the same invoice number for a customer as long as the invoice 'type' is different (IN, CM, DM). Other than that, you should not be able to use the same invoice number for the same customer. In AR you can, but it will show as an Adjustment.