In the customer record, there will be the customer code and the customer name. While choosing the customer in the invoice record, usually the code will be populated.


But this is difficult to understand, so it will be easy to include the name along with this code.
For getting this Navigation: Setup>Company>Auto Generated Numbers.
Enable the checkbox of teh customer as shown in the image below.

Now, it is possible to get the name as we expected
