auto seperates the material types on the invoice add and view