Skip to content

Commit

Permalink
Merge pull request #2005
Browse files Browse the repository at this point in the history
Inclusive headcounts
  • Loading branch information
arcshiftsolutions authored Aug 24, 2024
2 parents ed9911d + 1bf1a45 commit 0cb33ee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 26 deletions.
3 changes: 2 additions & 1 deletion backend/src/components/ministrySDCReports.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const { logApiError, errorResponse, getData } = require('./utils');
const config = require('../config/index');
const HttpStatus = require('http-status-codes');
let reportTypes = ['school-enrollment-headcounts', 'indy-school-enrollment-headcounts', 'school-address-report', 'fsa-registration-report', 'offshore-enrollment-headcounts'];
let reportTypes = ['indy-inclusive-ed-enrollment-headcounts', 'school-enrollment-headcounts', 'indy-school-enrollment-headcounts', 'school-address-report', 'fsa-registration-report', 'offshore-enrollment-headcounts'];

async function getMinistrySDCReport(req, res) {
try {
Expand Down Expand Up @@ -43,6 +43,7 @@ function getFileDetails(reportType) {
const mappings = {
'school-enrollment-headcounts': { filename: 'AllSchoolsHeadcounts.csv', contentType: 'text/csv' },
'indy-school-enrollment-headcounts': { filename: 'IndependentSchoolsHeadcounts.csv', contentType: 'text/csv' },
'indy-inclusive-ed-enrollment-headcounts': { filename: 'IndependentSchoolsInclusiveEdHeadcounts.csv', contentType: 'text/csv' },
'school-address-report': { filename: 'SchoolPhysicalAddressReport.csv', contentType: 'text/csv' },
'fsa-registration-report': { filename: 'FsaRegistrationReport.csv', contentType: 'text/csv' },
'offshore-enrollment-headcounts': { filename: 'OffshoreSchoolsHeadcounts.csv', contentType: 'text/csv' },
Expand Down
45 changes: 20 additions & 25 deletions frontend/src/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,52 +388,47 @@ export const PEN_REQUEST_STUDENT_VALIDATION_FIELD_CODES_TO_STUDENT_DETAILS_FIELD
export const SDC_REPORTS = Object.freeze(
{
publicReports: [
{
label: 'School Physical Address Report',
url: object.SDC_MINISTRY_REPORTS + '/headcount/school-address-report/',
csvDownloadURL: object.SDC_MINISTRY_REPORTS + '/download/headcount/school-address-report/'
{
label: 'All Students by District',
reportID: 'FUNDING_POLICY_REPORT_DISTRICT',
},
{
{
label: 'FSA Registration Report',
url: object.SDC_MINISTRY_REPORTS + '/headcount/fsa-registration-report/',
csvDownloadURL: object.SDC_MINISTRY_REPORTS + '/download/headcount/fsa-registration-report/'
},
{
label: 'All Students by District (CSV)',
reportID: 'FUNDING_POLICY_REPORT_DISTRICT',
{
label: 'School Physical Address Report',
url: object.SDC_MINISTRY_REPORTS + '/headcount/school-address-report/',
csvDownloadURL: object.SDC_MINISTRY_REPORTS + '/download/headcount/school-address-report/'
}
],
independentReports: [
{
label: 'All Students',
reportID: 'ALL_STUDENTS_REPORT',
url: 'ABC'
},
{
label: 'Five Students',
reportID: 'FIVE_STUDENTS_REPORT',
url: 'ABC'
},
{
label: 'All Students by Independent School (CSV)',
label: 'All Students by Independent School',
reportID: 'FUNDING_POLICY_REPORT_INDY',
}
],
headcountReports: [
{
label: 'School Enrolment Headcounts',
url: object.SDC_MINISTRY_REPORTS + '/headcount/school-enrollment-headcounts/',
csvDownloadURL: object.SDC_MINISTRY_REPORTS + '/download/headcount/school-enrollment-headcounts/'
label: 'Independent School Enrolment Headcounts',
url: object.SDC_MINISTRY_REPORTS + '/headcount/indy-school-enrollment-headcounts/',
csvDownloadURL: object.SDC_MINISTRY_REPORTS + '/download/headcount/indy-school-enrollment-headcounts/'
},
{
label: 'Independent School Inclusive Education Headcounts',
url: object.SDC_MINISTRY_REPORTS + '/headcount/indy-inclusive-ed-enrollment-headcounts/',
csvDownloadURL: object.SDC_MINISTRY_REPORTS + '/download/headcount/indy-inclusive-ed-enrollment-headcounts/'
},
{
label: 'Offshore School Enrolment Headcounts',
url: object.SDC_MINISTRY_REPORTS + '/headcount/offshore-enrollment-headcounts/',
csvDownloadURL: object.SDC_MINISTRY_REPORTS + '/download/headcount/offshore-enrollment-headcounts/'
},
{
label: 'Independent School Enrolment Headcounts',
url: object.SDC_MINISTRY_REPORTS + '/headcount/indy-school-enrollment-headcounts/',
csvDownloadURL: object.SDC_MINISTRY_REPORTS + '/download/headcount/indy-school-enrollment-headcounts/'
label: 'School Enrolment Headcounts',
url: object.SDC_MINISTRY_REPORTS + '/headcount/school-enrollment-headcounts/',
csvDownloadURL: object.SDC_MINISTRY_REPORTS + '/download/headcount/school-enrollment-headcounts/'
}
]
}
Expand Down

0 comments on commit 0cb33ee

Please sign in to comment.