diff --git a/src/main/scripts/releases/4.1/adhoc/createNewResearchAndDevelopmentScore.js b/src/main/scripts/releases/4.2/adhoc/createNewResearchAndDevelopmentScore.js similarity index 77% rename from src/main/scripts/releases/4.1/adhoc/createNewResearchAndDevelopmentScore.js rename to src/main/scripts/releases/4.2/adhoc/createNewResearchAndDevelopmentScore.js index e8e2691c0..e8bf49712 100644 --- a/src/main/scripts/releases/4.1/adhoc/createNewResearchAndDevelopmentScore.js +++ b/src/main/scripts/releases/4.2/adhoc/createNewResearchAndDevelopmentScore.js @@ -1,8 +1,11 @@ -load('../../utils/audit.js'); +load('../../../utils/uuid.js'); +load('../../../utils/audit.js'); let adminUserId = '' +const invoiceScoreId = '7u24188f-852h-3bex-c49g-60a2dsaa8723'; let scores = [ + { - scoreId: UUID.generate(), + scoreId: invoiceScoreId, entityTypes: undefined, tags: [], displayType: '', @@ -33,7 +36,7 @@ let scores = [ } , { - _id: ObjectId('664c25abb61a6108c799ea73'), + _id: ObjectId('664c25abb61a6108c799bb66'), scoreId: UUID.generate(), label: 'Number of hours conducting research and development', status: 'active', @@ -58,7 +61,13 @@ let scores = [ ] }, dateCreated: ISODate('2024-12-17T04:40:11.160Z'), - lastUpdated: ISODate('2024-12-17T04:40:11.160Z') + lastUpdated: ISODate('2024-12-17T04:40:11.160Z'), + relatedScores: [ + { + description: 'Invoiced by', + scoreId: invoiceScoreId + } + ] }]; @@ -69,4 +78,7 @@ for (let i=0; i