@fambi - I’m assuming you’re trying to do this with a large number of clients in one go? If so, I think you’re going to be better off importing your invoices from a CSV file rather than entering them manually.
There’s a guide on this, here: Importing sales and purchase invoices