diff --git a/.gitignore b/.gitignore index 4c03667..4c633a5 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ config.json .DS_Store package-lock.json static/exports +.env \ No newline at end of file diff --git a/templates/incidents/complaints/daily_summery_report_categorywise.js b/templates/incidents/complaints/daily_summery_report_categorywise.js index 5d8e1d4..8815e3f 100644 --- a/templates/incidents/complaints/daily_summery_report_categorywise.js +++ b/templates/incidents/complaints/daily_summery_report_categorywise.js @@ -2,13 +2,11 @@ const config = require("../../../config"); const baseURL = config("BASE_URL"); module.exports = data => { - console.log("data",data); let date = data.date; let categories = data.categories; let otherComplaintCount = data.other; let totalComplaintCount = data.total; - let totalOpenedCount = data.totalOpenedCount; - let language = data.language; + let template = ` @@ -65,28 +63,29 @@ module.exports = data => { />
- කාණ්ඩය
- வகை
- Category
- |
-
- අනු කාණ්ඩය
- உப வகை
- Subcategory
- |
-
- සංඛ්යාව
- எண்ணிக்கை
- No
- |
-
---|
- කාණ්ඩය
- வகை
- Category
- |
-
- අනු කාණ්ඩය
- உப வகை
- Subcategory
- |
-
- සංඛ්යාව
- எண்ணிக்கை
- No
- |
-
---|
- කාණ්ඩය
- வகை
- Category
- |
+ template += generateCategoryRows(categories);
+ template += `
+ |||||
---|---|---|---|---|---|
- අනු කාණ්ඩය
- உப வகை
- Subcategory
- |
-
- සංඛ්යාව
- எண்ணிக்கை
- No
+ වෙනත්
+ வேறு
|
- ||||
- එකතුව / மொத்தம் / Total - | -${totalComplaintCount} | -+ | ${otherComplaintCount} | + +||
- විවෘත ගැටළු ගණන / திறந்த சிக்கல்கள் எண்ணிக்கை / No. of issues open - | -${totalOpenedCount} | ++ | + එකතුව / மொத்தம் / Total + | +${totalComplaintCount} |