new query for supplier to get invoice table