{"Name":"Inventory transactions grouped by Part","Active":true,"Notes":"","Roles":50538,"AType":67,"IncludeWoItemDescendants":false,"Template":"<html>\n\n<body>\n\t<div>\n\t\t<div class=\"reporttitle\">\n\t\t\t<p>{{ayT 'PartInventoryTransactionList'}} grouped by {{ayT 'Part'}}</p>\n\t\t</div>\n\n\t\t<table>\n\t\t\t<thead>\n\t\t\t</thead>\n\n\t\t\t<tbody>\n\t\t\t\t{{#each ayReportData}}\n\t\t\t\t<!--  the #each  for the Sample Data MUST encompass the section  where its gonna show - in this case the tbody, so needs to be placed within  -->\n\t\t\t\t<!--  to get alternating coloured rows when one PO per line, need CSS statements PLUS this # each MUST be placed BEFORE the tr /tr -->\n\t\t\t\t<tr>\n\t\t\t\t\t<th colspan=\"2\">{{ayT 'Part'}}:</th>\n\t\t\t\t\t<td colspan=\"12\"> {{group}}</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th colspan=\"2\">&nbsp;</th>\n\t\t\t\t\t<th colspan=\"2\">{{ayT 'PartInventoryTransactionEntryDate'}}</th>\n\t\t\t\t\t<th colspan=\"4\">{{ayT 'PartInventoryTransactionDescription'}}</th>\n\t\t\t\t\t<th colspan=\"2\">{{ayT 'PartWarehouse'}}</th>\n\t\t\t\t\t<th colspan=\"2\">{{ayT 'PartInventoryTransactionQuantity'}}</th>\n\t\t\t\t\t<th colspan=\"2\">{{ayT 'PartInventoryBalance'}}</th>\n\t\t\t\t</tr>\n\t\t\t\t{{#each items}}<!-- note that this reiteration references the items array generated from the custom Prepare ayGroupByKey rather than referencing the Sample Data  -->\n\t\t\t\t<tr>\n\t\t\t\t\t<td colspan=\"2\">&nbsp;</td>\n\t\t\t\t\t<td colspan=\"2\">{{ayDateTime EntryDate}}</td>\n\t\t\t\t\t<td colspan=\"4\">{{Description}}</td>\n\t\t\t\t\t<td colspan=\"2\">{{PartWarehouseViz}}</td>\n\t\t\t\t\t<td colspan=\"2\">{{Quantity}}</td>\n\t\t\t\t\t<td colspan=\"2\">{{Balance}}</td>\n\t\t\t\t</tr>\n\t\t\t\t{{/each}}\n\t\t\t\t<tr>\n\t\t\t\t\t<td colspan=\"14\">&nbsp;</td>\n\t\t\t\t</tr>\n\n\t\t\t\t{{/each}}\n\t\t\t</tbody>\n\n\t\t\t<tfoot>\n\t\t\t</tfoot>\n\n\t\t</table>\n\n<!-- uncomment if you want to see output of raw data onto the printed output as returned from the Custom Prepare - be advised that doing so may result in a delay due to the number of pages needed to be returned\n    <table>\n            {{#each ayReportData}}\n          <tbody>\n                <tr>\n                  <td colspan=\"5\">This is a printout of the data returned from the Custom Prepare that this report now uses. Compare against the data that shows in the \"Sample Data\" when editing this report template.</td>\n                </tr>\n                <tr>\n\t\t\t        <td colspan=\"5\" class=\"leftlean\">{{ayJSON this}}</td>\n                </tr>\n          </tbody>\n          {{/each}}\n        </table>\n-->\n\n\n\t</div>\n</body>\n\n</html>","Style":"body {\r\n  font-family: 'Helvetica',  'Helvetica Neue',  Arial,  sans-serif; \r\n}\r\n\r\n.reporttitle {  \r\n  margin-bottom: 20pt; \r\n  font-weight: bold; \r\n  font-size: 13pt; \r\n  color: #9e9e9e;\r\n} \r\n\r\ntable { \r\n  border-collapse: collapse;\r\n  white-space: pre-wrap;\r\n  width: 100%;\r\n  table-layout: fixed;\r\n    }\r\n\r\nth {\r\n  padding: 5px;\r\n  font-size: 11pt; \r\n  color: #9e9e9e;\r\n  text-align: left;\r\n}\r\n\r\ntbody td {\r\n  padding: 5px;\r\n  word-wrap: break-word;\r\n  font-size: 9pt;\r\n}\r\n\r\n\r\ntbody tr:nth-child(even) {\r\n        background-color: #f8f8f8; /* MUST checkmark Print background in PDF Options for this to show */\r\n}\r\n\r\n\r\n.rightlean {\r\n    text-align: right;\r\n}\r\n.leftlean {\r\n  text-align: left;\r\n}\r\n.centerlean {\r\n  text-align: center;\r\n}\r\n\r\n\r\n.fontgreen {\r\n  color: green;\r\n  font-size: 16pt;\r\n}\r\n.fontblue {\r\n  color: blue;\r\n}\r\n.fontred {\r\n  color:red;\r\n}","JsPrerender":"async function ayPrepareData(ayData){      \n\n    ayData.ayReportData = ayGroupByKey(ayData.ayReportData, 'PartNameViz');\n\n     await ayGetTranslations([\"PartInventoryTransactionList\", \"PartInventoryTransactionDescription\", \"PartInventoryTransactionEntryDate\", \"PartInventoryTransactionQuantity\", \"PartInventoryBalance\", \"PartWarehouse\", \"Part\" ]);\n\n    return ayData;\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":"15mm","PageRanges":null,"PreferCSSPageSize":false,"PrintBackground":true,"Scale":1.00000}