Process started.


Processing command line argsWEEKLY_SUMMARY


Starting weekly report email process...


Found 2 organisations with weekly report emails enabled.


Weekly Email Config: {"SummaryEmailId":0, "RolesToSend":[334,343,340], "EmailTemplateHtmlPath":"WeeklySummaryTemplate.html", "IncidentRecommendationCategoryIds":[58]}


$Inside Generate User Weekly Report


$Inside PopulateWeeklyReportTemplate


Weekly email template - <!doctype html>

    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Weekly Report</title>

        Weekly Report

            Plant Name

            [PLANT_NAME]

            Safety Alert Raised

                  Last Week

                  MTD

                  YTD

                  Annual Target

                  [LAST_WEEK_NUMBERS]

                  [MTD_NUMBERS]

                  [YTD_NUMBERS]

                  [ANNUAL_TARGET_NUMBERS]

            Action Tracker

            Total Action

            Actions Closed
Target - 80%

            Actions Open

            Actions Overdue - < 30 days

            Actions Overdue - > 30 days

            [TOTAL_ACTION]

            [ACTIONS_CLOSED]
[PERCENTAGE]

            [ACTIONS_OPEN]

            [ACTIONS_OVERDUE_30]

            [ACTIONS_OVERDUE_30_PLUS]

            Training

            No. of People Trained

            No. of Man Hour Trained in Hrs

            Compliance to 8Hr Target / Yr

            On Role

            Off Role

            On Role

            Off Role

            Target - On Role - 50 people

            [ON_ROLE_TRAINED]

            [OFF_ROLE_TRAINED]

            [ON_ROLE_HOURS]

            [OFF_ROLE_HOURS]

            Actual - [ACTUAL_PEOPLE] People

            Individual Average Manhour Achieved: [AVERAGE_MANHOUR]

            Work Permits Raised

            No. of Work Permit Raised

            MTD

            YTD

            [WORK_PERMITS_RAISED]

            [WORK_PERMITS_MTD]

            [WORK_PERMITS_YTD]

            OHC Walkins

            Type

            Last Week

            MTD

            YTD

            Health Illness

            [HEALTH_ILLNESS_LAST_WEEK]

            [HEALTH_ILLNESS_MTD]

            [HEALTH_ILLNESS_YTD]

            New Joinee Medical Checkup

            [NEW_JOINEE_LAST_WEEK]

            [NEW_JOINEE_MTD]

            [NEW_JOINEE_YTD]

            Workplace Injury

            [WORKPLACE_INJURY_LAST_WEEK]

            [WORKPLACE_INJURY_MTD]

            [WORKPLACE_INJURY_YTD]

            Incidents

            Type

            Last Week

            MTD

            YTD

            Investigation Pending to Release

            First aid Case

            [FIRST_AID_LAST_WEEK]

            [FIRST_AID_MTD]

            [FIRST_AID_YTD]

            [FIRST_AID_PENDING]

            Reportable Accident

            [REPORTABLE_LAST_WEEK]

            [REPORTABLE_MTD]

            [REPORTABLE_YTD]

            [REPORTABLE_PENDING]

            Fire & Others

            [FIRE_OTHERS_LAST_WEEK]

            [FIRE_OTHERS_MTD]

            [FIRE_OTHERS_YTD]

            [FIRE_OTHERS_PENDING]

            Incident Recommendations

            Total Action

            Actions Closed
Target - 80%

            Actions Open

            Actions Overdue - < 30 days

            Actions Overdue - > 30 days

            [INCIDENT_TOTAL_ACTION]

            [INCIDENT_ACTIONS_CLOSED]

            [INCIDENT_ACTIONS_OPEN]

            [INCIDENT_OVERDUE_30]

            [INCIDENT_OVERDUE_30_PLUS]

            Scheduled Inspections

            Inspections Scheduled

            Inspections Completed

            Inspections Not Completed & Overdue

            [INSPECTIONS_SCHEDULED]

            [INSPECTIONS_COMPLETED]

            [INSPECTIONS_OVERDUE]

          Plant HSE KPI Rating (Out of 5 Star) - Current Month Rating

              S.No

              Category

              Measure

              Actual

              Rating

              0

              1

              2

              3

              4

              5

        This is an automated weekly report generated on [REPORT_DATE]


$Inside ReplaceKPIDataDynamically


Outside ReplaceKPIDataDynamically


Generated 6 notifications for organisation 248


Weekly Email Config: {"SummaryEmailId":0, "RolesToSend":[356,358,357], "EmailTemplateHtmlPath":"WeeklySummaryTemplate.html", "ExternalUserEmails":["hemantsehwag0008@gmail.com","lakshmanarao.p@osmosys.co"], "IncidentRecommendationCategoryIds":[]}


Generated 7 notifications for organisation 251


Pushing 13 Weekly Report Notifications to NSQ