Updated invoices to handle shopping carts, pos and orders