improve implementation of DOS as invoice date and make it active by default