From 9518ca2851cbda7faa7db6d324310bb5b6c9a4df Mon Sep 17 00:00:00 2001 From: chrisala Date: Thu, 10 Oct 2024 14:52:32 +1100 Subject: [PATCH] Script to configure services for new forms #3345 --- ...nfigureGrantsAndProcurementFormServices.js | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/main/scripts/releases/4.1/adhoc/configureGrantsAndProcurementFormServices.js diff --git a/src/main/scripts/releases/4.1/adhoc/configureGrantsAndProcurementFormServices.js b/src/main/scripts/releases/4.1/adhoc/configureGrantsAndProcurementFormServices.js new file mode 100644 index 000000000..409799df4 --- /dev/null +++ b/src/main/scripts/releases/4.1/adhoc/configureGrantsAndProcurementFormServices.js @@ -0,0 +1,42 @@ +load('../../../utils/audit.js'); +const forms = ['Grants and Others Progress Report', 'Procurement Output Report']; +const nhtOutputReportForm = 'NHT Output Report'; +let services = db.service.find(); +while (services.hasNext()) { + let service = services.next(); + let updated = false; + let sectionName = null; + for (let i=0; i