diff --git a/src/main/scripts/releases/4.2/adhoc/markOutputsAsNotApplicable.js b/src/main/scripts/releases/4.2/adhoc/markOutputsAsNotApplicable.js new file mode 100644 index 000000000..b7198be60 --- /dev/null +++ b/src/main/scripts/releases/4.2/adhoc/markOutputsAsNotApplicable.js @@ -0,0 +1,20 @@ +load('../../../utils/audit.js'); +let reportId = 'ac5c0470-c654-40e1-9535-bfaf620fe883'; +let adminUserId = 'system'; + +let outputsToMarkAsNotApplicable = ['NHT - Identifying sites', 'NHT - Weed treatment', 'NHT - Baseline data']; + +let report = db.report.findOne({reportId:reportId}); +let activityId = report.activityId; + +printjson(db.output.find({activityId:activityId, name:{$in:outputsToMarkAsNotApplicable}}, {outputId:true, name:true, outputNotCompleted:true})); + +for (let i=0; i