fixed adding materials for invoice