POSTGRESQL - SUM of all orders with the same customer for a given month

You should use GROUP BY for your purposes.

SELECT customer, SUM(invoice_amount) as total_invoice_amount 
FROM your_table 
WHERE EXTRACT(MONTH FROM date) = 12 
GROUP BY customer