Clean up code. Select field by items list. Add date format in lettera generation.