{"Name":"PM Units grouped by Customer","Active":true,"Notes":"","Roles":50538,"AType":88,"IncludeWoItemDescendants":false,"Template":"<html>\n\n<body>\n   <div>\n      <div class=\"reporttitle\">\n\t\t\t<p>{{ayT 'PMList'}} {{ayT 'WorkOrderItemUnitList'}} grouped by {{ayT 'Customer'}}</p>\n\t\t</div>\n      <table>\n         <thead>\n            <tr>\n               <th colspan=\"2\" class=\"leftlean\" >{{ayT 'Customer'}}</th>\n               <th colspan=\"1\">{{ayT 'PM'}}</th>\n               <th colspan=\"1\">{{ayT 'PMNextServiceDate'}}</th>\n               <th colspan=\"2\">{{ayT 'WorkOrderItemUnit'}}</th>\n               <th colspan=\"1\">{{ayT 'WorkOrderItemWorkOrderStatusID'}}</th>\n               <th colspan=\"3\">{{ayT 'WorkOrderItemSummary'}}</th>\n            </tr>\n         </thead>\n         <tbody>\n            {{#each ayReportData}}\n            <tr>\n               <td colspan=\"10\">{{group}}</td>\n            </tr>\n           {{#each items}}\n               {{#each Items}}\n                     {{#each Units}}\n            <tr>               \n               <td  colspan=\"2\">&nbsp;</td>\n               <td  colspan=\"1\" class=\"centerlean\">{{../../Serial}}</td> <!--note the two ../ to go up levels to get this data -->\n               <td  colspan=\"1\" class=\"centerlean\">{{ayDate ../../NextServiceDate}}</td><!--note the two ../ to go up levels to get this data -->\n               <td  colspan=\"2\" >{{UnitViz}} - {{UnitModelNameViz}}</td>\n               <td  colspan=\"1\" >{{../WorkOrderItemStatusNameViz}}</td><!--note the  ../ to go up level to get this data -->\n               <td  colspan=\"3\" >{{../Notes}}</td><!--note the  ../ to go up level to get this data -->        \n          </tr>\n                     {{/each}}\n               {{/each}}\n          {{/each}}\n            <tr>\n               <td colspan=\"10\">&nbsp;</td>\n            </tr>\n\n            <tr>\n               <td colspan=\"10\">&nbsp;</td>\n            </tr>\n            {{/each}}\n         </tbody>\n      </table>     \n   </div>\n\n   <!-- uncomment to see the raw data returned from the custom Prepare \n<div>\n   <p>{{ayJSON ayReportData}} </p>\n</div> \n-->\n\n</body>\n</html>","Style":".minimum {\n  font-size: 6pt;\n}\n\ntfoot {\n  border-top: 2px solid #9e9e9e;\n  font-size: 7pt;\n  text-align: center;\n}\n\n.singlePage\n{\npage-break-after: always;\n}\n\nbody {\n  font-family: 'Helvetica',  'Helvetica Neue',  Arial,  sans-serif; \n}\n\n.reporttitle {  \n  margin-bottom: 20pt; \n  font-weight: bold; \n  font-size: 13pt; \n  color: #9e9e9e;\n} \n\ntable { \n  border-collapse: collapse;\n  white-space: pre-wrap;\n  width: 100%;\n  table-layout: fixed; \n    }\n\nth {\n  height: 30px;\n  font-size: 9pt; \n  color: #9e9e9e;\n}\n\ntbody td {\n  padding: 10px;\n  word-wrap: break-word;\n  font-size: 7pt;\n}\n\n\ntbody tr:nth-child(even) {\n        background-color: #f8f8f8; /* MUST checkmark Print background in PDF Options for this to show */\n}\n\n\n.rightlean {\n    text-align: right;\n}\n.leftlean {\n  text-align: left;\n}\n.centerlean {\n  text-align: center;\n}\n\n\n.fontgreen {\n  color: green;\n}\n.fontblue {\n  color: blue;\n}\n.fontred {\n  color:red;\n}\n\n","JsPrerender":"async function ayPrepareData(reportData){         \n    //this function (if present) is called with the report data \n    //before the report is rendered\n    //modify data as required here and return it to change the data before the report renders\n    //see the help documentation for details\n\n\treportData.ayReportData = ayGroupByKey(reportData.ayReportData, 'CustomerViz')\n\t\n\tawait ayGetTranslations([\"PM\", \"PMList\", \"Customer\", \"PMNextServiceDate\", \"WorkOrderItemUnit\", \"WorkOrderItemUnitList\", \"WorkOrderStatus\", \"WorkOrderItemWorkOrderStatusID\", \"WorkOrderItemSummary\", \"WorkOrderSummary\" ]);\n\n\n\n    return reportData;\n}","JsHelpers":"","RenderType":0,"HeaderTemplate":"<span>&nbsp; </span>","FooterTemplate":"<span style=\"font-size:6pt; width: 96%;text-align:left; \">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Printed date: PDFDate</span>\n<span style=\"font-size:6pt;width: 96%; text-align: right; \">Page <span class=\"pageNumber\"></span> of <span class=\"totalPages\"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;</span>","DisplayHeaderFooter":true,"PaperFormat":10,"Landscape":true,"MarginOptionsBottom":"15mm","MarginOptionsLeft":"15mm","MarginOptionsRight":"15mm","MarginOptionsTop":"10mm","PageRanges":null,"PreferCSSPageSize":false,"PrintBackground":true,"Scale":1.00000}