Enable grade penalty
Go to Grades > General settings in site administration
Enable Grade penalty (gradepenalty_enabled)
Go to Grades > Grade penalty > Manage penalty plugins in site administration
Click on 'toggle' button to enable 'Late submission penalties' plugin
Go to Grade penalties > Supported modules
Click to select "Assignment"
Save changes
Go to Grade penalties > Late submission penalties > Mange penalty rules:
Create some penalty rules
Create an assignment with penalty :
Create a test course
Create an assignment in the course:
Set due date to "Yesterday" / a date in the past
Make sure grade type is set to point
Enable "Grade penalties"
Enrol a student to the course
Login as the student
Add an submission
Log in as an teacher to mark the submission
Expected behavior: The grade in grade book is deducted according to the penalty rules (set up in set 4.1 - Enable grade penalty)
Go to "Grade history" report
Select the student, and click submit to view grade history of the user
Expected behavior: There are records from "gradepenalty" source, showing
Original grade: grade before applying penalty
Revised grade: grade after penalty is applied
Go to " Mange penalty rules " on Assignment navigation bar
Change penalty rules
Then click on "upgrade grades" button:
Expected: the adhoc task "recalculate_penalties" should run
The final grade of the student should be recalculated according to the new rules
Tasks
Penalty implementation
New penalty setting in assignment
Override penalty settings at course module context