From b6bb501d925557491c5705484a6af0d97e3808f8 Mon Sep 17 00:00:00 2001 From: sal153 Date: Wed, 18 Dec 2024 08:42:41 +1100 Subject: [PATCH] commit updated script #3335 --- .../createNewResearchAndDevelopmentScore.js | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) rename src/main/scripts/releases/{4.1 => 4.2}/adhoc/createNewResearchAndDevelopmentScore.js (77%) 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