Skip to content

Commit

Permalink
Update payroll test data and add grade test data
Browse files Browse the repository at this point in the history
  • Loading branch information
SamDudley committed Nov 19, 2024
1 parent 4e56d53 commit 5b76e5e
Show file tree
Hide file tree
Showing 2 changed files with 193 additions and 3 deletions.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ create-stub-data: # Create stub data for testing
$(web) $(manage) create_stub_forecast_data
$(web) $(manage) create_stub_future_forecast_data
$(web) $(manage) create_data_lake_stub_data
$(web) $(manage) populate_gift_hospitality_table
$(web) $(manage) loaddata test_payroll_data
$(web) $(manage) create_test_user --password=password

setup: # Set up the project from scratch
make down
make create-stub-data
make gift-hospitality-table
$(web) $(manage) create_test_user --password=password
$(web) $(manage) create_test_user [email protected] --group="Finance Administrator" --password=password # /PS-IGNORE
$(web) $(manage) create_test_user [email protected] --group="Finance Business Partner/BSCE" --password=password # /PS-IGNORE
Expand Down
194 changes: 192 additions & 2 deletions payroll/fixtures/test_payroll_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"employee_no": "00000001",
"programme_code": "338887",
"first_name": "John",
"last_name": "Smith"
"last_name": "Smith",
"grade": "Grade 7",
"assignment_status": "Active Assignment"
}
},
{
Expand All @@ -18,7 +20,35 @@
"employee_no": "00000002",
"programme_code": "338887",
"first_name": "Jane",
"last_name": "Doe"
"last_name": "Doe",
"grade": "Grade 7",
"assignment_status": "Active Contingent Assignment"
}
},
{
"model": "payroll.employee",
"pk": 3,
"fields": {
"cost_centre": "888812",
"employee_no": "00000003",
"programme_code": "338887",
"first_name": "John",
"last_name": "Doe",
"grade": "Grade 7",
"assignment_status": "Loan Out - Non Payroll"
}
},
{
"model": "payroll.employee",
"pk": 4,
"fields": {
"cost_centre": "888812",
"employee_no": "00000004",
"programme_code": "338887",
"first_name": "Jane",
"last_name": "Smith",
"grade": "Grade 7",
"assignment_status": "Active Assignment"
}
},
{
Expand Down Expand Up @@ -181,6 +211,166 @@
"period_12": true
}
},
{
"model": "payroll.employeepayperiods",
"pk": 9,
"fields": {
"employee": 3,
"year": 2024,
"period_1": false,
"period_2": false,
"period_3": false,
"period_4": false,
"period_5": false,
"period_6": false,
"period_7": false,
"period_8": false,
"period_9": false,
"period_10": false,
"period_11": false,
"period_12": false
}
},
{
"model": "payroll.employeepayperiods",
"pk": 10,
"fields": {
"employee": 3,
"year": 2025,
"period_1": false,
"period_2": false,
"period_3": false,
"period_4": false,
"period_5": false,
"period_6": false,
"period_7": false,
"period_8": false,
"period_9": false,
"period_10": false,
"period_11": false,
"period_12": false
}
},
{
"model": "payroll.employeepayperiods",
"pk": 11,
"fields": {
"employee": 3,
"year": 2026,
"period_1": false,
"period_2": false,
"period_3": false,
"period_4": false,
"period_5": false,
"period_6": false,
"period_7": false,
"period_8": false,
"period_9": false,
"period_10": false,
"period_11": false,
"period_12": false
}
},
{
"model": "payroll.employeepayperiods",
"pk": 12,
"fields": {
"employee": 3,
"year": 2027,
"period_1": false,
"period_2": false,
"period_3": false,
"period_4": false,
"period_5": false,
"period_6": false,
"period_7": false,
"period_8": false,
"period_9": false,
"period_10": false,
"period_11": false,
"period_12": false
}
},
{
"model": "payroll.employeepayperiods",
"pk": 13,
"fields": {
"employee": 4,
"year": 2024,
"period_1": false,
"period_2": false,
"period_3": false,
"period_4": false,
"period_5": false,
"period_6": false,
"period_7": false,
"period_8": false,
"period_9": false,
"period_10": false,
"period_11": false,
"period_12": false
}
},
{
"model": "payroll.employeepayperiods",
"pk": 14,
"fields": {
"employee": 4,
"year": 2025,
"period_1": false,
"period_2": false,
"period_3": false,
"period_4": false,
"period_5": false,
"period_6": false,
"period_7": false,
"period_8": false,
"period_9": false,
"period_10": false,
"period_11": false,
"period_12": false
}
},
{
"model": "payroll.employeepayperiods",
"pk": 15,
"fields": {
"employee": 4,
"year": 2026,
"period_1": false,
"period_2": false,
"period_3": false,
"period_4": false,
"period_5": false,
"period_6": false,
"period_7": false,
"period_8": false,
"period_9": false,
"period_10": false,
"period_11": false,
"period_12": false
}
},
{
"model": "payroll.employeepayperiods",
"pk": 16,
"fields": {
"employee": 4,
"year": 2027,
"period_1": false,
"period_2": false,
"period_3": false,
"period_4": false,
"period_5": false,
"period_6": false,
"period_7": false,
"period_8": false,
"period_9": false,
"period_10": false,
"period_11": false,
"period_12": false
}
},
{
"model": "payroll.payelementtypegroup",
"pk": 1,
Expand Down

0 comments on commit 5b76e5e

Please sign in to comment.