In short: Select End Task when the work is finished. This records the Actual End Date and marks the task Completed.
Steps
Open Activity Schedule and find the in-progress task.
Select End Task.
Confirm the task status changes to Completed.
Note: Completed tasks with actual dates or evidence should not be reset silently. If you end a task by mistake, raise a correction rather than reversing it yourself.