Skip to content

Commit

Permalink
Add default Officer Overtime value (#1083)
Browse files Browse the repository at this point in the history
## Fixes issue
#856 

## Description of Changes
Adds default of $0 in officer "Overtime Pay" field. Users don't have to
fill this in if they don't have any overtime pay information and use the
form faster!

## Testing and Linting
 - [x] This branch is up-to-date with the `develop` branch.
 - [x] `pytest` passes on my local development environment.
 - [x] `pre-commit` passes on my local development environment.
  • Loading branch information
Spraynard authored Jan 3, 2024
1 parent 9372411 commit 81e228a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OpenOversight/app/main/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ class SalaryForm(Form):
"Salary", validators=[NumberRange(min=0, max=1000000), validate_money]
)
overtime_pay = DecimalField(
"Overtime Pay", validators=[NumberRange(min=0, max=1000000), validate_money]
"Overtime Pay",
default=0,
validators=[NumberRange(min=0, max=1000000), validate_money],
)
year = IntegerField(
"Year",
Expand Down

0 comments on commit 81e228a

Please sign in to comment.