The value of this new field should depend on whether trg_date_id is filled. If yes -> on_time, if no -> on_create_or_write.