How to convert package items to invoice in books

How to convert package items to invoice in books

Hi All,

In my sales order there are 45 line items. Out of 45 line items i have received 5 items in my stock.
That 5 items, i want to ship to my customer. I will create package of 5 items then i need to create invoice for 5 items.
To create invoice i need to search and remove other 40 items. Its very tedious task.

Let me know if any way to create invoice directly from packages.