-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support blanks and allow them to be excluded from the average #3369
- Loading branch information
Showing
4 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
grails-app/views/organisation/_budget.gsp → grails-app/views/organisation/_funding.gsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/scripts/releases/4.1/adhoc/disableRcsReportingTemporarily.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
load( "../../../utils/audit.js"); | ||
|
||
let adminUserId = '<system>' | ||
|
||
function findRcsReportConfig(reports) { | ||
for (let i=0; i<reports.length; i++) { | ||
if (reports[i].activityType == 'Regional Capacity Services Report') { | ||
return reports[i]; | ||
} | ||
} | ||
return null; | ||
} | ||
db.organisation.find({'config.organisationReports':{$exists:true}}).forEach(function(org){ | ||
let rcsReportConfig = findRcsReportConfig(org.config.organisationReports); | ||
if (!rcsReportConfig) { | ||
return; | ||
} | ||
rcsReportConfig.description = "Changes are being made to the Regional Capacity Services Reporting template so editing has been temporarily disabled for the Q2 report. Providers will be notified once the report is ready to be accessed again"; | ||
|
||
//org.config.serviceTargets = serviceTargetsConfig; | ||
print("updating organisation "+org.name+' , id: '+org.organisationId); | ||
db.organisation.replaceOne({organisationId:org.organisationId}, org); | ||
audit(org, org.organisationId, 'au.org.ala.ecodata.Organisation', adminUserId, undefined, 'Update'); | ||
}); | ||
|
||
db.report.updateMany({activityType:'Regional Capacity Services Report', toDate:ISODate('2024-12-31T13:00:00Z')}, {$set:{status:'readonly'}}); |