Skip to content

Commit 795d582

Browse files
committed
Updates to RCS labels and target measure labels #3387
1 parent b93cf03 commit 795d582

4 files changed

+93
-15
lines changed

forms/other/regionalCapacityServicesReportV1.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,7 @@
298298
},
299299
{
300300
"dataType": "number",
301-
"name": "targetIndigenousProcurementPercentage",
302-
"description": "Target Indigenous Procurement Percentage for this reporting period"
301+
"name": "targetIndigenousProcurementPercentage"
303302
},
304303
{
305304
"name": "staffDevelopmentOpportunities",
@@ -769,9 +768,10 @@
769768
"items": [
770769
{
771770
"css": "span7",
772-
"preLabel": "Supply Chain Performance % this reporting period",
771+
"preLabel": "Supply Chain Performance to date",
773772
"source": "supplyChainPerformancePercentage",
774-
"type": "number"
773+
"type": "number",
774+
"helpText": "Supply chain performance to date (note this is a cumulative measure over the life of the contract consistent with the approach used by NIAA measuring indigenous participation. Performance to date should meet or exceed target performance by the end of the Deed period)"
775775
}
776776
]
777777
},
@@ -780,7 +780,7 @@
780780
"items": [
781781
{
782782
"css": "span7",
783-
"preLabel": "Target Supply Chain Performance % this reporting period",
783+
"preLabel": "Target supply chain performance at end of Deed period",
784784
"source": "targetIndigenousProcurementPercentage",
785785
"type": "number",
786786
"readonly": true

forms/other/regionalCapacityServicesReportV2.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@
297297
},
298298
{
299299
"dataType": "number",
300-
"name": "targetIndigenousProcurementPercentage",
301-
"description": "Target Indigenous Procurement Percentage for this reporting period"
300+
"name": "targetIndigenousProcurementPercentage"
302301
},
303302
{
304303
"name": "staffDevelopmentOpportunities",
@@ -719,9 +718,10 @@
719718
"items": [
720719
{
721720
"css": "span7",
722-
"preLabel": "Supply Chain Performance % this reporting period",
721+
"preLabel": "Supply Chain Performance to date",
723722
"source": "supplyChainPerformancePercentage",
724-
"type": "number"
723+
"type": "number",
724+
"helpText": "Supply chain performance to date (note this is a cumulative measure over the life of the contract consistent with the approach used by NIAA measuring indigenous participation. Performance to date should meet or exceed target performance by the end of the Deed period)"
725725
}
726726
]
727727
},
@@ -730,7 +730,7 @@
730730
"items": [
731731
{
732732
"css": "span7",
733-
"preLabel": "Target Supply Chain Performance % this reporting period",
733+
"preLabel": "Target supply chain performance at end of Deed period",
734734
"source": "targetIndigenousProcurementPercentage",
735735
"type": "number",
736736
"readonly": true

forms/other/regionalCapacityServicesReportV3.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,7 @@
279279
},
280280
{
281281
"dataType": "number",
282-
"name": "targetIndigenousProcurementPercentage",
283-
"description": "Target Indigenous Procurement Percentage for this reporting period"
282+
"name": "targetIndigenousProcurementPercentage"
284283
},
285284
{
286285
"name": "staffDevelopmentOpportunities",
@@ -680,9 +679,10 @@
680679
"items": [
681680
{
682681
"css": "span7",
683-
"preLabel": "Supply Chain Performance % this reporting period",
682+
"preLabel": "Supply Chain Performance to date",
684683
"source": "supplyChainPerformancePercentage",
685-
"type": "number"
684+
"type": "number",
685+
"helpText": "Supply chain performance to date (note this is a cumulative measure over the life of the contract consistent with the approach used by NIAA measuring indigenous participation. Performance to date should meet or exceed target performance by the end of the Deed period)"
686686
}
687687
]
688688
},
@@ -691,7 +691,7 @@
691691
"items": [
692692
{
693693
"css": "span7",
694-
"preLabel": "Target Supply Chain Performance % this reporting period",
694+
"preLabel": "Target supply chain performance at end of Deed period",
695695
"source": "targetIndigenousProcurementPercentage",
696696
"type": "number",
697697
"readonly": true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
load( "../../utils/audit.js");
2+
var adminUserId = 'system'
3+
var indigenousWorkforcePerformanceScoreId = '5d28e47f-5182-4ad7-91f7-074908fb66e4';
4+
var indigenousSupplyChainPerformanceScoreId = 'f7a537fd-cb38-4392-a0db-5e02beec6aa0';
5+
6+
var scores = [
7+
{
8+
"category": "Indigenous Procurement",
9+
"configuration": {
10+
"filter": {
11+
filterValue: "Regional capacity services - reporting",
12+
property: "name",
13+
type: "filter"
14+
},
15+
"childAggregations": [{
16+
"property": "data.workforcePerformancePercentage",
17+
"type": "AVERAGE"
18+
}]
19+
},
20+
"description": "",
21+
"displayType": "",
22+
"entity": "Activity",
23+
"entityTypes": [],
24+
"isOutputTarget": true,
25+
"label": "Indigenous workforce performance",
26+
"outputType": "Regional capacity services - reporting",
27+
"scoreId": indigenousWorkforcePerformanceScoreId,
28+
"status": "active",
29+
"name":"targetIndigenousParticipationPercentage"
30+
},
31+
{
32+
"category": "Indigenous Procurement",
33+
"configuration": {
34+
"filter": {
35+
filterValue: "Regional capacity services - reporting",
36+
property: "name",
37+
type: "filter"
38+
},
39+
"childAggregations": [{
40+
"property": "data.supplyChainPerformancePercentage",
41+
"type": "AVERAGE"
42+
}]
43+
},
44+
"description": "",
45+
"displayType": "",
46+
"entity": "Activity",
47+
"entityTypes": [],
48+
"isOutputTarget": true,
49+
"label": "Indigenous supply chain performance",
50+
"outputType": "Regional capacity services - reporting",
51+
"scoreId": indigenousSupplyChainPerformanceScoreId,
52+
"status": "active",
53+
"name":"targetIndigenousProcurementPercentage"
54+
}
55+
];
56+
57+
58+
var labelupdates = {
59+
'Indigenous workforce performance':'Indigenous workforce performance (% of Indigenous FTE achieved to date/% FTE target for Indigenous employment to date)',
60+
'Indigenous supply chain performance':'Indigenous supply chain performance (% of procurement from Indigenous suppliers achieved to date/% procurement target of procurement from Indigenous suppliers at end of Deed period)'
61+
}
62+
for (var i=0; i<scores.length; i++) {
63+
var existing = db.score.find({label:scores[i].label});
64+
if (existing.hasNext()) {
65+
var existingScore = existing.next();
66+
existingScore.configuration = scores[i].configuration;
67+
existingScore.name = scores[i].name;
68+
existingScore.label = labelupdates[scores[i].label];
69+
db.score.replaceOne({label:scores[i].label}, existingScore);
70+
71+
audit(scores[i], scores[i].scoreId, 'au.org.ala.ecodata.Score', adminUserId, undefined, 'Update');
72+
73+
}
74+
else {
75+
print("Error updating score: "+scores[i].label);
76+
}
77+
78+
}

0 commit comments

Comments
 (0)