If the invoices table has primary key invoice_id and the products table has primary key product_id, then you can create a table
CREATE TABLE invoice_products
(
invoice_id integer,
product_id integer,
product_count integer,
cost numeric(9,2),
);
For example. This will let you record any number of products along with an invoice, along with a count of how many products there were and the price (which can be per-product or a total)